gtk.shortcuts_shortcut

Module for [ShortcutsShortcut] class

Types 3

A GtkShortcutsShortcut represents a single keyboard shortcut or gesture with a short text. This widget is only meant to be used with #GtkShortcutsWindow.

Methods
GType _gType() @property
ShortcutsShortcut self()Returns `this`, for use in `with` statements.
ShortcutsShortcutGidBuilder builder()Get builder for [gtk.shortcuts_shortcut.ShortcutsShortcut] Returns: New builder object
void accelSizeGroup(gtk.size_group.SizeGroup propval) @propertySet `accelSizeGroup` property. Params: propval = The size group for the accelerator portion of this shortcut.
string accelerator() @propertyGet `accelerator` property. Returns: The accelerator(s) represented by this object. This property is used if #GtkShortcutsShortcut:shortcut-type is set to #GTKSHORTCUTACCELERATOR.
void accelerator(string propval) @propertySet `accelerator` property. Params: propval = The accelerator(s) represented by this object. This property is used if #GtkShortcutsShortcut:shortcut-type is set to #GTKSHORTCUTACCELERATOR.
string actionName() @propertyGet `actionName` property. Returns: A detailed action name. If this is set for a shortcut of type [gtk.types.ShortcutType.Accelerator], then GTK+ will use the accelerators that are associated with ...
void actionName(string propval) @propertySet `actionName` property. Params: propval = A detailed action name. If this is set for a shortcut of type [gtk.types.ShortcutType.Accelerator], then GTK+ will use the accelerators that are associa...
gtk.types.TextDirection direction() @propertyGet `direction` property. Returns: The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to #GTKTEXTDIR_NONE.
void direction(gtk.types.TextDirection propval) @propertySet `direction` property. Params: propval = The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to #GTKTEXTDIR_NONE.
gio.icon.Icon icon() @propertyGet `icon` property. Returns: An icon to represent the shortcut or gesture. This property is used if #GtkShortcutsShortcut:shortcut-type is set to #GTKSHORTCUTGESTURE. For the other predefined gest...
void icon(gio.icon.Icon propval) @propertySet `icon` property. Params: propval = An icon to represent the shortcut or gesture. This property is used if #GtkShortcutsShortcut:shortcut-type is set to #GTKSHORTCUTGESTURE. For the other predef...
bool iconSet() @propertyGet `iconSet` property. Returns: true if an icon has been set.
void iconSet(bool propval) @propertySet `iconSet` property. Params: propval = true if an icon has been set.
gtk.types.ShortcutType shortcutType() @propertyGet `shortcutType` property. Returns: The type of shortcut that is represented.
void shortcutType(gtk.types.ShortcutType propval) @propertySet `shortcutType` property. Params: propval = The type of shortcut that is represented.
string subtitle() @propertyGet `subtitle` property. Returns: The subtitle for the shortcut or gesture.
void subtitle(string propval) @propertySet `subtitle` property. Params: propval = The subtitle for the shortcut or gesture.
bool subtitleSet() @propertyGet `subtitleSet` property. Returns: true if a subtitle has been set.
void subtitleSet(bool propval) @propertySet `subtitleSet` property. Params: propval = true if a subtitle has been set.
string title() @propertyGet `title` property. Returns: 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.
void title(string propval) @propertySet `title` property. Params: propval = 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.
void titleSizeGroup(gtk.size_group.SizeGroup propval) @propertySet `titleSizeGroup` property. Params: propval = The size group for the textual portion of this shortcut.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T accelSizeGroup(gtk.size_group.SizeGroup propval)Set `accelSizeGroup` property. Params: propval = The size group for the accelerator portion of this shortcut.
T accelerator(string propval)Set `accelerator` property. Params: propval = The accelerator(s) represented by this object. This property is used if #GtkShortcutsShortcut:shortcut-type is set to #GTKSHORTCUTACCELERATOR.
T actionName(string propval)Set `actionName` property. Params: propval = A detailed action name. If this is set for a shortcut of type [gtk.types.ShortcutType.Accelerator], then GTK+ will use the accelerators that are associa...
T direction(gtk.types.TextDirection propval)Set `direction` property. Params: propval = The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to #GTKTEXTDIR_NONE. Re...
T icon(gio.icon.Icon propval)Set `icon` property. Params: propval = An icon to represent the shortcut or gesture. This property is used if #GtkShortcutsShortcut:shortcut-type is set to #GTKSHORTCUTGESTURE. For the other predef...
T iconSet(bool propval)Set `iconSet` property. Params: propval = true if an icon has been set. Returns: Builder instance for fluent chaining
T shortcutType(gtk.types.ShortcutType propval)Set `shortcutType` property. Params: propval = The type of shortcut that is represented. Returns: Builder instance for fluent chaining
T subtitle(string propval)Set `subtitle` property. Params: propval = The subtitle for the shortcut or gesture.
T subtitleSet(bool propval)Set `subtitleSet` property. Params: propval = true if a subtitle has been set. Returns: Builder instance for fluent chaining
T title(string propval)Set `title` property. Params: propval = 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. Returns: Builder...
T titleSizeGroup(gtk.size_group.SizeGroup propval)Set `titleSizeGroup` property. Params: propval = The size group for the textual portion of this shortcut.

Fluent builder for [gtk.shortcuts_shortcut.ShortcutsShortcut]