Klasse ShortcutsGroup

Alle implementierten Schnittstellen:
PointerInterface

public class ShortcutsGroup extends Box
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].

https://docs.gtk.org/gtk4/class.ShortcutsGroup.html

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addShortcut

      @Deprecated public void addShortcut(@Nonnull ShortcutsShortcut shortcut)
      Veraltet.
      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.
      Parameter:
      shortcut - the `GtkShortcutsShortcut` to add
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Setzt außer Kraft:
      asAccessible in Klasse Box
      Gibt zurück:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asBuildable in Klasse Box
      Gibt zurück:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Setzt außer Kraft:
      asConstraintTarget in Klasse Box
      Gibt zurück:
      ConstraintTarget
    • asOrientable

      public Orientable asOrientable()
      Implements interface Orientable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asOrientable in Klasse Box
      Gibt zurück:
      Orientable
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()