aboutsummaryrefslogtreecommitdiffstats
path: root/src/events.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-13 20:59:48 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-13 20:59:48 +0100
commite3943945c75465fa813ea8eb75d56cf55b2c092e (patch)
tree81526203a89160898dc8ee55472628012f2708b0 /src/events.rs
parent2d4f1c72fbd3c53f7ec9049076f435c95666293e (diff)
parent5a4fee967a9f2d7d64edad09bf1f19a5c560032e (diff)
downloadglutin-e3943945c75465fa813ea8eb75d56cf55b2c092e.tar.gz
glutin-e3943945c75465fa813ea8eb75d56cf55b2c092e.zip
Merge pull request #197 from ozkriff/master
x11, android, win: [ui]size -> [ui]32
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events.rs b/src/events.rs
index 87f2cc8..34234b2 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -1,10 +1,10 @@
#[derive(Clone, Show, Copy)]
pub enum Event {
/// The size of the window has changed.
- Resized(usize, usize),
+ Resized(u32, u32),
/// The position of the window has changed.
- Moved(isize, isize),
+ Moved(i32, i32),
/// The window has been closed.
Closed,
@@ -23,7 +23,7 @@ pub enum Event {
/// The cursor has moved on the window.
///
/// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.
- MouseMoved((isize, isize)),
+ MouseMoved((i32, i32)),
/// A positive value indicates that the wheel was rotated forward, away from the user;
/// a negative value indicates that the wheel was rotated backward, toward the user.