class Crysterm::Style
- Crysterm::Style
- Reference
- Object
Overview
Class for the complete style of a widget.
Defined in:
namespace.crConstructors
Class Method Summary
Instance Method Summary
-
#alpha : Float64 | Nil
Alpha (inverse of transparency).
-
#alpha=(alpha : Float64 | Nil)
Alpha (inverse of transparency).
-
#alpha?
Is any transparency defined?
- #bar
- #bar=(bar : Style | Nil)
-
#bchar : Char
Background char (WIP)
-
#bchar=(bchar : Char)
Background char (WIP)
-
#bg : String | Nil
Background color (color of cell)
-
#bg=(bg : String | Nil)
Background color (color of cell)
-
#blink=(blink : Bool)
Blink?
-
#blink? : Bool
Blink?
-
#bold=(bold : Bool)
Bold?
-
#bold? : Bool
Bold?
- #border : Border | Nil
- #border=(value)
- #cell
- #cell=(cell : Style | Nil)
-
#char : Char
Generic char (WIP)
-
#char=(char : Char)
Generic char (WIP)
-
#fchar : Char
Foreground char (WIP)
-
#fchar=(fchar : Char)
Foreground char (WIP)
-
#fg : String | Nil
Foreground color (color of font/character)
-
#fg=(fg : String | Nil)
Foreground color (color of font/character)
-
#fill=(fill : Bool)
XXX Test/document this.
-
#fill? : Bool
XXX Test/document this.
- #header
- #header=(header : Style | Nil)
-
#ignore_border=(ignore_border : Bool)
Should something render inside/over the border? Currently used for
Widget::Scrollbar
only. -
#ignore_border? : Bool
Should something render inside/over the border? Currently used for
Widget::Scrollbar
only. -
#inverse=(inverse : Bool)
Inverse?
-
#inverse? : Bool
Inverse?
- #item
- #item=(item : Style | Nil)
-
#label : Style
Label value is used only when internally instantiating labels on widgets, to be able to set their:
style: self.style.label
. -
#label=(label : Style)
Label value is used only when internally instantiating labels on widgets, to be able to set their:
style: self.style.label
. - #padding : Crysterm::Padding
- #padding=(value)
-
#pchar : Char
Percent char (WIP)
-
#pchar=(pchar : Char)
Percent char (WIP)
- #scrollbar
- #scrollbar=(scrollbar : Style | Nil)
-
#shadow : Crysterm::Shadow
Should element drop shadow?
-
#shadow=(value)
Should element drop shadow?
-
#tab_char : String
Character to replace TABs with, multiplied by tab_size
-
#tab_char=(tab_char : String)
Character to replace TABs with, multiplied by tab_size
-
#tab_size : Int32
Length in number of characters to replace TABs with
-
#tab_size=(tab_size : Int32)
Length in number of characters to replace TABs with
- #track
- #track=(track : Style | Nil)
-
#underline=(underline : Bool)
Unedline?
-
#underline? : Bool
Unedline?
-
#visible=(visible : Bool)
Visible?
-
#visible? : Bool
Visible?
Constructor Detail
Class Method Detail
Instance Method Detail
Alpha (inverse of transparency). Alpha 0 == full transparency, 1 == full opacity.
Alpha (inverse of transparency). Alpha 0 == full transparency, 1 == full opacity.
Is any transparency defined?
This function is needed because it is not possible to test just for alpha == nil
.
A value of 1.0 (full opacity) also effectively means that no transparency is enabled.
Should something render inside/over the border?
Currently used for Widget::Scrollbar
only.
XXX Rename, or make more general, or otherwise unify.
Should something render inside/over the border?
Currently used for Widget::Scrollbar
only.
XXX Rename, or make more general, or otherwise unify.
Label value is used only when internally instantiating labels on widgets,
to be able to set their: style: self.style.label
. Since labels are
widgets, everything after that is done by looking up @_label.style....
.
Label value is used only when internally instantiating labels on widgets,
to be able to set their: style: self.style.label
. Since labels are
widgets, everything after that is done by looking up @_label.style....
.
Character to replace TABs with, multiplied by tab_size