Class: Gtk::AccelLabel
- Inherits:
-
Object
- Object
- Gtk::AccelLabel
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#accel_closure ⇒ GObject::Closure
Accel-closure.
- #accel_closure=(accel_closure) ⇒ GObject::Closure
-
#accel_widget ⇒ Gtk::Widget
Accel-widget.
- #accel_widget=(accel_widget) ⇒ Gtk::Widget
-
#accel_width ⇒ Integer
Returns the width needed to display the accelerator key(s).
-
#get_accel(accelerator_key, accelerator_mods) ⇒ nil
Gets the keyval and modifier mask set with gtk_accel_label_set_accel().
-
#new(string) ⇒ Gtk::Widget
Creates a new Gtk::AccelLabel.
-
#refetch ⇒ TrueClass
Recreates the string representing the accelerator keys.
-
#set_accel(accelerator_key, accelerator_mods) ⇒ nil
Manually sets a keyval and modifier mask as the accelerator rendered by accel_label.
Instance Method Details
#accel_closure ⇒ GObject::Closure
Returns accel-closure.
#accel_closure=(accel_closure) ⇒ GObject::Closure
#accel_widget ⇒ Gtk::Widget
Returns accel-widget.
#accel_widget=(accel_widget) ⇒ Gtk::Widget
#accel_width ⇒ Integer
Returns the width needed to display the accelerator key(s). This is used by menus to align all of the Gtk::MenuItem widgets, and shouldn’t be needed by applications.
#get_accel(accelerator_key, accelerator_mods) ⇒ nil
Gets the keyval and modifier mask set with gtk_accel_label_set_accel().
#new(string) ⇒ Gtk::Widget
Creates a new Gtk::AccelLabel.
#refetch ⇒ TrueClass
Recreates the string representing the accelerator keys. This should not be needed since the string is automatically updated whenever accelerators are added or removed from the associated widget.
#set_accel(accelerator_key, accelerator_mods) ⇒ nil
Manually sets a keyval and modifier mask as the accelerator rendered by accel_label.
If a keyval and modifier are explicitly set then these values are used regardless of any associated accel closure or widget.
Providing an accelerator_key of 0 removes the manual setting.