Package: gtk

Class gtk:gesture-pan

Superclasses

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

The gtk:gesture-pan class is a gtk:gesture implementation for pan gestures. These are drags that are locked to happen along one axis.

The axis that a gtk:gesture-pan object handles is defined at construct time, and can be changed through the gtk:gesture-pan-orientation function. When the gesture starts to be recognized, the gtk:gesture-pan object 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 direction offset)    :run-last    
gesture
The gtk:gesture-pan object which received the signal.
direction
The current gtk:pan-direction value of the pan gesture.
offset
The double float with the offset along the gesture orientation.
The signal is emitted once a panning gesture along the expected axis is detected.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-2-19