Lines Matching refs:state

37 static lv_imagebutton_state_t suggest_state(lv_obj_t * imagebutton, lv_imagebutton_state_t state);
75 void lv_imagebutton_set_src(lv_obj_t * obj, lv_imagebutton_state_t state, const void * src_left, co… in lv_imagebutton_set_src() argument
86 update_src_info(&imagebutton->src_left[state], src_left); in lv_imagebutton_set_src()
87 update_src_info(&imagebutton->src_mid[state], src_mid); in lv_imagebutton_set_src()
88 update_src_info(&imagebutton->src_right[state], src_right); in lv_imagebutton_set_src()
93 void lv_imagebutton_set_state(lv_obj_t * obj, lv_imagebutton_state_t state) in lv_imagebutton_set_state() argument
98 if(state == LV_IMAGEBUTTON_STATE_PRESSED || in lv_imagebutton_set_state()
99 state == LV_IMAGEBUTTON_STATE_CHECKED_PRESSED) obj_state |= LV_STATE_PRESSED; in lv_imagebutton_set_state()
100 if(state == LV_IMAGEBUTTON_STATE_DISABLED || in lv_imagebutton_set_state()
101 state == LV_IMAGEBUTTON_STATE_CHECKED_DISABLED) obj_state |= LV_STATE_DISABLED; in lv_imagebutton_set_state()
102 …if(state == LV_IMAGEBUTTON_STATE_CHECKED_DISABLED || state == LV_IMAGEBUTTON_STATE_CHECKED_PRESSED… in lv_imagebutton_set_state()
103 state == LV_IMAGEBUTTON_STATE_CHECKED_RELEASED) { in lv_imagebutton_set_state()
117 const void * lv_imagebutton_get_src_left(lv_obj_t * obj, lv_imagebutton_state_t state) in lv_imagebutton_get_src_left() argument
123 return imagebutton->src_left[state].img_src; in lv_imagebutton_get_src_left()
126 const void * lv_imagebutton_get_src_middle(lv_obj_t * obj, lv_imagebutton_state_t state) in lv_imagebutton_get_src_middle() argument
131 return imagebutton->src_mid[state].img_src; in lv_imagebutton_get_src_middle()
134 const void * lv_imagebutton_get_src_right(lv_obj_t * obj, lv_imagebutton_state_t state) in lv_imagebutton_get_src_right() argument
139 return imagebutton->src_right[state].img_src; in lv_imagebutton_get_src_right()
179 lv_imagebutton_state_t state = suggest_state(obj, get_state(obj)); in lv_imagebutton_event() local
180 if(imagebutton->src_left[state].img_src == NULL && in lv_imagebutton_event()
181 imagebutton->src_mid[state].img_src != NULL && in lv_imagebutton_event()
182 imagebutton->src_right[state].img_src == NULL) { in lv_imagebutton_event()
183 p->x = LV_MAX(p->x, imagebutton->src_mid[state].header.w); in lv_imagebutton_event()
195 lv_imagebutton_state_t state = suggest_state(obj, get_state(obj)); in draw_main() local
198 lv_imagebutton_src_info_t * src_info = &imagebutton->src_left[state]; in draw_main()
225 src_info = &imagebutton->src_right[state]; in draw_main()
236 src_info = &imagebutton->src_mid[state]; in draw_main()
259 lv_imagebutton_state_t state = suggest_state(obj, get_state(obj)); in refr_image() local
261 const void * src = imagebutton->src_mid[state].img_src; in refr_image()
265 lv_obj_set_height(obj, imagebutton->src_mid[state].header.h); /*Keep the user defined width*/ in refr_image()
277 static lv_imagebutton_state_t suggest_state(lv_obj_t * obj, lv_imagebutton_state_t state) in suggest_state() argument
280 if(imagebutton->src_mid[state].img_src == NULL) { in suggest_state()
281 switch(state) { in suggest_state()
305 return state; in suggest_state()