Package ch.bailu.gtk.adw
Klasse SwipeTracker
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.adw.SwipeTracker
- Alle implementierten Schnittstellen:
PointerInterface
A swipe tracker used in [class@Carousel], [class@NavigationView] and
[class@OverlaySplitView].
The `AdwSwipeTracker` object can be used for implementing widgets with swipe
gestures. It supports touch-based swipes, pointer dragging, and touchpad
scrolling.
The widgets will probably want to expose the [property@SwipeTracker:enabled]
property. If they expect to use horizontal orientation,
[property@SwipeTracker:reversed] can be used for supporting RTL text
direction.
[class@OverlaySplitView].
The `AdwSwipeTracker` object can be used for implementing widgets with swipe
gestures. It supports touch-based swipes, pointer dragging, and touchpad
scrolling.
The widgets will probably want to expose the [property@SwipeTracker:enabled]
property. If they expect to use horizontal orientation,
[property@SwipeTracker:reversed] can be used for supporting RTL text
direction.
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.SwipeTracker.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
static final String
static final String
static final String
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSwipeTracker
(Swipeable swipeable) Creates a new `AdwSwipeTracker` for @widget.SwipeTracker
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceOrientable
.boolean
Gets whether to allow swiping for more than one snap point at a time.boolean
Gets whether @self can be dragged with mouse pointer.boolean
Gets whether to allow touchscreen swiping from `GtkWindowHandle`.static ClassHandler
boolean
Gets whether @self is enabled.static int
boolean
Gets whether to allow swiping past the first available snap point.static long
static TypeSystem.TypeSize
boolean
Gets whether @self is reversing the swipe direction.Get the widget @self is attached to.static long
static TypeSystem.TypeSize
boolean
Gets whether to allow swiping past the last available snap point.Connect to signal "begin-swipe".onEndSwipe
(SwipeTracker.OnEndSwipe signal) Connect to signal "end-swipe".onPrepare
(SwipeTracker.OnPrepare signal) Connect to signal "prepare".Connect to signal "update-swipe".void
setAllowLongSwipes
(boolean allow_long_swipes) Sets whether to allow swiping for more than one snap point at a time.void
setAllowMouseDrag
(boolean allow_mouse_drag) Sets whether @self can be dragged with mouse pointer.void
setAllowWindowHandle
(boolean allow_window_handle) Sets whether to allow touchscreen swiping from `GtkWindowHandle`.void
setEnabled
(boolean enabled) Sets whether @self is enabled.void
setLowerOvershoot
(boolean overshoot) Sets whether to allow swiping past the first available snap point.void
setReversed
(boolean reversed) Sets whether to reverse the swipe direction.void
setUpperOvershoot
(boolean overshoot) Sets whether to allow swiping past the last available snap point.void
shiftPosition
(double delta) Moves the current progress value by @delta.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_BEGIN_SWIPE
- Siehe auch:
-
SIGNAL_ON_END_SWIPE
- Siehe auch:
-
SIGNAL_ON_PREPARE
- Siehe auch:
-
SIGNAL_ON_UPDATE_SWIPE
- Siehe auch:
-
-
Konstruktordetails
-
SwipeTracker
-
SwipeTracker
Creates a new `AdwSwipeTracker` for @widget.- Parameter:
swipeable
- a widget to add the tracker on
-
-
Methodendetails
-
getClassHandler
-
getAllowLongSwipes
public boolean getAllowLongSwipes()Gets whether to allow swiping for more than one snap point at a time.- Gibt zurück:
- whether long swipes are allowed
-
getAllowMouseDrag
public boolean getAllowMouseDrag()Gets whether @self can be dragged with mouse pointer.- Gibt zurück:
- whether mouse dragging is allowed
-
getAllowWindowHandle
public boolean getAllowWindowHandle()Gets whether to allow touchscreen swiping from `GtkWindowHandle`.- Gibt zurück:
- whether swiping from window handles is allowed
-
getEnabled
public boolean getEnabled()Gets whether @self is enabled.- Gibt zurück:
- whether @self is enabled
-
getLowerOvershoot
public boolean getLowerOvershoot()Gets whether to allow swiping past the first available snap point.- Gibt zurück:
- whether to allow swiping past the first available snap point
-
getReversed
public boolean getReversed()Gets whether @self is reversing the swipe direction.- Gibt zurück:
- whether the direction is reversed
-
getSwipeable
Get the widget @self is attached to.- Gibt zurück:
- the swipeable widget
-
getUpperOvershoot
public boolean getUpperOvershoot()Gets whether to allow swiping past the last available snap point.- Gibt zurück:
- whether to allow swiping past the last available snap point
-
setAllowLongSwipes
public void setAllowLongSwipes(boolean allow_long_swipes) Sets whether to allow swiping for more than one snap point at a time.
If the value is `FALSE`, each swipe can only move to the adjacent snap
points.- Parameter:
allow_long_swipes
- whether to allow long swipes
-
setAllowMouseDrag
public void setAllowMouseDrag(boolean allow_mouse_drag) Sets whether @self can be dragged with mouse pointer.- Parameter:
allow_mouse_drag
- whether to allow mouse dragging
-
setAllowWindowHandle
public void setAllowWindowHandle(boolean allow_window_handle) Sets whether to allow touchscreen swiping from `GtkWindowHandle`.
Setting it to `TRUE` will make dragging the window impossible.- Parameter:
allow_window_handle
- whether to allow swiping from window handles
-
setEnabled
public void setEnabled(boolean enabled) Sets whether @self is enabled.
When it's not enabled, no events will be processed. Usually widgets will want
to expose this via a property.- Parameter:
enabled
- whether @self is enabled
-
setLowerOvershoot
public void setLowerOvershoot(boolean overshoot) Sets whether to allow swiping past the first available snap point.- Parameter:
overshoot
- whether to allow swiping past the first available snap point
-
setReversed
public void setReversed(boolean reversed) Sets whether to reverse the swipe direction.
If the swipe tracker is horizontal, it can be used for supporting RTL text
direction.- Parameter:
reversed
- whether to reverse the swipe direction
-
setUpperOvershoot
public void setUpperOvershoot(boolean overshoot) Sets whether to allow swiping past the last available snap point.- Parameter:
overshoot
- whether to allow swiping past the last available snap point
-
shiftPosition
public void shiftPosition(double delta) Moves the current progress value by @delta.
This can be used to adjust the current position if snap points move during
the gesture.- Parameter:
delta
- the position delta
-
onBeginSwipe
Connect to signal "begin-swipe".
SeeSwipeTracker.OnBeginSwipe.onBeginSwipe()
for signal description.
FieldSIGNAL_ON_BEGIN_SWIPE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onEndSwipe
Connect to signal "end-swipe".
SeeSwipeTracker.OnEndSwipe.onEndSwipe(double, double)
for signal description.
FieldSIGNAL_ON_END_SWIPE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onPrepare
Connect to signal "prepare".
SeeSwipeTracker.OnPrepare.onPrepare(int)
for signal description.
FieldSIGNAL_ON_PREPARE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onUpdateSwipe
Connect to signal "update-swipe".
SeeSwipeTracker.OnUpdateSwipe.onUpdateSwipe(double)
for signal description.
FieldSIGNAL_ON_UPDATE_SWIPE
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
asOrientable
Implements interfaceOrientable
. Call this to get access to interface functions.- Gibt zurück:
Orientable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-