Class WindowGroup

All Implemented Interfaces:
PointerInterface

public class WindowGroup extends Object
`GtkWindowGroup` makes group of windows behave like separate applications.

It achieves this by limiting the effect of GTK grabs and modality
to windows in the same group.

A window can be a member in at most one window group at a time.
Windows that have not been explicitly assigned to a group are
implicitly treated like windows of the default window group.

`GtkWindowGroup` objects are referenced by each window in the group,
so once you have added all windows to a `GtkWindowGroup`, you can drop
the initial reference to the window group with g_object_unref(). If the
windows in the window group are subsequently destroyed, then they will
be removed from the window group and drop their references on the window
group; when all window have been removed, the window group will be
freed.

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

  • Constructor Details

    • WindowGroup

      public WindowGroup(PointerContainer pointer)
    • WindowGroup

      public WindowGroup()
      Creates a new `GtkWindowGroup` object.

      Modality of windows only affects windows
      within the same `GtkWindowGroup`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addWindow

      public void addWindow(@Nonnull Window window)
      Adds a window to a `GtkWindowGroup`.
      Parameters:
      window - the `GtkWindow` to add
    • listWindows

      public List listWindows()
      Returns a list of the `GtkWindows` that belong to @window_group.
      Returns:
      A newly-allocated list of windows inside the group.
    • removeWindow

      public void removeWindow(@Nonnull Window window)
      Removes a window from a `GtkWindowGroup`.
      Parameters:
      window - the `GtkWindow` to remove
    • 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()