Trait winit::platform::unix::EventLoopWindowTargetExtUnix [−][src]
pub trait EventLoopWindowTargetExtUnix {
fn is_wayland(&self) -> bool;
fn is_x11(&self) -> bool;
fn wayland_display(&self) -> Option<*mut c_void>;
}Expand description
Additional methods on EventLoopWindowTarget that are specific to Unix.
Required methods
fn is_wayland(&self) -> bool[src]
Expand description
True if the EventLoopWindowTarget uses Wayland.
fn is_x11(&self) -> bool[src]
Expand description
True if the EventLoopWindowTarget uses X11.
fn wayland_display(&self) -> Option<*mut c_void>[src]
Expand description
Returns a pointer to the wl_display object of wayland that is used by this
EventLoopWindowTarget.
Returns None if the EventLoop doesn’t use wayland (if it uses xlib for example).
The pointer will become invalid when the winit EventLoop is destroyed.
Implementors
impl<T> EventLoopWindowTargetExtUnix for EventLoopWindowTarget<T>[src]
impl<T> EventLoopWindowTargetExtUnix for EventLoopWindowTarget<T>[src]