gtk.gesture_multi_press

Module for [GestureMultiPress] class

Types 3

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

Callers may also restrict the area that is considered valid for a >1 touch/button press through gtk.gesture_multi_press.GestureMultiPress.setArea, so any click happening outside that area is considered to be a first click of its own.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
GestureMultiPress self() nothrowReturns `this`, for use in `with` statements.
GestureMultiPressGidBuilder builder() static nothrowGet builder for [gtk.gesture_multi_press.GestureMultiPress] Returns: New builder object
bool getArea(out gdk.rectangle.Rectangle rect) nothrowIf an area was set through [gtk.gesture_multi_press.GestureMultiPress.setArea], this function will return true and fill in rect with the press area. See [gtk.gesture_multi_press.GestureMultiPress.s...
void setArea(gdk.rectangle.Rectangle rect) nothrowIf rect is non-null, the press area will be checked to be confined within the rectangle, otherwise the button count will be reset so the press is seen as being the first one. If rect is null, the a...
gulong connectPressed(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == double))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.gesture_multi_press.GestureMultiPress))) && Parameters!T.length < 5) nothrowConnect to `Pressed` signal.
gulong connectReleased(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == double))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.gesture_multi_press.GestureMultiPress))) && Parameters!T.length < 5) nothrowConnect to `Released` signal.
gulong connectStopped(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.gesture_multi_press.GestureMultiPress))) && Parameters!T.length < 2) nothrowConnect to `Stopped` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.widget.Widget widget)Returns a newly created #GtkGesture that recognizes single and multiple presses.