Package ch.bailu.gtk.adw
Klasse Swipeable
- Alle implementierten Schnittstellen:
PointerInterface
An interface for swipeable widgets.
The `AdwSwipeable` interface is implemented by all swipeable widgets.
See [class@SwipeTracker] for details about implementing it.
The `AdwSwipeable` interface is implemented by all swipeable widgets.
See [class@SwipeTracker] for details about implementing it.
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/iface.Swipeable.html
-
Verschachtelte Klassen - Übersicht
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
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoubleGets the progress @self will snap back to after the gesture is canceled.static ClassHandlerdoubleGets the swipe distance of @self.static intstatic longstatic TypeSystem.TypeSizedoubleGets the current progress of @self.voidgetSwipeArea(int navigation_direction, boolean is_drag, Rectangle rect) Gets the area @self can start a swipe from for the given direction and
gesture type.static longstatic TypeSystem.TypeSizeVon Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
Swipeable
-
-
Methodendetails
-
getClassHandler
-
getCancelProgress
public double getCancelProgress()Gets the progress @self will snap back to after the gesture is canceled.- Gibt zurück:
- the cancel progress, unitless
-
getDistance
public double getDistance()Gets the swipe distance of @self.
This corresponds to how many pixels 1 unit represents.- Gibt zurück:
- the swipe distance in pixels
-
getProgress
public double getProgress()Gets the current progress of @self.- Gibt zurück:
- the current progress, unitless
-
getSwipeArea
Gets the area @self can start a swipe from for the given direction and
gesture type.
This can be used to restrict swipes to only be possible from a certain area,
for example, to only allow edge swipes, or to have a draggable element and
ignore swipes elsewhere.
If not implemented, the default implementation returns the allocation of
@self, allowing swipes from anywhere.- Parameter:
navigation_direction- the direction of the swipeis_drag- whether the swipe is caused by a dragging gesturerect- a pointer to a rectangle to store the swipe area
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-