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.

Ancestors

Constructors

maplibre_native_ffi_momentum_snap_new

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

Instance methods

maplibre_native_ffi_momentum_snap_get_duration_ms

Gets MaplibreNativeFfiMomentumSnap:duration-ms.

maplibre_native_ffi_momentum_snap_get_offset

Gets MaplibreNativeFfiMomentumSnap:offset.

maplibre_native_ffi_momentum_snap_get_spacing

Gets MaplibreNativeFfiMomentumSnap:spacing.

maplibre_native_ffi_momentum_snap_get_tolerance

Gets MaplibreNativeFfiMomentumSnap:tolerance.

maplibre_native_ffi_momentum_snap_has_duration_ms

Whether MaplibreNativeFfiMomentumSnap:duration-ms is set.

maplibre_native_ffi_momentum_snap_has_offset

Whether MaplibreNativeFfiMomentumSnap:offset is set.

maplibre_native_ffi_momentum_snap_has_spacing

Whether MaplibreNativeFfiMomentumSnap:spacing is set.

maplibre_native_ffi_momentum_snap_has_tolerance

Whether MaplibreNativeFfiMomentumSnap:tolerance is set.

maplibre_native_ffi_momentum_snap_set_duration_ms

Sets MaplibreNativeFfiMomentumSnap:duration-ms.

maplibre_native_ffi_momentum_snap_set_offset

Sets MaplibreNativeFfiMomentumSnap:offset.

maplibre_native_ffi_momentum_snap_set_spacing

Sets MaplibreNativeFfiMomentumSnap:spacing.

maplibre_native_ffi_momentum_snap_set_tolerance

Sets MaplibreNativeFfiMomentumSnap:tolerance.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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 MaplibreNativeFfiMomentumSnapClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.