Now passing WindowBuilder to implwin::Window::new
This commit is contained in:
parent
5dda167021
commit
49b0a20170
4 changed files with 23 additions and 31 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue