refactor(event): adjust events names

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-18 17:18:11 +01:00
parent 03f74ce186
commit 0ef2e08d02
20 changed files with 72 additions and 78 deletions

View File

@@ -745,12 +745,12 @@ static void lv_label_event_cb(lv_obj_t * obj, lv_event_t e)
res = lv_obj_event_base(MY_CLASS, obj, e);
if(res != LV_RES_OK) return;
if(e == LV_EVENT_STYLE_CHG) {
if(e == LV_EVENT_STYLE_CHANGED) {
/*Revert dots for proper refresh*/
lv_label_revert_dots(obj);
lv_label_refr_text(obj);
}
else if(e == LV_EVENT_COORD_CHG) {
else if(e == LV_EVENT_COORD_CHANGED) {
void * param = lv_event_get_param();
if(lv_area_get_width(&obj->coords) != lv_area_get_width(param) ||
lv_area_get_height(&obj->coords) != lv_area_get_height(param)) {
@@ -758,7 +758,7 @@ static void lv_label_event_cb(lv_obj_t * obj, lv_event_t e)
lv_label_refr_text(obj);
}
}
else if(e == LV_EVENT_BASE_DIR_CHG) {
else if(e == LV_EVENT_BASE_DIR_CHANGED) {
#if LV_USE_BIDI
lv_label_t * label = (lv_label_t *)obj;
if(label->static_txt == 0) lv_label_set_text(obj, NULL);