aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorJan Segre <jan@segre.in>2016-05-23 03:17:31 -0300
committerJan Segre <jan@segre.in>2016-05-23 03:17:31 -0300
commite0f36b80c9bf29bbf3306a617614f6913b705a10 (patch)
treef67c9d09ace81e83f6c2838569888e277aa9df32 /src/api
parentcf02e7f1f44eebaaee939b8267b9457094d9bc6b (diff)
downloadglutin-e0f36b80c9bf29bbf3306a617614f6913b705a10.tar.gz
glutin-e0f36b80c9bf29bbf3306a617614f6913b705a10.zip
Make `WindowBuilder` and `HeadlessRendererBuilder` derive `Clone`.
Diffstat (limited to 'src/api')
-rw-r--r--src/api/android/mod.rs4
-rw-r--r--src/api/cocoa/headless.rs2
-rw-r--r--src/api/cocoa/mod.rs2
-rw-r--r--src/api/ios/mod.rs2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs
index 433472c..2c17d92 100644
--- a/src/api/android/mod.rs
+++ b/src/api/android/mod.rs
@@ -65,9 +65,9 @@ impl MonitorId {
}
}
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificWindowBuilderAttributes;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificHeadlessBuilderAttributes;
pub struct PollEventsIterator<'a> {
diff --git a/src/api/cocoa/headless.rs b/src/api/cocoa/headless.rs
index ac6c4e0..8d89e40 100644
--- a/src/api/cocoa/headless.rs
+++ b/src/api/cocoa/headless.rs
@@ -13,7 +13,7 @@ use cocoa::appkit::*;
use PixelFormat;
use api::cocoa::helpers;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificHeadlessBuilderAttributes;
pub struct HeadlessContext {
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs
index 3c4d802..79f2b71 100644
--- a/src/api/cocoa/mod.rs
+++ b/src/api/cocoa/mod.rs
@@ -181,7 +181,7 @@ impl Drop for WindowDelegate {
}
}
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificWindowBuilderAttributes {
pub activation_policy: ActivationPolicy,
}
diff --git a/src/api/ios/mod.rs b/src/api/ios/mod.rs
index afcc6f4..8bee513 100644
--- a/src/api/ios/mod.rs
+++ b/src/api/ios/mod.rs
@@ -177,7 +177,7 @@ impl MonitorId {
}
}
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificWindowBuilderAttributes;
impl Window {