Package ch.bailu.gtk.gtk
Class WindowGroup
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gtk.WindowGroup
- All Implemented Interfaces:
PointerInterface
`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.
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 classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
ConstructorDescriptionCreates a new `GtkWindowGroup` object.WindowGroup
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a window to a `GtkWindowGroup`.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
Returns a list of the `GtkWindows` that belong to @window_group.void
removeWindow
(Window window) Removes a window from a `GtkWindowGroup`.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
WindowGroup
-
WindowGroup
public WindowGroup()Creates a new `GtkWindowGroup` object.
Modality of windows only affects windows
within the same `GtkWindowGroup`.
-
-
Method Details
-
getClassHandler
-
addWindow
Adds a window to a `GtkWindowGroup`.- Parameters:
window
- the `GtkWindow` to add
-
listWindows
Returns a list of the `GtkWindows` that belong to @window_group.- Returns:
- A newly-allocated list of windows inside the group.
-
removeWindow
Removes a window from a `GtkWindowGroup`.- Parameters:
window
- the `GtkWindow` to remove
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-