diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-11-05 12:11:42 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-11-05 12:11:42 +0100 |
commit | a69c2209a58e2fb1354aae1c6e45cc5f555669cc (patch) | |
tree | 51daa7cf63cf83d440bae1b5ee0216f46d6e3d94 /src/osx/mod.rs | |
parent | 605bf39b78c0afc38f8d14b12605f9e3a27bac65 (diff) | |
parent | 0ce2fd00dd09bde26bb785232712c469320c50d0 (diff) | |
download | glutin-a69c2209a58e2fb1354aae1c6e45cc5f555669cc.tar.gz glutin-a69c2209a58e2fb1354aae1c6e45cc5f555669cc.zip |
Merge pull request #97 from DavidPartouche/cocoa_monitors
Retrieve the monitors and their info for osx
Diffstat (limited to 'src/osx/mod.rs')
-rw-r--r-- | src/osx/mod.rs | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs index 3e0d668..3dda56a 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -22,6 +22,9 @@ use {MouseInput, Pressed, Released, LeftMouseButton, RightMouseButton, MouseMove use events; +pub use self::monitor::{MonitorID, get_available_monitors, get_primary_monitor}; + +mod monitor; mod event; static mut shift_pressed: bool = false; @@ -43,26 +46,6 @@ impl Deref<Window> for HeadlessContext { } } -pub struct MonitorID; - -pub fn get_available_monitors() -> Vec<MonitorID> { - unimplemented!() -} - -pub fn get_primary_monitor() -> MonitorID { - unimplemented!() -} - -impl MonitorID { - pub fn get_name(&self) -> Option<String> { - unimplemented!() - } - - pub fn get_dimensions(&self) -> (uint, uint) { - unimplemented!() - } -} - #[cfg(feature = "window")] impl Window { pub fn new(builder: WindowBuilder) -> Result<Window, String> { |