Package: gdk
GBoxed gdk:event-button
Declaration
(define-gboxed-variant-cstruct event "GdkEvent"
(type event-type)
(window (g:object window))
(send-event (:boolean :int8))
(:variant type
...
((:button-press
:2button-press
:double-button-press
:3button-press
:triple-button-press
:button-release) event-button
(time :uint32)
(x :double)
(y :double)
(axes (fixed-array :double 2))
(state modifier-type)
(button :uint)
(device (g:object device))
(x-root :double)
(y-root :double))
... )) Values
Details Used for button press and button release events. The type field will be one of the :button-press, :double-button-press, triple-button-press, or :button-release values. Double and triple-clicks result in a sequence of events being received. For double-clicks the order of events will be: :button-press :button-release :button-press :double-button-press :button-releaseNote that the first click is received just like a normal button press, while the second click results in a :double-button-press event being received just after the :button-press event. Triple-clicks are very similar to double-clicks, except that the :triple-button-press event is inserted after the third click. The order of the events is: :button-press :button-release :button-press :double-button-press :button-release :button-press :triple-button-press :button-releaseFor a double click to occur, the second button press must occur within 1/4 of a second of the first. For a triple click to occur, the third button press must also occur within 1/2 second of the first button press. | Slot Access FunctionsInherited Slot Access FunctionsSee also |
2025-07-17