Class: Gtk::ShortcutsShortcut
- Inherits:
-
Object
- Object
- Gtk::ShortcutsShortcut
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#accel_size_group=(accel_size_group) ⇒ Gtk::SizeGroup
The size group for the accelerator portion of this shortcut.
-
#accelerator ⇒ String
The accelerator(s) represented by this object.
-
#accelerator=(accelerator) ⇒ String
The accelerator(s) represented by this object.
-
#action_name ⇒ String
A detailed action name.
-
#action_name=(action_name) ⇒ String
A detailed action name.
-
#direction ⇒ Gtk::TextDirection
The text direction for which this shortcut is active.
-
#direction=(direction) ⇒ Gtk::TextDirection
The text direction for which this shortcut is active.
-
#icon ⇒ Gio::Icon
An icon to represent the shortcut or gesture.
-
#icon=(icon) ⇒ Gio::Icon
An icon to represent the shortcut or gesture.
-
#icon_set=(icon_set) ⇒ TrueClass
true if an icon has been set.
-
#icon_set? ⇒ TrueClass
true if an icon has been set.
-
#shortcut_type ⇒ Gtk::ShortcutType
The type of shortcut that is represented.
-
#shortcut_type=(shortcut_type) ⇒ Gtk::ShortcutType
The type of shortcut that is represented.
-
#subtitle ⇒ String
The subtitle for the shortcut or gesture.
-
#subtitle=(subtitle) ⇒ String
The subtitle for the shortcut or gesture.
-
#subtitle_set=(subtitle_set) ⇒ TrueClass
true if a subtitle has been set.
-
#subtitle_set? ⇒ TrueClass
true if a subtitle has been set.
-
#title ⇒ String
The textual description for the shortcut or gesture represented by this object.
-
#title=(title) ⇒ String
The textual description for the shortcut or gesture represented by this object.
-
#title_size_group=(title_size_group) ⇒ Gtk::SizeGroup
The size group for the textual portion of this shortcut.
Instance Method Details
#accel_size_group=(accel_size_group) ⇒ Gtk::SizeGroup
The size group for the accelerator portion of this shortcut.
This is used internally by GTK+, and must not be modified by applications.
#accelerator ⇒ String
The accelerator(s) represented by this object. This property is used if Gtk::ShortcutsShortcut:shortcut-type is set to #GTK_SHORTCUT_ACCELERATOR.
The syntax of this property is (an extension of) the syntax understood by gtk_accelerator_parse(). Multiple accelerators can be specified by separating them with a space, but keep in mind that the available width is limited. It is also possible to specify ranges of shortcuts, using … between the keys. Sequences of keys can be specified using a + or & between the keys.
Examples:
-
A single shortcut: <ctl><alt>delete
-
Two alternative shortcuts: <shift>a Home
-
A range of shortcuts: <alt>1…<alt>9
-
Several keys pressed together: Control_L&Control_R
-
A sequence of shortcuts or keys: <ctl>c+<ctl>x
Use + instead of & when the keys may (or have to be) pressed sequentially (e.g use t+t for ‘press the t key twice’).
Note that <, > and & need to be escaped as <, > and & when used in .ui files.
#accelerator=(accelerator) ⇒ String
The accelerator(s) represented by this object. This property is used if Gtk::ShortcutsShortcut:shortcut-type is set to #GTK_SHORTCUT_ACCELERATOR.
The syntax of this property is (an extension of) the syntax understood by gtk_accelerator_parse(). Multiple accelerators can be specified by separating them with a space, but keep in mind that the available width is limited. It is also possible to specify ranges of shortcuts, using … between the keys. Sequences of keys can be specified using a + or & between the keys.
Examples:
-
A single shortcut: <ctl><alt>delete
-
Two alternative shortcuts: <shift>a Home
-
A range of shortcuts: <alt>1…<alt>9
-
Several keys pressed together: Control_L&Control_R
-
A sequence of shortcuts or keys: <ctl>c+<ctl>x
Use + instead of & when the keys may (or have to be) pressed sequentially (e.g use t+t for ‘press the t key twice’).
Note that <, > and & need to be escaped as <, > and & when used in .ui files.
#action_name ⇒ String
A detailed action name. If this is set for a shortcut of type %GTK_SHORTCUT_ACCELERATOR, then GTK+ will use the accelerators that are associated with the action via gtk_application_set_accels_for_action(), and setting Gtk::ShortcutsShortcut::accelerator is not necessary.
#action_name=(action_name) ⇒ String
A detailed action name. If this is set for a shortcut of type %GTK_SHORTCUT_ACCELERATOR, then GTK+ will use the accelerators that are associated with the action via gtk_application_set_accels_for_action(), and setting Gtk::ShortcutsShortcut::accelerator is not necessary.
#direction ⇒ Gtk::TextDirection
The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to #GTK_TEXT_DIR_NONE.
#direction=(direction) ⇒ Gtk::TextDirection
The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to #GTK_TEXT_DIR_NONE.
#icon ⇒ Gio::Icon
An icon to represent the shortcut or gesture. This property is used if Gtk::ShortcutsShortcut:shortcut-type is set to #GTK_SHORTCUT_GESTURE. For the other predefined gesture types, GTK+ provides an icon on its own.
#icon=(icon) ⇒ Gio::Icon
An icon to represent the shortcut or gesture. This property is used if Gtk::ShortcutsShortcut:shortcut-type is set to #GTK_SHORTCUT_GESTURE. For the other predefined gesture types, GTK+ provides an icon on its own.
#icon_set=(icon_set) ⇒ TrueClass
true if an icon has been set.
#icon_set? ⇒ TrueClass
true if an icon has been set.
#shortcut_type ⇒ Gtk::ShortcutType
The type of shortcut that is represented.
#shortcut_type=(shortcut_type) ⇒ Gtk::ShortcutType
The type of shortcut that is represented.
#subtitle ⇒ String
The subtitle for the shortcut or gesture.
This is typically used for gestures and should be a short, one-line text that describes the gesture itself. For the predefined gesture types, GTK+ provides a subtitle on its own.
#subtitle=(subtitle) ⇒ String
The subtitle for the shortcut or gesture.
This is typically used for gestures and should be a short, one-line text that describes the gesture itself. For the predefined gesture types, GTK+ provides a subtitle on its own.
#subtitle_set=(subtitle_set) ⇒ TrueClass
true if a subtitle has been set.
#subtitle_set? ⇒ TrueClass
true if a subtitle has been set.
#title ⇒ String
The textual description for the shortcut or gesture represented by this object. This should be a short string that can fit in a single line.
#title=(title) ⇒ String
The textual description for the shortcut or gesture represented by this object. This should be a short string that can fit in a single line.
#title_size_group=(title_size_group) ⇒ Gtk::SizeGroup
The size group for the textual portion of this shortcut.
This is used internally by GTK+, and must not be modified by applications.