Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype X11Surface = X11Surface (ManagedPtr X11Surface)
- class (GObject o, IsDescendantOf X11Surface o) => IsX11Surface o
- toX11Surface :: (MonadIO m, IsX11Surface o) => o -> m X11Surface
- x11SurfaceGetDesktop :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> m Word32
- x11SurfaceGetGroup :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> m Surface
- x11SurfaceGetXid :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> m CULong
- x11SurfaceLookupForDisplay :: (HasCallStack, MonadIO m, IsX11Display a) => a -> CULong -> m X11Surface
- x11SurfaceMoveToCurrentDesktop :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> m ()
- x11SurfaceMoveToDesktop :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Word32 -> m ()
- x11SurfaceSetFrameSyncEnabled :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Bool -> m ()
- x11SurfaceSetGroup :: (HasCallStack, MonadIO m, IsX11Surface a, IsSurface b) => a -> b -> m ()
- x11SurfaceSetSkipPagerHint :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Bool -> m ()
- x11SurfaceSetSkipTaskbarHint :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Bool -> m ()
- x11SurfaceSetThemeVariant :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Text -> m ()
- x11SurfaceSetUrgencyHint :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Bool -> m ()
- x11SurfaceSetUserTime :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Word32 -> m ()
- x11SurfaceSetUtf8Property :: (HasCallStack, MonadIO m, IsX11Surface a) => a -> Text -> Maybe Text -> m ()
Exported types
newtype X11Surface Source #
Memory-managed wrapper type.
Instances
Eq X11Surface Source # | |
Defined in GI.GdkX11.Objects.X11Surface (==) :: X11Surface -> X11Surface -> Bool # (/=) :: X11Surface -> X11Surface -> Bool # | |
GObject X11Surface Source # | |
Defined in GI.GdkX11.Objects.X11Surface | |
ManagedPtrNewtype X11Surface Source # | |
Defined in GI.GdkX11.Objects.X11Surface | |
TypedObject X11Surface Source # | |
Defined in GI.GdkX11.Objects.X11Surface | |
HasParentTypes X11Surface Source # | |
Defined in GI.GdkX11.Objects.X11Surface | |
IsGValue (Maybe X11Surface) Source # | Convert |
Defined in GI.GdkX11.Objects.X11Surface gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe X11Surface -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe X11Surface) # | |
type ParentTypes X11Surface Source # | |
Defined in GI.GdkX11.Objects.X11Surface |
class (GObject o, IsDescendantOf X11Surface o) => IsX11Surface o Source #
Type class for types which can be safely cast to X11Surface
, for instance with toX11Surface
.
Instances
(GObject o, IsDescendantOf X11Surface o) => IsX11Surface o Source # | |
Defined in GI.GdkX11.Objects.X11Surface |
toX11Surface :: (MonadIO m, IsX11Surface o) => o -> m X11Surface Source #
Cast to X11Surface
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
beep, bindProperty, bindPropertyFull, createCairoContext, createGlContext, createSimilarSurface, createVulkanContext, destroy, forceFloating, freezeNotify, getv, hide, isDestroyed, isFloating, moveToCurrentDesktop, moveToDesktop, notify, notifyByPspec, queueRender, ref, refSink, requestLayout, runDispose, stealData, stealQdata, thawNotify, translateCoordinates, unref, watchClosure.
Getters
getCursor, getData, getDesktop, getDeviceCursor, getDevicePosition, getDisplay, getFrameClock, getGroup, getHeight, getMapped, getProperty, getQdata, getScaleFactor, getWidth, getXid.
Setters
setCursor, setData, setDataFull, setDeviceCursor, setFrameSyncEnabled, setGroup, setInputRegion, setOpaqueRegion, setProperty, setSkipPagerHint, setSkipTaskbarHint, setThemeVariant, setUrgencyHint, setUserTime, setUtf8Property.
getDesktop
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> m Word32 | Returns: the current workspace of |
Gets the number of the workspace surface
is on.
getGroup
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> m Surface | Returns: The group of this surface; |
Returns the group this surface belongs to.
getXid
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> m CULong | Returns: the ID of |
Returns the X resource (surface) belonging to a GdkSurface
.
lookupForDisplay
x11SurfaceLookupForDisplay Source #
:: (HasCallStack, MonadIO m, IsX11Display a) | |
=> a |
|
-> CULong |
|
-> m X11Surface | Returns: the |
Looks up the GdkSurface
that wraps the given native window handle.
moveToCurrentDesktop
x11SurfaceMoveToCurrentDesktop Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> m () |
Moves the surface to the correct workspace when running under a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification. Will not do anything if the surface is already on all workspaces.
moveToDesktop
x11SurfaceMoveToDesktop Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Word32 |
|
-> m () |
Moves the surface to the given workspace when running unde a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification.
setFrameSyncEnabled
x11SurfaceSetFrameSyncEnabled Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Bool |
|
-> m () |
This function can be used to disable frame synchronization for a surface. Normally frame synchronziation will be enabled or disabled based on whether the system has a compositor that supports frame synchronization, but if the surface is not directly managed by the window manager, then frame synchronziation may need to be disabled. This is the case for a surface embedded via the XEMBED protocol.
setGroup
:: (HasCallStack, MonadIO m, IsX11Surface a, IsSurface b) | |
=> a |
|
-> b |
|
-> m () |
Sets the group leader of surface
to be leader
.
See the ICCCM for details.
setSkipPagerHint
x11SurfaceSetSkipPagerHint Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets a hint on surface
that pagers should not
display it. See the EWMH for details.
setSkipTaskbarHint
x11SurfaceSetSkipTaskbarHint Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets a hint on surface
that taskbars should not
display it. See the EWMH for details.
setThemeVariant
x11SurfaceSetThemeVariant Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Text |
|
-> m () |
GTK applications can request a dark theme variant. In order to make other applications - namely window managers using GTK for themeing - aware of this choice, GTK uses this function to export the requested theme variant as _GTK_THEME_VARIANT property on toplevel surfaces.
Note that this property is automatically updated by GTK, so this function should only be used by applications which do not use GTK to create toplevel surfaces.
setUrgencyHint
x11SurfaceSetUrgencyHint Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets a hint on surface
that it needs user attention.
See the ICCCM for details.
setUserTime
x11SurfaceSetUserTime Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Word32 |
|
-> m () |
The application can use this call to update the _NET_WM_USER_TIME property on a toplevel surface. This property stores an Xserver time which represents the time of the last user input event received for this surface. This property may be used by the window manager to alter the focus, stacking, and/or placement behavior of surfaces when they are mapped depending on whether the new surface was created by a user action or is a "pop-up" surface activated by a timer or some other event.
Note that this property is automatically updated by GDK, so this function should only be used by applications which handle input events bypassing GDK.
setUtf8Property
x11SurfaceSetUtf8Property Source #
:: (HasCallStack, MonadIO m, IsX11Surface a) | |
=> a |
|
-> Text |
|
-> Maybe Text |
|
-> m () |
This function modifies or removes an arbitrary X11 window
property of type UTF8_STRING. If the given surface
is
not a toplevel surface, it is ignored.