GestureClick

GtkGestureClick is a GtkGesture implementation for clicks.

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

Constructors

this
this(GtkGestureClick* gtkGestureClick, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

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

Members

Functions

addOnPressed
gulong addOnPressed(void delegate(int, double, double, GestureClick) dlg, ConnectFlags connectFlags)

Emitted whenever a button or touch press happens.

addOnReleased
gulong addOnReleased(void delegate(int, double, double, GestureClick) dlg, ConnectFlags connectFlags)

Emitted when a button or touch is released.

addOnStopped
gulong addOnStopped(void delegate(GestureClick) dlg, ConnectFlags connectFlags)

Emitted whenever any time/distance threshold has been exceeded.

addOnUnpairedRelease
gulong addOnUnpairedRelease(void delegate(double, double, uint, GdkEventSequence*, GestureClick) dlg, ConnectFlags connectFlags)

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

addOnUnpairedRelease
gulong addOnUnpairedRelease(void delegate(double, double, uint, Event, GestureClick) dlg, ConnectFlags connectFlags)

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

getGestureClickStruct
GtkGestureClick* getGestureClickStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkGestureClick
GtkGestureClick* gtkGestureClick;

the main Gtk struct

Inherited Members

From GestureSingle

gtkGestureSingle
GtkGestureSingle* gtkGestureSingle;

the main Gtk struct

getGestureSingleStruct
GtkGestureSingle* getGestureSingleStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
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
GdkEventSequence* 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.

Meta