Crate gtk_layer_shell
source · [−]Modules
Enums
GTK_LAYER_SHELL_KEYBOARD_MODE_NONE: This window should not receive keyboard events.
GTK_LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE: This window should have exclusive focus if it is on the top or overlay layer.
GTK_LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND: The user should be able to focus and unfocues this window in an implementation
defined way. Not supported for protocol version < 4.
GTK_LAYER_SHELL_KEYBOARD_MODE_ENTRY_NUMBER: Should not be used except to get the number of entries. (NOTE: may change in
future releases as more entries are added)
Functions
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.window
exclusive_zone
v0_5
window
Set the
window
up to be a layer surface once it is mapped. this must be called before
the window
is realized.is_anchor
v0_5
window
Deprecated since 0.6
is_layer_window
v0_5
window
is_supported
v0_5
May block for a Wayland roundtrip the first time it’s called.
keyboard_mode
v0_6
window
layer
v0_5
window
major_version
v0_4
Returns
margin
v0_5
window
micro_version
v0_4
Returns
minor_version
v0_4
Returns
monitor
v0_5
NOTE: To get which monitor the surface is actually on, use
gdk_display_get_monitor_at_window()
.namespace
v0_5
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.
protocol_version
v0_6
May block for a Wayland roundtrip the first time it’s called.
Set whether
window
should be anchored to edge
.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.
Whether the
window
should receive keyboard events from the compositor.Sets if/when
window
should receive keyboard events from the compositor, see
GtkLayerShellKeyboardMode for details.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.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).Set the output for the window to be placed on, or
None
to let the compositor choose.
If the window is currently mapped, it will get remapped so the change can take effect.Set the “namespace” of the surface.
window