Class ShortcutsGroup

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Orientable, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class ShortcutsGroup extends Box implements Accessible, Buildable, ConstraintTarget, Orientable
Deprecated.
This widget will be removed in GTK 5

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 ShortcutsWindow.

The recommended way to construct a GtkShortcutsGroup is with GtkBuilder, by using the <child> tag to populate a GtkShortcutsGroup with one or more ShortcutsShortcut instances.

If you need to add a shortcut programmatically, use addShortcut(ShortcutsShortcut).

  • Constructor Details

    • ShortcutsGroup

      public ShortcutsGroup(MemorySegment address)
      Deprecated.
      Create a ShortcutsGroup instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ShortcutsGroup

      public ShortcutsGroup()
      Deprecated.
      Create a new ShortcutsGroup.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the ShortcutsGroup class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ShortcutsGroup asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Box
      Returns:
      the instance as if it were its parent type
    • addShortcut

      @Deprecated public void addShortcut(ShortcutsShortcut shortcut)
      Deprecated.
      This widget will be removed in GTK 5

      Adds a shortcut to the shortcuts group.

      This is the programmatic equivalent to using GtkBuilder and a <child> tag to add the child. Adding children with other API is not appropriate as GtkShortcutsGroup manages its children internally.

      Parameters:
      shortcut - the GtkShortcutsShortcut to add
      Since:
      4.14
    • builder

      public static ShortcutsGroup.Builder<? extends ShortcutsGroup.Builder> builder()
      Deprecated.
      A ShortcutsGroup.Builder object constructs a ShortcutsGroup with the specified properties. Use the various set...() methods to set properties, and finish construction with ShortcutsGroup.Builder.build().
      Returns:
      the builder object