23#include "../font/lv_symbol_def.h"
30#define LV_LABEL_WAIT_CHAR_COUNT 3
31#define LV_LABEL_DOT_NUM 3
32#define LV_LABEL_POS_LAST 0xFFFF
33#define LV_LABEL_TEXT_SELECTION_OFF LV_DRAW_LABEL_NO_TXT_SEL
35LV_EXPORT_CONST_INT(LV_LABEL_DOT_NUM);
36LV_EXPORT_CONST_INT(LV_LABEL_POS_LAST);
37LV_EXPORT_CONST_INT(LV_LABEL_TEXT_SELECTION_OFF);
48 LV_LABEL_LONG_SCROLL_CIRCULAR,
51typedef uint8_t lv_label_long_mode_t;
58 char tmp[LV_LABEL_DOT_NUM + 1];
62#if LV_LABEL_LONG_TXT_HINT
66#if LV_LABEL_TEXT_SELECTION
72 lv_label_long_mode_t long_mode : 3;
73 uint8_t static_txt : 1;
76 uint8_t dot_tmp_alloc : 1;
101void lv_label_set_text(
lv_obj_t * obj,
const char * text);
109void lv_label_set_text_fmt(
lv_obj_t * obj,
const char * fmt, ...) LV_FORMAT_ATTRIBUTE(2, 3);
117void lv_label_set_text_static(
lv_obj_t * obj, const
char * text);
125void lv_label_set_long_mode(
lv_obj_t * obj, lv_label_long_mode_t long_mode);
133void lv_label_set_recolor(
lv_obj_t * obj,
bool en);
140void lv_label_set_text_sel_start(
lv_obj_t * obj, uint32_t index);
147void lv_label_set_text_sel_end(
lv_obj_t * obj, uint32_t index);
158char * lv_label_get_text(const
lv_obj_t * obj);
165lv_label_long_mode_t lv_label_get_long_mode(const
lv_obj_t * obj);
172bool lv_label_get_recolor(const
lv_obj_t * obj);
181void lv_label_get_letter_pos(const
lv_obj_t * obj, uint32_t char_id,
lv_point_t * pos);
205uint32_t lv_label_get_text_selection_start(const
lv_obj_t * obj);
212uint32_t lv_label_get_text_selection_end(const
lv_obj_t * obj);
225void lv_label_ins_text(
lv_obj_t * obj, uint32_t pos, const
char * txt);
234void lv_label_cut_text(
lv_obj_t * obj, uint32_t pos, uint32_t cnt);
Definition lv_draw_label.h:54
Definition lv_obj_class.h:49