diff options
author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2015-03-24 18:33:53 +1100 |
---|---|---|
committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2015-03-24 18:33:53 +1100 |
commit | 8a463f664302d90fbe31800ec25afadb1cf6d7c3 (patch) | |
tree | cc5b4782cf5204d57c60024fb6a9bb33bea65398 /src/win32 | |
parent | 8ad9d5fb4dfc373e69e5530961302b1990d898bf (diff) | |
parent | cf630ec0416d89bde9fcc6d8bd3674a7c55ac1a5 (diff) | |
download | glutin-8a463f664302d90fbe31800ec25afadb1cf6d7c3.tar.gz glutin-8a463f664302d90fbe31800ec25afadb1cf6d7c3.zip |
Merge pull request #316 from binsoftware/cocoa-fixes
Cocoa fixes: memory leaks, monitor handling, is_current()
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..819aa7f 100644 --- a/src/win32/monitor.rs +++ b/src/win32/monitor.rs @@ -3,6 +3,8 @@ use user32; use std::collections::VecDeque; +use native_monitor::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 |