Struct gdk::EventScroll [−][src]
pub struct EventScroll(_);
Expand description
Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.
Some GDK backends can also generate “smooth” scroll events, which
can be recognized by the ScrollDirection::Smooth
scroll direction. For
these, the scroll deltas can be obtained with
gdk_event_get_scroll_deltas()
.
Implementations
Methods from Deref<Target = Event>
v3_20
only.v3_20
only.v3_22
only.v3_22
only.v3_22
only.v3_22
only.Returns the event type.
Returns whether the event was sent explicitly.
Tries to downcast to a specific event type.
Tries to downcast to a specific event type.
Trait Implementations
Performs the conversion.
Performs the conversion.
Safety Read more
Safety Read more
Safety Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Transfer: none. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventScroll
impl !Send for EventScroll
impl !Sync for EventScroll
impl Unpin for EventScroll
impl UnwindSafe for EventScroll
Blanket Implementations
Mutably borrows from an owned value. Read more