Lines Matching refs:ext
61 lv_checkbox_ext_t * ext = lv_obj_allocate_ext_attr(cb, sizeof(lv_checkbox_ext_t)); in lv_checkbox_create() local
62 LV_ASSERT_MEM(ext); in lv_checkbox_create()
63 if(ext == NULL) { in lv_checkbox_create()
68 ext->bullet = NULL; in lv_checkbox_create()
69 ext->label = NULL; in lv_checkbox_create()
75 ext->bullet = lv_obj_create(cb, NULL); in lv_checkbox_create()
76 lv_obj_set_click(ext->bullet, false); in lv_checkbox_create()
78 ext->label = lv_label_create(cb, NULL); in lv_checkbox_create()
91 ext->bullet = lv_obj_create(cb, copy_ext->bullet); in lv_checkbox_create()
92 ext->label = lv_label_create(cb, copy_ext->label); in lv_checkbox_create()
117 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_set_text() local
118 lv_label_set_text(ext->label, txt); in lv_checkbox_set_text()
131 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_set_text_static() local
132 lv_label_set_text_static(ext->label, txt); in lv_checkbox_set_text_static()
142 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_set_checked() local
146 lv_obj_add_state(ext->bullet, LV_STATE_CHECKED); in lv_checkbox_set_checked()
147 lv_obj_add_state(ext->label, LV_STATE_CHECKED); in lv_checkbox_set_checked()
150 lv_obj_clear_state(ext->bullet, LV_STATE_CHECKED); in lv_checkbox_set_checked()
151 lv_obj_clear_state(ext->label, LV_STATE_CHECKED); in lv_checkbox_set_checked()
154 lv_obj_clear_state(ext->bullet, LV_STATE_DISABLED); in lv_checkbox_set_checked()
155 lv_obj_clear_state(ext->label, LV_STATE_DISABLED); in lv_checkbox_set_checked()
159 lv_obj_finish_transitions(ext->bullet, LV_OBJ_PART_MAIN); in lv_checkbox_set_checked()
170 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_set_disabled() local
173 lv_obj_add_state(ext->bullet, LV_STATE_DISABLED); in lv_checkbox_set_disabled()
174 lv_obj_add_state(ext->label, LV_STATE_DISABLED); in lv_checkbox_set_disabled()
178 lv_obj_finish_transitions(ext->bullet, LV_OBJ_PART_MAIN); in lv_checkbox_set_disabled()
189 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_set_state() local
191 lv_obj_set_state(ext->bullet, lv_obj_get_state(cb, LV_CHECKBOX_PART_BG)); in lv_checkbox_set_state()
192 lv_obj_set_state(ext->bullet, lv_obj_get_state(cb, LV_CHECKBOX_PART_BG)); in lv_checkbox_set_state()
196 lv_obj_finish_transitions(ext->bullet, LV_OBJ_PART_MAIN); in lv_checkbox_set_state()
213 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_get_text() local
214 return lv_label_get_text(ext->label); in lv_checkbox_get_text()
243 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_signal() local
246 const lv_font_t * font = lv_obj_get_style_text_font(ext->label, LV_LABEL_PART_MAIN); in lv_checkbox_signal()
253 lv_obj_set_size(ext->bullet, line_height + leftp + rightp, line_height + topp + bottomp); in lv_checkbox_signal()
254 lv_obj_set_state(ext->bullet, lv_obj_get_state(cb, LV_CHECKBOX_PART_BG)); in lv_checkbox_signal()
258 lv_obj_set_state(ext->bullet, lv_obj_get_state(cb, LV_CHECKBOX_PART_BG)); in lv_checkbox_signal()
265 lv_obj_set_state(ext->bullet, lv_obj_get_state(cb, LV_CHECKBOX_PART_BG)); in lv_checkbox_signal()
278 lv_checkbox_ext_t * ext = lv_obj_get_ext_attr(cb); in lv_checkbox_get_style() local
284 style_dsc_p = lv_obj_get_style_list(ext->bullet, LV_BTN_PART_MAIN); in lv_checkbox_get_style()