Update bitflags to 2.2.1 (#549)
This commit is contained in:
@@ -16,7 +16,7 @@ highsierra = []
|
||||
link = ["core-foundation/link", "core-graphics-types/link"]
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1.0"
|
||||
bitflags = "2"
|
||||
core-foundation = { default-features = false, path = "../core-foundation", version = "0.10" }
|
||||
core-graphics-types = { default-features = false, path = "../core-graphics-types", version = "0.2" }
|
||||
foreign-types = "0.5.0"
|
||||
|
||||
@@ -18,6 +18,7 @@ bitflags! {
|
||||
///
|
||||
/// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h)
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||
pub struct CGEventFlags: u64 {
|
||||
const CGEventFlagNull = 0;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ use libc::size_t;
|
||||
|
||||
bitflags! {
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||
pub struct CGGradientDrawingOptions: u32 {
|
||||
const CGGradientDrawsBeforeStartLocation = (1 << 0);
|
||||
const CGGradientDrawsAfterEndLocation = (1 << 1);
|
||||
|
||||
Reference in New Issue
Block a user