Struct gdk::ModifierType [−]
pub struct ModifierType { /* fields omitted */ }Methods
impl ModifierType
impl ModifierTypepub const SHIFT_MASK: ModifierType
SHIFT_MASK: ModifierType = ModifierType{bits: 1,}
pub const LOCK_MASK: ModifierType
LOCK_MASK: ModifierType = ModifierType{bits: 2,}
pub const CONTROL_MASK: ModifierType
CONTROL_MASK: ModifierType = ModifierType{bits: 4,}
pub const MOD1_MASK: ModifierType
MOD1_MASK: ModifierType = ModifierType{bits: 8,}
pub const MOD2_MASK: ModifierType
MOD2_MASK: ModifierType = ModifierType{bits: 16,}
pub const MOD3_MASK: ModifierType
MOD3_MASK: ModifierType = ModifierType{bits: 32,}
pub const MOD4_MASK: ModifierType
MOD4_MASK: ModifierType = ModifierType{bits: 64,}
pub const MOD5_MASK: ModifierType
MOD5_MASK: ModifierType = ModifierType{bits: 128,}
pub const BUTTON1_MASK: ModifierType
BUTTON1_MASK: ModifierType = ModifierType{bits: 256,}
pub const BUTTON2_MASK: ModifierType
BUTTON2_MASK: ModifierType = ModifierType{bits: 512,}
pub const BUTTON3_MASK: ModifierType
BUTTON3_MASK: ModifierType = ModifierType{bits: 1024,}
pub const BUTTON4_MASK: ModifierType
BUTTON4_MASK: ModifierType = ModifierType{bits: 2048,}
pub const BUTTON5_MASK: ModifierType
BUTTON5_MASK: ModifierType = ModifierType{bits: 4096,}
pub const MODIFIER_RESERVED_13_MASK: ModifierType
MODIFIER_RESERVED_13_MASK: ModifierType = ModifierType{bits: 8192,}
pub const MODIFIER_RESERVED_14_MASK: ModifierType
MODIFIER_RESERVED_14_MASK: ModifierType = ModifierType{bits: 16384,}
pub const MODIFIER_RESERVED_15_MASK: ModifierType
MODIFIER_RESERVED_15_MASK: ModifierType = ModifierType{bits: 32768,}
pub const MODIFIER_RESERVED_16_MASK: ModifierType
MODIFIER_RESERVED_16_MASK: ModifierType = ModifierType{bits: 65536,}
pub const MODIFIER_RESERVED_17_MASK: ModifierType
MODIFIER_RESERVED_17_MASK: ModifierType = ModifierType{bits: 131072,}
pub const MODIFIER_RESERVED_18_MASK: ModifierType
MODIFIER_RESERVED_18_MASK: ModifierType = ModifierType{bits: 262144,}
pub const MODIFIER_RESERVED_19_MASK: ModifierType
MODIFIER_RESERVED_19_MASK: ModifierType = ModifierType{bits: 524288,}
pub const MODIFIER_RESERVED_20_MASK: ModifierType
MODIFIER_RESERVED_20_MASK: ModifierType = ModifierType{bits: 1048576,}
pub const MODIFIER_RESERVED_21_MASK: ModifierType
MODIFIER_RESERVED_21_MASK: ModifierType = ModifierType{bits: 2097152,}
pub const MODIFIER_RESERVED_22_MASK: ModifierType
MODIFIER_RESERVED_22_MASK: ModifierType = ModifierType{bits: 4194304,}
pub const MODIFIER_RESERVED_23_MASK: ModifierType
MODIFIER_RESERVED_23_MASK: ModifierType = ModifierType{bits: 8388608,}
pub const MODIFIER_RESERVED_24_MASK: ModifierType
MODIFIER_RESERVED_24_MASK: ModifierType = ModifierType{bits: 16777216,}
pub const MODIFIER_RESERVED_25_MASK: ModifierType
MODIFIER_RESERVED_25_MASK: ModifierType = ModifierType{bits: 33554432,}
pub const SUPER_MASK: ModifierType
SUPER_MASK: ModifierType = ModifierType{bits: 67108864,}
pub const HYPER_MASK: ModifierType
HYPER_MASK: ModifierType = ModifierType{bits: 134217728,}
pub const META_MASK: ModifierType
META_MASK: ModifierType = ModifierType{bits: 268435456,}
pub const MODIFIER_RESERVED_29_MASK: ModifierType
MODIFIER_RESERVED_29_MASK: ModifierType = ModifierType{bits: 536870912,}
pub const RELEASE_MASK: ModifierType
RELEASE_MASK: ModifierType = ModifierType{bits: 1073741824,}
pub const MODIFIER_MASK: ModifierType
MODIFIER_MASK: ModifierType = ModifierType{bits: 1543512063,}
pub fn empty() -> ModifierType
pub fn empty() -> ModifierTypeReturns an empty set of flags.
pub fn all() -> ModifierType
pub fn all() -> ModifierTypeReturns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<ModifierType>
pub fn from_bits(bits: u32) -> Option<ModifierType>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> ModifierType
pub fn from_bits_truncate(bits: u32) -> ModifierTypeConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: ModifierType) -> bool
pub fn intersects(&self, other: ModifierType) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: ModifierType) -> bool
pub fn contains(&self, other: ModifierType) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: ModifierType)
pub fn insert(&mut self, other: ModifierType)Inserts the specified flags in-place.
pub fn remove(&mut self, other: ModifierType)
pub fn remove(&mut self, other: ModifierType)Removes the specified flags in-place.
pub fn toggle(&mut self, other: ModifierType)
pub fn toggle(&mut self, other: ModifierType)Toggles the specified flags in-place.
pub fn set(&mut self, other: ModifierType, value: bool)
pub fn set(&mut self, other: ModifierType, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for ModifierType
impl Copy for ModifierTypeimpl PartialEq for ModifierType
impl PartialEq for ModifierTypefn eq(&self, other: &ModifierType) -> bool
fn eq(&self, other: &ModifierType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ModifierType) -> bool
fn ne(&self, other: &ModifierType) -> boolThis method tests for !=.
impl Eq for ModifierType
impl Eq for ModifierTypeimpl Clone for ModifierType
impl Clone for ModifierTypefn clone(&self) -> ModifierType
fn clone(&self) -> ModifierTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for ModifierType
impl PartialOrd for ModifierTypefn partial_cmp(&self, other: &ModifierType) -> Option<Ordering>
fn partial_cmp(&self, other: &ModifierType) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ModifierType) -> bool
fn lt(&self, other: &ModifierType) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ModifierType) -> bool
fn le(&self, other: &ModifierType) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ModifierType) -> bool
fn gt(&self, other: &ModifierType) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ModifierType) -> bool
fn ge(&self, other: &ModifierType) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for ModifierType
impl Ord for ModifierTypefn cmp(&self, other: &ModifierType) -> Ordering
fn cmp(&self, other: &ModifierType) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for ModifierType
impl Hash for ModifierTypefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for ModifierType
impl Debug for ModifierTypeimpl Binary for ModifierType
impl Binary for ModifierTypeimpl Octal for ModifierType
impl Octal for ModifierTypeimpl LowerHex for ModifierType
impl LowerHex for ModifierTypeimpl UpperHex for ModifierType
impl UpperHex for ModifierTypeimpl BitOr for ModifierType
impl BitOr for ModifierTypetype Output = ModifierType
The resulting type after applying the | operator.
fn bitor(self, other: ModifierType) -> ModifierType
fn bitor(self, other: ModifierType) -> ModifierTypeReturns the union of the two sets of flags.
impl BitOrAssign for ModifierType
impl BitOrAssign for ModifierTypefn bitor_assign(&mut self, other: ModifierType)
fn bitor_assign(&mut self, other: ModifierType)Adds the set of flags.
impl BitXor for ModifierType
impl BitXor for ModifierTypetype Output = ModifierType
The resulting type after applying the ^ operator.
fn bitxor(self, other: ModifierType) -> ModifierType
fn bitxor(self, other: ModifierType) -> ModifierTypeReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for ModifierType
impl BitXorAssign for ModifierTypefn bitxor_assign(&mut self, other: ModifierType)
fn bitxor_assign(&mut self, other: ModifierType)Toggles the set of flags.
impl BitAnd for ModifierType
impl BitAnd for ModifierTypetype Output = ModifierType
The resulting type after applying the & operator.
fn bitand(self, other: ModifierType) -> ModifierType
fn bitand(self, other: ModifierType) -> ModifierTypeReturns the intersection between the two sets of flags.
impl BitAndAssign for ModifierType
impl BitAndAssign for ModifierTypefn bitand_assign(&mut self, other: ModifierType)
fn bitand_assign(&mut self, other: ModifierType)Disables all flags disabled in the set.
impl Sub for ModifierType
impl Sub for ModifierTypetype Output = ModifierType
The resulting type after applying the - operator.
fn sub(self, other: ModifierType) -> ModifierType
fn sub(self, other: ModifierType) -> ModifierTypeReturns the set difference of the two sets of flags.
impl SubAssign for ModifierType
impl SubAssign for ModifierTypefn sub_assign(&mut self, other: ModifierType)
fn sub_assign(&mut self, other: ModifierType)Disables all flags enabled in the set.
impl Not for ModifierType
impl Not for ModifierTypetype Output = ModifierType
The resulting type after applying the ! operator.
fn not(self) -> ModifierType
fn not(self) -> ModifierTypeReturns the complement of this set of flags.
impl Extend<ModifierType> for ModifierType
impl Extend<ModifierType> for ModifierTypefn extend<T: IntoIterator<Item = ModifierType>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ModifierType>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<ModifierType> for ModifierType
impl FromIterator<ModifierType> for ModifierTypefn from_iter<T: IntoIterator<Item = ModifierType>>(iterator: T) -> ModifierType
fn from_iter<T: IntoIterator<Item = ModifierType>>(iterator: T) -> ModifierTypeCreates a value from an iterator. Read more
impl StaticType for ModifierType[src]
impl StaticType for ModifierTypefn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for ModifierType[src]
impl<'a> FromValueOptional<'a> for ModifierTypeunsafe fn from_value_optional(value: &Value) -> Option<Self>[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>impl<'a> FromValue<'a> for ModifierType[src]
impl<'a> FromValue<'a> for ModifierTypeunsafe fn from_value(value: &Value) -> Self[src]
unsafe fn from_value(value: &Value) -> Selfimpl SetValue for ModifierType[src]
impl SetValue for ModifierTypeAuto Trait Implementations
impl Send for ModifierType
impl Send for ModifierTypeimpl Sync for ModifierType
impl Sync for ModifierType