Package: gtk

Class gtk-gesture-drag

Superclasses

gtk-gesture-single, gtk-gesture, gtk-event-controller, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

None

Details

gtk-gesture-drag is a gtk-gesture implementation that recognizes drag operations. The drag operation itself can be tracked throught the "drag-begin", "drag-update" and "drag-end" signals, or the relevant coordinates be extracted through the functions gtk-gesture-drag-offset and gtk-gesture-drag-start-point.

Signal Details

The "drag-begin" signal
 lambda (gesture start-x start-y)    :run-last      
The signal is emitted whenever dragging starts.
gesture
The gtk-gesture-drag object which received the signal.
start-x
A double float with the x coordinate, relative to the widget allocation.
start-y
A double float with the y coordinate, relative to the widget allocation.
The "drag-end" signal
 lambda (gesture offset-x offset-y)    :run-last      
The signal is emitted whenever the dragging is finished.
gesture
The gtk-gesture-drag object which received the signal.
offset-x
A double float with the x offset, relative to the start point.
offset-y
A double float with the y offset, relative to the start point.
The "drag-update" signal
 lambda (gesture offset-x offset-y)    :run-last      
The signal is emitted whenever the dragging point moves.
gesture
The gtk-gesture-drag object which received the signal.
offset-x
A double float with the x offset, relative to the start point.
offset-y
A double float with the y offset, relative to the start point.
 

Inherited Slot Access Functions

See also

2020-9-11