lv_draw_label_private.h

API reference for lv_draw_label_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_label.h
Summary

Structs

struct

_lv_draw_label_hint_t

Store some info to speed up drawing of very large texts It takes a lot of time to get the first visible character because all the previous characters needs to be checked to calculate the positions. This structure stores an earlier (e.g. at -1000 px) coordinate and the index of that line. Therefore the calculations can start from here.

MemberTypeDescription
line_startint32_tIndex of the line at y coordinate
yint32_tGive the y coordinate of the first letter at line start index. Relative to the label's coordinates
coord_yint32_tThe 'y1' coordinate of the label when the hint was saved. Used to invalidate the hint if the label has moved too much.
struct

_lv_draw_glyph_dsc_t

MemberTypeDescription
glyph_dataconst void *Depends on format field, it could be image source or draw buf of bitmap or vector data.
formatlv_font_glyph_format_t
letter_coordsconst lv_area_t *
bg_coordsconst lv_area_t *
glv_font_glyph_dsc_t *
colorlv_color_t
opalv_opa_t
outline_stroke_colorlv_color_t
outline_stroke_opalv_opa_t
outline_stroke_widthint32_t
rotationint32_t
pivotlv_point_tRotation pivot point associated with total glyph including line_height
_draw_buflv_draw_buf_t *a shared draw buf for get_bitmap, do not use it directly, use glyph_data instead

Dependencies

How is this guide?

Last updated on

On this page