Merge pull request #159 from tomaka/update-rustc

Update for Rustc for win32
This commit is contained in:
tomaka 2014-12-14 08:04:44 +01:00
commit 65dfd5d7ce
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#[deriving(Clone,Show)]
#[deriving(Clone, Show, Copy)]
pub enum Event {
/// The size of the window has changed.
Resized(uint, uint),
@ -35,13 +35,13 @@ pub enum Event {
pub type ScanCode = u8;
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum ElementState {
Pressed,
Released,
}
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum MouseButton {
LeftMouseButton,
RightMouseButton,
@ -49,7 +49,7 @@ pub enum MouseButton {
OtherMouseButton(u8),
}
#[deriving(Show, Hash, PartialEq, Eq, Clone)]
#[deriving(Show, Hash, PartialEq, Eq, Clone, Copy)]
pub enum VirtualKeyCode {
/// The '1' key over the letters.
Key1,

View file

@ -83,6 +83,7 @@ impl std::error::Error for CreationError {
}
/// All APIs related to OpenGL that you can possibly get while using glutin.
#[deriving(Show, Clone, Copy, PartialEq, Eq)]
pub enum Api {
/// The classical OpenGL. Available on Windows, Linux, OS/X.
OpenGl,