wayland-protocols 0.13.0

Generated API for the officials wayland protocol extensions
Documentation
#![cfg_attr(rustfmt, rustfmt_skip)]

pub mod presentation_time {
    //! Presentation time protocol
    //!
    //! Allows precise feedback on presentation timing for example for smooth video playback.

    wayland_protocol!(
        "presentation-time",
        [
            (wl_surface, wl_surface_interface),
            (wl_output, wl_output_interface)
        ]
    );
}

pub mod xdg_shell {
    //! XDG Shell protocol
    //!
    //! Exposes the `xdg_wm_base` global, which deprecates and replace `wl_shell`.

    wayland_protocol!(
        "xdg-shell",
        [
            (wl_seat, wl_seat_interface),
            (wl_surface, wl_surface_interface),
            (wl_output, wl_output_interface)
        ]
    );
}

pub mod viewporter {
    //! Viewporter protocol
    //!
    //! Gives the capability to scale and crop surfaces, decorrelating the surface dimensions from
    //! the size of the buffer.

    wayland_protocol!(
        "viewporter",
        [
            (wl_surface, wl_surface_interface)
        ]
    );
}