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
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
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_draw.hlv_draw_buf.hlv_draw_rect.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_image_decoder.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on