Class: Gtk::RadioAction
- Inherits:
-
Object
- Object
- Gtk::RadioAction
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#current_value ⇒ Integer
The value property of the currently active member of the group to which this action belongs.
-
#current_value=(current_value) ⇒ Integer
The value property of the currently active member of the group to which this action belongs.
-
#group ⇒ GLib::SList
Returns the list representing the radio group for this object.
-
#group=(group) ⇒ Gtk::RadioAction
Sets a new group for a radio action.
-
#join_group(group_source) ⇒ nil
Joins a radio action object to the group of another radio action object.
-
#new(name, label, tooltip, stock_id, value) ⇒ Gtk::RadioAction
Creates a new Gtk::RadioAction object.
-
#value ⇒ Integer
The value is an arbitrary integer which can be used as a convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler.
-
#value=(value) ⇒ Integer
The value is an arbitrary integer which can be used as a convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler.
Instance Method Details
#current_value ⇒ Integer
The value property of the currently active member of the group to which this action belongs.
#current_value=(current_value) ⇒ Integer
The value property of the currently active member of the group to which this action belongs.
#group ⇒ GLib::SList
Returns the list representing the radio group for this object. Note that the returned list is only valid until the next change to the group.
A common way to set up a group of radio group is the following:
GSList *group = NULL;
GtkRadioAction *action;
while ( ...more actions to add... /)
{
action = gtk_radio_action_new (...);
gtk_radio_action_set_group (action, group);
group = gtk_radio_action_get_group (action);
}
#group=(group) ⇒ Gtk::RadioAction
Sets a new group for a radio action.
#join_group(group_source) ⇒ nil
Joins a radio action object to the group of another radio action object.
Use this in language bindings instead of the gtk_radio_action_get_group() and gtk_radio_action_set_group() methods
A common way to set up a group of radio actions is the following:
GtkRadioAction *action;
GtkRadioAction *last_action;
while ( ...more actions to add... /)
{
action = gtk_radio_action_new (...);
gtk_radio_action_join_group (action, last_action);
last_action = action;
}
#new(name, label, tooltip, stock_id, value) ⇒ Gtk::RadioAction
Creates a new Gtk::RadioAction object. To add the action to a Gtk::ActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel().
#value ⇒ Integer
The value is an arbitrary integer which can be used as a convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler. See gtk_radio_action_get_current_value() and Gtk::RadioActionEntry for convenient ways to get and set this property.
#value=(value) ⇒ Integer
The value is an arbitrary integer which can be used as a convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler. See gtk_radio_action_get_current_value() and Gtk::RadioActionEntry for convenient ways to get and set this property.