Package: gtk

Class gtk:gesture-drag

Superclasses

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

Documented Subclasses

Direct Slots

None

Details

The gtk:gesture-drag class 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 gtk:gesture-drag-offset and gtk:gesture-drag-start-point functions.

Signal Details

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

Inherited Slot Access Functions

See also

2024-4-29