Now passing WindowBuilder to implwin::Window::new

This commit is contained in:
Tomaka17 2014-08-02 10:42:17 +02:00
parent 5dda167021
commit 49b0a20170
4 changed files with 23 additions and 31 deletions

View file

@ -1,6 +1,6 @@
use std::sync::atomics::AtomicBool;
use std::ptr;
use Event;
use {Event, WindowBuilder};
pub use self::monitor::{MonitorID, get_available_monitors, get_primary_monitor};
@ -35,11 +35,8 @@ pub struct Window {
impl Window {
/// See the docs if the crate root file.
pub fn new(dimensions: Option<(uint, uint)>, title: &str,
monitor: Option<MonitorID>)
-> Result<Window, String>
{
init::new_window(dimensions, title, monitor)
pub fn new(builder: WindowBuilder) -> Result<Window, String> {
init::new_window(builder)
}
/// See the docs if the crate root file.