Class: MG::Scroll
Direct Known Subclasses
Properties 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
#background_color, #clipping?, #type
Attributes inherited from Widget
#enabled?, #highlighted?, #touch_enabled?
Attributes inherited from Node
#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index
Constructors collapse
-
#initialize ⇒ Scroll
constructor
Creates a new Scroll widget.
Methods inherited from Widget
Methods inherited from Node
#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent, #run_action, #stop_action, #stop_all_actions
Constructor Details
#initialize ⇒ Scroll
Creates a new Scroll widget.
1291 |
# File 'doc/API_reference.rb', line 1291 def initialize; end |
Instance Attribute Details
#direction ⇒ :none, ...
Returns the direction of the scroll view.
1298 1299 1300 |
# File 'doc/API_reference.rb', line 1298 def direction @direction end |
#inner_container ⇒ Layout (readonly)
Returns the inner container of the scroll view.
1305 1306 1307 |
# File 'doc/API_reference.rb', line 1305 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.
1302 1303 1304 |
# File 'doc/API_reference.rb', line 1302 def inner_size @inner_size end |