Retrieve the monitors and their info for osx
This commit is contained in:
parent
605bf39b78
commit
9dd592600a
4 changed files with 57 additions and 20 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue