Package: gtk

Class gtk-gesture-pan

Superclasses

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

Documented Subclasses

None

Direct Slots

orientation
The orientation property of type gtk-orientation (Read / Write)
The expected orientation of pan gestures.
Default value: :horizontal

Details

gtk-gesture-pan is a gtk-gesture implementation able to recognize pan gestures, those are drags that are locked to happen along one axis. The axis that a gtk-gesture-pan handles is defined at construct time, and can be changed through the slot access function gtk-gesture-pan-orientation.

When the gesture starts to be recognized, gtk-gesture-pan will attempt to determine as early as possible whether the sequence is moving in the expected direction, and denying the sequence if this does not happen.

Once a panning gesture along the expected axis is recognized, the "pan" signal will be emitted as input events are received, containing the offset in the given axis.

Signal Details

The "pan" signal
 lambda (gesture n-press x y)    :run-last    
The signal is emitted once a panning gesture along the expected axis is detected.
gesture
The gtk-gesture-pan object which received the signal.
direction
Current gtk-pan-direction value of the pan gesture.
offset
A double float with the offset along the gesture orientation.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2020-9-11