struct Tartrazine::Style

Defined in:

styles.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(color : Nil | Sixteen::Color = nil, background : Nil | Sixteen::Color = nil, border : Nil | Sixteen::Color = nil, bold : Bool | Nil = nil, italic : Bool | Nil = nil, underline : Bool | Nil = nil) #

[View source]

Macro Detail

macro merge_prop(prop) #

[View source]

Instance Method Detail

def +(other : Style) #

[View source]
def background : Color | Nil #

These properties are either set or nil (inherit from parent style)


[View source]
def background=(background : Color | Nil) #

These properties are either set or nil (inherit from parent style)


[View source]
def bold : Bool | Nil #

These properties are tri-state. true means it's set false means it's not set nil means inherit from parent style


[View source]
def bold=(bold : Bool | Nil) #

These properties are tri-state. true means it's set false means it's not set nil means inherit from parent style


[View source]
def border : Color | Nil #

[View source]
def border=(border : Color | Nil) #

[View source]
def color : Color | Nil #

[View source]
def color=(color : Color | Nil) #

[View source]
def complete=(complete : Bool) #

Styles are incomplete by default and inherit from parents. If this is true, this style is already complete and should not inherit anything


[View source]
def complete? : Bool #

Styles are incomplete by default and inherit from parents. If this is true, this style is already complete and should not inherit anything


[View source]
def italic : Bool | Nil #

[View source]
def italic=(italic : Bool | Nil) #

[View source]
def underline : Bool | Nil #

[View source]
def underline=(underline : Bool | Nil) #

[View source]