Struct gdk::EventMask [−][src]
pub struct EventMask { /* fields omitted */ }
Expand description
A set of bit-flags to indicate which events a window is to receive.
Most of these masks map onto one or more of the EventType
event types
above.
See the [input handling overview][chap-input-handling] for details of [event masks][event-masks] and [event propagation][event-propagation].
POINTER_MOTION_HINT_MASK
is deprecated. It is a special mask
to reduce the number of EventType::MotionNotify
events received. When using
POINTER_MOTION_HINT_MASK
, fewer EventType::MotionNotify
events will
be sent, some of which are marked as a hint (the is_hint member is
true
). To receive more motion events after a motion hint event,
the application needs to asks for more, by calling
gdk_event_request_motions()
.
Since GTK 3.8, motion events are already compressed by default, independent
of this mechanism. This compression can be disabled with
Window::set_event_compression()
. See the documentation of that function
for details.
If TOUCH_MASK
is enabled, the window will receive touch events
from touch-enabled devices. Those will come as sequences of EventTouch
with type EventType::TouchUpdate
, enclosed by two events with
type EventType::TouchBegin
and EventType::TouchEnd
(or EventType::TouchCancel
).
gdk_event_get_event_sequence()
returns the event sequence for these
events, so different sequences may be distinguished.
Implementations
receive expose events
receive all pointer motion events
deprecated. see the explanation above
receive pointer motion events while any button is pressed
receive pointer motion events while 1 button is pressed
receive pointer motion events while 2 button is pressed
receive pointer motion events while 3 button is pressed
receive button press events
receive button release events
receive key press events
receive key release events
receive window enter events
receive window leave events
receive focus change events
receive events about window configuration change
receive property change events
receive visibility change events
receive proximity in events
receive proximity out events
receive events about window configuration changes of child windows
receive scroll events
receive touch events. Since 3.4
receive smooth scrolling events. Since 3.4
receive touchpad gesture events. Since 3.18
receive tablet pad events. Since 3.22
the combination of all the above event masks.
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Returns true
if there are flags common to both self
and other
.
Returns true
all of the flags in other
are contained within self
.
Trait Implementations
Disables all flags disabled in the set.
Adds the set of flags.
Toggles the set of flags.
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for EventMask
impl UnwindSafe for EventMask
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.