Class: MG::Layout
Direct Known Subclasses
Instance Attribute Summary collapse
-
#background_color ⇒ Color
The background color of the widget.
-
#type ⇒ :absolute, ...
The layout type.
Attributes inherited from Node
#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #z_index
Constructors collapse
-
#initialize ⇒ Layout
constructor
Creates a new List widget.
Instance Method Summary collapse
-
#<<(child) ⇒ Object
This is alias method of #add.
-
#add(child) ⇒ Object
Add a child to the container.
-
#clipping=(value) ⇒ Object
Change if layout can clip it’s content and child.
-
#clipping? ⇒ Boolean
Whether the layout can clip its content and children (default is false).
Methods inherited from Widget
#enabled=, #enabled?, #highlighted=, #highlighted?, #on_touch, #touch_enabled=, #touch_enabled?
Methods inherited from Node
#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 ⇒ Layout
Creates a new List widget.
1632 |
# File 'doc/API_reference.rb', line 1632 def initialize; end |
Instance Attribute Details
#background_color ⇒ Color
Returns the background color of the widget.
1641 1642 1643 |
# File 'doc/API_reference.rb', line 1641 def background_color @background_color end |
#type ⇒ :absolute, ...
Returns the layout type.
1638 1639 1640 |
# File 'doc/API_reference.rb', line 1638 def type @type end |
Instance Method Details
#<<(child) ⇒ Object
This is alias method of #add.
1656 |
# File 'doc/API_reference.rb', line 1656 def <<(child); end |
#add(child) ⇒ Object
Add a child to the container.
1653 |
# File 'doc/API_reference.rb', line 1653 def add(child); end |
#clipping=(value) ⇒ Object
Change if layout can clip it’s content and child.
1649 |
# File 'doc/API_reference.rb', line 1649 def clipping=(value); end |
#clipping? ⇒ Boolean
Returns whether the layout can clip its content and children (default is false).
1645 |
# File 'doc/API_reference.rb', line 1645 def clipping?; end |