Expand description
§Waybackend
Welcome. Waybackend is a low-level wayland backend that allows you to do wayland stuff without
wrapping everything in Arcs.
Start by calling waybackend::connect.
Re-exports§
Modules§
- objman
- shm
- Utilities to use shared memory with memory mapping.
- types
- This module contains the definitions of all wayland types that can go through the wire.
- wire
- This module contains structs for communicating through the wayland file descriptor
Macros§
- bind_
globals - This macro can help you bind all the globals you want to their equivalent
enum. - match_
enum_ with_ interface - This macro can help you dispatch all the received wayland matches through the appropriate protocol event handler.
Structs§
- Global
- A wayland global. Use this to bind the interfaces you want
- Waybackend
- This struct holds the message builder and the wayland file descriptor
Enums§
Constants§
- WL_
DISPLAY - The wayland display global object always has the same id: 1
Functions§
- connect
- Mostly copy-pasted from
wayland-client.rs - connect_
to - This behave the same as the
connectfunction, but you must provide the wayland socket file descriptor and socket address yourself manually. - roundtrip
- Does a roundtrip to gather all the globals during program initialization