Gtk::RadioMenuItem
class Gtk::RadioMenuItem
A radio menu item is a check menu item that belongs to a group. At each instant exactly one of the radio menu items from a group is selected.
Class Methods
Gtk::RadioMenuItem.new(label = nil, use_underline = true)
-
Creates a new Gtk::RadioMenuItem. This is for a first Gtk::RadioMenuItem.
- label: the text for the label.
- use_underline: true if the label will be created underscores in label indicate the mnemonic for radio menu item.
- Returns: a new Gtk::RadioMenuItem.
Gtk::RadioMenuItem.new(group, label = nil, use_underline = true)
-
Creates a new Gtk::RadioMenuItem.
- group: the group to which the radio menu item is to be attached(Gtk::RadioMenuItem) or an array of Gtk::RadioMenuItems.
- label: the text for the label.
- use_underline: true if the label will be created underscores in label indicate the mnemonic for radio menu item.
- Returns: a new Gtk::RadioMenuItem
Instance Methods
group
-
Returns the group to which the radio menu item belongs, as an array of Gtk::RadioMenuItems?.
- Returns: the array of Gtk::RadioMenuItems
group=(group)
-
Sets the group of a radio menu item, or changes it.
- group: the array of Gtk::RadioMenuItems.
- Returns: group
set_group(group)
-
Same as Gtk::RadioMenuItem#group=.
- group: the array of Gtk::RadioMenuItems.
- Returns: self
See Also
- Gtk::MenuItem because a radio menu item is a menu item.
- Gtk::CheckMenuItem to know how to handle the check.
- Masao
Parola chiave:
Referenze:[Gtk::AccelLabel] [Gtk::RadioMenuItem] [Gtk::RadioAction]