Class
MaplibreNativeFfiMomentumSnap
Description [src]
final class MaplibreNativeFfi.MomentumSnap : GObject.Object
{
/* No available fields */
}
Where a part settles after a gesture that changed it.
The targets are every spacing from offset, in the part’s unit. Bearing
targets wrap around the circle. Once the part’s glide ends, or right away
when it doesn’t move, the part eases to the nearest target if it is within
tolerance of it, and otherwise stays where it is. A setting whose bit isn’t
set takes the part’s default, which MaplibreNativeFfiGestureMomentum lists.
A member that a has_ method reports on is unset until its property or
setter sets it.
See mln_momentum_snap in the
C API reference.
Constructors
maplibre_native_ffi_momentum_snap_new
Creates a MaplibreNativeFfiMomentumSnap whose members are zero, empty, or unset.
Instance methods
maplibre_native_ffi_momentum_snap_has_duration_ms
Whether MaplibreNativeFfiMomentumSnap:duration-ms is set.
maplibre_native_ffi_momentum_snap_has_tolerance
Whether MaplibreNativeFfiMomentumSnap:tolerance is set.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.