1.82 <GtkGestureClick>

Class: <GtkGestureClick>

It derives from <GtkGestureSingle>.

Recognizes click gestures.

It is able to recognize multiple clicks on a nearby zone, which can be listened for through the gesture-click:pressed signal. Whenever time or distance between clicks exceed the GTK defaults, gesture-click:stopped is emitted, and the click counter is reset.

Procedures

Procedure: gesture-click:new ⇒ %return

Returns a newly created <GtkGesture> that recognizes single and multiple presses.

%return

Returned: a <GtkGesture>.

a newly created <GtkGestureClick>

Signals

Signal: gesture-click:pressed

Connect a handler with (connect object gesture-click:pressed handler). It is called as (handler self n-press x y).

Emitted whenever a button or touch press happens.

self

Passed: a <GtkGestureClick>.

n-press

Passed: a 32-bit integer.

how many touch/button presses happened with this one

x

Passed: a real number.

The X coordinate, in widget allocation coordinates

y

Passed: a real number.

The Y coordinate, in widget allocation coordinates

Signal: gesture-click:released

Connect a handler with (connect object gesture-click:released handler). It is called as (handler self n-press x y).

Emitted when a button or touch is released.

n-press will report the number of press that is paired to this event, note that gesture-click:stopped may have been emitted between the press and its release, n-press will only start over at the next press.

self

Passed: a <GtkGestureClick>.

n-press

Passed: a 32-bit integer.

number of press that is paired with this release

x

Passed: a real number.

The X coordinate, in widget allocation coordinates

y

Passed: a real number.

The Y coordinate, in widget allocation coordinates

Signal: gesture-click:stopped

Connect a handler with (connect object gesture-click:stopped handler). It is called as (handler self).

Emitted whenever any time/distance threshold has been exceeded.

self

Passed: a <GtkGestureClick>.

Signal: gesture-click:unpaired-release

Connect a handler with (connect object gesture-click:unpaired-release handler). It is called as (handler self x y button sequence).

Emitted whenever the gesture receives a release event that had no previous corresponding press.

Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.

self

Passed: a <GtkGestureClick>.

x

Passed: a real number.

X coordinate of the event

y

Passed: a real number.

Y coordinate of the event

button

Passed: an unsigned 32-bit integer.

Button being released

sequence

Passed: a <GdkEventSequence>, or #f.

Sequence being released