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.

Ancestors

Constructors

maplibre_native_ffi_anchored_momentum_new

Creates a MaplibreNativeFfiAnchoredMomentum whose members are zero, empty, or unset.

Instance methods

maplibre_native_ffi_anchored_momentum_get_anchor

Gets MaplibreNativeFfiAnchoredMomentum:anchor.

maplibre_native_ffi_anchored_momentum_get_decay

Gets MaplibreNativeFfiAnchoredMomentum:decay.

maplibre_native_ffi_anchored_momentum_get_snap

Gets MaplibreNativeFfiAnchoredMomentum:snap.

maplibre_native_ffi_anchored_momentum_get_velocity

Gets MaplibreNativeFfiAnchoredMomentum:velocity.

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.

maplibre_native_ffi_anchored_momentum_set_anchor

Sets MaplibreNativeFfiAnchoredMomentum:anchor.

maplibre_native_ffi_anchored_momentum_set_decay

Sets MaplibreNativeFfiAnchoredMomentum:decay.

maplibre_native_ffi_anchored_momentum_set_snap

Sets MaplibreNativeFfiAnchoredMomentum:snap.

maplibre_native_ffi_anchored_momentum_set_velocity

Sets MaplibreNativeFfiAnchoredMomentum:velocity.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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.

Class structure

struct MaplibreNativeFfiAnchoredMomentumClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.