lv_obj_scroll_private.h

Functions

lv_result_t lv_obj_scroll_by_raw(lv_obj_t *obj, int32_t x, int32_t y)

Low level function to scroll by given x and y coordinates. LV_EVENT_SCROLL is sent.

Parameters:
  • obj – pointer to an object to scroll

  • x – pixels to scroll horizontally

  • y – pixels to scroll vertically

Returns:

LV_RESULT_INVALID: to object was deleted in LV_EVENT_SCROLL; LV_RESULT_OK: if the object is still valid