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

#include <style.h>

Data Fields

uint32_t size
mln_style_image_option_fields fields
const mln_image_stretch * stretch_x
size_t stretch_x_count
const mln_image_stretch * stretch_y
size_t stretch_y_count
mln_image_content content
mln_style_image_text_fit text_fit_width
mln_style_image_text_fit text_fit_height
float pixel_ratio
bool sdf
bool keep_unused

Detailed Description

Options for a style image, as the sprite spec describes them.

Field Documentation

◆ content

mln_image_content mln_style_image_options::content

◆ fields

mln_style_image_option_fields mln_style_image_options::fields

◆ keep_unused

bool mln_style_image_options::keep_unused

Keeps the image after no layer uses it. Without this, the map can remove an image that it asked for through MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING.

◆ pixel_ratio

float mln_style_image_options::pixel_ratio

◆ sdf

bool mln_style_image_options::sdf

◆ size

uint32_t mln_style_image_options::size

◆ stretch_x

const mln_image_stretch* mln_style_image_options::stretch_x

The ranges of columns that stretch, in increasing order without overlap.

◆ stretch_x_count

size_t mln_style_image_options::stretch_x_count

◆ stretch_y

const mln_image_stretch* mln_style_image_options::stretch_y

The ranges of rows that stretch, in increasing order without overlap.

◆ stretch_y_count

size_t mln_style_image_options::stretch_y_count

◆ text_fit_height

mln_style_image_text_fit mln_style_image_options::text_fit_height

◆ text_fit_width

mln_style_image_text_fit mln_style_image_options::text_fit_width

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