Home
last modified time | relevance | path

Searched refs:static_txt (Results 1 – 6 of 6) sorted by relevance

/lvgl-latest/src/widgets/checkbox/
Dlv_checkbox.c85 if(!cb->static_txt) cb->txt = lv_realloc(cb->txt, len); in lv_checkbox_set_text()
97 cb->static_txt = 0; in lv_checkbox_set_text()
108 if(!cb->static_txt) lv_free(cb->txt); in lv_checkbox_set_text_static()
111 cb->static_txt = 1; in lv_checkbox_set_text_static()
140 cb->static_txt = 1; in lv_checkbox_constructor()
143 cb->static_txt = 1; in lv_checkbox_constructor()
160 if(!cb->static_txt) { in lv_checkbox_destructor()
Dlv_checkbox_private.h37 uint32_t static_txt : 1; member
/lvgl-latest/src/widgets/dropdown/
Dlv_dropdown_private.h45 uint8_t static_txt : 1; /**< 1: Only a pointer is saved in `options`*/ member
Dlv_dropdown.c203 if(dropdown->options != NULL && dropdown->static_txt == 0) { in lv_dropdown_set_options()
220 dropdown->static_txt = 0; in lv_dropdown_set_options()
243 if(dropdown->static_txt == 0 && dropdown->options != NULL) { in lv_dropdown_set_options_static()
248 dropdown->static_txt = 1; in lv_dropdown_set_options_static()
263 if(dropdown->static_txt != 0) { in lv_dropdown_add_option()
268 dropdown->static_txt = 0; in lv_dropdown_add_option()
328 if(dropdown->static_txt == 0) in lv_dropdown_clear_options()
332 dropdown->static_txt = 0; in lv_dropdown_clear_options()
658 dropdown->static_txt = 1; in lv_dropdown_constructor()
688 if(!dropdown->static_txt) { in lv_dropdown_destructor()
/lvgl-latest/src/widgets/label/
Dlv_label_private.h49 uint8_t static_txt : 1; /**< Flag to indicate the text is static */ member
Dlv_label.c145 if(label->text == text && label->static_txt == 0) { in lv_label_set_text()
157 if(label->text != NULL && label->static_txt == 0) { in lv_label_set_text()
169 label->static_txt = 0; in lv_label_set_text()
189 if(label->text != NULL && label->static_txt == 0) { in lv_label_set_text_fmt()
198 label->static_txt = 0; /*Now the text is dynamically allocated*/ in lv_label_set_text_fmt()
208 if(label->static_txt == 0 && label->text != NULL) { in lv_label_set_text_static()
214 label->static_txt = 1; in lv_label_set_text_static()
667 if(label->static_txt != 0) return; in lv_label_ins_text()
693 if(label->static_txt) return; in lv_label_cut_text()
718 label->static_txt = 0; in lv_label_constructor()
[all …]