diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-12-31 07:49:44 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-12-31 07:49:44 +0100 |
commit | 4d5e39f436a1c68475f2dd97b33acf66117ee139 (patch) | |
tree | 83dfb936f2577b136536d713414a0fc6355c3442 /src/osx | |
parent | fb42768a14228eba456cc8957820c14c105b1647 (diff) | |
parent | c956559a5158e1d92ccc5acd7c89b025c68de758 (diff) | |
download | glutin-4d5e39f436a1c68475f2dd97b33acf66117ee139.tar.gz glutin-4d5e39f436a1c68475f2dd97b33acf66117ee139.zip |
Merge pull request #173 from tomaka/change-builder-attribs
Finalize window building API
Diffstat (limited to 'src/osx')
-rw-r--r-- | src/osx/headless.rs | 4 | ||||
-rw-r--r-- | src/osx/mod.rs | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/osx/headless.rs b/src/osx/headless.rs index 1332cf3..39c8f50 100644 --- a/src/osx/headless.rs +++ b/src/osx/headless.rs @@ -1,6 +1,6 @@ use CreationError; use CreationError::OsError; -use HeadlessRendererBuilder; +use BuilderAttribs; use libc; use std::ptr; @@ -30,7 +30,7 @@ pub struct HeadlessContext { } impl HeadlessContext { - pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, CreationError> { + pub fn new(builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> { let (width, height) = builder.dimensions; let context = unsafe { let attributes = [ diff --git a/src/osx/mod.rs b/src/osx/mod.rs index 92ef641..b65f67a 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -5,8 +5,7 @@ use {CreationError, Event}; use CreationError::OsError; use libc; -#[cfg(feature = "window")] -use WindowBuilder; +use BuilderAttribs; use cocoa::base::{id, NSUInteger, nil, objc_allocateClassPair, class, objc_registerClassPair}; use cocoa::base::{selector, msg_send, class_addMethod, class_addIvar}; @@ -63,7 +62,7 @@ pub struct Window { #[cfg(feature = "window")] impl Window { - pub fn new(builder: WindowBuilder) -> Result<Window, CreationError> { + pub fn new(builder: BuilderAttribs) -> Result<Window, CreationError> { if builder.sharing.is_some() { unimplemented!() } |