Lines Matching full:src
70 void lv_img_set_src(lv_obj_t * obj, const void * src) in lv_img_set_src() argument
76 lv_img_src_t src_type = lv_img_src_get_type(src); in lv_img_set_src()
99 lv_mem_free((void *)img->src); in lv_img_set_src()
101 img->src = NULL; in lv_img_set_src()
107 lv_img_decoder_get_info(src, &header); in lv_img_set_src()
113 lv_mem_free((void *)img->src); in lv_img_set_src()
115 img->src = src; in lv_img_set_src()
118 /*If the new and the old src are the same then it was only a refresh.*/ in lv_img_set_src()
119 if(img->src != src) { in lv_img_set_src()
125 old_src = img->src; in lv_img_set_src()
127 char * new_str = lv_mem_alloc(strlen(src) + 1); in lv_img_set_src()
130 strcpy(new_str, src); in lv_img_set_src()
131 img->src = new_str; in lv_img_set_src()
143 … lv_txt_get_size(&size, src, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in lv_img_set_src()
317 return img->src; in lv_img_get_src()
392 img->src = NULL; in lv_img_constructor()
417 lv_mem_free((void *)img->src); in lv_img_destructor()
418 img->src = NULL; in lv_img_destructor()
455 lv_img_set_src(obj, img->src); in lv_img_event()
670 lv_draw_img(draw_ctx, &img_dsc, &coords_tmp, img->src); in draw_img()
680 lv_draw_label(draw_ctx, &label_dsc, &obj->coords, img->src, NULL); in draw_img()