Trait winit::os::unix::WindowExt
[−]
[src]
pub trait WindowExt {
fn get_xlib_window(&self) -> Option<*mut c_void>;
fn get_xlib_display(&self) -> Option<*mut c_void>;
fn get_xlib_screen_id(&self) -> Option<*mut c_void>;
fn get_xlib_xconnection(&self) -> Option<Arc<XConnection>>;
fn send_xim_spot(&self, x: i16, y: i16);
fn get_xcb_connection(&self) -> Option<*mut c_void>;
fn get_wayland_surface(&self) -> Option<*mut c_void>;
fn get_wayland_display(&self) -> Option<*mut c_void>;
fn is_ready(&self) -> bool;
}Additional methods on Window that are specific to Unix.
Required Methods
fn get_xlib_window(&self) -> Option<*mut c_void>
Returns a pointer to the Window 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 glutin Window is destroyed.
fn get_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 glutin Window is destroyed.
fn get_xlib_screen_id(&self) -> Option<*mut c_void>
fn get_xlib_xconnection(&self) -> Option<Arc<XConnection>>
fn send_xim_spot(&self, x: i16, y: i16)
fn get_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 glutin Window is destroyed.
fn get_wayland_surface(&self) -> Option<*mut c_void>
Returns a pointer to the wl_surface object of wayland that is used by this window.
Returns None if the window doesn't use wayland (if it uses xlib for example).
The pointer will become invalid when the glutin Window is destroyed.
fn get_wayland_display(&self) -> Option<*mut c_void>
Returns a pointer to the wl_display object of wayland that is used by this window.
Returns None if the window doesn't use wayland (if it uses xlib for example).
The pointer will become invalid when the glutin Window is destroyed.
fn is_ready(&self) -> bool
Check if the window is ready for drawing
On wayland, drawing on a surface before the server has configured
it using a special event is illegal. As a result, you should wait
until this method returns true.
Once it starts returning true, it can never return false again.
If the window is X11-based, this will just always return true.
Implementors
impl WindowExt for Window