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 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 get_wayland_client_surface(&self) -> Option<&WlSurface>;
    fn get_wayland_client_display(&self) -> Option<&WlDisplay>;
}

Additional methods on Window that are specific to Unix.

Required Methods

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.

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.

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.

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.

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.

Returns a reference to the WlSurface object of wayland that is used by this window.

For use with the wayland-client crate.

This function is not part of winit's public API.

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

Returns a pointer to the WlDisplay object of wayland that is used by this window.

For use with the wayland-client crate.

This function is not part of winit's public API.

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

Implementors