Class: UI::Label

Inherits:
View show all
Defined in:
flow/ui/label.rb

Instance Attribute Summary (collapse)

Attributes inherited from View

#alpha, #background_color, #border_color, #border_radius, #border_width

Attributes inherited from CSSNode

#align_items, #align_self, #border_bottom_width, #border_end, #border_left_width, #border_right_width, #border_start, #border_top_width, #border_width, #bottom, #flex, #flex_direction, #flex_wrap, #height, #justify_content, #left, #margin, #margin_bottom, #margin_end, #margin_left, #margin_right, #margin_start, #margin_top, #max_height, #max_width, #min_height, #min_width, #name, #padding, #padding_bottom, #padding_end, #padding_left, #padding_right, #padding_start, #padding_top, #position, #right, #top, #width

Method Summary

Methods inherited from View

#hidden=, #hidden?, #proxy, #update_layout

Methods inherited from CSSNode

#add_child, #children, #delete_child, #parent, #root, set_scale

Instance Attribute Details

- (Color) color

Returns the current value of color

Returns:

  • (Color)

    the current value of color



6
7
8
# File 'flow/ui/label.rb', line 6

def color
  @color
end

- (Font) font

Returns the current value of font

Returns:

  • (Font)

    the current value of font



6
7
8
# File 'flow/ui/label.rb', line 6

def font
  @font
end

- (String) text

Returns the current value of text

Returns:

  • (String)

    the current value of text



6
7
8
# File 'flow/ui/label.rb', line 6

def text
  @text
end

- (Object) text_alignment

Returns the current value of text_alignment

Returns:

  • (Object)

    the current value of text_alignment



6
7
8
# File 'flow/ui/label.rb', line 6

def text_alignment
  @text_alignment
end