Package org.gnome.gtk
Class GestureSingle.Builder<B extends GestureSingle.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>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
DragSource.Builder
,GestureClick.Builder
,GestureDrag.Builder
,GestureLongPress.Builder
,GestureStylus.Builder
,GestureSwipe.Builder
- Enclosing class:
GestureSingle
public static class GestureSingle.Builder<B extends GestureSingle.Builder<B>>
extends Gesture.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGestureSingle
object.setButton
(int button) Mouse button number to listen to, or 0 to listen for any button.setExclusive
(boolean exclusive) Whether the gesture is exclusive.setTouchOnly
(boolean touchOnly) Whether the gesture handles only touch events.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 theGestureSingle
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 toGestureSingle
.- Overrides:
build
in classGesture.Builder<B extends GestureSingle.Builder<B>>
- Returns:
- a new instance of
GestureSingle
with the properties that were set in the Builder object.
-
setButton
Mouse button number to listen to, or 0 to listen for any button.- Parameters:
button
- the value for thebutton
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setExclusive
Whether the gesture is exclusive.Exclusive gestures only listen to pointer and pointer emulated events.
- Parameters:
exclusive
- the value for theexclusive
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTouchOnly
Whether the gesture handles only touch events.- Parameters:
touchOnly
- the value for thetouch-only
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-