About my projects, examples and tutorials
Gnome::Gtk4::ShortcutLabel

Gnome::Gtk4::ShortcutLabel

Description§

Gnome::Gtk4::ShortcutLabel displays a single keyboard shortcut or gesture.

The main use case for Gnome::Gtk4::ShortcutLabel is inside a Gnome::Gtk4::ShortcutsWindow.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/ShortcutLabel.png> :width<70\%>

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-shortcutlabel§

Creates a new Gnome::Gtk4::ShortcutLabel with $accelerator set.

method new-shortcutlabel ( Str $accelerator --> Gnome::Gtk4::ShortcutLabel )
Code
  • $accelerator; the initial accelerator.

Methods§

get-accelerator§

Retrieves the current accelerator of $self.

method get-accelerator (--> Str )
Code

Return value; the current accelerator..

get-disabled-text§

Retrieves the text that is displayed when no accelerator is set.

method get-disabled-text (--> Str )
Code

Return value; the current text displayed when no accelerator is set..

set-accelerator§

Sets the accelerator to be displayed by $self.

method set-accelerator ( Str $accelerator )
Code
  • $accelerator; the new accelerator.

set-disabled-text§

Sets the text to be displayed by $self when no accelerator is set.

method set-disabled-text ( Str $disabled-text )
Code
  • $disabled-text; the text to be displayed when no accelerator is set.