Trait glutin::platform::unix::EventLoopExtUnix [−][src]
pub trait EventLoopExtUnix { pub fn new_x11() -> Result<Self, XNotSupported>; pub fn new_wayland() -> Self; pub fn new_any_thread() -> Self; pub fn new_x11_any_thread() -> Result<Self, XNotSupported>; pub fn new_wayland_any_thread() -> Self; }
Additional methods on EventLoop
that are specific to Unix.
Required methods
pub fn new_x11() -> Result<Self, XNotSupported>
[src]
Builds a new EventLoop
that is forced to use X11.
Panics
If called outside the main thread. To initialize an X11 event loop outside
the main thread, use new_x11_any_thread
.
pub fn new_wayland() -> Self
[src]
Builds a new EventLoop
that is forced to use Wayland.
Panics
If called outside the main thread. To initialize a Wayland event loop outside
the main thread, use new_wayland_any_thread
.
pub fn new_any_thread() -> Self
[src]
Builds a new EventLoop
on any thread.
This method bypasses the cross-platform compatibility requirement
that EventLoop
be created on the main thread.
pub fn new_x11_any_thread() -> Result<Self, XNotSupported>
[src]
Builds a new X11 EventLoop
on any thread.
This method bypasses the cross-platform compatibility requirement
that EventLoop
be created on the main thread.
pub fn new_wayland_any_thread() -> Self
[src]
Builds a new Wayland EventLoop
on any thread.
This method bypasses the cross-platform compatibility requirement
that EventLoop
be created on the main thread.