[][src]Function lvgl::core::obj::area_set_pos

pub fn area_set_pos(
    area_p: *mut lv_area_t,
    x: lv_coord_t,
    y: lv_coord_t
) -> MynewtResult<()>

Set the position of an area (width and height will be kept)

  • area_p: pointer to an area
  • x: the new x coordinate of the area
  • y: the new y coordinate of the area