diff --git a/Cargo.toml b/Cargo.toml index 1c8ea68..dae4dc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "core-graphics" description = "Bindings to Core Graphics for OS X" homepage = "https://github.com/servo/core-graphics-rs" repository = "https://github.com/servo/core-graphics-rs" -version = "0.8.1" +version = "0.8.2" authors = ["The Servo Project Developers"] license = "MIT / Apache-2.0" @@ -14,4 +14,4 @@ elcapitan = [] [dependencies] libc = "0.2" core-foundation = "0.3" -bitflags = "0.8" +bitflags = "0.9" diff --git a/src/event.rs b/src/event.rs index c6ea59d..d43905c 100644 --- a/src/event.rs +++ b/src/event.rs @@ -12,25 +12,25 @@ pub type CGKeyCode = libc::uint16_t; /// /// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h) bitflags! { - pub flags CGEventFlags: u64 { - const CGEventFlagNull = 0, + pub struct CGEventFlags: u64 { + const CGEventFlagNull = 0; // Device-independent modifier key bits. - const CGEventFlagAlphaShift = 0x00010000, - const CGEventFlagShift = 0x00020000, - const CGEventFlagControl = 0x00040000, - const CGEventFlagAlternate = 0x00080000, - const CGEventFlagCommand = 0x00100000, + const CGEventFlagAlphaShift = 0x00010000; + const CGEventFlagShift = 0x00020000; + const CGEventFlagControl = 0x00040000; + const CGEventFlagAlternate = 0x00080000; + const CGEventFlagCommand = 0x00100000; // Special key identifiers. - const CGEventFlagHelp = 0x00400000, - const CGEventFlagSecondaryFn = 0x00800000, + const CGEventFlagHelp = 0x00400000; + const CGEventFlagSecondaryFn = 0x00800000; // Identifies key events from numeric keypad area on extended keyboards. - const CGEventFlagNumericPad = 0x00200000, + const CGEventFlagNumericPad = 0x00200000; // Indicates if mouse/pen movement events are not being coalesced - const CGEventFlagNonCoalesced = 0x00000100, + const CGEventFlagNonCoalesced = 0x00000100; } }