Class
GtkShortcut
since: 4.0
Description [src]
final class Gtk.Shortcut : GObject.Object
{
/* No available fields */
}
A GtkShortcut describes a keyboard shortcut.
It contains a description of how to trigger the shortcut via a
GtkShortcutTrigger and a way to activate the shortcut
on a widget via a GtkShortcutAction.
The actual work is usually done via GtkShortcutController,
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 GtkWidgets 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.
Available since: 4.0
Constructors
gtk_shortcut_new
Creates a new GtkShortcut that is triggered by
trigger and then activates action.
since: 4.0
gtk_shortcut_new_with_arguments
Creates a new GtkShortcut that is triggered by trigger and then activates
action with arguments given by format_string.
since: 4.0
Instance methods
gtk_shortcut_get_arguments
Gets the arguments that are passed when activating the shortcut.
since: 4.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
since: 2.0