Lines Matching refs:imgbtn

29 static void refr_img(lv_obj_t * imgbtn);
30 static lv_imgbtn_state_t suggest_state(lv_obj_t * imgbtn, lv_imgbtn_state_t state);
31 lv_imgbtn_state_t get_state(const lv_obj_t * imgbtn);
84 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in lv_imgbtn_set_src() local
86 imgbtn->img_src_left[state] = src_left; in lv_imgbtn_set_src()
87 imgbtn->img_src_mid[state] = src_mid; in lv_imgbtn_set_src()
88 imgbtn->img_src_right[state] = src_right; in lv_imgbtn_set_src()
125 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in lv_imgbtn_get_src_left() local
127 return imgbtn->img_src_left[state]; in lv_imgbtn_get_src_left()
139 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in lv_imgbtn_get_src_middle() local
141 return imgbtn->img_src_mid[state]; in lv_imgbtn_get_src_middle()
153 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in lv_imgbtn_get_src_right() local
155 return imgbtn->img_src_right[state]; in lv_imgbtn_get_src_right()
165 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in lv_imgbtn_constructor() local
167 lv_memset_00((void *)imgbtn->img_src_mid, sizeof(imgbtn->img_src_mid)); in lv_imgbtn_constructor()
168 lv_memset_00(imgbtn->img_src_left, sizeof(imgbtn->img_src_left)); in lv_imgbtn_constructor()
169 lv_memset_00(imgbtn->img_src_right, sizeof(imgbtn->img_src_right)); in lv_imgbtn_constructor()
171 imgbtn->act_cf = LV_IMG_CF_UNKNOWN; in lv_imgbtn_constructor()
195 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in lv_imgbtn_event() local
197 if(imgbtn->img_src_left[state] == NULL && in lv_imgbtn_event()
198 imgbtn->img_src_mid[state] != NULL && in lv_imgbtn_event()
199 imgbtn->img_src_right[state] == NULL) { in lv_imgbtn_event()
201 lv_img_decoder_get_info(imgbtn->img_src_mid[state], &header); in lv_imgbtn_event()
219 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in draw_main() local
226 const void * src = imgbtn->img_src_left[state]; in draw_main()
256 src = imgbtn->img_src_right[state]; in draw_main()
267 src = imgbtn->img_src_mid[state]; in draw_main()
301 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in refr_img() local
305 const void * src = imgbtn->img_src_mid[state]; in refr_img()
312 imgbtn->act_cf = header.cf; in refr_img()
317 imgbtn->act_cf = LV_IMG_CF_UNKNOWN; in refr_img()
332 lv_imgbtn_t * imgbtn = (lv_imgbtn_t *)obj; in suggest_state() local
333 if(imgbtn->img_src_mid[state] == NULL) { in suggest_state()
336 if(imgbtn->img_src_mid[LV_IMGBTN_STATE_RELEASED]) return LV_IMGBTN_STATE_RELEASED; in suggest_state()
339 if(imgbtn->img_src_mid[LV_IMGBTN_STATE_RELEASED]) return LV_IMGBTN_STATE_RELEASED; in suggest_state()
342 … if(imgbtn->img_src_mid[LV_IMGBTN_STATE_CHECKED_RELEASED]) return LV_IMGBTN_STATE_CHECKED_RELEASED; in suggest_state()
343 if(imgbtn->img_src_mid[LV_IMGBTN_STATE_PRESSED]) return LV_IMGBTN_STATE_PRESSED; in suggest_state()
344 if(imgbtn->img_src_mid[LV_IMGBTN_STATE_RELEASED]) return LV_IMGBTN_STATE_RELEASED; in suggest_state()
347 if(imgbtn->img_src_mid[LV_IMGBTN_STATE_RELEASED]) return LV_IMGBTN_STATE_RELEASED; in suggest_state()
350 … if(imgbtn->img_src_mid[LV_IMGBTN_STATE_CHECKED_RELEASED]) return LV_IMGBTN_STATE_CHECKED_RELEASED; in suggest_state()
351 if(imgbtn->img_src_mid[LV_IMGBTN_STATE_RELEASED]) return LV_IMGBTN_STATE_RELEASED; in suggest_state()
361 lv_imgbtn_state_t get_state(const lv_obj_t * imgbtn) in get_state() argument
363 LV_ASSERT_OBJ(imgbtn, MY_CLASS); in get_state()
365 lv_state_t obj_state = lv_obj_get_state(imgbtn); in get_state()