mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
expose the platform-specific window handle (currently Win only)
This commit is contained in:
@@ -212,6 +212,10 @@ impl Window {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn platform_window(&self) -> *mut libc::c_void {
|
||||
self.window as *mut libc::c_void
|
||||
}
|
||||
|
||||
/// See the docs in the crate root file.
|
||||
pub fn get_api(&self) -> ::Api {
|
||||
::Api::OpenGl
|
||||
|
||||
Reference in New Issue
Block a user