1.85 <GtkGesturePan>

Class: <GtkGesturePan>

It derives from <GtkGestureDrag>.

Recognizes pan gestures.

These are drags that are locked to happen along one axis. The axis that a <GtkGesturePan> handles is defined at construct time, and can be changed through gesture-pan:set-orientation.

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

Properties

Property: gesture-pan:orientation self

The expected orientation of pan gestures.

Its value is a <GtkOrientation> (or, to set it, one of its symbols).

Set it with (set! (gesture-pan:orientation self) value).

Procedures

Method: gesture-pan:get-orientation self ⇒ %return
Method: get-orientation self ⇒ %return

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

self

Passed: a <GtkGesturePan>.

A <GtkGesturePan>

%return

Returned: a <GtkOrientation>.

the expected orientation for pan gestures

Procedure: gesture-pan:new orientation ⇒ %return

Returns a newly created <GtkGesture> that recognizes pan gestures.

orientation

Passed: a <GtkOrientation>, or one of its symbols.

expected orientation

%return

Returned: a <GtkGesture>.

a newly created <GtkGesturePan>

Method: gesture-pan:set-orientation self orientation
Method: set-orientation self orientation

Sets the orientation to be expected on pan gestures.

self

Passed: a <GtkGesturePan>.

A <GtkGesturePan>

orientation

Passed: a <GtkOrientation>, or one of its symbols.

expected orientation

Signals

Signal: gesture-pan:pan

Connect a handler with (connect object gesture-pan:pan handler). It is called as (handler self direction offset).

Emitted once a panning gesture along the expected axis is detected.

self

Passed: a <GtkGesturePan>.

direction

Passed: a <GtkPanDirection>.

current direction of the pan gesture

offset

Passed: a real number.

Offset along the gesture orientation