Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- calcWorkspaceLayout
- changeWorkspaceCount
- forceUpdate
- freeWorkspaceLayout
- get
- getActiveWindow
- getActiveWorkspace
- getBackgroundPixmap
- getDefault
- getForRoot
- getHeight
- getNumber
- getPreviouslyActiveWindow
- getShowingDesktop
- getWidth
- getWindowManagerName
- getWindows
- getWindowsStacked
- getWorkspace
- getWorkspaceCount
- getWorkspaces
- moveViewport
- netWmSupports
- releaseWorkspaceLayout
- toggleShowingDesktop
- trySetWorkspaceLayout
- Signals
The Screen
struct contains only private fields and should not be
directly accessed.
Synopsis
- newtype Screen = Screen (ManagedPtr Screen)
- class (GObject o, IsDescendantOf Screen o) => IsScreen o
- toScreen :: (MonadIO m, IsScreen o) => o -> m Screen
- noScreen :: Maybe Screen
- screenCalcWorkspaceLayout :: (HasCallStack, MonadIO m, IsScreen a) => a -> Int32 -> Int32 -> WorkspaceLayout -> m ()
- screenChangeWorkspaceCount :: (HasCallStack, MonadIO m, IsScreen a) => a -> Int32 -> m ()
- screenForceUpdate :: (HasCallStack, MonadIO m, IsScreen a) => a -> m ()
- screenFreeWorkspaceLayout :: (HasCallStack, MonadIO m) => WorkspaceLayout -> m ()
- screenGet :: (HasCallStack, MonadIO m) => Int32 -> m Screen
- screenGetActiveWindow :: (HasCallStack, MonadIO m, IsScreen a) => a -> m (Maybe Window)
- screenGetActiveWorkspace :: (HasCallStack, MonadIO m, IsScreen a) => a -> m (Maybe Workspace)
- screenGetBackgroundPixmap :: (HasCallStack, MonadIO m, IsScreen a) => a -> m CULong
- screenGetDefault :: (HasCallStack, MonadIO m) => m (Maybe Screen)
- screenGetForRoot :: (HasCallStack, MonadIO m) => CULong -> m Screen
- screenGetHeight :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Int32
- screenGetNumber :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Int32
- screenGetPreviouslyActiveWindow :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Window
- screenGetShowingDesktop :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Bool
- screenGetWidth :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Int32
- screenGetWindowManagerName :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Text
- screenGetWindows :: (HasCallStack, MonadIO m, IsScreen a) => a -> m [Window]
- screenGetWindowsStacked :: (HasCallStack, MonadIO m, IsScreen a) => a -> m [Window]
- screenGetWorkspace :: (HasCallStack, MonadIO m, IsScreen a) => a -> Int32 -> m Workspace
- screenGetWorkspaceCount :: (HasCallStack, MonadIO m, IsScreen a) => a -> m Int32
- screenGetWorkspaces :: (HasCallStack, MonadIO m, IsScreen a) => a -> m [Workspace]
- screenMoveViewport :: (HasCallStack, MonadIO m, IsScreen a) => a -> Int32 -> Int32 -> m ()
- screenNetWmSupports :: (HasCallStack, MonadIO m, IsScreen a) => a -> Text -> m Bool
- screenReleaseWorkspaceLayout :: (HasCallStack, MonadIO m, IsScreen a) => a -> Int32 -> m ()
- screenToggleShowingDesktop :: (HasCallStack, MonadIO m, IsScreen a) => a -> Bool -> m ()
- screenTrySetWorkspaceLayout :: (HasCallStack, MonadIO m, IsScreen a) => a -> Int32 -> Int32 -> Int32 -> m Int32
- type C_ScreenActiveWindowChangedCallback = Ptr () -> Ptr Window -> Ptr () -> IO ()
- type ScreenActiveWindowChangedCallback = Window -> IO ()
- afterScreenActiveWindowChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWindowChangedCallback -> m SignalHandlerId
- genClosure_ScreenActiveWindowChanged :: MonadIO m => ScreenActiveWindowChangedCallback -> m (GClosure C_ScreenActiveWindowChangedCallback)
- mk_ScreenActiveWindowChangedCallback :: C_ScreenActiveWindowChangedCallback -> IO (FunPtr C_ScreenActiveWindowChangedCallback)
- noScreenActiveWindowChangedCallback :: Maybe ScreenActiveWindowChangedCallback
- onScreenActiveWindowChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWindowChangedCallback -> m SignalHandlerId
- wrap_ScreenActiveWindowChangedCallback :: ScreenActiveWindowChangedCallback -> C_ScreenActiveWindowChangedCallback
- type C_ScreenActiveWorkspaceChangedCallback = Ptr () -> Ptr Workspace -> Ptr () -> IO ()
- type ScreenActiveWorkspaceChangedCallback = Workspace -> IO ()
- afterScreenActiveWorkspaceChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWorkspaceChangedCallback -> m SignalHandlerId
- genClosure_ScreenActiveWorkspaceChanged :: MonadIO m => ScreenActiveWorkspaceChangedCallback -> m (GClosure C_ScreenActiveWorkspaceChangedCallback)
- mk_ScreenActiveWorkspaceChangedCallback :: C_ScreenActiveWorkspaceChangedCallback -> IO (FunPtr C_ScreenActiveWorkspaceChangedCallback)
- noScreenActiveWorkspaceChangedCallback :: Maybe ScreenActiveWorkspaceChangedCallback
- onScreenActiveWorkspaceChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWorkspaceChangedCallback -> m SignalHandlerId
- wrap_ScreenActiveWorkspaceChangedCallback :: ScreenActiveWorkspaceChangedCallback -> C_ScreenActiveWorkspaceChangedCallback
- type C_ScreenApplicationClosedCallback = Ptr () -> Ptr Application -> Ptr () -> IO ()
- type ScreenApplicationClosedCallback = Application -> IO ()
- afterScreenApplicationClosed :: (IsScreen a, MonadIO m) => a -> ScreenApplicationClosedCallback -> m SignalHandlerId
- genClosure_ScreenApplicationClosed :: MonadIO m => ScreenApplicationClosedCallback -> m (GClosure C_ScreenApplicationClosedCallback)
- mk_ScreenApplicationClosedCallback :: C_ScreenApplicationClosedCallback -> IO (FunPtr C_ScreenApplicationClosedCallback)
- noScreenApplicationClosedCallback :: Maybe ScreenApplicationClosedCallback
- onScreenApplicationClosed :: (IsScreen a, MonadIO m) => a -> ScreenApplicationClosedCallback -> m SignalHandlerId
- wrap_ScreenApplicationClosedCallback :: ScreenApplicationClosedCallback -> C_ScreenApplicationClosedCallback
- type C_ScreenApplicationOpenedCallback = Ptr () -> Ptr Application -> Ptr () -> IO ()
- type ScreenApplicationOpenedCallback = Application -> IO ()
- afterScreenApplicationOpened :: (IsScreen a, MonadIO m) => a -> ScreenApplicationOpenedCallback -> m SignalHandlerId
- genClosure_ScreenApplicationOpened :: MonadIO m => ScreenApplicationOpenedCallback -> m (GClosure C_ScreenApplicationOpenedCallback)
- mk_ScreenApplicationOpenedCallback :: C_ScreenApplicationOpenedCallback -> IO (FunPtr C_ScreenApplicationOpenedCallback)
- noScreenApplicationOpenedCallback :: Maybe ScreenApplicationOpenedCallback
- onScreenApplicationOpened :: (IsScreen a, MonadIO m) => a -> ScreenApplicationOpenedCallback -> m SignalHandlerId
- wrap_ScreenApplicationOpenedCallback :: ScreenApplicationOpenedCallback -> C_ScreenApplicationOpenedCallback
- type C_ScreenBackgroundChangedCallback = Ptr () -> Ptr () -> IO ()
- type ScreenBackgroundChangedCallback = IO ()
- afterScreenBackgroundChanged :: (IsScreen a, MonadIO m) => a -> ScreenBackgroundChangedCallback -> m SignalHandlerId
- genClosure_ScreenBackgroundChanged :: MonadIO m => ScreenBackgroundChangedCallback -> m (GClosure C_ScreenBackgroundChangedCallback)
- mk_ScreenBackgroundChangedCallback :: C_ScreenBackgroundChangedCallback -> IO (FunPtr C_ScreenBackgroundChangedCallback)
- noScreenBackgroundChangedCallback :: Maybe ScreenBackgroundChangedCallback
- onScreenBackgroundChanged :: (IsScreen a, MonadIO m) => a -> ScreenBackgroundChangedCallback -> m SignalHandlerId
- wrap_ScreenBackgroundChangedCallback :: ScreenBackgroundChangedCallback -> C_ScreenBackgroundChangedCallback
- type C_ScreenClassGroupClosedCallback = Ptr () -> Ptr ClassGroup -> Ptr () -> IO ()
- type ScreenClassGroupClosedCallback = ClassGroup -> IO ()
- afterScreenClassGroupClosed :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupClosedCallback -> m SignalHandlerId
- genClosure_ScreenClassGroupClosed :: MonadIO m => ScreenClassGroupClosedCallback -> m (GClosure C_ScreenClassGroupClosedCallback)
- mk_ScreenClassGroupClosedCallback :: C_ScreenClassGroupClosedCallback -> IO (FunPtr C_ScreenClassGroupClosedCallback)
- noScreenClassGroupClosedCallback :: Maybe ScreenClassGroupClosedCallback
- onScreenClassGroupClosed :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupClosedCallback -> m SignalHandlerId
- wrap_ScreenClassGroupClosedCallback :: ScreenClassGroupClosedCallback -> C_ScreenClassGroupClosedCallback
- type C_ScreenClassGroupOpenedCallback = Ptr () -> Ptr ClassGroup -> Ptr () -> IO ()
- type ScreenClassGroupOpenedCallback = ClassGroup -> IO ()
- afterScreenClassGroupOpened :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupOpenedCallback -> m SignalHandlerId
- genClosure_ScreenClassGroupOpened :: MonadIO m => ScreenClassGroupOpenedCallback -> m (GClosure C_ScreenClassGroupOpenedCallback)
- mk_ScreenClassGroupOpenedCallback :: C_ScreenClassGroupOpenedCallback -> IO (FunPtr C_ScreenClassGroupOpenedCallback)
- noScreenClassGroupOpenedCallback :: Maybe ScreenClassGroupOpenedCallback
- onScreenClassGroupOpened :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupOpenedCallback -> m SignalHandlerId
- wrap_ScreenClassGroupOpenedCallback :: ScreenClassGroupOpenedCallback -> C_ScreenClassGroupOpenedCallback
- type C_ScreenShowingDesktopChangedCallback = Ptr () -> Ptr () -> IO ()
- type ScreenShowingDesktopChangedCallback = IO ()
- afterScreenShowingDesktopChanged :: (IsScreen a, MonadIO m) => a -> ScreenShowingDesktopChangedCallback -> m SignalHandlerId
- genClosure_ScreenShowingDesktopChanged :: MonadIO m => ScreenShowingDesktopChangedCallback -> m (GClosure C_ScreenShowingDesktopChangedCallback)
- mk_ScreenShowingDesktopChangedCallback :: C_ScreenShowingDesktopChangedCallback -> IO (FunPtr C_ScreenShowingDesktopChangedCallback)
- noScreenShowingDesktopChangedCallback :: Maybe ScreenShowingDesktopChangedCallback
- onScreenShowingDesktopChanged :: (IsScreen a, MonadIO m) => a -> ScreenShowingDesktopChangedCallback -> m SignalHandlerId
- wrap_ScreenShowingDesktopChangedCallback :: ScreenShowingDesktopChangedCallback -> C_ScreenShowingDesktopChangedCallback
- type C_ScreenViewportsChangedCallback = Ptr () -> Ptr () -> IO ()
- type ScreenViewportsChangedCallback = IO ()
- afterScreenViewportsChanged :: (IsScreen a, MonadIO m) => a -> ScreenViewportsChangedCallback -> m SignalHandlerId
- genClosure_ScreenViewportsChanged :: MonadIO m => ScreenViewportsChangedCallback -> m (GClosure C_ScreenViewportsChangedCallback)
- mk_ScreenViewportsChangedCallback :: C_ScreenViewportsChangedCallback -> IO (FunPtr C_ScreenViewportsChangedCallback)
- noScreenViewportsChangedCallback :: Maybe ScreenViewportsChangedCallback
- onScreenViewportsChanged :: (IsScreen a, MonadIO m) => a -> ScreenViewportsChangedCallback -> m SignalHandlerId
- wrap_ScreenViewportsChangedCallback :: ScreenViewportsChangedCallback -> C_ScreenViewportsChangedCallback
- type C_ScreenWindowClosedCallback = Ptr () -> Ptr Window -> Ptr () -> IO ()
- type ScreenWindowClosedCallback = Window -> IO ()
- afterScreenWindowClosed :: (IsScreen a, MonadIO m) => a -> ScreenWindowClosedCallback -> m SignalHandlerId
- genClosure_ScreenWindowClosed :: MonadIO m => ScreenWindowClosedCallback -> m (GClosure C_ScreenWindowClosedCallback)
- mk_ScreenWindowClosedCallback :: C_ScreenWindowClosedCallback -> IO (FunPtr C_ScreenWindowClosedCallback)
- noScreenWindowClosedCallback :: Maybe ScreenWindowClosedCallback
- onScreenWindowClosed :: (IsScreen a, MonadIO m) => a -> ScreenWindowClosedCallback -> m SignalHandlerId
- wrap_ScreenWindowClosedCallback :: ScreenWindowClosedCallback -> C_ScreenWindowClosedCallback
- type C_ScreenWindowManagerChangedCallback = Ptr () -> Ptr () -> IO ()
- type ScreenWindowManagerChangedCallback = IO ()
- afterScreenWindowManagerChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowManagerChangedCallback -> m SignalHandlerId
- genClosure_ScreenWindowManagerChanged :: MonadIO m => ScreenWindowManagerChangedCallback -> m (GClosure C_ScreenWindowManagerChangedCallback)
- mk_ScreenWindowManagerChangedCallback :: C_ScreenWindowManagerChangedCallback -> IO (FunPtr C_ScreenWindowManagerChangedCallback)
- noScreenWindowManagerChangedCallback :: Maybe ScreenWindowManagerChangedCallback
- onScreenWindowManagerChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowManagerChangedCallback -> m SignalHandlerId
- wrap_ScreenWindowManagerChangedCallback :: ScreenWindowManagerChangedCallback -> C_ScreenWindowManagerChangedCallback
- type C_ScreenWindowOpenedCallback = Ptr () -> Ptr Window -> Ptr () -> IO ()
- type ScreenWindowOpenedCallback = Window -> IO ()
- afterScreenWindowOpened :: (IsScreen a, MonadIO m) => a -> ScreenWindowOpenedCallback -> m SignalHandlerId
- genClosure_ScreenWindowOpened :: MonadIO m => ScreenWindowOpenedCallback -> m (GClosure C_ScreenWindowOpenedCallback)
- mk_ScreenWindowOpenedCallback :: C_ScreenWindowOpenedCallback -> IO (FunPtr C_ScreenWindowOpenedCallback)
- noScreenWindowOpenedCallback :: Maybe ScreenWindowOpenedCallback
- onScreenWindowOpened :: (IsScreen a, MonadIO m) => a -> ScreenWindowOpenedCallback -> m SignalHandlerId
- wrap_ScreenWindowOpenedCallback :: ScreenWindowOpenedCallback -> C_ScreenWindowOpenedCallback
- type C_ScreenWindowStackingChangedCallback = Ptr () -> Ptr () -> IO ()
- type ScreenWindowStackingChangedCallback = IO ()
- afterScreenWindowStackingChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowStackingChangedCallback -> m SignalHandlerId
- genClosure_ScreenWindowStackingChanged :: MonadIO m => ScreenWindowStackingChangedCallback -> m (GClosure C_ScreenWindowStackingChangedCallback)
- mk_ScreenWindowStackingChangedCallback :: C_ScreenWindowStackingChangedCallback -> IO (FunPtr C_ScreenWindowStackingChangedCallback)
- noScreenWindowStackingChangedCallback :: Maybe ScreenWindowStackingChangedCallback
- onScreenWindowStackingChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowStackingChangedCallback -> m SignalHandlerId
- wrap_ScreenWindowStackingChangedCallback :: ScreenWindowStackingChangedCallback -> C_ScreenWindowStackingChangedCallback
- type C_ScreenWorkspaceCreatedCallback = Ptr () -> Ptr Workspace -> Ptr () -> IO ()
- type ScreenWorkspaceCreatedCallback = Workspace -> IO ()
- afterScreenWorkspaceCreated :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceCreatedCallback -> m SignalHandlerId
- genClosure_ScreenWorkspaceCreated :: MonadIO m => ScreenWorkspaceCreatedCallback -> m (GClosure C_ScreenWorkspaceCreatedCallback)
- mk_ScreenWorkspaceCreatedCallback :: C_ScreenWorkspaceCreatedCallback -> IO (FunPtr C_ScreenWorkspaceCreatedCallback)
- noScreenWorkspaceCreatedCallback :: Maybe ScreenWorkspaceCreatedCallback
- onScreenWorkspaceCreated :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceCreatedCallback -> m SignalHandlerId
- wrap_ScreenWorkspaceCreatedCallback :: ScreenWorkspaceCreatedCallback -> C_ScreenWorkspaceCreatedCallback
- type C_ScreenWorkspaceDestroyedCallback = Ptr () -> Ptr Workspace -> Ptr () -> IO ()
- type ScreenWorkspaceDestroyedCallback = Workspace -> IO ()
- afterScreenWorkspaceDestroyed :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceDestroyedCallback -> m SignalHandlerId
- genClosure_ScreenWorkspaceDestroyed :: MonadIO m => ScreenWorkspaceDestroyedCallback -> m (GClosure C_ScreenWorkspaceDestroyedCallback)
- mk_ScreenWorkspaceDestroyedCallback :: C_ScreenWorkspaceDestroyedCallback -> IO (FunPtr C_ScreenWorkspaceDestroyedCallback)
- noScreenWorkspaceDestroyedCallback :: Maybe ScreenWorkspaceDestroyedCallback
- onScreenWorkspaceDestroyed :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceDestroyedCallback -> m SignalHandlerId
- wrap_ScreenWorkspaceDestroyedCallback :: ScreenWorkspaceDestroyedCallback -> C_ScreenWorkspaceDestroyedCallback
Exported types
Memory-managed wrapper type.
Instances
GObject Screen Source # | |
Defined in GI.Wnck.Objects.Screen gobjectType :: IO GType | |
HasParentTypes Screen Source # | |
Defined in GI.Wnck.Objects.Screen | |
type ParentTypes Screen Source # | |
Defined in GI.Wnck.Objects.Screen |
class (GObject o, IsDescendantOf Screen o) => IsScreen o Source #
Instances
(GObject o, IsDescendantOf Screen o) => IsScreen o Source # | |
Defined in GI.Wnck.Objects.Screen |
Methods
calcWorkspaceLayout
screenCalcWorkspaceLayout Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> WorkspaceLayout |
|
-> m () |
changeWorkspaceCount
screenChangeWorkspaceCount Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Int32 |
|
-> m () |
Asks the window manager to change the number of Workspace
on screen
.
Since: 2.2
forceUpdate
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m () |
Synchronously and immediately updates the list of Window
on screen
.
This bypasses the standard update mechanism, where the list of Window
is updated in the idle loop.
This is usually a bad idea for both performance and correctness reasons (to get things right, you need to write model-view code that tracks changes, not get a static list of open windows). However, this function can be useful for small applications that just do something and then exit.
freeWorkspaceLayout
screenFreeWorkspaceLayout Source #
:: (HasCallStack, MonadIO m) | |
=> WorkspaceLayout |
|
-> m () |
Deprecated: (Since version 2.20)
Frees the content of layout
. This does not free layout
itself, so you
might want to free layout
yourself after calling this.
Since: 2.12
get
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> m Screen | Returns: the |
Gets the Screen
for a given screen on the default display.
getActiveWindow
getActiveWorkspace
getBackgroundPixmap
screenGetBackgroundPixmap Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m CULong | Returns: the X window ID of the background pixmap of |
Gets the X window ID of the background pixmap of screen
.
getDefault
:: (HasCallStack, MonadIO m) | |
=> m (Maybe Screen) | Returns: the default |
Gets the default Screen
on the default display.
getForRoot
getHeight
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m Int32 | Returns: the height of |
Gets the height of screen
.
getNumber
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m Int32 | Returns: the index of |
Gets the index of screen
on the display to which it belongs. The first
Screen
has an index of 0.
Since: 2.20
getPreviouslyActiveWindow
getShowingDesktop
screenGetShowingDesktop Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m Bool |
Gets whether screen
is in the "showing the desktop" mode. This mode is
changed when a Screen
::showing-desktop-changed
signal gets emitted.
Since: 2.2
getWidth
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m Int32 | Returns: the width of |
Gets the width of screen
.
getWindowManagerName
screenGetWindowManagerName Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m Text | Returns: the name of the window manager, or |
Gets the name of the window manager.
Since: 2.20
getWindows
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m [Window] | Returns: the list of
|
Gets the list of Window
on screen
. The list is not in a defined
order, but should be "stable" (windows should not be reordered in it).
However, the stability of the list is established by the window manager, so
don't blame libwnck if it breaks down.
getWindowsStacked
screenGetWindowsStacked Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m [Window] | Returns: the list of
|
Gets the list of Window
on screen
in bottom-to-top order.
getWorkspace
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Int32 |
|
-> m Workspace | Returns: the |
Gets the Workspace
numbered workspace
on screen
.
getWorkspaceCount
screenGetWorkspaceCount Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> m Int32 | Returns: the number of |
Gets the number of Workspace
on screen
.
getWorkspaces
moveViewport
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Asks the window manager to move the viewport of the current Workspace
on screen
.
Since: 2.4
netWmSupports
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: |
Gets whether the window manager for screen
supports a certain hint from
the <ulink
url="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html">Extended
Window Manager Hints specification</ulink> (EWMH).
When using this function, keep in mind that the window manager can change
over time; so you should not use this function in a way that impacts
persistent application state. A common bug is that your application can
start up before the window manager does when the user logs in, and before
the window manager starts screenNetWmSupports
will return False
for every property.
See also gdk_x11_screen_supports_net_wm_hint()
in GDK.
releaseWorkspaceLayout
screenReleaseWorkspaceLayout Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Int32 |
|
-> m () |
Releases the ownership of the layout of Workspace
on screen
.
currentToken
is used to verify that the caller is the owner of the layout.
If the verification fails, nothing happens.
toggleShowingDesktop
screenToggleShowingDesktop Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Bool |
|
-> m () |
Asks the window manager to set the "showing the desktop" mode on screen
according to show
.
Since: 2.2
trySetWorkspaceLayout
screenTrySetWorkspaceLayout Source #
:: (HasCallStack, MonadIO m, IsScreen a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: a token to use for future calls to
|
Tries to modify the layout of Workspace
on screen
. To do this, tries
to acquire ownership of the layout. If the current process is the owner of
the layout, currentToken
is used to determine if the caller is the owner
(there might be more than one part of the same process trying to set the
layout). Since no more than one application should set this property of
screen
at a time, setting the layout is not guaranteed to work.
If rows
is 0, the actual number of rows will be determined based on
columns
and the number of Workspace
. If columns
is 0, the actual
number of columns will be determined based on rows
and the number of
Workspace
. rows
and columns
must not be 0 at the same time.
You have to release the ownership of the layout with
screenReleaseWorkspaceLayout
when you do not need it anymore.
Signals
activeWindowChanged
type C_ScreenActiveWindowChangedCallback = Ptr () -> Ptr Window -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenActiveWindowChangedCallback Source #
Emitted when the active window on screen
has changed.
afterScreenActiveWindowChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWindowChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “active-window-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #activeWindowChanged callback
genClosure_ScreenActiveWindowChanged :: MonadIO m => ScreenActiveWindowChangedCallback -> m (GClosure C_ScreenActiveWindowChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenActiveWindowChangedCallback :: C_ScreenActiveWindowChangedCallback -> IO (FunPtr C_ScreenActiveWindowChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenActiveWindowChangedCallback
.
noScreenActiveWindowChangedCallback :: Maybe ScreenActiveWindowChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenActiveWindowChangedCallback
onScreenActiveWindowChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWindowChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “active-window-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #activeWindowChanged callback
wrap_ScreenActiveWindowChangedCallback :: ScreenActiveWindowChangedCallback -> C_ScreenActiveWindowChangedCallback Source #
activeWorkspaceChanged
type C_ScreenActiveWorkspaceChangedCallback = Ptr () -> Ptr Workspace -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenActiveWorkspaceChangedCallback Source #
Emitted when the active workspace on screen
has changed.
afterScreenActiveWorkspaceChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWorkspaceChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “active-workspace-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #activeWorkspaceChanged callback
genClosure_ScreenActiveWorkspaceChanged :: MonadIO m => ScreenActiveWorkspaceChangedCallback -> m (GClosure C_ScreenActiveWorkspaceChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenActiveWorkspaceChangedCallback :: C_ScreenActiveWorkspaceChangedCallback -> IO (FunPtr C_ScreenActiveWorkspaceChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenActiveWorkspaceChangedCallback
.
noScreenActiveWorkspaceChangedCallback :: Maybe ScreenActiveWorkspaceChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenActiveWorkspaceChangedCallback
onScreenActiveWorkspaceChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWorkspaceChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “active-workspace-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #activeWorkspaceChanged callback
wrap_ScreenActiveWorkspaceChangedCallback :: ScreenActiveWorkspaceChangedCallback -> C_ScreenActiveWorkspaceChangedCallback Source #
applicationClosed
type C_ScreenApplicationClosedCallback = Ptr () -> Ptr Application -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenApplicationClosedCallback Source #
= Application |
|
-> IO () |
Emitted when a Application
is closed on screen
.
afterScreenApplicationClosed :: (IsScreen a, MonadIO m) => a -> ScreenApplicationClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “application-closed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #applicationClosed callback
genClosure_ScreenApplicationClosed :: MonadIO m => ScreenApplicationClosedCallback -> m (GClosure C_ScreenApplicationClosedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenApplicationClosedCallback :: C_ScreenApplicationClosedCallback -> IO (FunPtr C_ScreenApplicationClosedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenApplicationClosedCallback
.
noScreenApplicationClosedCallback :: Maybe ScreenApplicationClosedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenApplicationClosedCallback
onScreenApplicationClosed :: (IsScreen a, MonadIO m) => a -> ScreenApplicationClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “application-closed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #applicationClosed callback
wrap_ScreenApplicationClosedCallback :: ScreenApplicationClosedCallback -> C_ScreenApplicationClosedCallback Source #
Wrap a ScreenApplicationClosedCallback
into a C_ScreenApplicationClosedCallback
.
applicationOpened
type C_ScreenApplicationOpenedCallback = Ptr () -> Ptr Application -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenApplicationOpenedCallback Source #
= Application |
|
-> IO () |
Emitted when a new Application
is opened on screen
.
afterScreenApplicationOpened :: (IsScreen a, MonadIO m) => a -> ScreenApplicationOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “application-opened
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #applicationOpened callback
genClosure_ScreenApplicationOpened :: MonadIO m => ScreenApplicationOpenedCallback -> m (GClosure C_ScreenApplicationOpenedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenApplicationOpenedCallback :: C_ScreenApplicationOpenedCallback -> IO (FunPtr C_ScreenApplicationOpenedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenApplicationOpenedCallback
.
noScreenApplicationOpenedCallback :: Maybe ScreenApplicationOpenedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenApplicationOpenedCallback
onScreenApplicationOpened :: (IsScreen a, MonadIO m) => a -> ScreenApplicationOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “application-opened
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #applicationOpened callback
wrap_ScreenApplicationOpenedCallback :: ScreenApplicationOpenedCallback -> C_ScreenApplicationOpenedCallback Source #
Wrap a ScreenApplicationOpenedCallback
into a C_ScreenApplicationOpenedCallback
.
backgroundChanged
type C_ScreenBackgroundChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenBackgroundChangedCallback = IO () Source #
Emitted when the background on the root window of screen
has changed.
afterScreenBackgroundChanged :: (IsScreen a, MonadIO m) => a -> ScreenBackgroundChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “background-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #backgroundChanged callback
genClosure_ScreenBackgroundChanged :: MonadIO m => ScreenBackgroundChangedCallback -> m (GClosure C_ScreenBackgroundChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenBackgroundChangedCallback :: C_ScreenBackgroundChangedCallback -> IO (FunPtr C_ScreenBackgroundChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenBackgroundChangedCallback
.
noScreenBackgroundChangedCallback :: Maybe ScreenBackgroundChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenBackgroundChangedCallback
onScreenBackgroundChanged :: (IsScreen a, MonadIO m) => a -> ScreenBackgroundChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “background-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #backgroundChanged callback
wrap_ScreenBackgroundChangedCallback :: ScreenBackgroundChangedCallback -> C_ScreenBackgroundChangedCallback Source #
Wrap a ScreenBackgroundChangedCallback
into a C_ScreenBackgroundChangedCallback
.
classGroupClosed
type C_ScreenClassGroupClosedCallback = Ptr () -> Ptr ClassGroup -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenClassGroupClosedCallback Source #
= ClassGroup |
|
-> IO () |
Emitted when a ClassGroup
is closed on screen
.
Since: 2.20
afterScreenClassGroupClosed :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “class-group-closed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #classGroupClosed callback
genClosure_ScreenClassGroupClosed :: MonadIO m => ScreenClassGroupClosedCallback -> m (GClosure C_ScreenClassGroupClosedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenClassGroupClosedCallback :: C_ScreenClassGroupClosedCallback -> IO (FunPtr C_ScreenClassGroupClosedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenClassGroupClosedCallback
.
noScreenClassGroupClosedCallback :: Maybe ScreenClassGroupClosedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenClassGroupClosedCallback
onScreenClassGroupClosed :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “class-group-closed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #classGroupClosed callback
wrap_ScreenClassGroupClosedCallback :: ScreenClassGroupClosedCallback -> C_ScreenClassGroupClosedCallback Source #
Wrap a ScreenClassGroupClosedCallback
into a C_ScreenClassGroupClosedCallback
.
classGroupOpened
type C_ScreenClassGroupOpenedCallback = Ptr () -> Ptr ClassGroup -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenClassGroupOpenedCallback Source #
= ClassGroup |
|
-> IO () |
Emitted when a new ClassGroup
is opened on screen
.
Since: 2.20
afterScreenClassGroupOpened :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “class-group-opened
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #classGroupOpened callback
genClosure_ScreenClassGroupOpened :: MonadIO m => ScreenClassGroupOpenedCallback -> m (GClosure C_ScreenClassGroupOpenedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenClassGroupOpenedCallback :: C_ScreenClassGroupOpenedCallback -> IO (FunPtr C_ScreenClassGroupOpenedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenClassGroupOpenedCallback
.
noScreenClassGroupOpenedCallback :: Maybe ScreenClassGroupOpenedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenClassGroupOpenedCallback
onScreenClassGroupOpened :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “class-group-opened
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #classGroupOpened callback
wrap_ScreenClassGroupOpenedCallback :: ScreenClassGroupOpenedCallback -> C_ScreenClassGroupOpenedCallback Source #
Wrap a ScreenClassGroupOpenedCallback
into a C_ScreenClassGroupOpenedCallback
.
showingDesktopChanged
type C_ScreenShowingDesktopChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenShowingDesktopChangedCallback = IO () Source #
Emitted when "showing the desktop" mode of screen
is toggled.
Since: 2.20
afterScreenShowingDesktopChanged :: (IsScreen a, MonadIO m) => a -> ScreenShowingDesktopChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “showing-desktop-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #showingDesktopChanged callback
genClosure_ScreenShowingDesktopChanged :: MonadIO m => ScreenShowingDesktopChangedCallback -> m (GClosure C_ScreenShowingDesktopChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenShowingDesktopChangedCallback :: C_ScreenShowingDesktopChangedCallback -> IO (FunPtr C_ScreenShowingDesktopChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenShowingDesktopChangedCallback
.
noScreenShowingDesktopChangedCallback :: Maybe ScreenShowingDesktopChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenShowingDesktopChangedCallback
onScreenShowingDesktopChanged :: (IsScreen a, MonadIO m) => a -> ScreenShowingDesktopChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “showing-desktop-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #showingDesktopChanged callback
wrap_ScreenShowingDesktopChangedCallback :: ScreenShowingDesktopChangedCallback -> C_ScreenShowingDesktopChangedCallback Source #
viewportsChanged
type C_ScreenViewportsChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenViewportsChangedCallback = IO () Source #
afterScreenViewportsChanged :: (IsScreen a, MonadIO m) => a -> ScreenViewportsChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “viewports-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #viewportsChanged callback
genClosure_ScreenViewportsChanged :: MonadIO m => ScreenViewportsChangedCallback -> m (GClosure C_ScreenViewportsChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenViewportsChangedCallback :: C_ScreenViewportsChangedCallback -> IO (FunPtr C_ScreenViewportsChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenViewportsChangedCallback
.
noScreenViewportsChangedCallback :: Maybe ScreenViewportsChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenViewportsChangedCallback
onScreenViewportsChanged :: (IsScreen a, MonadIO m) => a -> ScreenViewportsChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “viewports-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #viewportsChanged callback
wrap_ScreenViewportsChangedCallback :: ScreenViewportsChangedCallback -> C_ScreenViewportsChangedCallback Source #
Wrap a ScreenViewportsChangedCallback
into a C_ScreenViewportsChangedCallback
.
windowClosed
type C_ScreenWindowClosedCallback = Ptr () -> Ptr Window -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenWindowClosedCallback Source #
Emitted when a Window
is closed on screen
.
afterScreenWindowClosed :: (IsScreen a, MonadIO m) => a -> ScreenWindowClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-closed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #windowClosed callback
genClosure_ScreenWindowClosed :: MonadIO m => ScreenWindowClosedCallback -> m (GClosure C_ScreenWindowClosedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenWindowClosedCallback :: C_ScreenWindowClosedCallback -> IO (FunPtr C_ScreenWindowClosedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenWindowClosedCallback
.
noScreenWindowClosedCallback :: Maybe ScreenWindowClosedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenWindowClosedCallback
onScreenWindowClosed :: (IsScreen a, MonadIO m) => a -> ScreenWindowClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-closed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #windowClosed callback
wrap_ScreenWindowClosedCallback :: ScreenWindowClosedCallback -> C_ScreenWindowClosedCallback Source #
Wrap a ScreenWindowClosedCallback
into a C_ScreenWindowClosedCallback
.
windowManagerChanged
type C_ScreenWindowManagerChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenWindowManagerChangedCallback = IO () Source #
Emitted when the window manager on screen
has changed.
Since: 2.20
afterScreenWindowManagerChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowManagerChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-manager-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #windowManagerChanged callback
genClosure_ScreenWindowManagerChanged :: MonadIO m => ScreenWindowManagerChangedCallback -> m (GClosure C_ScreenWindowManagerChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenWindowManagerChangedCallback :: C_ScreenWindowManagerChangedCallback -> IO (FunPtr C_ScreenWindowManagerChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenWindowManagerChangedCallback
.
noScreenWindowManagerChangedCallback :: Maybe ScreenWindowManagerChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenWindowManagerChangedCallback
onScreenWindowManagerChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowManagerChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-manager-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #windowManagerChanged callback
wrap_ScreenWindowManagerChangedCallback :: ScreenWindowManagerChangedCallback -> C_ScreenWindowManagerChangedCallback Source #
windowOpened
type C_ScreenWindowOpenedCallback = Ptr () -> Ptr Window -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenWindowOpenedCallback Source #
Emitted when a new Window
is opened on screen
.
afterScreenWindowOpened :: (IsScreen a, MonadIO m) => a -> ScreenWindowOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-opened
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #windowOpened callback
genClosure_ScreenWindowOpened :: MonadIO m => ScreenWindowOpenedCallback -> m (GClosure C_ScreenWindowOpenedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenWindowOpenedCallback :: C_ScreenWindowOpenedCallback -> IO (FunPtr C_ScreenWindowOpenedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenWindowOpenedCallback
.
noScreenWindowOpenedCallback :: Maybe ScreenWindowOpenedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenWindowOpenedCallback
onScreenWindowOpened :: (IsScreen a, MonadIO m) => a -> ScreenWindowOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-opened
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #windowOpened callback
wrap_ScreenWindowOpenedCallback :: ScreenWindowOpenedCallback -> C_ScreenWindowOpenedCallback Source #
Wrap a ScreenWindowOpenedCallback
into a C_ScreenWindowOpenedCallback
.
windowStackingChanged
type C_ScreenWindowStackingChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenWindowStackingChangedCallback = IO () Source #
Emitted when the stacking order of Window
on screen
has changed.
afterScreenWindowStackingChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowStackingChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-stacking-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #windowStackingChanged callback
genClosure_ScreenWindowStackingChanged :: MonadIO m => ScreenWindowStackingChangedCallback -> m (GClosure C_ScreenWindowStackingChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenWindowStackingChangedCallback :: C_ScreenWindowStackingChangedCallback -> IO (FunPtr C_ScreenWindowStackingChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenWindowStackingChangedCallback
.
noScreenWindowStackingChangedCallback :: Maybe ScreenWindowStackingChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenWindowStackingChangedCallback
onScreenWindowStackingChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowStackingChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “window-stacking-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #windowStackingChanged callback
wrap_ScreenWindowStackingChangedCallback :: ScreenWindowStackingChangedCallback -> C_ScreenWindowStackingChangedCallback Source #
workspaceCreated
type C_ScreenWorkspaceCreatedCallback = Ptr () -> Ptr Workspace -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenWorkspaceCreatedCallback Source #
Emitted when a Workspace
is created on screen
.
afterScreenWorkspaceCreated :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceCreatedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “workspace-created
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #workspaceCreated callback
genClosure_ScreenWorkspaceCreated :: MonadIO m => ScreenWorkspaceCreatedCallback -> m (GClosure C_ScreenWorkspaceCreatedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenWorkspaceCreatedCallback :: C_ScreenWorkspaceCreatedCallback -> IO (FunPtr C_ScreenWorkspaceCreatedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenWorkspaceCreatedCallback
.
noScreenWorkspaceCreatedCallback :: Maybe ScreenWorkspaceCreatedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenWorkspaceCreatedCallback
onScreenWorkspaceCreated :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceCreatedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “workspace-created
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #workspaceCreated callback
wrap_ScreenWorkspaceCreatedCallback :: ScreenWorkspaceCreatedCallback -> C_ScreenWorkspaceCreatedCallback Source #
Wrap a ScreenWorkspaceCreatedCallback
into a C_ScreenWorkspaceCreatedCallback
.
workspaceDestroyed
type C_ScreenWorkspaceDestroyedCallback = Ptr () -> Ptr Workspace -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ScreenWorkspaceDestroyedCallback Source #
Emitted when a Workspace
is destroyed on screen
.
afterScreenWorkspaceDestroyed :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceDestroyedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “workspace-destroyed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
screen #workspaceDestroyed callback
genClosure_ScreenWorkspaceDestroyed :: MonadIO m => ScreenWorkspaceDestroyedCallback -> m (GClosure C_ScreenWorkspaceDestroyedCallback) Source #
Wrap the callback into a GClosure
.
mk_ScreenWorkspaceDestroyedCallback :: C_ScreenWorkspaceDestroyedCallback -> IO (FunPtr C_ScreenWorkspaceDestroyedCallback) Source #
Generate a function pointer callable from C code, from a C_ScreenWorkspaceDestroyedCallback
.
noScreenWorkspaceDestroyedCallback :: Maybe ScreenWorkspaceDestroyedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ScreenWorkspaceDestroyedCallback
onScreenWorkspaceDestroyed :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceDestroyedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “workspace-destroyed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
screen #workspaceDestroyed callback