Class: UI::Image

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

Constant Summary

RESIZE_MODES =

Posible values for the resize_mode atttribute. Hash keys: :cover, :contain, :stretch

{}

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

- (Object) resize_mode

See RESIZE_MODES for possible values

Returns:

  • (Object)

    the current value of resize_mode



4
5
6
# File 'flow/ui/image.rb', line 4

def resize_mode
  @resize_mode
end

- (String) source

The name of the file of hte image to use

Returns:

  • (String)

    the current value of source



4
5
6
# File 'flow/ui/image.rb', line 4

def source
  @source
end