refactor(style, obj) lv_obj_get_width/height_fit -> lv_objget_get_content_width/height, style_tranform_x/y -> style_translate_x/y

This commit is contained in:
Gabor Kiss-Vamosi
2021-04-20 21:08:16 +02:00
parent 4b0c85426a
commit 4324cf72f3
25 changed files with 413 additions and 136 deletions

View File

@@ -294,10 +294,10 @@ void lv_label_get_letter_pos(const lv_obj_t * obj, uint32_t char_id, lv_point_t
pos->x = 0;
break;
case LV_TEXT_ALIGN_RIGHT:
pos->x = lv_obj_get_width_fit(obj);
pos->x = lv_obj_get_content_width(obj);
break;
case LV_TEXT_ALIGN_CENTER:
pos->x = lv_obj_get_width_fit(obj) / 2;
pos->x = lv_obj_get_content_width(obj) / 2;
break;
}
return;