gtk.gesture_long_press
Module for [GestureLongPress] class
Types 3
[gtk.gesture_long_press.GestureLongPress] is a [gtk.gesture.Gesture] for long presses.
This gesture is also known as “Press and Hold”.
When the timeout is exceeded, the gesture is triggering the [gtk.gesture_long_press.GestureLongPress.pressed] signal.
If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the [gtk.gesture_long_press.GestureLongPress.cancelled] signal will be emitted.
How long the timeout is before the ::pressed signal gets emitted is determined by the property@Gtk.Settings:gtk-long-press-time setting. It can be modified by the property@Gtk.GestureLongPress:delay-factor property.
Methods
GestureLongPress self()Returns `this`, for use in `with` statements.GestureLongPressGidBuilder builder()Get builder for [gtk.gesturelongpress.GestureLongPress] Returns: New builder objectdouble delayFactor() @propertyGet `delayFactor` property. Returns: Factor by which to modify the default timeout.void delayFactor(double propval) @propertySet `delayFactor` property. Params: propval = Factor by which to modify the default timeout.double getDelayFactor()Returns the delay factor. Returns: the delay factorvoid setDelayFactor(double delayFactor)Applies the given delay factor.gulong connectCancelled(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_long_press.GestureLongPress)))
&& Parameters!T.length < 2)Connect to `Cancelled` signal.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] == double)))
&& (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] : gtk.gesture_long_press.GestureLongPress)))
&& Parameters!T.length < 4)Connect to `Pressed` signal.Methods
T delayFactor(double propval)Set `delayFactor` property. Params: propval = Factor by which to modify the default timeout. Returns: Builder instance for fluent chainingFluent builder for [gtk.gesture_long_press.GestureLongPress]
Methods