Package: gtk

Class gtk:shortcut

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

action
The action property of type gtk:shortcut-action (Read / Write)
The action that gets activated by the shortcut.
arguments
The arguments property of type g:variant (Read / Write)
Arguments passed to activation.
Default value: cffi:null-pointer
trigger
The trigger property of type gtk:shortcut-trigger (Read / Write)
The trigger that triggers the shortcut.

Details

The gtk:shortcut object is the low level object used for managing keyboard shortcuts. It contains a description of how to trigger the shortcut via a gtk:shortcut-trigger object and a way to activate the shortcut on a widget via the gtk:shortcut-action object.

The actual work is usually done via the gtk:shortcut-controller object, which decides if and when to activate a shortcut. Using that controller directly however is rarely necessary as various higher level convenience APIs exist on gtk:widget objects that make it easier to use shortcuts in GTK.

The gtk:shortcut class does provide functionality to make it easy for users to work with shortcuts, either by providing informational strings for display purposes or by allowing shortcuts to be configured.
 

Returned by

gtk:shortcut-new
gtk:shortcut-new-with-arguments

Slot Access Functions

Inherited Slot Access Functions

See also

2024-11-1