struct PowerlineGen::Label
- PowerlineGen::Label
- PowerlineGen::Fragment
- Struct
- Value
- Object
Defined in:
powerline-gen/fragments.crConstructors
Instance Method Summary
- #background_color : Symbol | Nil
- #clone
- #copy_with(text _text = @text, text_color _text_color = @text_color, background_color _background_color = @background_color, spacing _spacing = @spacing)
- #render(io, direction, bg_color, label_spacing, prev_frag, next_frag)
- #spacing : String | Nil
- #text : String
- #text_color : Symbol
Instance methods inherited from struct PowerlineGen::Fragment
initialize
initialize,
render(io : IO, direction : Direction, bg_color : Symbol, label_spacing : String, prev_frag : Fragment | Nil, next_frag : Fragment | Nil)
render
Constructor methods inherited from struct PowerlineGen::Fragment
new
new
Constructor Detail
def self.new(text : String, text_color : Symbol, background_color : Symbol | Nil = nil, spacing : String | Nil = nil)
#
Instance Method Detail
def copy_with(text _text = @text, text_color _text_color = @text_color, background_color _background_color = @background_color, spacing _spacing = @spacing)
#