Unlocks platform-specific attributes

This commit is contained in:
Pierre Krieger 2016-01-07 16:01:18 +01:00
parent 86dd75f7e9
commit ec76d991ad
13 changed files with 92 additions and 17 deletions

View file

@ -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> {
}

View file

@ -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> {
}