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 |
- Methods
- autoExclusiveZoneEnable
- autoExclusiveZoneIsEnabled
- getAnchor
- getExclusiveZone
- getKeyboardInteractivity
- getKeyboardMode
- getLayer
- getMajorVersion
- getMargin
- getMicroVersion
- getMinorVersion
- getNamespace
- getProtocolVersion
- getZwlrLayerSurfaceV1
- initForWindow
- isLayerWindow
- isSupported
- setAnchor
- setExclusiveZone
- setKeyboardInteractivity
- setKeyboardMode
- setLayer
- setMargin
- setMonitor
- setNamespace
Synopsis
- autoExclusiveZoneEnable :: (HasCallStack, MonadIO m, IsWindow a) => a -> m ()
- autoExclusiveZoneIsEnabled :: (HasCallStack, MonadIO m, IsWindow a) => a -> m Bool
- getAnchor :: (HasCallStack, MonadIO m, IsWindow a) => a -> Edge -> m Bool
- getExclusiveZone :: (HasCallStack, MonadIO m, IsWindow a) => a -> m Int32
- getKeyboardInteractivity :: (HasCallStack, MonadIO m, IsWindow a) => a -> m Bool
- getKeyboardMode :: (HasCallStack, MonadIO m, IsWindow a) => a -> m KeyboardMode
- getLayer :: (HasCallStack, MonadIO m, IsWindow a) => a -> m Layer
- getMajorVersion :: (HasCallStack, MonadIO m) => m Word32
- getMargin :: (HasCallStack, MonadIO m, IsWindow a) => a -> Edge -> m Int32
- getMicroVersion :: (HasCallStack, MonadIO m) => m Word32
- getMinorVersion :: (HasCallStack, MonadIO m) => m Word32
- getNamespace :: (HasCallStack, MonadIO m, IsWindow a) => a -> m Text
- getProtocolVersion :: (HasCallStack, MonadIO m) => m Word32
- getZwlrLayerSurfaceV1 :: (HasCallStack, MonadIO m, IsWindow a) => a -> m (Ptr ())
- initForWindow :: (HasCallStack, MonadIO m, IsWindow a) => a -> m ()
- isLayerWindow :: (HasCallStack, MonadIO m, IsWindow a) => a -> m Bool
- isSupported :: (HasCallStack, MonadIO m) => m Bool
- setAnchor :: (HasCallStack, MonadIO m, IsWindow a) => a -> Edge -> Bool -> m ()
- setExclusiveZone :: (HasCallStack, MonadIO m, IsWindow a) => a -> Int32 -> m ()
- setKeyboardInteractivity :: (HasCallStack, MonadIO m, IsWindow a) => a -> Bool -> m ()
- setKeyboardMode :: (HasCallStack, MonadIO m, IsWindow a) => a -> KeyboardMode -> m ()
- setLayer :: (HasCallStack, MonadIO m, IsWindow a) => a -> Layer -> m ()
- setMargin :: (HasCallStack, MonadIO m, IsWindow a) => a -> Edge -> Int32 -> m ()
- setMonitor :: (HasCallStack, MonadIO m, IsWindow a, IsMonitor b) => a -> b -> m ()
- setNamespace :: (HasCallStack, MonadIO m, IsWindow a) => a -> Text -> m ()
Methods
autoExclusiveZoneEnable
autoExclusiveZoneEnable Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m () |
When auto exclusive zone is enabled, exclusive zone is automatically set to the
size of the window
+ relevant margin. To disable auto exclusive zone, just set the
exclusive zone to 0 or any other fixed value.
NOTE: you can control the auto exclusive zone by changing the margin on the non-anchored edge. This behavior is specific to gtk-layer-shell and not part of the underlying protocol
autoExclusiveZoneIsEnabled
autoExclusiveZoneIsEnabled Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m Bool | Returns: if the surface's exclusive zone is set to change based on the window's size |
No description available in the introspection data.
Since: 0.5
getAnchor
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Edge | |
-> m Bool | Returns: if this surface is anchored to the given edge. |
No description available in the introspection data.
Since: 0.5
getExclusiveZone
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m Int32 | Returns: the window's exclusive zone (which may have been set manually or automatically) |
No description available in the introspection data.
Since: 0.5
getKeyboardInteractivity
getKeyboardInteractivity Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m Bool | Returns: if keybaord interacitvity is enabled |
Deprecated: (Since version 0.6)Use gtk_layer_get_keyboard_mode () instead.
No description available in the introspection data.
Since: 0.5
getKeyboardMode
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m KeyboardMode | Returns: current keyboard interactivity mode for |
No description available in the introspection data.
Since: 0.6
getLayer
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m Layer | Returns: the current layer. |
No description available in the introspection data.
Since: 0.5
getMajorVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the major version number of the GTK Layer Shell library |
No description available in the introspection data.
Since: 0.4
getMargin
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Edge | |
-> m Int32 | Returns: the size of the margin for the given edge. |
No description available in the introspection data.
Since: 0.5
getMicroVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the micro/patch version number of the GTK Layer Shell library |
No description available in the introspection data.
Since: 0.4
getMinorVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the minor version number of the GTK Layer Shell library |
No description available in the introspection data.
Since: 0.4
getNamespace
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m Text | Returns: a reference to the namespace property. If namespace is unset, returns the
default namespace ("gtk-layer-shell"). Never returns |
NOTE: this function does not return ownership of the string. Do not free the returned string. Future calls into the library may invalidate the returned string.
Since: 0.5
getProtocolVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: version of the zwlr_layer_shell_v1 protocol supported by the compositor or 0 if the protocol is not supported. |
May block for a Wayland roundtrip the first time it's called.
Since: 0.6
getZwlrLayerSurfaceV1
getZwlrLayerSurfaceV1 Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m (Ptr ()) | Returns: The underlying layer surface Wayland object |
No description available in the introspection data.
Since: 0.4
initForWindow
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m () |
Set the window
up to be a layer surface once it is mapped. this must be called before
the window
is realized.
isLayerWindow
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> m Bool | Returns: if |
No description available in the introspection data.
Since: 0.5
isSupported
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
May block for a Wayland roundtrip the first time it's called.
Since: 0.5
setAnchor
setExclusiveZone
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Int32 |
|
-> m () |
Has no effect unless the surface is anchored to an edge. Requests that the compositor does not place other surfaces within the given exclusive zone of the anchored edge. For example, a panel can request to not be covered by maximized windows. See wlr-layer-shell-unstable-v1.xml for details.
Default is 0
setKeyboardInteractivity
setKeyboardInteractivity Source #
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Bool | |
-> m () |
Deprecated: (Since version 0.6)Use gtk_layer_set_keyboard_mode () instead.
Whether the window
should receive keyboard events from the compositor.
Default is False
setKeyboardMode
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> KeyboardMode |
|
-> m () |
Sets if/when window
should receive keyboard events from the compositor, see
GtkLayerShellKeyboardMode for details.
Default is GTK_LAYER_SHELL_KEYBOARD_MODE_NONE
Since: 0.6
setLayer
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Layer |
|
-> m () |
Set the "layer" on which the surface appears (controls if it is over top of or below other surfaces). The layer may
be changed on-the-fly in the current version of the layer shell protocol, but on compositors that only support an
older version the window
is remapped so the change can take effect.
Default is GTK_LAYER_SHELL_LAYER_TOP
setMargin
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Edge |
|
-> Int32 |
|
-> m () |
Set the margin for a specific edge
of a window
. Effects both surface's distance from
the edge and its exclusive zone size (if auto exclusive zone enabled).
Default is 0 for each Edge
setMonitor
:: (HasCallStack, MonadIO m, IsWindow a, IsMonitor b) | |
=> a |
|
-> b |
|
-> m () |
setNamespace
:: (HasCallStack, MonadIO m, IsWindow a) | |
=> a |
|
-> Text |
|
-> m () |
Set the "namespace" of the surface.
No one is quite sure what this is for, but it probably should be something generic
("panel", "osk", etc). The nameSpace
string is copied, and caller maintians
ownership of original. If the window is currently mapped, it will get remapped so
the change can take effect.
Default is "gtk-layer-shell" (which will be used if set to Nothing
)