lv_draw_label_private.h
-
struct _lv_draw_label_hint_t
- #include <lv_draw_label_private.h>
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.
Public Members
-
int32_t line_start
Index of the line at
y
coordinate
-
int32_t y
Give the
y
coordinate of the first letter atline start
index. Relative to the label's coordinates
-
int32_t coord_y
The 'y1' coordinate of the label when the hint was saved. Used to invalidate the hint if the label has moved too much.
-
int32_t line_start
-
struct _lv_draw_glyph_dsc_t
Public Members
-
const void *glyph_data
Depends on
format
field, it could be image source or draw buf of bitmap or vector data.
-
lv_font_glyph_format_t format
-
lv_color_t color
-
lv_opa_t opa
-
int32_t rotation
-
lv_point_t pivot
Rotation pivot point associated with total glyph including line_height
-
lv_draw_buf_t *_draw_buf
a shared draw buf for get_bitmap, do not use it directly, use glyph_data instead
-
const void *glyph_data