aboutsummaryrefslogtreecommitdiffstats
path: root/src/os
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2016-01-07 16:01:18 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2016-02-10 17:39:35 +0100
commitec76d991adc3522512f07935f78569dc4a9d089b (patch)
tree6a16b4f7559cfb4504b7993df1a0d55632499c5e /src/os
parent86dd75f7e9b6078919387c356bca7dd1738d5777 (diff)
downloadglutin-ec76d991adc3522512f07935f78569dc4a9d089b.tar.gz
glutin-ec76d991adc3522512f07935f78569dc4a9d089b.zip
Unlocks platform-specific attributes
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix.rs11
-rw-r--r--src/os/windows.rs11
2 files changed, 20 insertions, 2 deletions
diff --git a/src/os/unix.rs b/src/os/unix.rs
index d206351..f42b3c6 100644
--- a/src/os/unix.rs
+++ b/src/os/unix.rs
@@ -3,8 +3,9 @@
use libc;
use Window;
use platform::Window as LinuxWindow;
+use WindowBuilder;
-/// Additional methods on `Window` that are specific to unix.
+/// Additional methods on `Window` that are specific to Unix.
pub trait WindowExt {
/// Returns a pointer to the `Window` object of xlib that is used by this window.
///
@@ -38,3 +39,11 @@ impl WindowExt for Window {
}
}
}
+
+/// Additional methods on `WindowBuilder` that are specific to Unix.
+pub trait WindowBuilderExt {
+
+}
+
+impl<'a> WindowBuilderExt for WindowBuilder<'a> {
+}
diff --git a/src/os/windows.rs b/src/os/windows.rs
index e9ab056..02a76e2 100644
--- a/src/os/windows.rs
+++ b/src/os/windows.rs
@@ -2,8 +2,9 @@
use libc;
use Window;
+use WindowBuilder;
-/// Additional methods on `Window` that are specific to unix.
+/// Additional methods on `Window` that are specific to Windows.
pub trait WindowExt {
/// Returns a pointer to the `Window` object of xlib that is used by this window.
///
@@ -19,3 +20,11 @@ impl WindowExt for Window {
self.window.platform_window()
}
}
+
+/// Additional methods on `WindowBuilder` that are specific to Windows.
+pub trait WindowBuilderExt {
+
+}
+
+impl<'a> WindowBuilderExt for WindowBuilder<'a> {
+}