diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2016-02-10 18:33:13 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2016-02-10 18:33:13 +0100 |
commit | c6c9ef4fca1e235572e34a6976df2482a14aae87 (patch) | |
tree | 6a16b4f7559cfb4504b7993df1a0d55632499c5e /src/api/ios | |
parent | 86dd75f7e9b6078919387c356bca7dd1738d5777 (diff) | |
parent | ec76d991adc3522512f07935f78569dc4a9d089b (diff) | |
download | glutin-c6c9ef4fca1e235572e34a6976df2482a14aae87.tar.gz glutin-c6c9ef4fca1e235572e34a6976df2482a14aae87.zip |
Merge pull request #702 from tomaka/platform-specific
Unlocks platform-specific attributes
Diffstat (limited to 'src/api/ios')
-rw-r--r-- | src/api/ios/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/ios/mod.rs b/src/api/ios/mod.rs index 852d97c..afcc6f4 100644 --- a/src/api/ios/mod.rs +++ b/src/api/ios/mod.rs @@ -177,10 +177,14 @@ impl MonitorId { } } +#[derive(Default)] +pub struct PlatformSpecificWindowBuilderAttributes; impl Window { - pub fn new(builder: &WindowAttributes, _: &PixelFormatRequirements, _: &GlAttributes<&Window>) -> Result<Window, CreationError> { + pub fn new(builder: &WindowAttributes, _: &PixelFormatRequirements, _: &GlAttributes<&Window>, + _: &PlatformSpecificWindowBuilderAttributes) -> Result<Window, CreationError> + { unsafe { if setjmp(mem::transmute(&mut jmpbuf)) != 0 { let app: id = msg_send![Class::get("UIApplication").unwrap(), sharedApplication]; |