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

const mln_image_stretchstretch_x
 
const mln_image_stretchstretch_y
 
mln_image_content content
 
uint32_t text_fit_width
 
uint32_t text_fit_height
 
float pixel_ratio
 
bool sdf
 

Detailed Description

Options for runtime style images.

Field Documentation

◆ content

mln_image_content mln_style_image_options::content

Content box used when icon-text-fit applies.

◆ pixel_ratio

float mln_style_image_options::pixel_ratio

Sprite pixel ratio. Defaults to 1.

◆ sdf

bool mln_style_image_options::sdf

Whether the image is a signed distance field icon. Defaults to false.

◆ stretch_x

const mln_image_stretch* mln_style_image_options::stretch_x

Horizontally stretchable intervals. Borrowed for the call and copied before return. May be null only when stretch_x_count is 0.

◆ stretch_y

const mln_image_stretch* mln_style_image_options::stretch_y

Vertically stretchable intervals. Borrowed for the call and copied before return. May be null only when stretch_y_count is 0.

◆ text_fit_height

uint32_t mln_style_image_options::text_fit_height

One of mln_style_image_text_fit. Defaults to STRETCH_OR_SHRINK.

◆ text_fit_width

uint32_t mln_style_image_options::text_fit_width

One of mln_style_image_text_fit. Defaults to STRETCH_OR_SHRINK.


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