aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-12-31 07:49:44 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-12-31 07:49:44 +0100
commit4d5e39f436a1c68475f2dd97b33acf66117ee139 (patch)
tree83dfb936f2577b136536d713414a0fc6355c3442 /src/osx
parentfb42768a14228eba456cc8957820c14c105b1647 (diff)
parentc956559a5158e1d92ccc5acd7c89b025c68de758 (diff)
downloadglutin-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.rs4
-rw-r--r--src/osx/mod.rs5
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!()
}