Trait glutin::platform::unix::WindowExtUnix [−][src]
pub trait WindowExtUnix { pub fn xlib_window(&self) -> Option<u64>; pub fn xlib_display(&self) -> Option<*mut c_void>; pub fn xlib_screen_id(&self) -> Option<i32>; pub fn xcb_connection(&self) -> Option<*mut c_void>; pub fn wayland_surface(&self) -> Option<*mut c_void>; pub fn wayland_display(&self) -> Option<*mut c_void>; pub fn set_wayland_theme<T>(&self, theme: T)
where
T: Theme; pub fn is_ready(&self) -> bool; }
Additional methods on Window
that are specific to Unix.
Required methods
pub fn xlib_window(&self) -> Option<u64>
[src]
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).
pub fn xlib_display(&self) -> Option<*mut c_void>
[src]
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.
pub fn xlib_screen_id(&self) -> Option<i32>
[src]
pub fn xcb_connection(&self) -> Option<*mut c_void>
[src]
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.
pub fn wayland_surface(&self) -> Option<*mut c_void>
[src]
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.
pub fn wayland_display(&self) -> Option<*mut c_void>
[src]
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.
pub fn set_wayland_theme<T>(&self, theme: T) where
T: Theme,
[src]
T: Theme,
Sets the color theme of the client side window decorations on wayland
pub fn is_ready(&self) -> bool
[src]
Check if the window is ready for drawing
It is a remnant of a previous implementation detail for the wayland backend, and is no longer relevant.
Always return true.
Implementors
impl WindowExtUnix for Window
[src]
pub fn xlib_window(&self) -> Option<u64>
[src]
pub fn xlib_display(&self) -> Option<*mut c_void>
[src]
pub fn xlib_screen_id(&self) -> Option<i32>
[src]
pub fn xcb_connection(&self) -> Option<*mut c_void>
[src]
pub fn wayland_surface(&self) -> Option<*mut c_void>
[src]
pub fn wayland_display(&self) -> Option<*mut c_void>
[src]
pub fn set_wayland_theme<T>(&self, theme: T) where
T: Theme,
[src]
T: Theme,