Add WindowId type

This commit is contained in:
Pierre Krieger 2017-02-03 09:13:11 +01:00
parent 9cd0430ec7
commit b988c174fe
4 changed files with 20 additions and 6 deletions

View file

@ -7,6 +7,7 @@ use EventsLoop;
use MouseCursor;
use Window;
use WindowBuilder;
use WindowId;
use native_monitor::NativeMonitorId;
use libc;
@ -293,8 +294,8 @@ impl Window {
}
#[inline]
pub fn id(&self) -> usize {
self.window.id()
pub fn id(&self) -> WindowId {
WindowId(self.window.id())
}
}