aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorRyan Stewart <ryan@binsoftware.com>2015-02-20 12:32:40 -0800
committerRyan Stewart <ryan@binsoftware.com>2015-02-20 12:33:25 -0800
commit25ce029cf67993a7bc8dfc3de0ccd4ab3c9f349b (patch)
tree645cd2d15272d61227fed75adfba294caeaac76b /src/window.rs
parent8e1d0f7a976078ef7031ff84e077f00655d4e061 (diff)
downloadglutin-25ce029cf67993a7bc8dfc3de0ccd4ab3c9f349b.tar.gz
glutin-25ce029cf67993a7bc8dfc3de0ccd4ab3c9f349b.zip
expose the platform-specific window handle (currently Win only)
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs
index c916b27..56f3410 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -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`.