Class: Shoes::Flow
- Inherits:
-
Slot
- Object
- Common::UIElement
- Slot
- Shoes::Flow
- Includes:
- Common::Hover
- Defined in:
- shoes-core/lib/shoes/slot.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Slot
Slot::NEXT_ELEMENT_OFFSET, Slot::STYLES
Constants included from Common::Style
Common::Style::DEFAULT_STYLES, Common::Style::STYLE_GROUPS
Instance Attribute Summary
Attributes included from Common::Hover
Attributes inherited from Slot
#blk, #contents, #dimensions, #gui, #parent, #scroll_height, #scroll_top
Attributes included from Common::Clickable
Attributes inherited from Common::UIElement
#app, #dimensions, #gui, #parent
Instance Method Summary collapse
Methods included from Common::Hover
#add_mouse_hover_control, #apply_style_from_hover_class, #apply_style_from_pre_hover, create_hover_class, #eval_hover_block, #hover, #hover_class, #hovered?, #leave, #mouse_hovered, #mouse_left
Methods inherited from Slot
#add_child, #add_mouse_hover_control, #any_sibling_slots_following?, #app, #append, #before_initialize, #bump_current_position, #bump_parent_current_position, #clear, #contents_alignment, #create_bound_block, #create_dimensions, #eval_block, #fixed_height?, #handle_block, #inspect, #prepend, #remove, #remove_child, #scroll_max, #set_default_dimension_values, #slot_grew_by, #snapshot_current_position, #variable_height?
Methods included from Common::Clickable
#click, #pass_coordinates?, #register_click, #release
Methods inherited from Common::UIElement
#add_to_parent, #after_initialize, #before_initialize, #create_backend, #create_dimensions, #handle_block, #initialize, #needs_rotate?, #painted?, #redraw_height, #redraw_left, #redraw_top, #redraw_width, #update_fill, #update_stroke
Methods included from Common::Style
#applicable_app_styles, #create_style_hash, included, #style, #style_init
Methods included from Common::SafelyEvaluate
Methods included from Common::Remove
Methods included from Common::Positioning
Methods included from Common::Visibility
#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?
Methods included from Common::Inspect
Methods included from Common::Attachable
Constructor Details
This class inherits a constructor from Shoes::Common::UIElement
Instance Method Details
#position_element(element, current_position) ⇒ Object
375 376 377 378 379 380 381 |
# File 'shoes-core/lib/shoes/slot.rb', line 375 def position_element(element, current_position) if fits_on_the_same_line?(element, current_position.x) position_in_current_line(element, current_position) else move_to_next_line(element, current_position) end end |