Basics
Guides
API Reference
Basics
Guides
API Reference
[227:14] static extends: object
Generated metadata helpers for ShortcutsGroup class surfaces.
properties ()
Returns property metadata for
ShortcutsGroup.
A list.[20:7] extends: object
A GtkShortcutsGroup represents a group of related keyboard shortcuts or
gestures. The group has a title. It may optionally be associated with a view
of the application, which can be used to show only relevant shortcuts
depending on the application context. This widget is only meant to be used
with [class@Gtk.ShortcutsWindow]. The recommended way to construct a
GtkShortcutsGroup is with [class@Gtk.Builder], by using the <child> tag
to populate a GtkShortcutsGroup with one or more
[class@Gtk.ShortcutsShortcut] instances. If you need to add a shortcut
programmatically, use [method@Gtk.ShortcutsGroup.add_shortcut].
ShortcutsGroup (Handle = null)
Creates a new
ShortcutsGroupby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asBox ()
Wraps this handle as
Box.
A Box object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asOrientable ()
Wraps this handle as
Orientable.
A Orientable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAccelsizegroup (object Value)
The size group for the accelerator portion of shortcuts in this group. This is used internally by GTK, and must not be modified by applications.
Value is the new property value.None.setTitle (string Value)
The title for this group of shortcuts.
Value is the new property value.None.setTitlesizegroup (object Value)
The size group for the textual portion of shortcuts in this group. This is used internally by GTK, and must not be modified by applications.
Value is the new property value.None.setView (string Value)
An optional view that the shortcuts in this group are relevant for. The group will be hidden if the [property@Gtk.ShortcutsWindow:view-name] property does not match the view of this group. Set this to %NULL to make the group always visible.
Value is the new property value.None.add_shortcut (object shortcut)
Adds a shortcut to the shortcuts group. This is the programmatic equivalent to using [class@Gtk.Builder] and a
<child>tag to add the child. Adding children with other API is not appropriate asGtkShortcutsGroupmanages its children internally.
shortcut is the GtkShortcutsShortcut to add.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.