Update bitflags to 2.2.1 (#549)

This commit is contained in:
George Burton
2024-04-09 09:47:41 +01:00
committed by GitHub
parent f9440bcddb
commit abbcc1eea5
9 changed files with 51 additions and 29 deletions
+1 -1
View File
@@ -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"
+1
View File
@@ -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;
+1
View File
@@ -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);