Package org.gnome.gtk
Class EventControllerScroll.Builder<B extends EventControllerScroll.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.EventControllerScroll.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
EventControllerScroll
public static class EventControllerScroll.Builder<B extends EventControllerScroll.Builder<B>>
extends EventController.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theEventControllerScroll
object.Emitted after scroll is finished if theEventControllerScrollFlags.KINETIC
flag is set.Signals that the widget should scroll by the amount specified bydx
anddy
.Signals that a new scrolling operation has begun.Signals that a scrolling operation has finished.setFlags
(Set<EventControllerScrollFlags> flags) The flags affecting event controller behavior.setFlags
(EventControllerScrollFlags... flags) The flags affecting event controller behavior.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 theEventControllerScroll
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 toEventControllerScroll
.- Overrides:
build
in classEventController.Builder<B extends EventControllerScroll.Builder<B>>
- Returns:
- a new instance of
EventControllerScroll
with the properties that were set in the Builder object.
-
setFlags
The flags affecting event controller behavior.- Parameters:
flags
- the value for theflags
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFlags
The flags affecting event controller behavior.- Parameters:
flags
- the value for theflags
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onDecelerate
Emitted after scroll is finished if theEventControllerScrollFlags.KINETIC
flag is set.velX
andvelY
express the initial velocity that was imprinted by the scroll events.velX
andvelY
are expressed in pixels/ms.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onScroll
Signals that the widget should scroll by the amount specified bydx
anddy
.For the representation unit of the deltas, see
EventControllerScroll.getUnit()
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onScrollBegin
Signals that a new scrolling operation has begun.It will only be emitted on devices capable of it.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onScrollEnd
Signals that a scrolling operation has finished.It will only be emitted on devices capable of it.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-