Class: Gtk::MenuItem
- Inherits:
-
Object
- Object
- Gtk::MenuItem
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#accel_path ⇒ String
Sets the accelerator path of the menu item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistant storage.
-
#accel_path=(accel_path) ⇒ String
Sets the accelerator path of the menu item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistant storage.
-
#activate ⇒ nil
Emits the Gtk::MenuItem::activate signal on the given item.
-
#deselect ⇒ nil
Emits the Gtk::MenuItem::deselect signal on the given item.
-
#label ⇒ String
The text for the child label.
-
#label=(label) ⇒ String
The text for the child label.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::MenuItem.
-
#new_with_label(label) ⇒ Gtk::Widget
Creates a new Gtk::MenuItem whose child is a #GtkLabel.
-
#new_with_mnemonic(label) ⇒ Gtk::Widget
Creates a new Gtk::MenuItem containing a label.
-
#reserve_indicator ⇒ TrueClass
Returns whether the menu_item reserves space for the submenu indicator, regardless if it has a submenu or not.
-
#reserve_indicator=(reserve) ⇒ nil
Sets whether the menu_item should reserve space for the submenu indicator, regardless if it actually has a submenu or not.
-
#right_justified ⇒ TrueClass
Gets whether the menu item appears justified at the right side of the menu bar.
-
#right_justified=(right_justified) ⇒ TrueClass
Sets whether the menu item appears justified at the right side of a menu bar.
-
#right_justified? ⇒ TrueClass
Sets whether the menu item appears justified at the right side of a menu bar.
-
#select ⇒ nil
Emits the Gtk::MenuItem::select signal on the given item.
-
#submenu ⇒ Gtk::Menu
The submenu attached to the menu item, or nil if it has none.
-
#submenu=(submenu) ⇒ Gtk::Menu
The submenu attached to the menu item, or nil if it has none.
-
#toggle_size_allocate(allocation) ⇒ nil
Emits the Gtk::MenuItem::toggle-size-allocate signal on the given item.
-
#toggle_size_request(requisition) ⇒ nil
Emits the Gtk::MenuItem::toggle-size-request signal on the given item.
-
#use_underline ⇒ TrueClass
Checks if an underline in the text indicates the next character should be used for the mnemonic accelerator key.
-
#use_underline=(use_underline) ⇒ TrueClass
true if underlines in the text indicate mnemonics.
-
#use_underline? ⇒ TrueClass
true if underlines in the text indicate mnemonics.
Instance Method Details
#accel_path ⇒ String
Sets the accelerator path of the menu item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistant storage.
#accel_path=(accel_path) ⇒ String
Sets the accelerator path of the menu item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistant storage.
#activate ⇒ nil
Emits the Gtk::MenuItem::activate signal on the given item
#deselect ⇒ nil
Emits the Gtk::MenuItem::deselect signal on the given item.
#label ⇒ String
The text for the child label.
#label=(label) ⇒ String
The text for the child label.
#new ⇒ Gtk::Widget
Creates a new Gtk::MenuItem.
#new_with_label(label) ⇒ Gtk::Widget
Creates a new Gtk::MenuItem whose child is a #GtkLabel.
#new_with_mnemonic(label) ⇒ Gtk::Widget
Creates a new Gtk::MenuItem containing a label.
The label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the menu item.
#reserve_indicator ⇒ TrueClass
Returns whether the menu_item reserves space for the submenu indicator, regardless if it has a submenu or not.
#reserve_indicator=(reserve) ⇒ nil
Sets whether the menu_item should reserve space for the submenu indicator, regardless if it actually has a submenu or not.
There should be little need for applications to call this functions.
#right_justified ⇒ TrueClass
Gets whether the menu item appears justified at the right side of the menu bar.
#right_justified=(right_justified) ⇒ TrueClass
Sets whether the menu item appears justified at the right side of a menu bar.
#right_justified? ⇒ TrueClass
Sets whether the menu item appears justified at the right side of a menu bar.
#select ⇒ nil
Emits the Gtk::MenuItem::select signal on the given item.
#submenu ⇒ Gtk::Menu
The submenu attached to the menu item, or nil if it has none.
#submenu=(submenu) ⇒ Gtk::Menu
The submenu attached to the menu item, or nil if it has none.
#toggle_size_allocate(allocation) ⇒ nil
Emits the Gtk::MenuItem::toggle-size-allocate signal on the given item.
#toggle_size_request(requisition) ⇒ nil
Emits the Gtk::MenuItem::toggle-size-request signal on the given item.
#use_underline ⇒ TrueClass
Checks if an underline in the text indicates the next character should be used for the mnemonic accelerator key.
#use_underline=(use_underline) ⇒ TrueClass
true if underlines in the text indicate mnemonics.
#use_underline? ⇒ TrueClass
true if underlines in the text indicate mnemonics.