Trait WindowExtWayland
Source pub trait WindowExtWayland: WindowPrivate {
// 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.
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.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.