lv_indev_scroll.h
API reference for lv_indev_scroll.h
Summary
Functions
lv_indev_scroll_get_snap_dist
Get the distance of the nearest snap point
void lv_indev_scroll_get_snap_dist(lv_obj_t *obj, lv_point_t *p)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | the object on which snap points should be found |
p | lv_point_t * | save the distance of the found snap point there |
lv_indev_scroll_handler
Handle scrolling. Called by LVGL during input device processing
void lv_indev_scroll_handler(lv_indev_t *indev)| Name | Type | Description |
|---|---|---|
indev | lv_indev_t * | pointer to an input device |
lv_indev_scroll_throw_handler
Handle throwing after scrolling. Called by LVGL during input device processing
void lv_indev_scroll_throw_handler(lv_indev_t *indev)| Name | Type | Description |
|---|---|---|
indev | lv_indev_t * | pointer to an input device |
lv_indev_scroll_throw_predict
Predict where would a scroll throw end
int32_t lv_indev_scroll_throw_predict(lv_indev_t *indev, lv_dir_t dir)| Name | Type | Description |
|---|---|---|
indev | lv_indev_t * | pointer to an input device |
dir | lv_dir_t | LV_DIR_VER or LV_DIR_HOR |
Returns: int32_t — the difference compared to the current position when the throw would be finished
Dependencies
lvgl_public.h
Last updated on