[][src]Function lvgl::widgets::img::set_pivot

pub fn set_pivot(
    img: *mut lv_obj_t,
    pivot_x: lv_coord_t,
    pivot_y: lv_coord_t
) -> MynewtResult<()>

Set the rotation center of the image. The image will be rotated around this point

  • img: pointer to an image object
  • pivot_x: rotation center x of the image
  • pivot_y: rotation center y of the image