aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3dcf0f9..b292869 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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")]
@@ -345,6 +345,7 @@ pub struct BuilderAttribs<'a> {
srgb: Option<bool>,
transparent: bool,
decorations: bool,
+ multitouch: bool
}
impl BuilderAttribs<'static> {
@@ -371,6 +372,7 @@ impl BuilderAttribs<'static> {
srgb: None,
transparent: false,
decorations: true,
+ multitouch: false
}
}
}
@@ -402,6 +404,7 @@ impl<'a> BuilderAttribs<'a> {
srgb: self.srgb,
transparent: self.transparent,
decorations: self.decorations,
+ multitouch: self.multitouch
};
(new_attribs, sharing)