Shortcut


Object Hierarchy:

Gtk.Shortcut Gtk.Shortcut Gtk.Shortcut GLib.Object GLib.Object GLib.Object->Gtk.Shortcut

Description:

[ CCode ( type_id = "gtk_shortcut_get_type ()" ) ]
public class Shortcut : Object

A `GtkShortcut` describes a keyboard shortcut.

It contains a description of how to trigger the shortcut via a [[email protected]] and a way to activate the shortcut on a widget via a [[email protected]].

The actual work is usually done via [[email protected]], 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 `GtkWidget`s that make it easier to use shortcuts in GTK.

`GtkShortcut` 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.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org