diff options
author | Ryan Stewart <ryan@binsoftware.com> | 2015-03-16 13:52:58 -0700 |
---|---|---|
committer | Ryan Stewart <ryan@binsoftware.com> | 2015-03-16 14:11:49 -0700 |
commit | 9914d826b8c79f81c5ae4418b827da51d2bf4a4f (patch) | |
tree | 910d7b5c071ad7e3c044659ad792f26612b047e3 /src/win32 | |
parent | 0fa5e541e8e11eb0ee47f9679e3a1e755e7c975a (diff) | |
download | glutin-9914d826b8c79f81c5ae4418b827da51d2bf4a4f.tar.gz glutin-9914d826b8c79f81c5ae4418b827da51d2bf4a4f.zip |
expose platform-native monitor identifier
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/monitor.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/win32/monitor.rs b/src/win32/monitor.rs index fc9f20d..5fbd5dd 100644 --- a/src/win32/monitor.rs +++ b/src/win32/monitor.rs @@ -3,6 +3,8 @@ use user32; use std::collections::VecDeque; +use NativeMonitorID; + /// Win32 implementation of the main `MonitorID` object. pub struct MonitorID { /// The system name of the monitor. @@ -113,6 +115,11 @@ impl MonitorID { Some(self.readable_name.clone()) } + /// See the docs of the crate root file. + pub fn get_native_identifier(&self) -> NativeMonitorID { + NativeMonitorID::Name(self.readable_name.clone()) + } + /// See the docs if the crate root file. pub fn get_dimensions(&self) -> (u32, u32) { // TODO: retreive the dimensions every time this is called |