diff options
author | Evgeny Rozaliev <rozaliev@gmail.com> | 2015-06-05 16:38:21 +0300 |
---|---|---|
committer | Evgeny Rozaliev <rozaliev@gmail.com> | 2015-06-05 16:38:35 +0300 |
commit | 84703027d63e22361197a1fc74a4949becf5fccb (patch) | |
tree | 72c985a88bb03438888c910b55c17fabb36e1048 /src/lib.rs | |
parent | 76e7a90752ef60a3b48fd20ad3e551945336479d (diff) | |
download | glutin-84703027d63e22361197a1fc74a4949becf5fccb.tar.gz glutin-84703027d63e22361197a1fc74a4949becf5fccb.zip |
[add] ios support
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -42,7 +42,7 @@ extern crate gdi32; extern crate user32; #[cfg(target_os = "windows")] extern crate dwmapi; -#[cfg(target_os = "macos")] +#[cfg(any(target_os = "macos", target_os = "ios"))] #[macro_use] extern crate objc; #[cfg(target_os = "macos")] @@ -299,6 +299,7 @@ pub struct BuilderAttribs<'a> { srgb: Option<bool>, transparent: bool, decorations: bool, + multitouch: bool } impl BuilderAttribs<'static> { @@ -324,6 +325,7 @@ impl BuilderAttribs<'static> { srgb: None, transparent: false, decorations: true, + multitouch: false } } } @@ -354,6 +356,7 @@ impl<'a> BuilderAttribs<'a> { srgb: self.srgb, transparent: self.transparent, decorations: self.decorations, + multitouch: self.multitouch }; (new_attribs, sharing) |