Package: gdk
GBoxed gdk-event-scroll
Superclassesgdk-event, common-lisp:structure-object, common-lisp:t Documented Subclasses
None
Details
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 :smooth direction. For these, the scroll deltas can be obtained with the gdk-event-scroll-deltas function.
(define-g-boxed-variant-cstruct gdk-event "GdkEvent"
(type gdk-event-type)
(window (g-object gdk-window))
(send-event (:boolean :int8))
(:variant type
...
((:scroll) gdk-event-scroll
(time :uint32)
(x :double)
(y :double)
(state gdk-modifier-type)
(direction gdk-scroll-direction)
(device (g-object gdk-device))
(x-root :double)
(y-root :double)
(delta-x :double)
(delta-y :double))
... ))
| Slot Access FunctionsInherited Slot Access FunctionsSee also |
2021-12-13