# lv_obj_scroll_private.h (/api/core/lv_obj_scroll_private_h)



<RelatedHeaders name="lv_obj_scroll.h" isPrivate="true" />

<ApiSummary functions="1" />

Functions [#functions]

<ApiMember kind="function" name="lv_obj_scroll_by_raw" file="core/lv_obj_scroll_private.h" line="40" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_obj_scroll_private.h#L40">
  lv_obj_scroll_by_raw [#lv_obj_scroll_by_raw]

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

  ```c title=" " lineNumbers=1
  lv_result_t lv_obj_scroll_by_raw(lv_obj_t *obj, int32_t x, int32_t y)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name  | Type                                             | Description                    |
  | ----- | ------------------------------------------------ | ------------------------------ |
  | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to an object to scroll |
  | `x`   | <ApiLink name="int32_t" />                       | pixels to scroll horizontally  |
  | `y`   | <ApiLink name="int32_t" />                       | pixels to scroll vertically    |

  **Returns:** <ApiLink name="lv_result_t" /> — `LV_RESULT_INVALID`: to object was deleted in `LV_EVENT_SCROLL`; `LV_RESULT_OK`: if the object is still valid
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_obj_scroll.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
