Add API for monitors

This commit is contained in:
Tomaka17 2014-07-31 09:56:53 +02:00
parent 8911e162ce
commit db8955a9d8
4 changed files with 95 additions and 0 deletions

View file

@ -16,6 +16,14 @@ pub struct Window {
pub struct MonitorID(uint);
pub fn get_available_monitors() -> Vec<MonitorID> {
unimplemented!()
}
pub fn get_primary_monitor() -> MonitorID {
unimplemented!()
}
impl Window {
pub fn new(dimensions: Option<(uint, uint)>, title: &str, hints: &Hints, _: Option<MonitorID>)
-> Result<Window, String>