Gdk.EventScroll¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
delta_x |
r/w |
the x coordinate of the scroll delta |
|
delta_y |
r/w |
the y coordinate of the scroll delta |
|
device |
r/w |
the master device that the event originated from. Use |
|
direction |
r/w |
the direction to scroll to (one of |
|
is_stop |
r/w |
||
send_event |
r/w |
|
|
state |
r/w |
a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See |
|
time |
r/w |
the time of the event in milliseconds. |
|
type |
r/w |
the type of the event ( |
|
window |
r/w |
the window which received the event. |
|
x |
r/w |
the x coordinate of the pointer relative to the window. |
|
x_root |
r/w |
the x coordinate of the pointer relative to the root of the screen. |
|
y |
r/w |
the y coordinate of the pointer relative to the window. |
|
y_root |
r/w |
the y coordinate of the pointer relative to the root of the screen. |
Methods¶
None
Details¶
- class Gdk.EventScroll¶
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
Gdk.ScrollDirection.SMOOTH
scroll direction. For these, the scroll deltas can be obtained withGdk.Event.get_scroll_deltas
().