expose the platform-specific window handle (currently Win only)

This commit is contained in:
Ryan Stewart 2015-02-20 12:32:40 -08:00
parent 8e1d0f7a97
commit 25ce029cf6
5 changed files with 24 additions and 0 deletions

View file

@ -357,6 +357,14 @@ impl Window {
self.window.platform_display()
}
/// Gets the native platform specific window handle. This is
/// typically only required when integrating with other libraries
/// that need this information.
#[inline]
pub unsafe fn platform_window(&self) -> *mut libc::c_void {
self.window.platform_window()
}
/// Returns the API that is currently provided by this window.
///
/// - On Windows and OS/X, this always returns `OpenGl`.