Gdk.ScrollEvent¶
- Subclasses:
None
Methods¶
- Inherited:
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gdk.ScrollEvent¶
- Bases:
- Abstract:
No
An event related to a scrolling motion.
- get_deltas()[source]¶
- Returns:
- delta_x:
return location for x scroll delta
- delta_y:
return location for y scroll delta
- Return type:
Extracts the scroll deltas of a scroll event.
The deltas will be zero unless the scroll direction is
Gdk.ScrollDirection.SMOOTH
.For the representation unit of these deltas, see [method`Gdk`.ScrollEvent.get_unit].
- get_direction()[source]¶
- Returns:
the scroll direction of self
- Return type:
Extracts the direction of a scroll event.
- get_unit()[source]¶
- Returns:
the scroll unit.
- Return type:
Extracts the scroll delta unit of a scroll event.
The unit will always be
Gdk.ScrollUnit.WHEEL
if the scroll direction is notGdk.ScrollDirection.SMOOTH
.New in version 4.8.
- is_stop()[source]¶
-
Check whether a scroll event is a stop scroll event.
Scroll sequences with smooth scroll information may provide a stop scroll event once the interaction with the device finishes, e.g. by lifting a finger. This stop scroll event is the signal that a widget may trigger kinetic scrolling based on the current velocity.
Stop scroll events always have a delta of 0/0.