Struct core_graphics::event::CGEventFlags
[−]
#[repr(C)]pub struct CGEventFlags { /* fields omitted */ }
Methods
impl CGEventFlags
const CGEventFlagNull: CGEventFlags
CGEventFlagNull: CGEventFlags = CGEventFlags{bits: 0,}
const CGEventFlagAlphaShift: CGEventFlags
CGEventFlagAlphaShift: CGEventFlags = CGEventFlags{bits: 65536,}
const CGEventFlagShift: CGEventFlags
CGEventFlagShift: CGEventFlags = CGEventFlags{bits: 131072,}
const CGEventFlagControl: CGEventFlags
CGEventFlagControl: CGEventFlags = CGEventFlags{bits: 262144,}
const CGEventFlagAlternate: CGEventFlags
CGEventFlagAlternate: CGEventFlags = CGEventFlags{bits: 524288,}
const CGEventFlagCommand: CGEventFlags
CGEventFlagCommand: CGEventFlags = CGEventFlags{bits: 1048576,}
const CGEventFlagHelp: CGEventFlags
CGEventFlagHelp: CGEventFlags = CGEventFlags{bits: 4194304,}
const CGEventFlagSecondaryFn: CGEventFlags
CGEventFlagSecondaryFn: CGEventFlags = CGEventFlags{bits: 8388608,}
const CGEventFlagNumericPad: CGEventFlags
CGEventFlagNumericPad: CGEventFlags = CGEventFlags{bits: 2097152,}
const CGEventFlagNonCoalesced: CGEventFlags
CGEventFlagNonCoalesced: CGEventFlags = CGEventFlags{bits: 256,}
fn empty() -> CGEventFlags
Returns an empty set of flags.
fn all() -> CGEventFlags
Returns the set containing all flags.
fn bits(&self) -> u64
Returns the raw value of the flags currently stored.
fn from_bits(bits: u64) -> Option<CGEventFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u64) -> CGEventFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: CGEventFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: CGEventFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: CGEventFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: CGEventFlags)
Removes the specified flags in-place.
fn toggle(&mut self, other: CGEventFlags)
Toggles the specified flags in-place.
fn set(&mut self, other: CGEventFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for CGEventFlags
impl PartialEq for CGEventFlags
fn eq(&self, __arg_0: &CGEventFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CGEventFlags) -> bool
This method tests for !=
.
impl Eq for CGEventFlags
impl Clone for CGEventFlags
fn clone(&self) -> CGEventFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for CGEventFlags
fn partial_cmp(&self, __arg_0: &CGEventFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &CGEventFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &CGEventFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &CGEventFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &CGEventFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for CGEventFlags
fn cmp(&self, __arg_0: &CGEventFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for CGEventFlags
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for CGEventFlags
impl Binary for CGEventFlags
impl Octal for CGEventFlags
impl LowerHex for CGEventFlags
impl UpperHex for CGEventFlags
impl BitOr for CGEventFlags
type Output = CGEventFlags
The resulting type after applying the |
operator.
fn bitor(self, other: CGEventFlags) -> CGEventFlags
Returns the union of the two sets of flags.
impl BitOrAssign for CGEventFlags
fn bitor_assign(&mut self, other: CGEventFlags)
Adds the set of flags.
impl BitXor for CGEventFlags
type Output = CGEventFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: CGEventFlags) -> CGEventFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for CGEventFlags
fn bitxor_assign(&mut self, other: CGEventFlags)
Toggles the set of flags.
impl BitAnd for CGEventFlags
type Output = CGEventFlags
The resulting type after applying the &
operator.
fn bitand(self, other: CGEventFlags) -> CGEventFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for CGEventFlags
fn bitand_assign(&mut self, other: CGEventFlags)
Disables all flags disabled in the set.
impl Sub for CGEventFlags
type Output = CGEventFlags
The resulting type after applying the -
operator.
fn sub(self, other: CGEventFlags) -> CGEventFlags
Returns the set difference of the two sets of flags.
impl SubAssign for CGEventFlags
fn sub_assign(&mut self, other: CGEventFlags)
Disables all flags enabled in the set.
impl Not for CGEventFlags
type Output = CGEventFlags
The resulting type after applying the !
operator.
fn not(self) -> CGEventFlags
Returns the complement of this set of flags.
impl Extend<CGEventFlags> for CGEventFlags
fn extend<T: IntoIterator<Item = CGEventFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<CGEventFlags> for CGEventFlags
fn from_iter<T: IntoIterator<Item = CGEventFlags>>(iterator: T) -> CGEventFlags
Creates a value from an iterator. Read more