lvgl/src/lv_objx/lv_imgbtn.c
/**
 * Signal function of the image button
 * @param imgbtn pointer to a image button object
 * @param sign a signal type from lv_signal_t enum
 * @param param pointer to a signal specific variable
 * @return LV_RES_OK: the object is not deleted in the function; LV_RES_INV: the object is deleted
 */
Signal function of the image button
@param imgbtn pointer to a image button object
@param sign a signal type from lv_signal_t enum
@param param pointer to a signal specific variable
@return LV_RES_OK: the object is not deleted in the function; LV_RES_INV: the object is deleted
Signal function of the image button @param imgbtn pointer to a image button object @param sign a signal type from lv_signal_t enum @param param pointer to a signal specific variable @return LV_RES_OK : the object is not deleted in the function ; LV_RES_INV : the object is deleted
static lv_res_t lv_imgbtn_signal(lv_obj_t * imgbtn, lv_signal_t sign, void * param)
{
    lv_res_t res;
    res = ancestor_signal(imgbtn, sign, param);
    if(res != LV_RES_OK) return res;
    if(sign == LV_SIGNAL_GET_TYPE) return lv_obj_handle_get_type_signal(param, LV_OBJX_NAME);
    if(sign == LV_SIGNAL_STYLE_CHG) {
        refr_img(imgbtn);
    } else if(sign == LV_SIGNAL_CLEANUP) {
    }
    return res;
}
static lv_res_t lv_imgbtn_signal ( lv_obj_t * imgbtn , lv_signal_t sign , void * param ) { lv_res_t res ; res = ancestor_signal ( imgbtn , sign , param ) ; if ( res != LV_RES_OK ) return res ; if ( sign == LV_SIGNAL_GET_TYPE ) return lv_obj_handle_get_type_signal ( param , LV_OBJX_NAME ) ; if ( sign == LV_SIGNAL_STYLE_CHG ) { refr_img ( imgbtn ) ; } else if ( sign == LV_SIGNAL_CLEANUP ) { } return res ; }
Signal function of the image button
 @param imgbtn pointer to a image button object
 @param sign a signal type from lv_signal_t enum
 @param param pointer to a signal specific variable
 @return LV_RES_OK: the object is not deleted in the function; LV_RES_INV: the object is deleted
Signal function of the image button @param imgbtn pointer to a image button object @param sign a signal type from lv_signal_t enum @param param pointer to a signal specific variable @return LV_RES_OK : the object is not deleted in the function ; LV_RES_INV : the object is deleted
/* Include the ancient signal function */ /* If the style changed then the button was clicked, released etc. so probably the state was
         * changed as well Set the new image for the new state.*/ /*Nothing to cleanup. (No dynamically allocated memory in 'ext')*/