# ferroui_wayland

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-wayland/

**module** · [`ferroui-wayland`](/docs/0.5.0/api/ferroui-wayland/) · v0.5.0

```rust
module ferroui_wayland
```

ferroui-wayland

The windowing platform of FerroUI for Wayland compositors: windows over
`xdg_toplevel`, popups, input, screens, cursors, the clipboard and drag
and drop over `wl_data_device`, input methods over `zwp_text_input_v3`,
the parent handle of a portal dialog over `xdg-foreign`, and render surfaces over shared memory
buffers and over EGL. `docs/porting/wayland-platform.md` has the
design and the stages.

A worker thread owns the connection to the compositor and renders; the UI
thread sends it commands and receives events as posted calls. The protocol
runs over `libwayland-client`, which is opened at run time together with
`libwayland-egl`, `libEGL` and `libxkbcommon`, so the crate builds without
them and an application that carries it starts on a system that has none.

The part that talks to a compositor exists on Linux only, as in the
reference. What is plain logic (the key tables, the states of a configure,
the geometry of a window, the frames of pointer events) exists on every
system, which is where its tests run during development.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/lib.rs#L1)

## Contents

- [`WaylandPlatformOptions`](/docs/0.5.0/api/ferroui-wayland/wayland_platform_options/struct-waylandplatformoptions/) — struct

## Availability

Extracted for `x86_64-unknown-linux-gnu`, `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
