Class WindowGroup
- All Implemented Interfaces:
Proxy
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWindowGroup.Builder<B extends WindowGroup.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new WindowGroup.WindowGroup(MemorySegment address) Create a WindowGroup instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a window to aGtkWindowGroup.protected WindowGroupasParent()Return this instance as if it were its parent type.static WindowGroup.Builder<? extends WindowGroup.Builder> builder()AWindowGroup.Builderobject constructs aWindowGroupwith the specified properties.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the WindowGroup class.Returns a list of theGtkWindowsthat belong towindowGroup.voidremoveWindow(Window window) Removes a window from aGtkWindowGroup.Methods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
WindowGroup
Create a WindowGroup instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
WindowGroup
public WindowGroup()Create a new WindowGroup.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
addWindow
Adds a window to aGtkWindowGroup.- Parameters:
window- theGtkWindowto add
-
listWindows
-
removeWindow
Removes a window from aGtkWindowGroup.- Parameters:
window- theGtkWindowto remove
-
builder
AWindowGroup.Builderobject constructs aWindowGroupwith the specified properties. Use the variousset...()methods to set properties, and finish construction withWindowGroup.Builder.build().- Returns:
- the builder object
-