Class: MG::Scroll
Direct Known Subclasses
Instance Attribute Summary collapse
-
#direction ⇒ :none, ...
The direction of the scroll view.
-
#inner_container ⇒ Layout
readonly
The inner container of the scroll view.
-
#inner_size ⇒ Size
The inner container size of the scroll view, which must be larger or equal than the size of the scroll view itself.
Attributes inherited from Layout
Attributes inherited from Node
#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #z_index
Constructors collapse
-
#initialize ⇒ Scroll
constructor
Creates a new Scroll widget.
Instance Method Summary collapse
-
#jump_to_bottom ⇒ self
Move inner container to bottom boundary of scrollview.
-
#jump_to_bottom_left ⇒ self
Move inner container to bottom and left boundary of scrollview.
-
#jump_to_bottom_right ⇒ self
Move inner container to bottom and right boundary of scrollview.
-
#jump_to_left ⇒ self
Move inner container to left boundary of scrollview.
-
#jump_to_right ⇒ self
Move inner container to right boundary of scrollview.
-
#jump_to_top ⇒ self
Move inner container to top boundary of scrollview.
-
#jump_to_top_left ⇒ self
Move inner container to top and left boundary of scrollview.
-
#jump_to_top_right ⇒ self
Move inner container to top and right boundary of scrollview.
Methods inherited from Layout
#<<, #add, #clipping=, #clipping?
Methods inherited from Widget
#enabled=, #enabled?, #highlighted=, #highlighted?, #on_touch, #touch_enabled=, #touch_enabled?
Methods inherited from Node
#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #number_of_running_actions, #parent, #run_action, #schedule, #schedule_once, #stop_action, #stop_all_actions, #unschedule, #visible=, #visible?
Constructor Details
#initialize ⇒ Scroll
Creates a new Scroll widget.
1665 |
# File 'doc/API_reference.rb', line 1665 def initialize; end |
Instance Attribute Details
#direction ⇒ :none, ...
Returns the direction of the scroll view.
1672 1673 1674 |
# File 'doc/API_reference.rb', line 1672 def direction @direction end |
#inner_container ⇒ Layout (readonly)
Returns the inner container of the scroll view.
1679 1680 1681 |
# File 'doc/API_reference.rb', line 1679 def inner_container @inner_container end |
#inner_size ⇒ Size
Returns the inner container size of the scroll view, which must be larger or equal than the size of the scroll view itself.
1676 1677 1678 |
# File 'doc/API_reference.rb', line 1676 def inner_size @inner_size end |
Instance Method Details
#jump_to_bottom ⇒ self
Move inner container to bottom boundary of scrollview.
1683 |
# File 'doc/API_reference.rb', line 1683 def jump_to_bottom; end |
#jump_to_bottom_left ⇒ self
Move inner container to bottom and left boundary of scrollview.
1687 |
# File 'doc/API_reference.rb', line 1687 def jump_to_bottom_left; end |
#jump_to_bottom_right ⇒ self
Move inner container to bottom and right boundary of scrollview.
1691 |
# File 'doc/API_reference.rb', line 1691 def jump_to_bottom_right; end |
#jump_to_left ⇒ self
Move inner container to left boundary of scrollview.
1695 |
# File 'doc/API_reference.rb', line 1695 def jump_to_left; end |
#jump_to_right ⇒ self
Move inner container to right boundary of scrollview.
1699 |
# File 'doc/API_reference.rb', line 1699 def jump_to_right; end |
#jump_to_top ⇒ self
Move inner container to top boundary of scrollview.
1703 |
# File 'doc/API_reference.rb', line 1703 def jump_to_top; end |
#jump_to_top_left ⇒ self
Move inner container to top and left boundary of scrollview.
1707 |
# File 'doc/API_reference.rb', line 1707 def jump_to_top_left; end |
#jump_to_top_right ⇒ self
Move inner container to top and right boundary of scrollview.
1711 |
# File 'doc/API_reference.rb', line 1711 def jump_to_top_right; end |