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

#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

Detailed Description

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.

Field Documentation

◆ content

mln_image_content mln_style_image_info::content

Content box, when the image sets one.

◆ fields

uint32_t mln_style_image_info::fields

Bitwise combination of mln_style_image_info_field values.

◆ height

uint32_t mln_style_image_info::height

Image height in pixels.

◆ pixel_ratio

float mln_style_image_info::pixel_ratio

Sprite pixel ratio.

◆ pixels

mln_buffer_view mln_style_image_info::pixels

Premultiplied RGBA8 pixels in tightly packed rows of width * 4 bytes, top row first.

◆ sdf

bool mln_style_image_info::sdf

Whether the image is a signed distance field icon.

◆ stretch_x

const mln_image_stretch* mln_style_image_info::stretch_x

Horizontally stretchable intervals.

◆ stretch_y

const mln_image_stretch* mln_style_image_info::stretch_y

Vertically stretchable intervals.

◆ text_fit_height

uint32_t mln_style_image_info::text_fit_height

How the image fits text vertically, when it sets this.

◆ text_fit_width

uint32_t mln_style_image_info::text_fit_width

How the image fits text horizontally, when it sets this.

◆ width

uint32_t mln_style_image_info::width

Image width in pixels.


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