Draft for monitor API

This commit is contained in:
Tomaka17 2014-07-27 20:38:27 +02:00
parent 6133e17b9a
commit d824fb94db
5 changed files with 12 additions and 8 deletions

View file

@ -1,4 +1,4 @@
use {Event, Hints};
use {Event, Hints, MonitorID};
use libc;
use std::{mem, ptr};
use std::sync::atomics::AtomicBool;
@ -14,7 +14,7 @@ pub struct Window {
}
impl Window {
pub fn new(dimensions: Option<(uint, uint)>, title: &str, hints: &Hints)
pub fn new(dimensions: Option<(uint, uint)>, title: &str, hints: &Hints, _: Option<MonitorID>)
-> Result<Window, String>
{
// calling XOpenDisplay