lv_draw_label_private.h
API reference for lv_draw_label_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_label.h
Summary
Functions
lv_draw_unit_draw_letter_internal
void lv_draw_unit_draw_letter_internal(lv_draw_task_t *t, lv_draw_glyph_dsc_t *dsc, const lv_point_t *pos, const lv_font_t *font, uint32_t letter, lv_draw_glyph_cb_t cb)| Name | Type |
|---|---|
t | lv_draw_task_t * |
dsc | lv_draw_glyph_dsc_t * |
pos | const lv_point_t * |
font | const lv_font_t * |
letter | uint32_t |
cb | lv_draw_glyph_cb_t |
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.
| Member | Type | Description |
|---|---|---|
line_start | int32_t | Index of the line at y coordinate |
y | int32_t | Give the y coordinate of the first letter at line start index. Relative to the label's coordinates |
coord_y | int32_t | The '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
| Member | Type | Description |
|---|---|---|
glyph_data | const void * | Depends on format field, it could be image source or draw buf of bitmap or vector data. |
format | lv_font_glyph_format_t | |
letter_coords | const lv_area_t * | |
bg_coords | const lv_area_t * | |
g | lv_font_glyph_dsc_t * | |
color | lv_color_t | |
opa | lv_opa_t | |
outline_stroke_color | lv_color_t | |
outline_stroke_opa | lv_opa_t | |
outline_stroke_width | int32_t | |
rotation | int32_t | |
pivot | lv_point_t | Rotation pivot point associated with total glyph including line_height |
_draw_buf | lv_draw_buf_t * | a shared draw buf for get_bitmap, do not use it directly, use glyph_data instead |
Dependencies
lvgl_public.h
Last updated on