Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 77d66fc

Browse files
committed
Bump bitflags to 0.9 and bump version
1 parent 18acb4f commit 77d66fc

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "core-graphics"
33
description = "Bindings to Core Graphics for OS X"
44
homepage = "https://github.com/servo/core-graphics-rs"
55
repository = "https://github.com/servo/core-graphics-rs"
6-
version = "0.8.1"
6+
version = "0.8.2"
77
authors = ["The Servo Project Developers"]
88
license = "MIT / Apache-2.0"
99

@@ -14,4 +14,4 @@ elcapitan = []
1414
[dependencies]
1515
libc = "0.2"
1616
core-foundation = "0.3"
17-
bitflags = "0.8"
17+
bitflags = "0.9"

src/event.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ pub type CGKeyCode = libc::uint16_t;
1212
///
1313
/// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h)
1414
bitflags! {
15-
pub flags CGEventFlags: u64 {
16-
const CGEventFlagNull = 0,
15+
pub struct CGEventFlags: u64 {
16+
const CGEventFlagNull = 0;
1717

1818
// Device-independent modifier key bits.
19-
const CGEventFlagAlphaShift = 0x00010000,
20-
const CGEventFlagShift = 0x00020000,
21-
const CGEventFlagControl = 0x00040000,
22-
const CGEventFlagAlternate = 0x00080000,
23-
const CGEventFlagCommand = 0x00100000,
19+
const CGEventFlagAlphaShift = 0x00010000;
20+
const CGEventFlagShift = 0x00020000;
21+
const CGEventFlagControl = 0x00040000;
22+
const CGEventFlagAlternate = 0x00080000;
23+
const CGEventFlagCommand = 0x00100000;
2424

2525
// Special key identifiers.
26-
const CGEventFlagHelp = 0x00400000,
27-
const CGEventFlagSecondaryFn = 0x00800000,
26+
const CGEventFlagHelp = 0x00400000;
27+
const CGEventFlagSecondaryFn = 0x00800000;
2828

2929
// Identifies key events from numeric keypad area on extended keyboards.
30-
const CGEventFlagNumericPad = 0x00200000,
30+
const CGEventFlagNumericPad = 0x00200000;
3131

3232
// Indicates if mouse/pen movement events are not being coalesced
33-
const CGEventFlagNonCoalesced = 0x00000100,
33+
const CGEventFlagNonCoalesced = 0x00000100;
3434
}
3535
}
3636

0 commit comments

Comments
 (0)