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

pub fn set_offset_y(img: *mut lv_obj_t, y: lv_coord_t) -> MynewtResult<()>

Set an offset for the source of an image. so the image will be displayed from the new origin.

  • img: pointer to an image
  • y:: the new offset along y axis.