Trait glutin::platform::unix::EventLoopWindowTargetExtUnix [−][src]
pub trait EventLoopWindowTargetExtUnix { pub fn is_wayland(&self) -> bool; pub fn is_x11(&self) -> bool; pub fn wayland_display(&self) -> Option<*mut c_void>; }
Additional methods on EventLoopWindowTarget
that are specific to Unix.
Required methods
pub fn is_wayland(&self) -> bool
[src]
True if the EventLoopWindowTarget
uses Wayland.
pub fn is_x11(&self) -> bool
[src]
True if the EventLoopWindowTarget
uses X11.
pub fn wayland_display(&self) -> Option<*mut c_void>
[src]
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.