struct PowerlineGen::Label

Defined in:

powerline-gen/fragments.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def background_color : Symbol | Nil #

def clone #

[View source]
def copy_with(text _text = @text, text_color _text_color = @text_color, background_color _background_color = @background_color, spacing _spacing = @spacing) #

[View source]
def render(io, direction, bg_color, label_spacing, prev_frag, next_frag) #

[View source]
def spacing : String | Nil #

def text : String #

def text_color : Symbol #