class Crysterm::Padding

Overview

Class for padding definition.

NOTE "Padding" as in spacing around elements. Same order as in HTML (ltrb)

Defined in:

namespace.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(left : Int, top : Int, right : Int, bottom : Int) #

[View source]
def self.new(all : Int) #

[View source]

Class Method Detail

def self.default #

[View source]
def self.default=(default : Crysterm::Padding) #

[View source]
def self.from(value) #

[View source]

Instance Method Detail

def adjust(pos, sign = 1) #

[View source]
def any? #

[View source]
def bottom : Int32 #

[View source]
def bottom=(bottom : Int32) #

[View source]
def bottom? #

Is there any padding on bottom?


[View source]
def left : Int32 #

[View source]
def left=(left : Int32) #

[View source]
def left? #

Is there any padding on left side?


[View source]
def right : Int32 #

[View source]
def right=(right : Int32) #

[View source]
def right? #

Is there any padding on right side?


[View source]
def top : Int32 #

[View source]
def top=(top : Int32) #

[View source]
def top? #

Is there any padding on top?


[View source]