Struct gdk::EventMask [−]
pub struct EventMask { /* fields omitted */ }
Methods
impl EventMask
impl EventMask
pub const EXPOSURE_MASK: EventMask
EXPOSURE_MASK: EventMask = EventMask{bits: 2,}
pub const POINTER_MOTION_MASK: EventMask
POINTER_MOTION_MASK: EventMask = EventMask{bits: 4,}
pub const POINTER_MOTION_HINT_MASK: EventMask
POINTER_MOTION_HINT_MASK: EventMask = EventMask{bits: 8,}
pub const BUTTON_MOTION_MASK: EventMask
BUTTON_MOTION_MASK: EventMask = EventMask{bits: 16,}
pub const BUTTON1_MOTION_MASK: EventMask
BUTTON1_MOTION_MASK: EventMask = EventMask{bits: 32,}
pub const BUTTON2_MOTION_MASK: EventMask
BUTTON2_MOTION_MASK: EventMask = EventMask{bits: 64,}
pub const BUTTON3_MOTION_MASK: EventMask
BUTTON3_MOTION_MASK: EventMask = EventMask{bits: 128,}
pub const BUTTON_PRESS_MASK: EventMask
BUTTON_PRESS_MASK: EventMask = EventMask{bits: 256,}
pub const BUTTON_RELEASE_MASK: EventMask
BUTTON_RELEASE_MASK: EventMask = EventMask{bits: 512,}
pub const KEY_PRESS_MASK: EventMask
KEY_PRESS_MASK: EventMask = EventMask{bits: 1024,}
pub const KEY_RELEASE_MASK: EventMask
KEY_RELEASE_MASK: EventMask = EventMask{bits: 2048,}
pub const ENTER_NOTIFY_MASK: EventMask
ENTER_NOTIFY_MASK: EventMask = EventMask{bits: 4096,}
pub const LEAVE_NOTIFY_MASK: EventMask
LEAVE_NOTIFY_MASK: EventMask = EventMask{bits: 8192,}
pub const FOCUS_CHANGE_MASK: EventMask
FOCUS_CHANGE_MASK: EventMask = EventMask{bits: 16384,}
pub const STRUCTURE_MASK: EventMask
STRUCTURE_MASK: EventMask = EventMask{bits: 32768,}
pub const PROPERTY_CHANGE_MASK: EventMask
PROPERTY_CHANGE_MASK: EventMask = EventMask{bits: 65536,}
pub const VISIBILITY_NOTIFY_MASK: EventMask
VISIBILITY_NOTIFY_MASK: EventMask = EventMask{bits: 131072,}
pub const PROXIMITY_IN_MASK: EventMask
PROXIMITY_IN_MASK: EventMask = EventMask{bits: 262144,}
pub const PROXIMITY_OUT_MASK: EventMask
PROXIMITY_OUT_MASK: EventMask = EventMask{bits: 524288,}
pub const SUBSTRUCTURE_MASK: EventMask
SUBSTRUCTURE_MASK: EventMask = EventMask{bits: 1048576,}
pub const SCROLL_MASK: EventMask
SCROLL_MASK: EventMask = EventMask{bits: 2097152,}
pub const TOUCH_MASK: EventMask
TOUCH_MASK: EventMask = EventMask{bits: 4194304,}
pub const SMOOTH_SCROLL_MASK: EventMask
SMOOTH_SCROLL_MASK: EventMask = EventMask{bits: 8388608,}
pub const TOUCHPAD_GESTURE_MASK: EventMask
TOUCHPAD_GESTURE_MASK: EventMask = EventMask{bits: 16777216,}
pub const TABLET_PAD_MASK: EventMask
TABLET_PAD_MASK: EventMask = EventMask{bits: 33554432,}
pub const ALL_EVENTS_MASK: EventMask
ALL_EVENTS_MASK: EventMask = EventMask{bits: 67108862,}
pub fn empty() -> EventMask
pub fn empty() -> EventMask
Returns an empty set of flags.
pub fn all() -> EventMask
pub fn all() -> EventMask
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<EventMask>
pub fn from_bits(bits: u32) -> Option<EventMask>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> EventMask
pub fn from_bits_truncate(bits: u32) -> EventMask
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: EventMask) -> bool
pub fn intersects(&self, other: EventMask) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: EventMask) -> bool
pub fn contains(&self, other: EventMask) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: EventMask)
pub fn insert(&mut self, other: EventMask)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: EventMask)
pub fn remove(&mut self, other: EventMask)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: EventMask)
pub fn toggle(&mut self, other: EventMask)
Toggles the specified flags in-place.
pub fn set(&mut self, other: EventMask, value: bool)
pub fn set(&mut self, other: EventMask, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for EventMask
impl Copy for EventMask
impl PartialEq for EventMask
impl PartialEq for EventMask
fn eq(&self, other: &EventMask) -> bool
fn eq(&self, other: &EventMask) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EventMask) -> bool
fn ne(&self, other: &EventMask) -> bool
This method tests for !=
.
impl Eq for EventMask
impl Eq for EventMask
impl Clone for EventMask
impl Clone for EventMask
fn clone(&self) -> EventMask
fn clone(&self) -> EventMask
Returns 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 EventMask
impl PartialOrd for EventMask
fn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
fn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &EventMask) -> bool
fn lt(&self, other: &EventMask) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &EventMask) -> bool
fn le(&self, other: &EventMask) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &EventMask) -> bool
fn gt(&self, other: &EventMask) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &EventMask) -> bool
fn ge(&self, other: &EventMask) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for EventMask
impl Ord for EventMask
fn cmp(&self, other: &EventMask) -> Ordering
fn cmp(&self, other: &EventMask) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for EventMask
impl Hash for EventMask
fn 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 EventMask
impl Debug for EventMask
impl Binary for EventMask
impl Binary for EventMask
impl Octal for EventMask
impl Octal for EventMask
impl LowerHex for EventMask
impl LowerHex for EventMask
impl UpperHex for EventMask
impl UpperHex for EventMask
impl BitOr for EventMask
impl BitOr for EventMask
type Output = EventMask
The resulting type after applying the |
operator.
fn bitor(self, other: EventMask) -> EventMask
fn bitor(self, other: EventMask) -> EventMask
Returns the union of the two sets of flags.
impl BitOrAssign for EventMask
impl BitOrAssign for EventMask
fn bitor_assign(&mut self, other: EventMask)
fn bitor_assign(&mut self, other: EventMask)
Adds the set of flags.
impl BitXor for EventMask
impl BitXor for EventMask
type Output = EventMask
The resulting type after applying the ^
operator.
fn bitxor(self, other: EventMask) -> EventMask
fn bitxor(self, other: EventMask) -> EventMask
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for EventMask
impl BitXorAssign for EventMask
fn bitxor_assign(&mut self, other: EventMask)
fn bitxor_assign(&mut self, other: EventMask)
Toggles the set of flags.
impl BitAnd for EventMask
impl BitAnd for EventMask
type Output = EventMask
The resulting type after applying the &
operator.
fn bitand(self, other: EventMask) -> EventMask
fn bitand(self, other: EventMask) -> EventMask
Returns the intersection between the two sets of flags.
impl BitAndAssign for EventMask
impl BitAndAssign for EventMask
fn bitand_assign(&mut self, other: EventMask)
fn bitand_assign(&mut self, other: EventMask)
Disables all flags disabled in the set.
impl Sub for EventMask
impl Sub for EventMask
type Output = EventMask
The resulting type after applying the -
operator.
fn sub(self, other: EventMask) -> EventMask
fn sub(self, other: EventMask) -> EventMask
Returns the set difference of the two sets of flags.
impl SubAssign for EventMask
impl SubAssign for EventMask
fn sub_assign(&mut self, other: EventMask)
fn sub_assign(&mut self, other: EventMask)
Disables all flags enabled in the set.
impl Not for EventMask
impl Not for EventMask
type Output = EventMask
The resulting type after applying the !
operator.
fn not(self) -> EventMask
fn not(self) -> EventMask
Returns the complement of this set of flags.
impl Extend<EventMask> for EventMask
impl Extend<EventMask> for EventMask
fn extend<T: IntoIterator<Item = EventMask>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = EventMask>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<EventMask> for EventMask
impl FromIterator<EventMask> for EventMask
fn from_iter<T: IntoIterator<Item = EventMask>>(iterator: T) -> EventMask
fn from_iter<T: IntoIterator<Item = EventMask>>(iterator: T) -> EventMask
Creates a value from an iterator. Read more
impl StaticType for EventMask
[src]
impl StaticType for EventMask
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for EventMask
[src]
impl<'a> FromValueOptional<'a> for EventMask
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
impl<'a> FromValue<'a> for EventMask
[src]
impl<'a> FromValue<'a> for EventMask
unsafe fn from_value(value: &Value) -> Self
[src]
unsafe fn from_value(value: &Value) -> Self
impl SetValue for EventMask
[src]
impl SetValue for EventMask