|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <style.h>
Data Fields | |
| uint32_t | width |
| uint32_t | height |
| uint32_t | fields |
| mln_buffer_view | pixels |
| 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 |
One complete runtime style image, borrowed for a completion callback.
pixels and the stretch arrays remain valid until the completion callback returns. A masked member whose bit is absent from fields is zero.
| mln_image_content mln_style_image_info::content |
Content box, when the image sets one.
| uint32_t mln_style_image_info::fields |
Bitwise combination of mln_style_image_info_field values.
| uint32_t mln_style_image_info::height |
Image height in pixels.
| float mln_style_image_info::pixel_ratio |
Sprite pixel ratio.
| mln_buffer_view mln_style_image_info::pixels |
Premultiplied RGBA8 pixels in tightly packed rows of width * 4 bytes, top row first.
| bool mln_style_image_info::sdf |
Whether the image is a signed distance field icon.
| const mln_image_stretch* mln_style_image_info::stretch_x |
Horizontally stretchable intervals.
| const mln_image_stretch* mln_style_image_info::stretch_y |
Vertically stretchable intervals.
| uint32_t mln_style_image_info::text_fit_height |
How the image fits text vertically, when it sets this.
| uint32_t mln_style_image_info::text_fit_width |
How the image fits text horizontally, when it sets this.
| uint32_t mln_style_image_info::width |
Image width in pixels.