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 X11Window = X11Window (ManagedPtr X11Window)
- class (GObject o, IsDescendantOf X11Window o) => IsX11Window o
- toX11Window :: (MonadIO m, IsX11Window o) => o -> m X11Window
- x11WindowForeignNewForDisplay :: (HasCallStack, MonadIO m, IsX11Display a) => a -> CULong -> m X11Window
- x11WindowGetDesktop :: (HasCallStack, MonadIO m, IsX11Window a) => a -> m Word32
- x11WindowGetXid :: (HasCallStack, MonadIO m, IsX11Window a) => a -> m CULong
- x11WindowLookupForDisplay :: (HasCallStack, MonadIO m, IsX11Display a) => a -> CULong -> m X11Window
- x11WindowMoveToCurrentDesktop :: (HasCallStack, MonadIO m, IsX11Window a) => a -> m ()
- x11WindowMoveToDesktop :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Word32 -> m ()
- x11WindowSetFrameExtents :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m ()
- x11WindowSetFrameSyncEnabled :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Bool -> m ()
- x11WindowSetHideTitlebarWhenMaximized :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Bool -> m ()
- x11WindowSetThemeVariant :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Text -> m ()
- x11WindowSetUserTime :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Word32 -> m ()
- x11WindowSetUtf8Property :: (HasCallStack, MonadIO m, IsX11Window a) => a -> Text -> Maybe Text -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq X11Window Source # | |
GObject X11Window Source # | |
Defined in GI.GdkX11.Objects.X11Window | |
ManagedPtrNewtype X11Window Source # | |
Defined in GI.GdkX11.Objects.X11Window | |
TypedObject X11Window Source # | |
Defined in GI.GdkX11.Objects.X11Window | |
HasParentTypes X11Window Source # | |
Defined in GI.GdkX11.Objects.X11Window | |
IsGValue (Maybe X11Window) Source # | Convert |
Defined in GI.GdkX11.Objects.X11Window | |
type ParentTypes X11Window Source # | |
Defined in GI.GdkX11.Objects.X11Window |
class (GObject o, IsDescendantOf X11Window o) => IsX11Window o Source #
Type class for types which can be safely cast to X11Window
, for instance with toX11Window
.
Instances
(GObject o, IsDescendantOf X11Window o) => IsX11Window o Source # | |
Defined in GI.GdkX11.Objects.X11Window |
toX11Window :: (MonadIO m, IsX11Window o) => o -> m X11Window Source #
Methods
Click to display all available methods, including inherited ones
Methods
beep, beginDrawFrame, beginMoveDrag, beginMoveDragForDevice, beginPaintRect, beginPaintRegion, beginResizeDrag, beginResizeDragForDevice, bindProperty, bindPropertyFull, configureFinished, coordsFromParent, coordsToParent, createGlContext, createSimilarImageSurface, createSimilarSurface, deiconify, destroy, destroyNotify, enableSynchronizedConfigure, endDrawFrame, endPaint, ensureNative, flush, focus, forceFloating, freezeNotify, freezeToplevelUpdatesLibgtkOnly, freezeUpdates, fullscreen, fullscreenOnMonitor, geometryChanged, getv, hasNative, hide, iconify, inputShapeCombineRegion, invalidateMaybeRecurse, invalidateRect, invalidateRegion, isDestroyed, isFloating, isInputOnly, isShaped, isViewable, isVisible, lower, markPaintFromClip, maximize, mergeChildInputShapes, mergeChildShapes, move, moveRegion, moveResize, moveToCurrentDesktop, moveToDesktop, moveToRect, notify, notifyByPspec, peekChildren, processUpdates, raise, ref, refSink, registerDnd, reparent, resize, restack, runDispose, scroll, shapeCombineRegion, show, showUnraised, showWindowMenu, stealData, stealQdata, stick, thawNotify, thawToplevelUpdatesLibgtkOnly, thawUpdates, unfullscreen, unmaximize, unref, unstick, watchClosure, withdraw.
Getters
getAcceptFocus, getBackgroundPattern, getChildren, getChildrenWithUserData, getClipRegion, getComposited, getCursor, getData, getDecorations, getDesktop, getDeviceCursor, getDeviceEvents, getDevicePosition, getDevicePositionDouble, getDisplay, getDragProtocol, getEffectiveParent, getEffectiveToplevel, getEventCompression, getEvents, getFocusOnMap, getFrameClock, getFrameExtents, getFullscreenMode, getGeometry, getGroup, getHeight, getModalHint, getOrigin, getParent, getPassThrough, getPointer, getPosition, getProperty, getQdata, getRootCoords, getRootOrigin, getScaleFactor, getScreen, getSourceEvents, getState, getSupportMultidevice, getToplevel, getTypeHint, getUpdateArea, getUserData, getVisibleRegion, getVisual, getWidth, getWindowType, getXid.
Setters
setAcceptFocus, setBackground, setBackgroundPattern, setBackgroundRgba, setChildInputShapes, setChildShapes, setComposited, setCursor, setData, setDataFull, setDecorations, setDeviceCursor, setDeviceEvents, setEventCompression, setEvents, setFocusOnMap, setFrameExtents, setFrameSyncEnabled, setFullscreenMode, setFunctions, setGeometryHints, setGroup, setHideTitlebarWhenMaximized, setIconList, setIconName, setKeepAbove, setKeepBelow, setModalHint, setOpacity, setOpaqueRegion, setOverrideRedirect, setPassThrough, setProperty, setRole, setShadowWidth, setSkipPagerHint, setSkipTaskbarHint, setSourceEvents, setStartupId, setStaticGravities, setSupportMultidevice, setThemeVariant, setTitle, setTransientFor, setTypeHint, setUrgencyHint, setUserData, setUserTime, setUtf8Property.
foreignNewForDisplay
x11WindowForeignNewForDisplay Source #
:: (HasCallStack, MonadIO m, IsX11Display a) | |
=> a |
|
-> CULong |
|
-> m X11Window | Returns: a |
Wraps a native window in a Window
. The function will try to
look up the window using x11WindowLookupForDisplay
first.
If it does not find it there, it will create a new window.
This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing
Window
is returned.
Since: 2.24
getDesktop
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> m Word32 | Returns: the current workspace of |
Gets the number of the workspace window
is on.
Since: 3.10
getXid
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> m CULong | Returns: the ID of |
Returns the X resource (window) belonging to a Window
.
lookupForDisplay
x11WindowLookupForDisplay Source #
:: (HasCallStack, MonadIO m, IsX11Display a) | |
=> a |
|
-> CULong |
|
-> m X11Window | Returns: the |
Looks up the Window
that wraps the given native window handle.
Since: 2.24
moveToCurrentDesktop
x11WindowMoveToCurrentDesktop Source #
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> m () |
Moves the window 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 window is already on all workspaces.
Since: 2.8
moveToDesktop
x11WindowMoveToDesktop Source #
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> Word32 |
|
-> m () |
Moves the window to the given workspace when running unde a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification.
Since: 3.10
setFrameExtents
x11WindowSetFrameExtents Source #
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Deprecated: (Since version 3.12)Use windowSetShadowWidth
instead.
This is the same as windowSetShadowWidth
but it only works
on GdkX11Window.
Since: 3.10
setFrameSyncEnabled
x11WindowSetFrameSyncEnabled Source #
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> Bool |
|
-> m () |
This function can be used to disable frame synchronization for a window. Normally frame synchronziation will be enabled or disabled based on whether the system has a compositor that supports frame synchronization, but if the window is not directly managed by the window manager, then frame synchronziation may need to be disabled. This is the case for a window embedded via the XEMBED protocol.
Since: 3.8
setHideTitlebarWhenMaximized
x11WindowSetHideTitlebarWhenMaximized Source #
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> Bool |
|
-> m () |
Set a hint for the window manager, requesting that the titlebar should be hidden when the window is maximized.
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 windows.
Since: 3.4
setThemeVariant
x11WindowSetThemeVariant Source #
:: (HasCallStack, MonadIO m, IsX11Window 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 windows.
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 windows.
Since: 3.2
setUserTime
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> Word32 |
|
-> m () |
The application can use this call to update the _NET_WM_USER_TIME property on a toplevel window. This property stores an Xserver time which represents the time of the last user input event received for this window. This property may be used by the window manager to alter the focus, stacking, and/or placement behavior of windows when they are mapped depending on whether the new window was created by a user action or is a "pop-up" window 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.
Since: 2.6
setUtf8Property
x11WindowSetUtf8Property Source #
:: (HasCallStack, MonadIO m, IsX11Window a) | |
=> a |
|
-> Text |
|
-> Maybe Text |
|
-> m () |
This function modifies or removes an arbitrary X11 window
property of type UTF8_STRING. If the given window
is
not a toplevel window, it is ignored.
Since: 3.4