Class
MaplibreNativeFfiAnchoredMomentum
Description [src]
final class MaplibreNativeFfi.AnchoredMomentum : GObject.Object
{
/* No available fields */
}
How a gesture’s zoom, bearing, or pitch keeps changing after release.
A member that a has_ method reports on is unset until its property or
setter sets it.
See mln_anchored_momentum in the
C API reference.
Constructors
maplibre_native_ffi_anchored_momentum_new
Creates a MaplibreNativeFfiAnchoredMomentum whose members are zero, empty, or unset.
Instance methods
maplibre_native_ffi_anchored_momentum_has_anchor
Whether MaplibreNativeFfiAnchoredMomentum:anchor is set.
maplibre_native_ffi_anchored_momentum_has_snap
Whether MaplibreNativeFfiAnchoredMomentum:snap is set.
maplibre_native_ffi_anchored_momentum_has_velocity
Whether MaplibreNativeFfiAnchoredMomentum:velocity is set.
Properties
MaplibreNativeFfi.AnchoredMomentum:anchor
The screen point that the change keeps in place. Without one, the change keeps the center of the view in place.
MaplibreNativeFfi.AnchoredMomentum:snap
Where the part settles. Without this, it stays where the gesture and its glide leave it.
MaplibreNativeFfi.AnchoredMomentum:velocity
How fast the value changed at release: zoom levels per second for zoom, and degrees per second for bearing and pitch. The part moves only when this 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.