GestureClick

gtk.gesture_click.GestureClick is a gtk.gesture.Gesture implementation for clicks.

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

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Returns a newly created gtk.gesture.Gesture that recognizes single and multiple presses.

Members

Functions

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

Connect to Pressed signal.

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

Connect to Released signal.

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

Connect to Stopped signal.

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

Connect to UnpairedRelease signal.

self
GestureClick self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From GestureSingle

getGType
GType getGType()
gType
GType gType [@property getter]
self
GestureSingle self()

Returns this, for use in with statements.

getButton
uint getButton()

Returns the button number gesture listens for.

getCurrentButton
uint getCurrentButton()

Returns the button number currently interacting with gesture, or 0 if there is none.

getCurrentSequence
gdk.event_sequence.EventSequence getCurrentSequence()

Returns the event sequence currently interacting with gesture.

getExclusive
bool getExclusive()

Gets whether a gesture is exclusive.

getTouchOnly
bool getTouchOnly()

Returns true if the gesture is only triggered by touch events.

setButton
void setButton(uint button)

Sets the button number gesture listens to.

setExclusive
void setExclusive(bool exclusive)

Sets whether gesture is exclusive.

setTouchOnly
void setTouchOnly(bool touchOnly)

Sets whether to handle only touch events.