lv_obj_get_x() function
Get the x coordinate of object.
Return value
distance of `obj` from the left side of its parent plus the parent's left padding
Notes
The position of the object is recalculated only on the next redraw. To force coordinate recalculation call `lv_obj_update_layout(obj)`. Zero return value means the object is on the left padding of the parent, and not on the left edge. Scrolling of the parent doesn't change the returned value. The returned value is always the distance from the parent even if `obj` is positioned by a layout.