Struct

MaplibreNativeFfiRenderSessionSnapshot

Description [src]

struct MaplibreNativeFfiRenderSessionSnapshot {
  MaplibreNativeFfiRenderSessionState state;
  MaplibreNativeFfiLogicalExtent extent;
  guint64 generation;
  guint64 frame_generation;
  guint32 acquired_frame_count;
  MaplibreNativeFfiError failure_status;
  gboolean has_target;
}

The state of a render session at one moment.

See mln_render_session_snapshot in the C API reference.

Structure members
state: MaplibreNativeFfiRenderSessionState

State.

extent: MaplibreNativeFfiLogicalExtent

The target’s logical size, and the map’s scale factor.

generation: guint64

Generation.

frame_generation: guint64

Frame_generation.

acquired_frame_count: guint32

Acquired_frame_count.

failure_status: MaplibreNativeFfiError

0 until the session fails. Then MAPLIBRE_NATIVE_FFI_ERROR_TARGET_LOST when it failed because it lost its target, or MAPLIBRE_NATIVE_FFI_ERROR_NATIVE_ERROR when it failed for another reason.

has_target: gboolean

Whether the session is attached and has a target to render to. It’s false from when maplibre_native_ffi_render_session_release_target_async() completes until you give the session a new target.