From 1e94d85d35eca41e2e54ed4880d62ec7473105f0 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sat, 11 Apr 2015 09:06:08 +0200 Subject: Adds get_pixel_format() to Window --- src/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index bf040b0..dee4ce5 100644 --- a/src/window.rs +++ b/src/window.rs @@ -8,6 +8,7 @@ use CursorState; use Event; use GlRequest; use MouseCursor; +use PixelFormat; use native_monitor::NativeMonitorId; use gl_common; @@ -388,6 +389,11 @@ impl Window { self.window.get_api() } + /// Returns the pixel format of this window. + pub fn get_pixel_format(&self) -> PixelFormat { + self.window.get_pixel_format() + } + /// Create a window proxy for this window, that can be freely /// passed to different threads. #[inline] -- cgit v1.2.3