mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Update for Rustc
This commit is contained in:
parent
230b0dd9ed
commit
a79bc34807
|
@ -1,4 +1,4 @@
|
||||||
#[deriving(Clone,Show)]
|
#[deriving(Clone, Show, Copy)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
/// The size of the window has changed.
|
/// The size of the window has changed.
|
||||||
Resized(uint, uint),
|
Resized(uint, uint),
|
||||||
|
@ -35,13 +35,13 @@ pub enum Event {
|
||||||
|
|
||||||
pub type ScanCode = u8;
|
pub type ScanCode = u8;
|
||||||
|
|
||||||
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
|
#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
|
||||||
pub enum ElementState {
|
pub enum ElementState {
|
||||||
Pressed,
|
Pressed,
|
||||||
Released,
|
Released,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
|
#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
|
||||||
pub enum MouseButton {
|
pub enum MouseButton {
|
||||||
LeftMouseButton,
|
LeftMouseButton,
|
||||||
RightMouseButton,
|
RightMouseButton,
|
||||||
|
@ -49,7 +49,7 @@ pub enum MouseButton {
|
||||||
OtherMouseButton(u8),
|
OtherMouseButton(u8),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
|
#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
|
||||||
pub enum VirtualKeyCode {
|
pub enum VirtualKeyCode {
|
||||||
/// The '1' key over the letters.
|
/// The '1' key over the letters.
|
||||||
Key1,
|
Key1,
|
||||||
|
|
|
@ -83,6 +83,7 @@ impl std::error::Error for CreationError {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// All APIs related to OpenGL that you can possibly get while using glutin.
|
/// All APIs related to OpenGL that you can possibly get while using glutin.
|
||||||
|
#[deriving(Show, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum Api {
|
pub enum Api {
|
||||||
/// The classical OpenGL. Available on Windows, Linux, OS/X.
|
/// The classical OpenGL. Available on Windows, Linux, OS/X.
|
||||||
OpenGl,
|
OpenGl,
|
||||||
|
|
Loading…
Reference in a new issue