Add lv_obj_adjust_coords() API for finding the object's "client area"

This commit is contained in:
Themba Dube
2019-06-01 21:37:04 -04:00
parent 23dc884f35
commit ca01b558f7
2 changed files with 25 additions and 0 deletions

View File

@@ -666,6 +666,12 @@ uint16_t lv_obj_count_children_recursive(const lv_obj_t * obj);
*/
void lv_obj_get_coords(const lv_obj_t * obj, lv_area_t * cords_p);
/**
* Adjust the coordinates retrieved from lv_obj_get_coords() according
* to the object's style.
*/
void lv_obj_adjust_coords(const lv_obj_t *obj, lv_area_t * cords_p);
/**
* Get the x coordinate of object
* @param obj pointer to an object