GesturePan

gtk.gesture_pan.GesturePan is a gtk.gesture.Gesture for pan gestures.

These are drags that are locked to happen along one axis. The axis that a gtk.gesture_pan.GesturePan handles is defined at construct time, and can be changed through gtk.gesture_pan.GesturePan.setOrientation.

When the gesture starts to be recognized, gtk.gesture_pan.GesturePan 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 gtk.gesture_pan.GesturePan.pan signal will be emitted as input events are received, containing the offset in the given axis.

Constructors

this
this(gtk.types.Orientation orientation)

Returns a newly created gtk.gesture.Gesture that recognizes pan gestures.

Members

Functions

connectPan
ulong connectPan(T callback, Flag!"After" after)

Connect to Pan signal.

getOrientation
gtk.types.Orientation getOrientation()

Returns the orientation of the pan gestures that this gesture expects.

setOrientation
void setOrientation(gtk.types.Orientation orientation)

Sets the orientation to be expected on pan gestures.

Inherited Members

From GestureDrag

getOffset
bool getOffset(double x, double y)

Gets the offset from the start point.

getStartPoint
bool getStartPoint(double x, double y)

Gets the point where the drag started.

connectDragBegin
ulong connectDragBegin(T callback, Flag!"After" after)

Connect to DragBegin signal.

connectDragEnd
ulong connectDragEnd(T callback, Flag!"After" after)

Connect to DragEnd signal.

connectDragUpdate
ulong connectDragUpdate(T callback, Flag!"After" after)

Connect to DragUpdate signal.