pub trait WindowExtWayland {
    // Required methods
    fn wayland_surface(&self) -> Option<*mut c_void>;
    fn wayland_display(&self) -> Option<*mut c_void>;
}
Expand description

Additional methods on Window that are specific to Wayland.

Required Methods§

source

fn wayland_surface(&self) -> Option<*mut c_void>

Returns a pointer to the wl_surface object of wayland that is used by this window.

Returns None if the window doesn’t use wayland (if it uses xlib for example).

The pointer will become invalid when the Window is destroyed.

source

fn wayland_display(&self) -> Option<*mut c_void>

Returns a pointer to the wl_display object of wayland that is used by this window.

Returns None if the window doesn’t use wayland (if it uses xlib for example).

The pointer will become invalid when the Window is destroyed.

Implementors§