Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ShortcutsGroupMeta

[227:14] static extends: object

Generated metadata helpers for ShortcutsGroup class surfaces.

Methods

  • properties ()

    Returns property metadata for ShortcutsGroup.

    • @r A list.

class: ShortcutsGroup

[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].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • ShortcutsGroup (Handle = null)

    Creates a new ShortcutsGroup by wrapping a native handle or another wrapper.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asBox ()

    Wraps this handle as Box.

    • @r A Box object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • asOrientable ()

    Wraps this handle as Orientable.

    • @r 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.

    • @p Value is the new property value.
    • @r None.
  • setTitle (string Value)

    The title for this group of shortcuts.

    • @p Value is the new property value.
    • @r 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.

    • @p Value is the new property value.
    • @r 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.

    • @p Value is the new property value.
    • @r 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 as GtkShortcutsGroup manages its children internally.

    • @p shortcut is the GtkShortcutsShortcut to add.
    • @r None.