Gdk.EventScroll¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| delta_x | float | r/w | the x coordinate of the scroll delta | 
| delta_y | float | r/w | the y coordinate of the scroll delta | 
| device | Gdk.Device | r/w | the master device that the event originated from. Use Gdk.Event.get_source_device() to get the slave device. | 
| direction | Gdk.ScrollDirection | r/w | the direction to scroll to (one of Gdk.ScrollDirection.UP,Gdk.ScrollDirection.DOWN,Gdk.ScrollDirection.LEFT,Gdk.ScrollDirection.RIGHTorGdk.ScrollDirection.SMOOTH). | 
| is_stop | int | r/w | |
| send_event | int | r/w | Trueif the event was sent explicitly. | 
| state | Gdk.ModifierType | r/w | a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See Gdk.ModifierType. | 
| time | int | r/w | the time of the event in milliseconds. | 
| type | Gdk.EventType | r/w | the type of the event ( Gdk.EventType.SCROLL). | 
| window | Gdk.Window | r/w | the window which received the event. | 
| x | float | r/w | the x coordinate of the pointer relative to the window. | 
| x_root | float | r/w | the x coordinate of the pointer relative to the root of the screen. | 
| y | float | r/w | the y coordinate of the pointer relative to the window. | 
| y_root | float | 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.SMOOTHscroll direction. For these, the scroll deltas can be obtained with- Gdk.Event.get_scroll_deltas().