lvgl/src/lv_objx/lv_imgbtn.c
/**
 * Set images for a state of the image button
 * @param imgbtn pointer to an image button object
 * @param state for which state set the new image (from `lv_btn_state_t`) `
 * @param src pointer to an image source (a C array or path to a file)
 */
Set images for a state of the image button
@param imgbtn pointer to an image button object
@param state for which state set the new image (from `lv_btn_state_t`) `
@param src pointer to an image source (a C array or path to a file)
Set images for a state of the image button @param imgbtn pointer to an image button object @param state for which state set the new image ( from ` lv_btn_state_t ` ) ` @param src pointer to an image source ( a C array or path to a file )
void lv_imgbtn_set_src(lv_obj_t * imgbtn, lv_btn_state_t state, const void * src)
{
    LV_ASSERT_OBJ(imgbtn, LV_OBJX_NAME);
    lv_imgbtn_ext_t * ext = lv_obj_get_ext_attr(imgbtn);
    ext->img_src[state] = src;
    refr_img(imgbtn);
}
void lv_imgbtn_set_src ( lv_obj_t * imgbtn , lv_btn_state_t state , const void * src ) { LV_ASSERT_OBJ ( imgbtn , LV_OBJX_NAME ) ; lv_imgbtn_ext_t * ext = lv_obj_get_ext_attr ( imgbtn ) ; ext -> img_src [ state ] = src ; refr_img ( imgbtn ) ; }
Set images for a state of the image button
 @param imgbtn pointer to an image button object
 @param state for which state set the new image (from `lv_btn_state_t`) `
 @param src pointer to an image source (a C array or path to a file)
Set images for a state of the image button @param imgbtn pointer to an image button object @param state for which state set the new image ( from ` lv_btn_state_t ` ) ` @param src pointer to an image source ( a C array or path to a file )