Method

MaplibreNativeFfiRenderSessionresize_async

Declaration [src]

void
maplibre_native_ffi_render_session_resize_async (
  MaplibreNativeFfiRenderSession* self,
  const MaplibreNativeFfiLogicalSize* logical_size,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Resizes the session’s target and its map.

The session renders at the map’s scale factor. Release every acquired frame first.

See mln_render_session_resize in the C API reference.

It fails with these errors:

  • MAPLIBRE_NATIVE_FFI_ERROR_UNSUPPORTED when the session renders into a borrowed ring. Give it new textures of the new size instead.
  • MAPLIBRE_NATIVE_FFI_ERROR_TARGET_LOST when the session loses its target before the resize applies.

Without callback, nothing reports whether the call succeeds.

This method completes asynchronously. Use maplibre_native_ffi_render_session_resize_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

logical_size

Type: MaplibreNativeFfiLogicalSize

No description available.

The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

The callback to call when the call finishes.

The argument can be NULL.
user_data

Type: gpointer

The data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the method.