diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-08-07 18:07:48 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-08-07 18:07:48 +0200 |
commit | e567d7f4fdaaba9f19b7ca32f37445f09ce701df (patch) | |
tree | fbab6809d9e94286e49b1d250ed367e4281335c3 | |
parent | 3f69cbb189a7f54d7f4389a2b8a71f0c23dfd04d (diff) | |
download | glutin-e567d7f4fdaaba9f19b7ca32f37445f09ce701df.tar.gz glutin-e567d7f4fdaaba9f19b7ca32f37445f09ce701df.zip |
set_position now takes ints
Fix #12
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/osx/mod.rs | 2 | ||||
-rw-r--r-- | src/win32/mod.rs | 2 | ||||
-rw-r--r-- | src/x11/mod.rs | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -200,7 +200,7 @@ impl Window { /// /// This is a no-op if the window has already been closed. #[inline] - pub fn set_position(&self, x: uint, y: uint) { + pub fn set_position(&self, x: int, y: int) { self.window.set_position(x, y) } diff --git a/src/osx/mod.rs b/src/osx/mod.rs index f846cf4..deceaf8 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -41,7 +41,7 @@ impl Window { unimplemented!() } - pub fn set_position(&self, _x: uint, _y: uint) { + pub fn set_position(&self, _x: int, _y: int) { unimplemented!() } diff --git a/src/win32/mod.rs b/src/win32/mod.rs index f29bf89..da94c70 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -71,7 +71,7 @@ impl Window { } /// See the docs if the crate root file. - pub fn set_position(&self, x: uint, y: uint) { + pub fn set_position(&self, x: int, y: int) { use libc; unsafe { diff --git a/src/x11/mod.rs b/src/x11/mod.rs index c9541b9..4c88a0b 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -279,7 +279,7 @@ impl Window { self.get_geometry().map(|(x, y, _, _)| (x, y)) } - pub fn set_position(&self, x: uint, y: uint) { + pub fn set_position(&self, x: int, y: int) { unsafe { ffi::XMoveWindow(self.display, self.window, x as libc::c_int, y as libc::c_int) } } |