#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Wnck.Objects.Screen
(
Screen(..) ,
IsScreen ,
toScreen ,
noScreen ,
#if ENABLE_OVERLOADING
ScreenCalcWorkspaceLayoutMethodInfo ,
#endif
screenCalcWorkspaceLayout ,
#if ENABLE_OVERLOADING
ScreenChangeWorkspaceCountMethodInfo ,
#endif
screenChangeWorkspaceCount ,
#if ENABLE_OVERLOADING
ScreenForceUpdateMethodInfo ,
#endif
screenForceUpdate ,
screenFreeWorkspaceLayout ,
screenGet ,
#if ENABLE_OVERLOADING
ScreenGetActiveWindowMethodInfo ,
#endif
screenGetActiveWindow ,
#if ENABLE_OVERLOADING
ScreenGetActiveWorkspaceMethodInfo ,
#endif
screenGetActiveWorkspace ,
#if ENABLE_OVERLOADING
ScreenGetBackgroundPixmapMethodInfo ,
#endif
screenGetBackgroundPixmap ,
screenGetDefault ,
screenGetForRoot ,
#if ENABLE_OVERLOADING
ScreenGetHeightMethodInfo ,
#endif
screenGetHeight ,
#if ENABLE_OVERLOADING
ScreenGetNumberMethodInfo ,
#endif
screenGetNumber ,
#if ENABLE_OVERLOADING
ScreenGetPreviouslyActiveWindowMethodInfo,
#endif
screenGetPreviouslyActiveWindow ,
#if ENABLE_OVERLOADING
ScreenGetShowingDesktopMethodInfo ,
#endif
screenGetShowingDesktop ,
#if ENABLE_OVERLOADING
ScreenGetWidthMethodInfo ,
#endif
screenGetWidth ,
#if ENABLE_OVERLOADING
ScreenGetWindowManagerNameMethodInfo ,
#endif
screenGetWindowManagerName ,
#if ENABLE_OVERLOADING
ScreenGetWindowsMethodInfo ,
#endif
screenGetWindows ,
#if ENABLE_OVERLOADING
ScreenGetWindowsStackedMethodInfo ,
#endif
screenGetWindowsStacked ,
#if ENABLE_OVERLOADING
ScreenGetWorkspaceMethodInfo ,
#endif
screenGetWorkspace ,
#if ENABLE_OVERLOADING
ScreenGetWorkspaceCountMethodInfo ,
#endif
screenGetWorkspaceCount ,
#if ENABLE_OVERLOADING
ScreenGetWorkspacesMethodInfo ,
#endif
screenGetWorkspaces ,
#if ENABLE_OVERLOADING
ScreenMoveViewportMethodInfo ,
#endif
screenMoveViewport ,
#if ENABLE_OVERLOADING
ScreenNetWmSupportsMethodInfo ,
#endif
screenNetWmSupports ,
#if ENABLE_OVERLOADING
ScreenReleaseWorkspaceLayoutMethodInfo ,
#endif
screenReleaseWorkspaceLayout ,
#if ENABLE_OVERLOADING
ScreenToggleShowingDesktopMethodInfo ,
#endif
screenToggleShowingDesktop ,
#if ENABLE_OVERLOADING
ScreenTrySetWorkspaceLayoutMethodInfo ,
#endif
screenTrySetWorkspaceLayout ,
C_ScreenActiveWindowChangedCallback ,
ScreenActiveWindowChangedCallback ,
#if ENABLE_OVERLOADING
ScreenActiveWindowChangedSignalInfo ,
#endif
afterScreenActiveWindowChanged ,
genClosure_ScreenActiveWindowChanged ,
mk_ScreenActiveWindowChangedCallback ,
noScreenActiveWindowChangedCallback ,
onScreenActiveWindowChanged ,
wrap_ScreenActiveWindowChangedCallback ,
C_ScreenActiveWorkspaceChangedCallback ,
ScreenActiveWorkspaceChangedCallback ,
#if ENABLE_OVERLOADING
ScreenActiveWorkspaceChangedSignalInfo ,
#endif
afterScreenActiveWorkspaceChanged ,
genClosure_ScreenActiveWorkspaceChanged ,
mk_ScreenActiveWorkspaceChangedCallback ,
noScreenActiveWorkspaceChangedCallback ,
onScreenActiveWorkspaceChanged ,
wrap_ScreenActiveWorkspaceChangedCallback,
C_ScreenApplicationClosedCallback ,
ScreenApplicationClosedCallback ,
#if ENABLE_OVERLOADING
ScreenApplicationClosedSignalInfo ,
#endif
afterScreenApplicationClosed ,
genClosure_ScreenApplicationClosed ,
mk_ScreenApplicationClosedCallback ,
noScreenApplicationClosedCallback ,
onScreenApplicationClosed ,
wrap_ScreenApplicationClosedCallback ,
C_ScreenApplicationOpenedCallback ,
ScreenApplicationOpenedCallback ,
#if ENABLE_OVERLOADING
ScreenApplicationOpenedSignalInfo ,
#endif
afterScreenApplicationOpened ,
genClosure_ScreenApplicationOpened ,
mk_ScreenApplicationOpenedCallback ,
noScreenApplicationOpenedCallback ,
onScreenApplicationOpened ,
wrap_ScreenApplicationOpenedCallback ,
C_ScreenBackgroundChangedCallback ,
ScreenBackgroundChangedCallback ,
#if ENABLE_OVERLOADING
ScreenBackgroundChangedSignalInfo ,
#endif
afterScreenBackgroundChanged ,
genClosure_ScreenBackgroundChanged ,
mk_ScreenBackgroundChangedCallback ,
noScreenBackgroundChangedCallback ,
onScreenBackgroundChanged ,
wrap_ScreenBackgroundChangedCallback ,
C_ScreenClassGroupClosedCallback ,
ScreenClassGroupClosedCallback ,
#if ENABLE_OVERLOADING
ScreenClassGroupClosedSignalInfo ,
#endif
afterScreenClassGroupClosed ,
genClosure_ScreenClassGroupClosed ,
mk_ScreenClassGroupClosedCallback ,
noScreenClassGroupClosedCallback ,
onScreenClassGroupClosed ,
wrap_ScreenClassGroupClosedCallback ,
C_ScreenClassGroupOpenedCallback ,
ScreenClassGroupOpenedCallback ,
#if ENABLE_OVERLOADING
ScreenClassGroupOpenedSignalInfo ,
#endif
afterScreenClassGroupOpened ,
genClosure_ScreenClassGroupOpened ,
mk_ScreenClassGroupOpenedCallback ,
noScreenClassGroupOpenedCallback ,
onScreenClassGroupOpened ,
wrap_ScreenClassGroupOpenedCallback ,
C_ScreenShowingDesktopChangedCallback ,
ScreenShowingDesktopChangedCallback ,
#if ENABLE_OVERLOADING
ScreenShowingDesktopChangedSignalInfo ,
#endif
afterScreenShowingDesktopChanged ,
genClosure_ScreenShowingDesktopChanged ,
mk_ScreenShowingDesktopChangedCallback ,
noScreenShowingDesktopChangedCallback ,
onScreenShowingDesktopChanged ,
wrap_ScreenShowingDesktopChangedCallback,
C_ScreenViewportsChangedCallback ,
ScreenViewportsChangedCallback ,
#if ENABLE_OVERLOADING
ScreenViewportsChangedSignalInfo ,
#endif
afterScreenViewportsChanged ,
genClosure_ScreenViewportsChanged ,
mk_ScreenViewportsChangedCallback ,
noScreenViewportsChangedCallback ,
onScreenViewportsChanged ,
wrap_ScreenViewportsChangedCallback ,
C_ScreenWindowClosedCallback ,
ScreenWindowClosedCallback ,
#if ENABLE_OVERLOADING
ScreenWindowClosedSignalInfo ,
#endif
afterScreenWindowClosed ,
genClosure_ScreenWindowClosed ,
mk_ScreenWindowClosedCallback ,
noScreenWindowClosedCallback ,
onScreenWindowClosed ,
wrap_ScreenWindowClosedCallback ,
C_ScreenWindowManagerChangedCallback ,
ScreenWindowManagerChangedCallback ,
#if ENABLE_OVERLOADING
ScreenWindowManagerChangedSignalInfo ,
#endif
afterScreenWindowManagerChanged ,
genClosure_ScreenWindowManagerChanged ,
mk_ScreenWindowManagerChangedCallback ,
noScreenWindowManagerChangedCallback ,
onScreenWindowManagerChanged ,
wrap_ScreenWindowManagerChangedCallback ,
C_ScreenWindowOpenedCallback ,
ScreenWindowOpenedCallback ,
#if ENABLE_OVERLOADING
ScreenWindowOpenedSignalInfo ,
#endif
afterScreenWindowOpened ,
genClosure_ScreenWindowOpened ,
mk_ScreenWindowOpenedCallback ,
noScreenWindowOpenedCallback ,
onScreenWindowOpened ,
wrap_ScreenWindowOpenedCallback ,
C_ScreenWindowStackingChangedCallback ,
ScreenWindowStackingChangedCallback ,
#if ENABLE_OVERLOADING
ScreenWindowStackingChangedSignalInfo ,
#endif
afterScreenWindowStackingChanged ,
genClosure_ScreenWindowStackingChanged ,
mk_ScreenWindowStackingChangedCallback ,
noScreenWindowStackingChangedCallback ,
onScreenWindowStackingChanged ,
wrap_ScreenWindowStackingChangedCallback,
C_ScreenWorkspaceCreatedCallback ,
ScreenWorkspaceCreatedCallback ,
#if ENABLE_OVERLOADING
ScreenWorkspaceCreatedSignalInfo ,
#endif
afterScreenWorkspaceCreated ,
genClosure_ScreenWorkspaceCreated ,
mk_ScreenWorkspaceCreatedCallback ,
noScreenWorkspaceCreatedCallback ,
onScreenWorkspaceCreated ,
wrap_ScreenWorkspaceCreatedCallback ,
C_ScreenWorkspaceDestroyedCallback ,
ScreenWorkspaceDestroyedCallback ,
#if ENABLE_OVERLOADING
ScreenWorkspaceDestroyedSignalInfo ,
#endif
afterScreenWorkspaceDestroyed ,
genClosure_ScreenWorkspaceDestroyed ,
mk_ScreenWorkspaceDestroyedCallback ,
noScreenWorkspaceDestroyedCallback ,
onScreenWorkspaceDestroyed ,
wrap_ScreenWorkspaceDestroyedCallback ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Wnck.Objects.Application as Wnck.Application
import {-# SOURCE #-} qualified GI.Wnck.Objects.ClassGroup as Wnck.ClassGroup
import {-# SOURCE #-} qualified GI.Wnck.Objects.Window as Wnck.Window
import {-# SOURCE #-} qualified GI.Wnck.Objects.Workspace as Wnck.Workspace
import {-# SOURCE #-} qualified GI.Wnck.Structs.WorkspaceLayout as Wnck.WorkspaceLayout
newtype Screen = Screen (ManagedPtr Screen)
foreign import ccall "wnck_screen_get_type"
c_wnck_screen_get_type :: IO GType
instance GObject Screen where
gobjectType = c_wnck_screen_get_type
class (GObject o, O.IsDescendantOf Screen o) => IsScreen o
instance (GObject o, O.IsDescendantOf Screen o) => IsScreen o
instance O.HasParentTypes Screen
type instance O.ParentTypes Screen = '[GObject.Object.Object]
toScreen :: (MonadIO m, IsScreen o) => o -> m Screen
toScreen = liftIO . unsafeCastTo Screen
noScreen :: Maybe Screen
noScreen = Nothing
#if ENABLE_OVERLOADING
type family ResolveScreenMethod (t :: Symbol) (o :: *) :: * where
ResolveScreenMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveScreenMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveScreenMethod "calcWorkspaceLayout" o = ScreenCalcWorkspaceLayoutMethodInfo
ResolveScreenMethod "changeWorkspaceCount" o = ScreenChangeWorkspaceCountMethodInfo
ResolveScreenMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveScreenMethod "forceUpdate" o = ScreenForceUpdateMethodInfo
ResolveScreenMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveScreenMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveScreenMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveScreenMethod "moveViewport" o = ScreenMoveViewportMethodInfo
ResolveScreenMethod "netWmSupports" o = ScreenNetWmSupportsMethodInfo
ResolveScreenMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveScreenMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveScreenMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveScreenMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveScreenMethod "releaseWorkspaceLayout" o = ScreenReleaseWorkspaceLayoutMethodInfo
ResolveScreenMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveScreenMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveScreenMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveScreenMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveScreenMethod "toggleShowingDesktop" o = ScreenToggleShowingDesktopMethodInfo
ResolveScreenMethod "trySetWorkspaceLayout" o = ScreenTrySetWorkspaceLayoutMethodInfo
ResolveScreenMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveScreenMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveScreenMethod "getActiveWindow" o = ScreenGetActiveWindowMethodInfo
ResolveScreenMethod "getActiveWorkspace" o = ScreenGetActiveWorkspaceMethodInfo
ResolveScreenMethod "getBackgroundPixmap" o = ScreenGetBackgroundPixmapMethodInfo
ResolveScreenMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveScreenMethod "getHeight" o = ScreenGetHeightMethodInfo
ResolveScreenMethod "getNumber" o = ScreenGetNumberMethodInfo
ResolveScreenMethod "getPreviouslyActiveWindow" o = ScreenGetPreviouslyActiveWindowMethodInfo
ResolveScreenMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveScreenMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveScreenMethod "getShowingDesktop" o = ScreenGetShowingDesktopMethodInfo
ResolveScreenMethod "getWidth" o = ScreenGetWidthMethodInfo
ResolveScreenMethod "getWindowManagerName" o = ScreenGetWindowManagerNameMethodInfo
ResolveScreenMethod "getWindows" o = ScreenGetWindowsMethodInfo
ResolveScreenMethod "getWindowsStacked" o = ScreenGetWindowsStackedMethodInfo
ResolveScreenMethod "getWorkspace" o = ScreenGetWorkspaceMethodInfo
ResolveScreenMethod "getWorkspaceCount" o = ScreenGetWorkspaceCountMethodInfo
ResolveScreenMethod "getWorkspaces" o = ScreenGetWorkspacesMethodInfo
ResolveScreenMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveScreenMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveScreenMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveScreenMethod t Screen, O.MethodInfo info Screen p) => OL.IsLabel t (Screen -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
type ScreenActiveWindowChangedCallback =
Wnck.Window.Window
-> IO ()
noScreenActiveWindowChangedCallback :: Maybe ScreenActiveWindowChangedCallback
noScreenActiveWindowChangedCallback = Nothing
type C_ScreenActiveWindowChangedCallback =
Ptr () ->
Ptr Wnck.Window.Window ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenActiveWindowChangedCallback :: C_ScreenActiveWindowChangedCallback -> IO (FunPtr C_ScreenActiveWindowChangedCallback)
genClosure_ScreenActiveWindowChanged :: MonadIO m => ScreenActiveWindowChangedCallback -> m (GClosure C_ScreenActiveWindowChangedCallback)
genClosure_ScreenActiveWindowChanged cb = liftIO $ do
let cb' = wrap_ScreenActiveWindowChangedCallback cb
mk_ScreenActiveWindowChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenActiveWindowChangedCallback ::
ScreenActiveWindowChangedCallback ->
C_ScreenActiveWindowChangedCallback
wrap_ScreenActiveWindowChangedCallback _cb _ previouslyActiveWindow _ = do
previouslyActiveWindow' <- (newObject Wnck.Window.Window) previouslyActiveWindow
_cb previouslyActiveWindow'
onScreenActiveWindowChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWindowChangedCallback -> m SignalHandlerId
onScreenActiveWindowChanged obj cb = liftIO $ do
let cb' = wrap_ScreenActiveWindowChangedCallback cb
cb'' <- mk_ScreenActiveWindowChangedCallback cb'
connectSignalFunPtr obj "active-window-changed" cb'' SignalConnectBefore
afterScreenActiveWindowChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWindowChangedCallback -> m SignalHandlerId
afterScreenActiveWindowChanged obj cb = liftIO $ do
let cb' = wrap_ScreenActiveWindowChangedCallback cb
cb'' <- mk_ScreenActiveWindowChangedCallback cb'
connectSignalFunPtr obj "active-window-changed" cb'' SignalConnectAfter
type ScreenActiveWorkspaceChangedCallback =
Wnck.Workspace.Workspace
-> IO ()
noScreenActiveWorkspaceChangedCallback :: Maybe ScreenActiveWorkspaceChangedCallback
noScreenActiveWorkspaceChangedCallback = Nothing
type C_ScreenActiveWorkspaceChangedCallback =
Ptr () ->
Ptr Wnck.Workspace.Workspace ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenActiveWorkspaceChangedCallback :: C_ScreenActiveWorkspaceChangedCallback -> IO (FunPtr C_ScreenActiveWorkspaceChangedCallback)
genClosure_ScreenActiveWorkspaceChanged :: MonadIO m => ScreenActiveWorkspaceChangedCallback -> m (GClosure C_ScreenActiveWorkspaceChangedCallback)
genClosure_ScreenActiveWorkspaceChanged cb = liftIO $ do
let cb' = wrap_ScreenActiveWorkspaceChangedCallback cb
mk_ScreenActiveWorkspaceChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenActiveWorkspaceChangedCallback ::
ScreenActiveWorkspaceChangedCallback ->
C_ScreenActiveWorkspaceChangedCallback
wrap_ScreenActiveWorkspaceChangedCallback _cb _ previouslyActiveSpace _ = do
previouslyActiveSpace' <- (newObject Wnck.Workspace.Workspace) previouslyActiveSpace
_cb previouslyActiveSpace'
onScreenActiveWorkspaceChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWorkspaceChangedCallback -> m SignalHandlerId
onScreenActiveWorkspaceChanged obj cb = liftIO $ do
let cb' = wrap_ScreenActiveWorkspaceChangedCallback cb
cb'' <- mk_ScreenActiveWorkspaceChangedCallback cb'
connectSignalFunPtr obj "active-workspace-changed" cb'' SignalConnectBefore
afterScreenActiveWorkspaceChanged :: (IsScreen a, MonadIO m) => a -> ScreenActiveWorkspaceChangedCallback -> m SignalHandlerId
afterScreenActiveWorkspaceChanged obj cb = liftIO $ do
let cb' = wrap_ScreenActiveWorkspaceChangedCallback cb
cb'' <- mk_ScreenActiveWorkspaceChangedCallback cb'
connectSignalFunPtr obj "active-workspace-changed" cb'' SignalConnectAfter
type ScreenApplicationClosedCallback =
Wnck.Application.Application
-> IO ()
noScreenApplicationClosedCallback :: Maybe ScreenApplicationClosedCallback
noScreenApplicationClosedCallback = Nothing
type C_ScreenApplicationClosedCallback =
Ptr () ->
Ptr Wnck.Application.Application ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenApplicationClosedCallback :: C_ScreenApplicationClosedCallback -> IO (FunPtr C_ScreenApplicationClosedCallback)
genClosure_ScreenApplicationClosed :: MonadIO m => ScreenApplicationClosedCallback -> m (GClosure C_ScreenApplicationClosedCallback)
genClosure_ScreenApplicationClosed cb = liftIO $ do
let cb' = wrap_ScreenApplicationClosedCallback cb
mk_ScreenApplicationClosedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenApplicationClosedCallback ::
ScreenApplicationClosedCallback ->
C_ScreenApplicationClosedCallback
wrap_ScreenApplicationClosedCallback _cb _ app _ = do
app' <- (newObject Wnck.Application.Application) app
_cb app'
onScreenApplicationClosed :: (IsScreen a, MonadIO m) => a -> ScreenApplicationClosedCallback -> m SignalHandlerId
onScreenApplicationClosed obj cb = liftIO $ do
let cb' = wrap_ScreenApplicationClosedCallback cb
cb'' <- mk_ScreenApplicationClosedCallback cb'
connectSignalFunPtr obj "application-closed" cb'' SignalConnectBefore
afterScreenApplicationClosed :: (IsScreen a, MonadIO m) => a -> ScreenApplicationClosedCallback -> m SignalHandlerId
afterScreenApplicationClosed obj cb = liftIO $ do
let cb' = wrap_ScreenApplicationClosedCallback cb
cb'' <- mk_ScreenApplicationClosedCallback cb'
connectSignalFunPtr obj "application-closed" cb'' SignalConnectAfter
type ScreenApplicationOpenedCallback =
Wnck.Application.Application
-> IO ()
noScreenApplicationOpenedCallback :: Maybe ScreenApplicationOpenedCallback
noScreenApplicationOpenedCallback = Nothing
type C_ScreenApplicationOpenedCallback =
Ptr () ->
Ptr Wnck.Application.Application ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenApplicationOpenedCallback :: C_ScreenApplicationOpenedCallback -> IO (FunPtr C_ScreenApplicationOpenedCallback)
genClosure_ScreenApplicationOpened :: MonadIO m => ScreenApplicationOpenedCallback -> m (GClosure C_ScreenApplicationOpenedCallback)
genClosure_ScreenApplicationOpened cb = liftIO $ do
let cb' = wrap_ScreenApplicationOpenedCallback cb
mk_ScreenApplicationOpenedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenApplicationOpenedCallback ::
ScreenApplicationOpenedCallback ->
C_ScreenApplicationOpenedCallback
wrap_ScreenApplicationOpenedCallback _cb _ app _ = do
app' <- (newObject Wnck.Application.Application) app
_cb app'
onScreenApplicationOpened :: (IsScreen a, MonadIO m) => a -> ScreenApplicationOpenedCallback -> m SignalHandlerId
onScreenApplicationOpened obj cb = liftIO $ do
let cb' = wrap_ScreenApplicationOpenedCallback cb
cb'' <- mk_ScreenApplicationOpenedCallback cb'
connectSignalFunPtr obj "application-opened" cb'' SignalConnectBefore
afterScreenApplicationOpened :: (IsScreen a, MonadIO m) => a -> ScreenApplicationOpenedCallback -> m SignalHandlerId
afterScreenApplicationOpened obj cb = liftIO $ do
let cb' = wrap_ScreenApplicationOpenedCallback cb
cb'' <- mk_ScreenApplicationOpenedCallback cb'
connectSignalFunPtr obj "application-opened" cb'' SignalConnectAfter
type ScreenBackgroundChangedCallback =
IO ()
noScreenBackgroundChangedCallback :: Maybe ScreenBackgroundChangedCallback
noScreenBackgroundChangedCallback = Nothing
type C_ScreenBackgroundChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenBackgroundChangedCallback :: C_ScreenBackgroundChangedCallback -> IO (FunPtr C_ScreenBackgroundChangedCallback)
genClosure_ScreenBackgroundChanged :: MonadIO m => ScreenBackgroundChangedCallback -> m (GClosure C_ScreenBackgroundChangedCallback)
genClosure_ScreenBackgroundChanged cb = liftIO $ do
let cb' = wrap_ScreenBackgroundChangedCallback cb
mk_ScreenBackgroundChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenBackgroundChangedCallback ::
ScreenBackgroundChangedCallback ->
C_ScreenBackgroundChangedCallback
wrap_ScreenBackgroundChangedCallback _cb _ _ = do
_cb
onScreenBackgroundChanged :: (IsScreen a, MonadIO m) => a -> ScreenBackgroundChangedCallback -> m SignalHandlerId
onScreenBackgroundChanged obj cb = liftIO $ do
let cb' = wrap_ScreenBackgroundChangedCallback cb
cb'' <- mk_ScreenBackgroundChangedCallback cb'
connectSignalFunPtr obj "background-changed" cb'' SignalConnectBefore
afterScreenBackgroundChanged :: (IsScreen a, MonadIO m) => a -> ScreenBackgroundChangedCallback -> m SignalHandlerId
afterScreenBackgroundChanged obj cb = liftIO $ do
let cb' = wrap_ScreenBackgroundChangedCallback cb
cb'' <- mk_ScreenBackgroundChangedCallback cb'
connectSignalFunPtr obj "background-changed" cb'' SignalConnectAfter
type ScreenClassGroupClosedCallback =
Wnck.ClassGroup.ClassGroup
-> IO ()
noScreenClassGroupClosedCallback :: Maybe ScreenClassGroupClosedCallback
noScreenClassGroupClosedCallback = Nothing
type C_ScreenClassGroupClosedCallback =
Ptr () ->
Ptr Wnck.ClassGroup.ClassGroup ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenClassGroupClosedCallback :: C_ScreenClassGroupClosedCallback -> IO (FunPtr C_ScreenClassGroupClosedCallback)
genClosure_ScreenClassGroupClosed :: MonadIO m => ScreenClassGroupClosedCallback -> m (GClosure C_ScreenClassGroupClosedCallback)
genClosure_ScreenClassGroupClosed cb = liftIO $ do
let cb' = wrap_ScreenClassGroupClosedCallback cb
mk_ScreenClassGroupClosedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenClassGroupClosedCallback ::
ScreenClassGroupClosedCallback ->
C_ScreenClassGroupClosedCallback
wrap_ScreenClassGroupClosedCallback _cb _ classGroup _ = do
classGroup' <- (newObject Wnck.ClassGroup.ClassGroup) classGroup
_cb classGroup'
onScreenClassGroupClosed :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupClosedCallback -> m SignalHandlerId
onScreenClassGroupClosed obj cb = liftIO $ do
let cb' = wrap_ScreenClassGroupClosedCallback cb
cb'' <- mk_ScreenClassGroupClosedCallback cb'
connectSignalFunPtr obj "class-group-closed" cb'' SignalConnectBefore
afterScreenClassGroupClosed :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupClosedCallback -> m SignalHandlerId
afterScreenClassGroupClosed obj cb = liftIO $ do
let cb' = wrap_ScreenClassGroupClosedCallback cb
cb'' <- mk_ScreenClassGroupClosedCallback cb'
connectSignalFunPtr obj "class-group-closed" cb'' SignalConnectAfter
type ScreenClassGroupOpenedCallback =
Wnck.ClassGroup.ClassGroup
-> IO ()
noScreenClassGroupOpenedCallback :: Maybe ScreenClassGroupOpenedCallback
noScreenClassGroupOpenedCallback = Nothing
type C_ScreenClassGroupOpenedCallback =
Ptr () ->
Ptr Wnck.ClassGroup.ClassGroup ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenClassGroupOpenedCallback :: C_ScreenClassGroupOpenedCallback -> IO (FunPtr C_ScreenClassGroupOpenedCallback)
genClosure_ScreenClassGroupOpened :: MonadIO m => ScreenClassGroupOpenedCallback -> m (GClosure C_ScreenClassGroupOpenedCallback)
genClosure_ScreenClassGroupOpened cb = liftIO $ do
let cb' = wrap_ScreenClassGroupOpenedCallback cb
mk_ScreenClassGroupOpenedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenClassGroupOpenedCallback ::
ScreenClassGroupOpenedCallback ->
C_ScreenClassGroupOpenedCallback
wrap_ScreenClassGroupOpenedCallback _cb _ classGroup _ = do
classGroup' <- (newObject Wnck.ClassGroup.ClassGroup) classGroup
_cb classGroup'
onScreenClassGroupOpened :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupOpenedCallback -> m SignalHandlerId
onScreenClassGroupOpened obj cb = liftIO $ do
let cb' = wrap_ScreenClassGroupOpenedCallback cb
cb'' <- mk_ScreenClassGroupOpenedCallback cb'
connectSignalFunPtr obj "class-group-opened" cb'' SignalConnectBefore
afterScreenClassGroupOpened :: (IsScreen a, MonadIO m) => a -> ScreenClassGroupOpenedCallback -> m SignalHandlerId
afterScreenClassGroupOpened obj cb = liftIO $ do
let cb' = wrap_ScreenClassGroupOpenedCallback cb
cb'' <- mk_ScreenClassGroupOpenedCallback cb'
connectSignalFunPtr obj "class-group-opened" cb'' SignalConnectAfter
type ScreenShowingDesktopChangedCallback =
IO ()
noScreenShowingDesktopChangedCallback :: Maybe ScreenShowingDesktopChangedCallback
noScreenShowingDesktopChangedCallback = Nothing
type C_ScreenShowingDesktopChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenShowingDesktopChangedCallback :: C_ScreenShowingDesktopChangedCallback -> IO (FunPtr C_ScreenShowingDesktopChangedCallback)
genClosure_ScreenShowingDesktopChanged :: MonadIO m => ScreenShowingDesktopChangedCallback -> m (GClosure C_ScreenShowingDesktopChangedCallback)
genClosure_ScreenShowingDesktopChanged cb = liftIO $ do
let cb' = wrap_ScreenShowingDesktopChangedCallback cb
mk_ScreenShowingDesktopChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenShowingDesktopChangedCallback ::
ScreenShowingDesktopChangedCallback ->
C_ScreenShowingDesktopChangedCallback
wrap_ScreenShowingDesktopChangedCallback _cb _ _ = do
_cb
onScreenShowingDesktopChanged :: (IsScreen a, MonadIO m) => a -> ScreenShowingDesktopChangedCallback -> m SignalHandlerId
onScreenShowingDesktopChanged obj cb = liftIO $ do
let cb' = wrap_ScreenShowingDesktopChangedCallback cb
cb'' <- mk_ScreenShowingDesktopChangedCallback cb'
connectSignalFunPtr obj "showing-desktop-changed" cb'' SignalConnectBefore
afterScreenShowingDesktopChanged :: (IsScreen a, MonadIO m) => a -> ScreenShowingDesktopChangedCallback -> m SignalHandlerId
afterScreenShowingDesktopChanged obj cb = liftIO $ do
let cb' = wrap_ScreenShowingDesktopChangedCallback cb
cb'' <- mk_ScreenShowingDesktopChangedCallback cb'
connectSignalFunPtr obj "showing-desktop-changed" cb'' SignalConnectAfter
type ScreenViewportsChangedCallback =
IO ()
noScreenViewportsChangedCallback :: Maybe ScreenViewportsChangedCallback
noScreenViewportsChangedCallback = Nothing
type C_ScreenViewportsChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenViewportsChangedCallback :: C_ScreenViewportsChangedCallback -> IO (FunPtr C_ScreenViewportsChangedCallback)
genClosure_ScreenViewportsChanged :: MonadIO m => ScreenViewportsChangedCallback -> m (GClosure C_ScreenViewportsChangedCallback)
genClosure_ScreenViewportsChanged cb = liftIO $ do
let cb' = wrap_ScreenViewportsChangedCallback cb
mk_ScreenViewportsChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenViewportsChangedCallback ::
ScreenViewportsChangedCallback ->
C_ScreenViewportsChangedCallback
wrap_ScreenViewportsChangedCallback _cb _ _ = do
_cb
onScreenViewportsChanged :: (IsScreen a, MonadIO m) => a -> ScreenViewportsChangedCallback -> m SignalHandlerId
onScreenViewportsChanged obj cb = liftIO $ do
let cb' = wrap_ScreenViewportsChangedCallback cb
cb'' <- mk_ScreenViewportsChangedCallback cb'
connectSignalFunPtr obj "viewports-changed" cb'' SignalConnectBefore
afterScreenViewportsChanged :: (IsScreen a, MonadIO m) => a -> ScreenViewportsChangedCallback -> m SignalHandlerId
afterScreenViewportsChanged obj cb = liftIO $ do
let cb' = wrap_ScreenViewportsChangedCallback cb
cb'' <- mk_ScreenViewportsChangedCallback cb'
connectSignalFunPtr obj "viewports-changed" cb'' SignalConnectAfter
type ScreenWindowClosedCallback =
Wnck.Window.Window
-> IO ()
noScreenWindowClosedCallback :: Maybe ScreenWindowClosedCallback
noScreenWindowClosedCallback = Nothing
type C_ScreenWindowClosedCallback =
Ptr () ->
Ptr Wnck.Window.Window ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenWindowClosedCallback :: C_ScreenWindowClosedCallback -> IO (FunPtr C_ScreenWindowClosedCallback)
genClosure_ScreenWindowClosed :: MonadIO m => ScreenWindowClosedCallback -> m (GClosure C_ScreenWindowClosedCallback)
genClosure_ScreenWindowClosed cb = liftIO $ do
let cb' = wrap_ScreenWindowClosedCallback cb
mk_ScreenWindowClosedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenWindowClosedCallback ::
ScreenWindowClosedCallback ->
C_ScreenWindowClosedCallback
wrap_ScreenWindowClosedCallback _cb _ window _ = do
window' <- (newObject Wnck.Window.Window) window
_cb window'
onScreenWindowClosed :: (IsScreen a, MonadIO m) => a -> ScreenWindowClosedCallback -> m SignalHandlerId
onScreenWindowClosed obj cb = liftIO $ do
let cb' = wrap_ScreenWindowClosedCallback cb
cb'' <- mk_ScreenWindowClosedCallback cb'
connectSignalFunPtr obj "window-closed" cb'' SignalConnectBefore
afterScreenWindowClosed :: (IsScreen a, MonadIO m) => a -> ScreenWindowClosedCallback -> m SignalHandlerId
afterScreenWindowClosed obj cb = liftIO $ do
let cb' = wrap_ScreenWindowClosedCallback cb
cb'' <- mk_ScreenWindowClosedCallback cb'
connectSignalFunPtr obj "window-closed" cb'' SignalConnectAfter
type ScreenWindowManagerChangedCallback =
IO ()
noScreenWindowManagerChangedCallback :: Maybe ScreenWindowManagerChangedCallback
noScreenWindowManagerChangedCallback = Nothing
type C_ScreenWindowManagerChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenWindowManagerChangedCallback :: C_ScreenWindowManagerChangedCallback -> IO (FunPtr C_ScreenWindowManagerChangedCallback)
genClosure_ScreenWindowManagerChanged :: MonadIO m => ScreenWindowManagerChangedCallback -> m (GClosure C_ScreenWindowManagerChangedCallback)
genClosure_ScreenWindowManagerChanged cb = liftIO $ do
let cb' = wrap_ScreenWindowManagerChangedCallback cb
mk_ScreenWindowManagerChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenWindowManagerChangedCallback ::
ScreenWindowManagerChangedCallback ->
C_ScreenWindowManagerChangedCallback
wrap_ScreenWindowManagerChangedCallback _cb _ _ = do
_cb
onScreenWindowManagerChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowManagerChangedCallback -> m SignalHandlerId
onScreenWindowManagerChanged obj cb = liftIO $ do
let cb' = wrap_ScreenWindowManagerChangedCallback cb
cb'' <- mk_ScreenWindowManagerChangedCallback cb'
connectSignalFunPtr obj "window-manager-changed" cb'' SignalConnectBefore
afterScreenWindowManagerChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowManagerChangedCallback -> m SignalHandlerId
afterScreenWindowManagerChanged obj cb = liftIO $ do
let cb' = wrap_ScreenWindowManagerChangedCallback cb
cb'' <- mk_ScreenWindowManagerChangedCallback cb'
connectSignalFunPtr obj "window-manager-changed" cb'' SignalConnectAfter
type ScreenWindowOpenedCallback =
Wnck.Window.Window
-> IO ()
noScreenWindowOpenedCallback :: Maybe ScreenWindowOpenedCallback
noScreenWindowOpenedCallback = Nothing
type C_ScreenWindowOpenedCallback =
Ptr () ->
Ptr Wnck.Window.Window ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenWindowOpenedCallback :: C_ScreenWindowOpenedCallback -> IO (FunPtr C_ScreenWindowOpenedCallback)
genClosure_ScreenWindowOpened :: MonadIO m => ScreenWindowOpenedCallback -> m (GClosure C_ScreenWindowOpenedCallback)
genClosure_ScreenWindowOpened cb = liftIO $ do
let cb' = wrap_ScreenWindowOpenedCallback cb
mk_ScreenWindowOpenedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenWindowOpenedCallback ::
ScreenWindowOpenedCallback ->
C_ScreenWindowOpenedCallback
wrap_ScreenWindowOpenedCallback _cb _ window _ = do
window' <- (newObject Wnck.Window.Window) window
_cb window'
onScreenWindowOpened :: (IsScreen a, MonadIO m) => a -> ScreenWindowOpenedCallback -> m SignalHandlerId
onScreenWindowOpened obj cb = liftIO $ do
let cb' = wrap_ScreenWindowOpenedCallback cb
cb'' <- mk_ScreenWindowOpenedCallback cb'
connectSignalFunPtr obj "window-opened" cb'' SignalConnectBefore
afterScreenWindowOpened :: (IsScreen a, MonadIO m) => a -> ScreenWindowOpenedCallback -> m SignalHandlerId
afterScreenWindowOpened obj cb = liftIO $ do
let cb' = wrap_ScreenWindowOpenedCallback cb
cb'' <- mk_ScreenWindowOpenedCallback cb'
connectSignalFunPtr obj "window-opened" cb'' SignalConnectAfter
type ScreenWindowStackingChangedCallback =
IO ()
noScreenWindowStackingChangedCallback :: Maybe ScreenWindowStackingChangedCallback
noScreenWindowStackingChangedCallback = Nothing
type C_ScreenWindowStackingChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenWindowStackingChangedCallback :: C_ScreenWindowStackingChangedCallback -> IO (FunPtr C_ScreenWindowStackingChangedCallback)
genClosure_ScreenWindowStackingChanged :: MonadIO m => ScreenWindowStackingChangedCallback -> m (GClosure C_ScreenWindowStackingChangedCallback)
genClosure_ScreenWindowStackingChanged cb = liftIO $ do
let cb' = wrap_ScreenWindowStackingChangedCallback cb
mk_ScreenWindowStackingChangedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenWindowStackingChangedCallback ::
ScreenWindowStackingChangedCallback ->
C_ScreenWindowStackingChangedCallback
wrap_ScreenWindowStackingChangedCallback _cb _ _ = do
_cb
onScreenWindowStackingChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowStackingChangedCallback -> m SignalHandlerId
onScreenWindowStackingChanged obj cb = liftIO $ do
let cb' = wrap_ScreenWindowStackingChangedCallback cb
cb'' <- mk_ScreenWindowStackingChangedCallback cb'
connectSignalFunPtr obj "window-stacking-changed" cb'' SignalConnectBefore
afterScreenWindowStackingChanged :: (IsScreen a, MonadIO m) => a -> ScreenWindowStackingChangedCallback -> m SignalHandlerId
afterScreenWindowStackingChanged obj cb = liftIO $ do
let cb' = wrap_ScreenWindowStackingChangedCallback cb
cb'' <- mk_ScreenWindowStackingChangedCallback cb'
connectSignalFunPtr obj "window-stacking-changed" cb'' SignalConnectAfter
type ScreenWorkspaceCreatedCallback =
Wnck.Workspace.Workspace
-> IO ()
noScreenWorkspaceCreatedCallback :: Maybe ScreenWorkspaceCreatedCallback
noScreenWorkspaceCreatedCallback = Nothing
type C_ScreenWorkspaceCreatedCallback =
Ptr () ->
Ptr Wnck.Workspace.Workspace ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenWorkspaceCreatedCallback :: C_ScreenWorkspaceCreatedCallback -> IO (FunPtr C_ScreenWorkspaceCreatedCallback)
genClosure_ScreenWorkspaceCreated :: MonadIO m => ScreenWorkspaceCreatedCallback -> m (GClosure C_ScreenWorkspaceCreatedCallback)
genClosure_ScreenWorkspaceCreated cb = liftIO $ do
let cb' = wrap_ScreenWorkspaceCreatedCallback cb
mk_ScreenWorkspaceCreatedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenWorkspaceCreatedCallback ::
ScreenWorkspaceCreatedCallback ->
C_ScreenWorkspaceCreatedCallback
wrap_ScreenWorkspaceCreatedCallback _cb _ space _ = do
space' <- (newObject Wnck.Workspace.Workspace) space
_cb space'
onScreenWorkspaceCreated :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceCreatedCallback -> m SignalHandlerId
onScreenWorkspaceCreated obj cb = liftIO $ do
let cb' = wrap_ScreenWorkspaceCreatedCallback cb
cb'' <- mk_ScreenWorkspaceCreatedCallback cb'
connectSignalFunPtr obj "workspace-created" cb'' SignalConnectBefore
afterScreenWorkspaceCreated :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceCreatedCallback -> m SignalHandlerId
afterScreenWorkspaceCreated obj cb = liftIO $ do
let cb' = wrap_ScreenWorkspaceCreatedCallback cb
cb'' <- mk_ScreenWorkspaceCreatedCallback cb'
connectSignalFunPtr obj "workspace-created" cb'' SignalConnectAfter
type ScreenWorkspaceDestroyedCallback =
Wnck.Workspace.Workspace
-> IO ()
noScreenWorkspaceDestroyedCallback :: Maybe ScreenWorkspaceDestroyedCallback
noScreenWorkspaceDestroyedCallback = Nothing
type C_ScreenWorkspaceDestroyedCallback =
Ptr () ->
Ptr Wnck.Workspace.Workspace ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_ScreenWorkspaceDestroyedCallback :: C_ScreenWorkspaceDestroyedCallback -> IO (FunPtr C_ScreenWorkspaceDestroyedCallback)
genClosure_ScreenWorkspaceDestroyed :: MonadIO m => ScreenWorkspaceDestroyedCallback -> m (GClosure C_ScreenWorkspaceDestroyedCallback)
genClosure_ScreenWorkspaceDestroyed cb = liftIO $ do
let cb' = wrap_ScreenWorkspaceDestroyedCallback cb
mk_ScreenWorkspaceDestroyedCallback cb' >>= B.GClosure.newGClosure
wrap_ScreenWorkspaceDestroyedCallback ::
ScreenWorkspaceDestroyedCallback ->
C_ScreenWorkspaceDestroyedCallback
wrap_ScreenWorkspaceDestroyedCallback _cb _ space _ = do
space' <- (newObject Wnck.Workspace.Workspace) space
_cb space'
onScreenWorkspaceDestroyed :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceDestroyedCallback -> m SignalHandlerId
onScreenWorkspaceDestroyed obj cb = liftIO $ do
let cb' = wrap_ScreenWorkspaceDestroyedCallback cb
cb'' <- mk_ScreenWorkspaceDestroyedCallback cb'
connectSignalFunPtr obj "workspace-destroyed" cb'' SignalConnectBefore
afterScreenWorkspaceDestroyed :: (IsScreen a, MonadIO m) => a -> ScreenWorkspaceDestroyedCallback -> m SignalHandlerId
afterScreenWorkspaceDestroyed obj cb = liftIO $ do
let cb' = wrap_ScreenWorkspaceDestroyedCallback cb
cb'' <- mk_ScreenWorkspaceDestroyedCallback cb'
connectSignalFunPtr obj "workspace-destroyed" cb'' SignalConnectAfter
#if ENABLE_OVERLOADING
instance O.HasAttributeList Screen
type instance O.AttributeList Screen = ScreenAttributeList
type ScreenAttributeList = ('[ ] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
#endif
#if ENABLE_OVERLOADING
data ScreenActiveWindowChangedSignalInfo
instance SignalInfo ScreenActiveWindowChangedSignalInfo where
type HaskellCallbackType ScreenActiveWindowChangedSignalInfo = ScreenActiveWindowChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenActiveWindowChangedCallback cb
cb'' <- mk_ScreenActiveWindowChangedCallback cb'
connectSignalFunPtr obj "active-window-changed" cb'' connectMode
data ScreenActiveWorkspaceChangedSignalInfo
instance SignalInfo ScreenActiveWorkspaceChangedSignalInfo where
type HaskellCallbackType ScreenActiveWorkspaceChangedSignalInfo = ScreenActiveWorkspaceChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenActiveWorkspaceChangedCallback cb
cb'' <- mk_ScreenActiveWorkspaceChangedCallback cb'
connectSignalFunPtr obj "active-workspace-changed" cb'' connectMode
data ScreenApplicationClosedSignalInfo
instance SignalInfo ScreenApplicationClosedSignalInfo where
type HaskellCallbackType ScreenApplicationClosedSignalInfo = ScreenApplicationClosedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenApplicationClosedCallback cb
cb'' <- mk_ScreenApplicationClosedCallback cb'
connectSignalFunPtr obj "application-closed" cb'' connectMode
data ScreenApplicationOpenedSignalInfo
instance SignalInfo ScreenApplicationOpenedSignalInfo where
type HaskellCallbackType ScreenApplicationOpenedSignalInfo = ScreenApplicationOpenedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenApplicationOpenedCallback cb
cb'' <- mk_ScreenApplicationOpenedCallback cb'
connectSignalFunPtr obj "application-opened" cb'' connectMode
data ScreenBackgroundChangedSignalInfo
instance SignalInfo ScreenBackgroundChangedSignalInfo where
type HaskellCallbackType ScreenBackgroundChangedSignalInfo = ScreenBackgroundChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenBackgroundChangedCallback cb
cb'' <- mk_ScreenBackgroundChangedCallback cb'
connectSignalFunPtr obj "background-changed" cb'' connectMode
data ScreenClassGroupClosedSignalInfo
instance SignalInfo ScreenClassGroupClosedSignalInfo where
type HaskellCallbackType ScreenClassGroupClosedSignalInfo = ScreenClassGroupClosedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenClassGroupClosedCallback cb
cb'' <- mk_ScreenClassGroupClosedCallback cb'
connectSignalFunPtr obj "class-group-closed" cb'' connectMode
data ScreenClassGroupOpenedSignalInfo
instance SignalInfo ScreenClassGroupOpenedSignalInfo where
type HaskellCallbackType ScreenClassGroupOpenedSignalInfo = ScreenClassGroupOpenedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenClassGroupOpenedCallback cb
cb'' <- mk_ScreenClassGroupOpenedCallback cb'
connectSignalFunPtr obj "class-group-opened" cb'' connectMode
data ScreenShowingDesktopChangedSignalInfo
instance SignalInfo ScreenShowingDesktopChangedSignalInfo where
type HaskellCallbackType ScreenShowingDesktopChangedSignalInfo = ScreenShowingDesktopChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenShowingDesktopChangedCallback cb
cb'' <- mk_ScreenShowingDesktopChangedCallback cb'
connectSignalFunPtr obj "showing-desktop-changed" cb'' connectMode
data ScreenViewportsChangedSignalInfo
instance SignalInfo ScreenViewportsChangedSignalInfo where
type HaskellCallbackType ScreenViewportsChangedSignalInfo = ScreenViewportsChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenViewportsChangedCallback cb
cb'' <- mk_ScreenViewportsChangedCallback cb'
connectSignalFunPtr obj "viewports-changed" cb'' connectMode
data ScreenWindowClosedSignalInfo
instance SignalInfo ScreenWindowClosedSignalInfo where
type HaskellCallbackType ScreenWindowClosedSignalInfo = ScreenWindowClosedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenWindowClosedCallback cb
cb'' <- mk_ScreenWindowClosedCallback cb'
connectSignalFunPtr obj "window-closed" cb'' connectMode
data ScreenWindowManagerChangedSignalInfo
instance SignalInfo ScreenWindowManagerChangedSignalInfo where
type HaskellCallbackType ScreenWindowManagerChangedSignalInfo = ScreenWindowManagerChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenWindowManagerChangedCallback cb
cb'' <- mk_ScreenWindowManagerChangedCallback cb'
connectSignalFunPtr obj "window-manager-changed" cb'' connectMode
data ScreenWindowOpenedSignalInfo
instance SignalInfo ScreenWindowOpenedSignalInfo where
type HaskellCallbackType ScreenWindowOpenedSignalInfo = ScreenWindowOpenedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenWindowOpenedCallback cb
cb'' <- mk_ScreenWindowOpenedCallback cb'
connectSignalFunPtr obj "window-opened" cb'' connectMode
data ScreenWindowStackingChangedSignalInfo
instance SignalInfo ScreenWindowStackingChangedSignalInfo where
type HaskellCallbackType ScreenWindowStackingChangedSignalInfo = ScreenWindowStackingChangedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenWindowStackingChangedCallback cb
cb'' <- mk_ScreenWindowStackingChangedCallback cb'
connectSignalFunPtr obj "window-stacking-changed" cb'' connectMode
data ScreenWorkspaceCreatedSignalInfo
instance SignalInfo ScreenWorkspaceCreatedSignalInfo where
type HaskellCallbackType ScreenWorkspaceCreatedSignalInfo = ScreenWorkspaceCreatedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenWorkspaceCreatedCallback cb
cb'' <- mk_ScreenWorkspaceCreatedCallback cb'
connectSignalFunPtr obj "workspace-created" cb'' connectMode
data ScreenWorkspaceDestroyedSignalInfo
instance SignalInfo ScreenWorkspaceDestroyedSignalInfo where
type HaskellCallbackType ScreenWorkspaceDestroyedSignalInfo = ScreenWorkspaceDestroyedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_ScreenWorkspaceDestroyedCallback cb
cb'' <- mk_ScreenWorkspaceDestroyedCallback cb'
connectSignalFunPtr obj "workspace-destroyed" cb'' connectMode
type instance O.SignalList Screen = ScreenSignalList
type ScreenSignalList = ('[ '("activeWindowChanged", ScreenActiveWindowChangedSignalInfo), '("activeWorkspaceChanged", ScreenActiveWorkspaceChangedSignalInfo), '("applicationClosed", ScreenApplicationClosedSignalInfo), '("applicationOpened", ScreenApplicationOpenedSignalInfo), '("backgroundChanged", ScreenBackgroundChangedSignalInfo), '("classGroupClosed", ScreenClassGroupClosedSignalInfo), '("classGroupOpened", ScreenClassGroupOpenedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("showingDesktopChanged", ScreenShowingDesktopChangedSignalInfo), '("viewportsChanged", ScreenViewportsChangedSignalInfo), '("windowClosed", ScreenWindowClosedSignalInfo), '("windowManagerChanged", ScreenWindowManagerChangedSignalInfo), '("windowOpened", ScreenWindowOpenedSignalInfo), '("windowStackingChanged", ScreenWindowStackingChangedSignalInfo), '("workspaceCreated", ScreenWorkspaceCreatedSignalInfo), '("workspaceDestroyed", ScreenWorkspaceDestroyedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "wnck_screen_calc_workspace_layout" wnck_screen_calc_workspace_layout ::
Ptr Screen ->
Int32 ->
Int32 ->
Ptr Wnck.WorkspaceLayout.WorkspaceLayout ->
IO ()
{-# DEPRECATED screenCalcWorkspaceLayout ["(Since version 2.20)"] #-}
screenCalcWorkspaceLayout ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Int32
-> Int32
-> Wnck.WorkspaceLayout.WorkspaceLayout
-> m ()
screenCalcWorkspaceLayout screen numWorkspaces spaceIndex layout = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
layout' <- unsafeManagedPtrGetPtr layout
wnck_screen_calc_workspace_layout screen' numWorkspaces spaceIndex layout'
touchManagedPtr screen
touchManagedPtr layout
return ()
#if ENABLE_OVERLOADING
data ScreenCalcWorkspaceLayoutMethodInfo
instance (signature ~ (Int32 -> Int32 -> Wnck.WorkspaceLayout.WorkspaceLayout -> m ()), MonadIO m, IsScreen a) => O.MethodInfo ScreenCalcWorkspaceLayoutMethodInfo a signature where
overloadedMethod _ = screenCalcWorkspaceLayout
#endif
foreign import ccall "wnck_screen_change_workspace_count" wnck_screen_change_workspace_count ::
Ptr Screen ->
Int32 ->
IO ()
screenChangeWorkspaceCount ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Int32
-> m ()
screenChangeWorkspaceCount screen count = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
wnck_screen_change_workspace_count screen' count
touchManagedPtr screen
return ()
#if ENABLE_OVERLOADING
data ScreenChangeWorkspaceCountMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsScreen a) => O.MethodInfo ScreenChangeWorkspaceCountMethodInfo a signature where
overloadedMethod _ = screenChangeWorkspaceCount
#endif
foreign import ccall "wnck_screen_force_update" wnck_screen_force_update ::
Ptr Screen ->
IO ()
screenForceUpdate ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m ()
screenForceUpdate screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
wnck_screen_force_update screen'
touchManagedPtr screen
return ()
#if ENABLE_OVERLOADING
data ScreenForceUpdateMethodInfo
instance (signature ~ (m ()), MonadIO m, IsScreen a) => O.MethodInfo ScreenForceUpdateMethodInfo a signature where
overloadedMethod _ = screenForceUpdate
#endif
foreign import ccall "wnck_screen_get_active_window" wnck_screen_get_active_window ::
Ptr Screen ->
IO (Ptr Wnck.Window.Window)
screenGetActiveWindow ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m (Maybe Wnck.Window.Window)
screenGetActiveWindow screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_active_window screen'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Wnck.Window.Window) result'
return result''
touchManagedPtr screen
return maybeResult
#if ENABLE_OVERLOADING
data ScreenGetActiveWindowMethodInfo
instance (signature ~ (m (Maybe Wnck.Window.Window)), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetActiveWindowMethodInfo a signature where
overloadedMethod _ = screenGetActiveWindow
#endif
foreign import ccall "wnck_screen_get_active_workspace" wnck_screen_get_active_workspace ::
Ptr Screen ->
IO (Ptr Wnck.Workspace.Workspace)
screenGetActiveWorkspace ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m (Maybe Wnck.Workspace.Workspace)
screenGetActiveWorkspace screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_active_workspace screen'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Wnck.Workspace.Workspace) result'
return result''
touchManagedPtr screen
return maybeResult
#if ENABLE_OVERLOADING
data ScreenGetActiveWorkspaceMethodInfo
instance (signature ~ (m (Maybe Wnck.Workspace.Workspace)), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetActiveWorkspaceMethodInfo a signature where
overloadedMethod _ = screenGetActiveWorkspace
#endif
foreign import ccall "wnck_screen_get_background_pixmap" wnck_screen_get_background_pixmap ::
Ptr Screen ->
IO CULong
screenGetBackgroundPixmap ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m CULong
screenGetBackgroundPixmap screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_background_pixmap screen'
touchManagedPtr screen
return result
#if ENABLE_OVERLOADING
data ScreenGetBackgroundPixmapMethodInfo
instance (signature ~ (m CULong), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetBackgroundPixmapMethodInfo a signature where
overloadedMethod _ = screenGetBackgroundPixmap
#endif
foreign import ccall "wnck_screen_get_height" wnck_screen_get_height ::
Ptr Screen ->
IO Int32
screenGetHeight ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m Int32
screenGetHeight screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_height screen'
touchManagedPtr screen
return result
#if ENABLE_OVERLOADING
data ScreenGetHeightMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetHeightMethodInfo a signature where
overloadedMethod _ = screenGetHeight
#endif
foreign import ccall "wnck_screen_get_number" wnck_screen_get_number ::
Ptr Screen ->
IO Int32
screenGetNumber ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m Int32
screenGetNumber screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_number screen'
touchManagedPtr screen
return result
#if ENABLE_OVERLOADING
data ScreenGetNumberMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetNumberMethodInfo a signature where
overloadedMethod _ = screenGetNumber
#endif
foreign import ccall "wnck_screen_get_previously_active_window" wnck_screen_get_previously_active_window ::
Ptr Screen ->
IO (Ptr Wnck.Window.Window)
screenGetPreviouslyActiveWindow ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m Wnck.Window.Window
screenGetPreviouslyActiveWindow screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_previously_active_window screen'
checkUnexpectedReturnNULL "screenGetPreviouslyActiveWindow" result
result' <- (newObject Wnck.Window.Window) result
touchManagedPtr screen
return result'
#if ENABLE_OVERLOADING
data ScreenGetPreviouslyActiveWindowMethodInfo
instance (signature ~ (m Wnck.Window.Window), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetPreviouslyActiveWindowMethodInfo a signature where
overloadedMethod _ = screenGetPreviouslyActiveWindow
#endif
foreign import ccall "wnck_screen_get_showing_desktop" wnck_screen_get_showing_desktop ::
Ptr Screen ->
IO CInt
screenGetShowingDesktop ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m Bool
screenGetShowingDesktop screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_showing_desktop screen'
let result' = (/= 0) result
touchManagedPtr screen
return result'
#if ENABLE_OVERLOADING
data ScreenGetShowingDesktopMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetShowingDesktopMethodInfo a signature where
overloadedMethod _ = screenGetShowingDesktop
#endif
foreign import ccall "wnck_screen_get_width" wnck_screen_get_width ::
Ptr Screen ->
IO Int32
screenGetWidth ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m Int32
screenGetWidth screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_width screen'
touchManagedPtr screen
return result
#if ENABLE_OVERLOADING
data ScreenGetWidthMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWidthMethodInfo a signature where
overloadedMethod _ = screenGetWidth
#endif
foreign import ccall "wnck_screen_get_window_manager_name" wnck_screen_get_window_manager_name ::
Ptr Screen ->
IO CString
screenGetWindowManagerName ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m T.Text
screenGetWindowManagerName screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_window_manager_name screen'
checkUnexpectedReturnNULL "screenGetWindowManagerName" result
result' <- cstringToText result
touchManagedPtr screen
return result'
#if ENABLE_OVERLOADING
data ScreenGetWindowManagerNameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWindowManagerNameMethodInfo a signature where
overloadedMethod _ = screenGetWindowManagerName
#endif
foreign import ccall "wnck_screen_get_windows" wnck_screen_get_windows ::
Ptr Screen ->
IO (Ptr (GList (Ptr Wnck.Window.Window)))
screenGetWindows ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m [Wnck.Window.Window]
screenGetWindows screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_windows screen'
result' <- unpackGList result
result'' <- mapM (newObject Wnck.Window.Window) result'
touchManagedPtr screen
return result''
#if ENABLE_OVERLOADING
data ScreenGetWindowsMethodInfo
instance (signature ~ (m [Wnck.Window.Window]), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWindowsMethodInfo a signature where
overloadedMethod _ = screenGetWindows
#endif
foreign import ccall "wnck_screen_get_windows_stacked" wnck_screen_get_windows_stacked ::
Ptr Screen ->
IO (Ptr (GList (Ptr Wnck.Window.Window)))
screenGetWindowsStacked ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m [Wnck.Window.Window]
screenGetWindowsStacked screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_windows_stacked screen'
result' <- unpackGList result
result'' <- mapM (newObject Wnck.Window.Window) result'
touchManagedPtr screen
return result''
#if ENABLE_OVERLOADING
data ScreenGetWindowsStackedMethodInfo
instance (signature ~ (m [Wnck.Window.Window]), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWindowsStackedMethodInfo a signature where
overloadedMethod _ = screenGetWindowsStacked
#endif
foreign import ccall "wnck_screen_get_workspace" wnck_screen_get_workspace ::
Ptr Screen ->
Int32 ->
IO (Ptr Wnck.Workspace.Workspace)
screenGetWorkspace ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Int32
-> m Wnck.Workspace.Workspace
screenGetWorkspace screen workspace = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_workspace screen' workspace
checkUnexpectedReturnNULL "screenGetWorkspace" result
result' <- (newObject Wnck.Workspace.Workspace) result
touchManagedPtr screen
return result'
#if ENABLE_OVERLOADING
data ScreenGetWorkspaceMethodInfo
instance (signature ~ (Int32 -> m Wnck.Workspace.Workspace), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWorkspaceMethodInfo a signature where
overloadedMethod _ = screenGetWorkspace
#endif
foreign import ccall "wnck_screen_get_workspace_count" wnck_screen_get_workspace_count ::
Ptr Screen ->
IO Int32
screenGetWorkspaceCount ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m Int32
screenGetWorkspaceCount screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_workspace_count screen'
touchManagedPtr screen
return result
#if ENABLE_OVERLOADING
data ScreenGetWorkspaceCountMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWorkspaceCountMethodInfo a signature where
overloadedMethod _ = screenGetWorkspaceCount
#endif
foreign import ccall "wnck_screen_get_workspaces" wnck_screen_get_workspaces ::
Ptr Screen ->
IO (Ptr (GList (Ptr Wnck.Workspace.Workspace)))
screenGetWorkspaces ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> m [Wnck.Workspace.Workspace]
screenGetWorkspaces screen = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_get_workspaces screen'
result' <- unpackGList result
result'' <- mapM (newObject Wnck.Workspace.Workspace) result'
touchManagedPtr screen
return result''
#if ENABLE_OVERLOADING
data ScreenGetWorkspacesMethodInfo
instance (signature ~ (m [Wnck.Workspace.Workspace]), MonadIO m, IsScreen a) => O.MethodInfo ScreenGetWorkspacesMethodInfo a signature where
overloadedMethod _ = screenGetWorkspaces
#endif
foreign import ccall "wnck_screen_move_viewport" wnck_screen_move_viewport ::
Ptr Screen ->
Int32 ->
Int32 ->
IO ()
screenMoveViewport ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Int32
-> Int32
-> m ()
screenMoveViewport screen x y = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
wnck_screen_move_viewport screen' x y
touchManagedPtr screen
return ()
#if ENABLE_OVERLOADING
data ScreenMoveViewportMethodInfo
instance (signature ~ (Int32 -> Int32 -> m ()), MonadIO m, IsScreen a) => O.MethodInfo ScreenMoveViewportMethodInfo a signature where
overloadedMethod _ = screenMoveViewport
#endif
foreign import ccall "wnck_screen_net_wm_supports" wnck_screen_net_wm_supports ::
Ptr Screen ->
CString ->
IO CInt
screenNetWmSupports ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> T.Text
-> m Bool
screenNetWmSupports screen atom = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
atom' <- textToCString atom
result <- wnck_screen_net_wm_supports screen' atom'
let result' = (/= 0) result
touchManagedPtr screen
freeMem atom'
return result'
#if ENABLE_OVERLOADING
data ScreenNetWmSupportsMethodInfo
instance (signature ~ (T.Text -> m Bool), MonadIO m, IsScreen a) => O.MethodInfo ScreenNetWmSupportsMethodInfo a signature where
overloadedMethod _ = screenNetWmSupports
#endif
foreign import ccall "wnck_screen_release_workspace_layout" wnck_screen_release_workspace_layout ::
Ptr Screen ->
Int32 ->
IO ()
screenReleaseWorkspaceLayout ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Int32
-> m ()
screenReleaseWorkspaceLayout screen currentToken = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
wnck_screen_release_workspace_layout screen' currentToken
touchManagedPtr screen
return ()
#if ENABLE_OVERLOADING
data ScreenReleaseWorkspaceLayoutMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsScreen a) => O.MethodInfo ScreenReleaseWorkspaceLayoutMethodInfo a signature where
overloadedMethod _ = screenReleaseWorkspaceLayout
#endif
foreign import ccall "wnck_screen_toggle_showing_desktop" wnck_screen_toggle_showing_desktop ::
Ptr Screen ->
CInt ->
IO ()
screenToggleShowingDesktop ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Bool
-> m ()
screenToggleShowingDesktop screen show_ = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
let show_' = (fromIntegral . fromEnum) show_
wnck_screen_toggle_showing_desktop screen' show_'
touchManagedPtr screen
return ()
#if ENABLE_OVERLOADING
data ScreenToggleShowingDesktopMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsScreen a) => O.MethodInfo ScreenToggleShowingDesktopMethodInfo a signature where
overloadedMethod _ = screenToggleShowingDesktop
#endif
foreign import ccall "wnck_screen_try_set_workspace_layout" wnck_screen_try_set_workspace_layout ::
Ptr Screen ->
Int32 ->
Int32 ->
Int32 ->
IO Int32
screenTrySetWorkspaceLayout ::
(B.CallStack.HasCallStack, MonadIO m, IsScreen a) =>
a
-> Int32
-> Int32
-> Int32
-> m Int32
screenTrySetWorkspaceLayout screen currentToken rows columns = liftIO $ do
screen' <- unsafeManagedPtrCastPtr screen
result <- wnck_screen_try_set_workspace_layout screen' currentToken rows columns
touchManagedPtr screen
return result
#if ENABLE_OVERLOADING
data ScreenTrySetWorkspaceLayoutMethodInfo
instance (signature ~ (Int32 -> Int32 -> Int32 -> m Int32), MonadIO m, IsScreen a) => O.MethodInfo ScreenTrySetWorkspaceLayoutMethodInfo a signature where
overloadedMethod _ = screenTrySetWorkspaceLayout
#endif
foreign import ccall "wnck_screen_free_workspace_layout" wnck_screen_free_workspace_layout ::
Ptr Wnck.WorkspaceLayout.WorkspaceLayout ->
IO ()
{-# DEPRECATED screenFreeWorkspaceLayout ["(Since version 2.20)"] #-}
screenFreeWorkspaceLayout ::
(B.CallStack.HasCallStack, MonadIO m) =>
Wnck.WorkspaceLayout.WorkspaceLayout
-> m ()
screenFreeWorkspaceLayout layout = liftIO $ do
layout' <- unsafeManagedPtrGetPtr layout
wnck_screen_free_workspace_layout layout'
touchManagedPtr layout
return ()
#if ENABLE_OVERLOADING
#endif
foreign import ccall "wnck_screen_get" wnck_screen_get ::
Int32 ->
IO (Ptr Screen)
screenGet ::
(B.CallStack.HasCallStack, MonadIO m) =>
Int32
-> m Screen
screenGet index = liftIO $ do
result <- wnck_screen_get index
checkUnexpectedReturnNULL "screenGet" result
result' <- (newObject Screen) result
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "wnck_screen_get_default" wnck_screen_get_default ::
IO (Ptr Screen)
screenGetDefault ::
(B.CallStack.HasCallStack, MonadIO m) =>
m (Maybe Screen)
screenGetDefault = liftIO $ do
result <- wnck_screen_get_default
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject Screen) result'
return result''
return maybeResult
#if ENABLE_OVERLOADING
#endif
foreign import ccall "wnck_screen_get_for_root" wnck_screen_get_for_root ::
CULong ->
IO (Ptr Screen)
screenGetForRoot ::
(B.CallStack.HasCallStack, MonadIO m) =>
CULong
-> m Screen
screenGetForRoot rootWindowId = liftIO $ do
result <- wnck_screen_get_for_root rootWindowId
checkUnexpectedReturnNULL "screenGetForRoot" result
result' <- (newObject Screen) result
return result'
#if ENABLE_OVERLOADING
#endif