Change uint/int to usize/isize
From https://github.com/rust-lang/rfcs/pull/544 the types uint/int were renamed to usize/isize.
This commit is contained in:
parent
318f0d2d06
commit
995bd37c78
4 changed files with 35 additions and 35 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#[derive(Clone, Show, Copy)]
|
||||
pub enum Event {
|
||||
/// The size of the window has changed.
|
||||
Resized(uint, uint),
|
||||
Resized(usize, usize),
|
||||
|
||||
/// The position of the window has changed.
|
||||
Moved(int, int),
|
||||
Moved(isize, isize),
|
||||
|
||||
/// 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((int, int)),
|
||||
MouseMoved((isize, isize)),
|
||||
|
||||
/// 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue