Prepared winit for glutin porting

This commit is contained in:
Andrey Lesnikov 2016-10-19 19:11:02 +03:00
parent 1f170264ed
commit f5daac771e
4 changed files with 33 additions and 9 deletions

View file

@ -717,6 +717,16 @@ impl Window {
self.x.display.display as *mut libc::c_void
}
#[inline]
pub fn get_xlib_screen_id(&self) -> *mut libc::c_void {
self.x.screen_id as *mut libc::c_void
}
#[inline]
pub fn get_xlib_xconnection(&self) -> Arc<XConnection> {
self.x.display.clone()
}
#[inline]
pub fn platform_display(&self) -> *mut libc::c_void {
self.x.display.display as *mut libc::c_void