Class: UI::View

Inherits:
CSSNode show all
Defined in:
flow/ui/view.rb

Direct Known Subclasses

ActivityIndicator, Image, Label, ListRow

Instance Attribute Summary (collapse)

Attributes inherited from CSSNode

#align_items, #align_self, #border_bottom_width, #border_end, #border_left_width, #border_right_width, #border_start, #border_top_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

Instance Method Summary (collapse)

Methods inherited from CSSNode

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

Instance Attribute Details

- (Float) alpha

Returns the current value of alpha

Returns:

  • (Float)

    the current value of alpha



7
8
9
# File 'flow/ui/view.rb', line 7

def alpha
  @alpha
end

- (Color) background_color

Returns the current value of background_color

Returns:

  • (Color)

    the current value of background_color



7
8
9
# File 'flow/ui/view.rb', line 7

def background_color
  @background_color
end

- (Color) border_color

Returns the current value of border_color

Returns:

  • (Color)

    the current value of border_color



7
8
9
# File 'flow/ui/view.rb', line 7

def border_color
  @border_color
end

- (Fixnum) border_radius

Returns the current value of border_radius

Returns:

  • (Fixnum)

    the current value of border_radius



7
8
9
# File 'flow/ui/view.rb', line 7

def border_radius
  @border_radius
end

- (Object) border_width

Returns the current value of border_width

Returns:

  • (Object)

    the current value of border_width



7
8
9
# File 'flow/ui/view.rb', line 7

def border_width
  @border_width
end

Instance Method Details

- (Object) hidden=(hidden)

Sets the hidden state of the view

Parameters:

  • hidden (Boolean)


# File 'flow/ui/view.rb', line 12

- (Boolean) hidden?

Returns wether the view is hidden

Returns:

  • (Boolean)


# File 'flow/ui/view.rb', line 8

- (Object) proxy

Returns the platform-spegific object



# File 'flow/ui/view.rb', line 21

- (Object) update_layout

Update the position of the view and all its children



# File 'flow/ui/view.rb', line 16