pub trait WindowExtX11 {
    // Required methods
    fn xlib_window(&self) -> Option<c_ulong>;
    fn xlib_display(&self) -> Option<*mut c_void>;
    fn xlib_screen_id(&self) -> Option<c_int>;
    fn xcb_connection(&self) -> Option<*mut c_void>;
}
Expand description

Additional methods on Window that are specific to X11.

Required Methods§

source

fn xlib_window(&self) -> Option<c_ulong>

Returns the ID of the Window xlib object that is used by this window.

Returns None if the window doesn’t use xlib (if it uses wayland for example).

source

fn xlib_display(&self) -> Option<*mut c_void>

Returns a pointer to the Display object of xlib that is used by this window.

Returns None if the window doesn’t use xlib (if it uses wayland for example).

The pointer will become invalid when the Window is destroyed.

source

fn xlib_screen_id(&self) -> Option<c_int>

source

fn xcb_connection(&self) -> Option<*mut c_void>

This function returns the underlying xcb_connection_t of an xlib Display.

Returns None if the window doesn’t use xlib (if it uses wayland for example).

The pointer will become invalid when the Window is destroyed.

Implementors§