wayland: WindowExt implementations.
This commit is contained in:
parent
14323656b6
commit
c49c6bcd6e
2 changed files with 42 additions and 0 deletions
|
|
@ -286,6 +286,18 @@ impl Window {
|
|||
Err(())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_wayland_display(&self) -> *mut libc::c_void {
|
||||
WAYLAND_CONTEXT.as_ref().unwrap() // context exists if window was created
|
||||
.display_ptr() as *mut libc::c_void
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_wayland_surface(&self) -> *mut libc::c_void {
|
||||
use wayland_client::Proxy;
|
||||
self.surface.ptr() as *mut libc::c_void
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn platform_display(&self) -> *mut libc::c_void {
|
||||
WAYLAND_CONTEXT.as_ref().unwrap() // context exists if window was created
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue