gtk.shortcut_label

Module for [ShortcutLabel] class

Types 3

gtk.shortcut_label.ShortcutLabel displays a single keyboard shortcut or gesture.

The main use case for gtk.shortcut_label.ShortcutLabel is inside a gtk.shortcuts_window.ShortcutsWindow.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ShortcutLabel self() nothrowReturns `this`, for use in `with` statements.
ShortcutLabelGidBuilder builder() static nothrowGet builder for [gtk.shortcut_label.ShortcutLabel] Returns: New builder object
string accelerator() @property nothrowGet `accelerator` property. Returns: The accelerator that @self displays.
void accelerator(string propval) @property nothrowSet `accelerator` property. Params: propval = The accelerator that @self displays.
string disabledText() @property nothrowGet `disabledText` property. Returns: The text that is displayed when no accelerator is set.
void disabledText(string propval) @property nothrowSet `disabledText` property. Params: propval = The text that is displayed when no accelerator is set.
string getAccelerator() nothrowRetrieves the current accelerator of self. Returns: the current accelerator.
string getDisabledText() nothrowRetrieves the text that is displayed when no accelerator is set. Returns: the current text displayed when no accelerator is set.
void setAccelerator(string accelerator) nothrowSets the accelerator to be displayed by self.
void setDisabledText(string disabledText) nothrowSets the text to be displayed by self when no accelerator is set.
Constructors
this(void * ptr, Flag!"Take" take)
this(string accelerator)Creates a new [gtk.shortcut_label.ShortcutLabel] with accelerator set.

Fluent builder implementation template for gtk.shortcut_label.ShortcutLabel

Methods
T accelerator(string propval) nothrowSet `accelerator` property. Params: propval = The accelerator that @self displays.
T disabledText(string propval) nothrowSet `disabledText` property. Params: propval = The text that is displayed when no accelerator is set. Returns: Builder instance for fluent chaining
Methods
ShortcutLabel build() nothrowCreate object from builder. Returns: New object