struct PowerlineGen::Arrow

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(color : Symbol, force_direction : Direction | Nil = nil, opposite_direction : Bool = false) #

[View source]

Instance Method Detail

def clone #

[View source]
def color : Symbol #

def copy_with(color _color = @color, force_direction _force_direction = @force_direction, opposite_direction _opposite_direction = @opposite_direction) #

[View source]
def force_direction : Direction | Nil #

def opposite_direction : Bool #

def render(io, direction, bg_color, label_spacing, prev_frag, next_frag) #

[View source]