|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <style.h>
Data Fields | |
| const mln_image_stretch * | stretch_x |
| const mln_image_stretch * | stretch_y |
| mln_image_content | content |
| uint32_t | text_fit_width |
| uint32_t | text_fit_height |
| float | pixel_ratio |
| bool | sdf |
Options for runtime style images.
| mln_image_content mln_style_image_options::content |
Content box used when icon-text-fit applies.
| float mln_style_image_options::pixel_ratio |
Sprite pixel ratio. Defaults to 1.
| bool mln_style_image_options::sdf |
Whether the image is a signed distance field icon. Defaults to false.
| 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.
| 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.
| uint32_t mln_style_image_options::text_fit_height |
One of mln_style_image_text_fit. Defaults to STRETCH_OR_SHRINK.
| uint32_t mln_style_image_options::text_fit_width |
One of mln_style_image_text_fit. Defaults to STRETCH_OR_SHRINK.