Package org.gnome.gtk
Class GestureClick.Builder<B extends GestureClick.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.EventController.Builder<B>
org.gnome.gtk.Gesture.Builder<B>
org.gnome.gtk.GestureSingle.Builder<B>
org.gnome.gtk.GestureClick.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
GestureClick
public static class GestureClick.Builder<B extends GestureClick.Builder<B>>
extends GestureSingle.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGestureClick
object.onPressed
(GestureClick.PressedCallback handler) Emitted whenever a button or touch press happens.onReleased
(GestureClick.ReleasedCallback handler) Emitted when a button or touch is released.onStopped
(GestureClick.StoppedCallback handler) Emitted whenever any time/distance threshold has been exceeded.Emitted whenever the gesture receives a release event that had no previous corresponding press.Methods inherited from class org.gnome.gtk.GestureSingle.Builder
setButton, setExclusive, setTouchOnly
Methods inherited from class org.gnome.gtk.Gesture.Builder
onBegin, onCancel, onEnd, onSequenceStateChanged, onUpdate, setNPoints
Methods inherited from class org.gnome.gtk.EventController.Builder
setName, setPropagationLimit, setPropagationPhase
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theGestureClick
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toGestureClick
.- Overrides:
build
in classGestureSingle.Builder<B extends GestureClick.Builder<B>>
- Returns:
- a new instance of
GestureClick
with the properties that were set in the Builder object.
-
onPressed
Emitted whenever a button or touch press happens.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onReleased
Emitted when a button or touch is released.nPress
will report the number of press that is paired to this event, note thatGtk.GestureClick::stopped
may have been emitted between the press and its release,nPress
will only start over at the next press.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onStopped
Emitted whenever any time/distance threshold has been exceeded.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onUnpairedRelease
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.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-