MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_momentum_snap Struct Reference

#include <map.h>

Data Fields

mln_momentum_snap_fields fields
double spacing
double offset
double tolerance
double duration_ms

Detailed Description

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 mln_gesture_momentum lists.

Field Documentation

◆ duration_ms

double mln_momentum_snap::duration_ms

Zero settles without easing. Defaults to 300.

◆ fields

mln_momentum_snap_fields mln_momentum_snap::fields

◆ offset

double mln_momentum_snap::offset

Defaults to 0.

◆ spacing

double mln_momentum_snap::spacing

Positive.

◆ tolerance

double mln_momentum_snap::tolerance

Not negative.


The documentation for this struct was generated from the following file: