Class: MG::RadioButtonGroup
Overview
RadioButtonGroup groups designated radio buttons to make them interact to each other.
Instance Attribute Summary
Attributes inherited from Node
#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #z_index
Constructors collapse
-
#initialize ⇒ RadioButtonGroup
constructor
Create and return a empty RadioButtonGroup instance.
Instance Method Summary collapse
-
#<<(button) ⇒ Object
This is alias method of #add.
-
#add(button) ⇒ self
Add a radio button into this group.
-
#select(value) ⇒ self
Select a radio button.
-
#selected ⇒ Integer
Get the index of selected radio button.
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 ⇒ RadioButtonGroup
Create and return a empty RadioButtonGroup instance
1500 |
# File 'doc/API_reference.rb', line 1500 def initialize; end |
Instance Method Details
#<<(button) ⇒ Object
This is alias method of #add.
1511 |
# File 'doc/API_reference.rb', line 1511 def <<(); end |
#add(button) ⇒ self
Add a radio button into this group.
1508 |
# File 'doc/API_reference.rb', line 1508 def add(); end |
#select(value) ⇒ self
Select a radio button.
1517 |
# File 'doc/API_reference.rb', line 1517 def select(value); end |
#selected ⇒ Integer
Get the index of selected radio button.
1521 |
# File 'doc/API_reference.rb', line 1521 def selected; end |