mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Adds get_pixel_format() to Window
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user