Add iterators for events and WindowBuilder

This commit is contained in:
Tomaka17 2014-08-02 08:24:30 +02:00
parent 959613870c
commit 5dda167021
7 changed files with 104 additions and 148 deletions

View file

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