Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: WindowGroup

[22:7] extends: object

Creates groups of windows that 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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • WindowGroup ()

    Creates a new GtkWindowGroup object. Modality of windows only affects windows within the same GtkWindowGroup.

  • 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.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • add_window (object window)

    Adds a window to a GtkWindowGroup.

    • @p window is the GtkWindow to add.
    • @r None.
  • list_windows ()

    Returns a list of the GtkWindows that belong to @window_group.

  • remove_window (object window)

    Removes a window from a GtkWindowGroup.

    • @p window is the GtkWindow to remove.
    • @r None.
  • windows ()

    Returns list_windows as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use list_windows() when lazy or change-notify access is required.

    • @r An Aussom list of elements.