Module wayland
Expand description
§Wayland
Note: Windows don’t appear on Wayland until you draw/present to them.
By default, Winit loads system libraries using dlopen. This can be
disabled by disabling the "wayland-dlopen" cargo feature.
§Client-side decorations
Winit provides client-side decorations by default, but the behaviour can be controlled with the following feature flags:
wayland-csd-adwaita(default).wayland-csd-adwaita-crossfont.wayland-csd-adwaita-notitle.
Modules§
Structs§
- Anchor
- Client
Buffer - One buffer: destroyed when dropped.
- ImeContent
Type - A field’s
zwp_text_input_v3content type: thecontent_hintbits and thecontent_purposevalue, as the protocol defines them. Unknown hint bits are dropped and an unknown purpose is sent asnormal. - Layer
Surface Attributes - A window that places itself on a layer of an output instead of being a toplevel the desktop places.
Enums§
- Client
Buffer Source - Where a buffer’s single plane is.
- Drag
Data - What one mime type of an outgoing drag carries.
- Keyboard
Interactivity - How a surface takes the keyboard: not at all, when the pointer is over it, or all of it.
- Layer
- The layer a surface is placed on. Higher layers are drawn over the windows, and over the lower layers.
- Theme
- The theme variant to use.
- Wayland
Presentation - Outcome of the exact surface commit observed through
wp_presentation. Times use the clock advertised by the compositor, never callback receipt time.
Traits§
- Active
Event Loop ExtWayland - Additional methods on
ActiveEventLoopthat are specific to Wayland. - Event
Loop Builder ExtWayland - Additional methods on
EventLoopBuilderthat are specific to Wayland. - Event
Loop ExtWayland - Additional methods on
EventLoopthat are specific to Wayland. - KeyEvent
ExtWayland - Content-free identity of a key delivered by the Wayland compositor. The timestamp is the protocol’s wrapping millisecond clock, not an assumed Unix/monotonic epoch. Repeats and synthesized keys have no stamp.
- Monitor
Handle ExtWayland - Additional methods on
MonitorHandlethat are specific to Wayland. - Window
Attributes ExtWayland - Additional methods on
WindowAttributesthat are specific to Wayland. - Window
ExtWayland - Additional methods on
Windowthat are specific to Wayland.
Functions§
- delivered_
input_ serial - The compositor’s serial of the newest input event (a key, a pointer button, a touch going
down or up) this process’s event loop has handed the application, or that it dropped for
having no window: every input the compositor sent before it has been handed over too. Input
that reaches the application by another way (a desktop’s bar telling it a button of its
own was pressed) names the serial it came after, and waits until this one reaches it.
Noneuntil the first.
Type Aliases§
- Wayland
Presentation Observer - One-shot observation of the next surface commit. No pixels or input text.