mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Fixed static uppercase warning
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
#![allow(non_uppercase_statics)]
|
||||||
|
|
||||||
#[deriving(Clone,Show)]
|
#[deriving(Clone,Show)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
/// The size of the window has changed.
|
/// The size of the window has changed.
|
||||||
@@ -13,7 +15,7 @@ pub enum Event {
|
|||||||
ReceivedCharacter(char),
|
ReceivedCharacter(char),
|
||||||
|
|
||||||
/// The window gained or lost focus.
|
/// The window gained or lost focus.
|
||||||
///
|
///
|
||||||
/// The parameter is true if the window has gained focus, and false if it has lost focus.
|
/// The parameter is true if the window has gained focus, and false if it has lost focus.
|
||||||
Focused(bool),
|
Focused(bool),
|
||||||
|
|
||||||
@@ -21,7 +23,7 @@ pub enum Event {
|
|||||||
KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>, KeyModifiers),
|
KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>, KeyModifiers),
|
||||||
|
|
||||||
/// The cursor has moved on the window.
|
/// 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.
|
/// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.
|
||||||
MouseMoved((int, int)),
|
MouseMoved((int, int)),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user