Add iterators for events and WindowBuilder
This commit is contained in:
parent
959613870c
commit
5dda167021
7 changed files with 104 additions and 148 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue