mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
parent
3f69cbb189
commit
e567d7f4fd
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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!()
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue