FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_wayland

    module · ferroui-wayland · v0.5.0

    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

    Contents

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.