WindowGroupProtocol
public protocol WindowGroupProtocol : ObjectProtocol
A GtkWindowGroup
restricts the effect of grabs to windows
in the same group, thereby making window groups almost behave
like separate applications.
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.
The WindowGroupProtocol
protocol exposes the methods and properties of an underlying GtkWindowGroup
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see WindowGroup
.
Alternatively, use WindowGroupRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkWindowGroup
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
window_group_ptr
Default implementationTyped pointer to the underlying
GtkWindowGroup
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkWindowGroup
instance.Declaration
Swift
var window_group_ptr: UnsafeMutablePointer<GtkWindowGroup>! { get }
-
Required Initialiser for types conforming to
WindowGroupProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
add(window:
Extension method) Adds a window to a
GtkWindowGroup
.Declaration
Swift
@inlinable func add<WindowT>(window: WindowT) where WindowT : WindowProtocol
-
getCurrentDeviceGrab(device:
Extension method) Returns the current grab widget for
device
, ornil
if none.Declaration
Swift
@inlinable func getCurrentDeviceGrab<DeviceT>(device: DeviceT) -> WidgetRef! where DeviceT : DeviceProtocol
-
getCurrentGrab()
Extension methodGets the current grab widget of the given group, see
gtk_grab_add()
.Declaration
Swift
@inlinable func getCurrentGrab() -> WidgetRef!
-
listWindows()
Extension methodReturns a list of the
GtkWindows
that belong towindow_group
.Declaration
Swift
@inlinable func listWindows() -> GLib.ListRef!
-
remove(window:
Extension method) Removes a window from a
GtkWindowGroup
.Declaration
Swift
@inlinable func remove<WindowT>(window: WindowT) where WindowT : WindowProtocol
-
currentGrab
Extension methodGets the current grab widget of the given group, see
gtk_grab_add()
.Declaration
Swift
@inlinable var currentGrab: WidgetRef! { get }
-
parentInstance
Extension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }