lv_obj_scroll.h
API reference for lv_obj_scroll.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_obj_scroll_private.h
Summary
Functions
core/lv_obj_scroll.h:59function
lv_obj_set_scrollbar_mode
Set how the scrollbars should behave.
void lv_obj_set_scrollbar_mode(lv_obj_t *obj, lv_scrollbar_mode_t mode)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to Widget |
mode | lv_scrollbar_mode_t | LV_SCROLL_MODE_ON/OFF/AUTO/ACTIVE |
core/lv_obj_scroll.h:66function
lv_obj_set_scroll_dir
Set direction Widget can be scrolled
void lv_obj_set_scroll_dir(lv_obj_t *obj, lv_dir_t dir)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to Widget |
dir | lv_dir_t | one or more bit-wise OR-ed values of lv_dir_t enumeration |
core/lv_obj_scroll.h:73function
lv_obj_set_scroll_snap_x
Set where to snap the children when scrolling ends horizontally
void lv_obj_set_scroll_snap_x(lv_obj_t *obj, lv_scroll_snap_t align)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to Widget |
align | lv_scroll_snap_t | value from lv_scroll_snap_t enumeration |
core/lv_obj_scroll.h:80function
lv_obj_set_scroll_snap_y
Set where to snap the children when scrolling ends vertically
void lv_obj_set_scroll_snap_y(lv_obj_t *obj, lv_scroll_snap_t align)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to Widget |
align | lv_scroll_snap_t | value from lv_scroll_snap_t enumeration |
Enums
lv_scrollbar_mode_t
Scrollbar modes: shows when should the scrollbars be visible
| Name | Description |
|---|---|
LV_SCROLLBAR_MODE_OFF | Never show scrollbars |
LV_SCROLLBAR_MODE_ON | Always show scrollbars |
LV_SCROLLBAR_MODE_ACTIVE | Show scroll bars when Widget is being scrolled |
LV_SCROLLBAR_MODE_AUTO | Show scroll bars when the content is large enough to be scrolled |
Used by 1 function
lv_obj_set_scrollbar_mode— parammode
lv_scroll_snap_t
Scroll span align options. Tells where to align the snappable children when scroll stops.
| Name | Description |
|---|---|
LV_SCROLL_SNAP_NONE | Do not align, leave where it is |
LV_SCROLL_SNAP_START | Align to the left/top |
LV_SCROLL_SNAP_END | Align to the right/bottom |
LV_SCROLL_SNAP_CENTER | Align to the center |
Used by 2 functions
lv_obj_set_scroll_snap_x— paramalignlv_obj_set_scroll_snap_y— paramalign
Dependencies
How is this guide?
Last updated on