Trait tao::platform::unix::EventLoopWindowTargetExtUnix

source ·
pub trait EventLoopWindowTargetExtUnix {
    // Required methods
    fn is_wayland(&self) -> bool;
    fn is_x11(&self) -> bool;
    fn xlib_xconnection(&self) -> Option<Arc<XConnection>>;
    fn gtk_app(&self) -> &Application;
}
Expand description

Additional methods on EventLoopWindowTarget that are specific to Unix.

Required Methods§

source

fn is_wayland(&self) -> bool

True if the EventLoopWindowTarget uses Wayland.

source

fn is_x11(&self) -> bool

True if the EventLoopWindowTarget uses X11.

source

fn xlib_xconnection(&self) -> Option<Arc<XConnection>>

source

fn gtk_app(&self) -> &Application

Returns the gtk application for this event loop.

Implementors§