aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-12-28 15:08:41 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-12-31 07:34:26 +0100
commitb9710f05a9d1e7fd10536b604074baf748fb5bd7 (patch)
treed3f8c282bd302589b1e021064d2182371245ad3c /src/osx
parentfb42768a14228eba456cc8957820c14c105b1647 (diff)
downloadglutin-b9710f05a9d1e7fd10536b604074baf748fb5bd7.tar.gz
glutin-b9710f05a9d1e7fd10536b604074baf748fb5bd7.zip
Unify WindowBuilder and HeadlessRendererBuilder for easier implementations
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!()
}