pub trait WindowExtWayland {
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.
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.
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.