Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
A WindowGroup
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 objectUnref
. 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.
- newtype WindowGroup = WindowGroup (ManagedPtr WindowGroup)
- class GObject o => IsWindowGroup o
- toWindowGroup :: IsWindowGroup o => o -> IO WindowGroup
- noWindowGroup :: Maybe WindowGroup
- data WindowGroupAddWindowMethodInfo
- windowGroupAddWindow :: (HasCallStack, MonadIO m, IsWindowGroup a, IsWindow b) => a -> b -> m ()
- data WindowGroupGetCurrentDeviceGrabMethodInfo
- windowGroupGetCurrentDeviceGrab :: (HasCallStack, MonadIO m, IsWindowGroup a, IsDevice b) => a -> b -> m (Maybe Widget)
- data WindowGroupGetCurrentGrabMethodInfo
- windowGroupGetCurrentGrab :: (HasCallStack, MonadIO m, IsWindowGroup a) => a -> m Widget
- data WindowGroupListWindowsMethodInfo
- windowGroupListWindows :: (HasCallStack, MonadIO m, IsWindowGroup a) => a -> m [Window]
- windowGroupNew :: (HasCallStack, MonadIO m) => m WindowGroup
- data WindowGroupRemoveWindowMethodInfo
- windowGroupRemoveWindow :: (HasCallStack, MonadIO m, IsWindowGroup a, IsWindow b) => a -> b -> m ()
Exported types
newtype WindowGroup Source #
GObject WindowGroup Source # | |
IsObject WindowGroup Source # | |
IsWindowGroup WindowGroup Source # | |
((~) * info (ResolveWindowGroupMethod t WindowGroup), MethodInfo * info WindowGroup p) => IsLabel t (WindowGroup -> p) Source # | |
((~) * info (ResolveWindowGroupMethod t WindowGroup), MethodInfo * info WindowGroup p) => IsLabelProxy t (WindowGroup -> p) Source # | |
HasAttributeList * WindowGroup Source # | |
type AttributeList WindowGroup Source # | |
type SignalList WindowGroup Source # | |
class GObject o => IsWindowGroup o Source #
toWindowGroup :: IsWindowGroup o => o -> IO WindowGroup Source #
Methods
addWindow
data WindowGroupAddWindowMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWindowGroup a, IsWindow b) => MethodInfo * WindowGroupAddWindowMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsWindowGroup a, IsWindow b) | |
=> a |
|
-> b |
|
-> m () |
Adds a window to a WindowGroup
.
getCurrentDeviceGrab
data WindowGroupGetCurrentDeviceGrabMethodInfo Source #
((~) * signature (b -> m (Maybe Widget)), MonadIO m, IsWindowGroup a, IsDevice b) => MethodInfo * WindowGroupGetCurrentDeviceGrabMethodInfo a signature Source # | |
windowGroupGetCurrentDeviceGrab Source #
:: (HasCallStack, MonadIO m, IsWindowGroup a, IsDevice b) | |
=> a |
|
-> b |
|
-> m (Maybe Widget) | Returns: The grab widget, or |
Returns the current grab widget for device
, or Nothing
if none.
Since: 3.0
getCurrentGrab
data WindowGroupGetCurrentGrabMethodInfo Source #
((~) * signature (m Widget), MonadIO m, IsWindowGroup a) => MethodInfo * WindowGroupGetCurrentGrabMethodInfo a signature Source # | |
windowGroupGetCurrentGrab Source #
:: (HasCallStack, MonadIO m, IsWindowGroup a) | |
=> a |
|
-> m Widget | Returns: the current grab widget of the group |
Gets the current grab widget of the given group,
see widgetGrabAdd
.
Since: 2.22
listWindows
data WindowGroupListWindowsMethodInfo Source #
((~) * signature (m [Window]), MonadIO m, IsWindowGroup a) => MethodInfo * WindowGroupListWindowsMethodInfo a signature Source # | |
windowGroupListWindows Source #
:: (HasCallStack, MonadIO m, IsWindowGroup a) | |
=> a |
|
-> m [Window] | Returns: A newly-allocated list of windows inside the group. |
Returns a list of the GtkWindows
that belong to windowGroup
.
Since: 2.14
new
:: (HasCallStack, MonadIO m) | |
=> m WindowGroup | Returns: a new |
Creates a new WindowGroup
object. Grabs added with
widgetGrabAdd
only affect windows within the same WindowGroup
.
removeWindow
data WindowGroupRemoveWindowMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsWindowGroup a, IsWindow b) => MethodInfo * WindowGroupRemoveWindowMethodInfo a signature Source # | |
windowGroupRemoveWindow Source #
:: (HasCallStack, MonadIO m, IsWindowGroup a, IsWindow b) | |
=> a |
|
-> b |
|
-> m () |
Removes a window from a WindowGroup
.