mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
[lv_group] Init wrap on group creation and fix documentation of wrap setter
This commit is contained in:
parent
4139cd619b
commit
648e2c4f17
@ -56,6 +56,7 @@ lv_group_t * lv_group_create(void)
|
|||||||
group->focus_cb = NULL;
|
group->focus_cb = NULL;
|
||||||
group->click_focus = 1;
|
group->click_focus = 1;
|
||||||
group->editing = 0;
|
group->editing = 0;
|
||||||
|
group->wrap = 1;
|
||||||
|
|
||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
@ -366,7 +367,7 @@ static void lv_group_refocus(lv_group_t *g) {
|
|||||||
/**
|
/**
|
||||||
* Set whether focus next/prev will allow wrapping from first->last or last->first.
|
* Set whether focus next/prev will allow wrapping from first->last or last->first.
|
||||||
* @param group pointer to group
|
* @param group pointer to group
|
||||||
* @param en: true: enable `click_focus`
|
* @param en: true: enable `wrap`
|
||||||
*/
|
*/
|
||||||
void lv_group_set_wrap(lv_group_t * group, bool en)
|
void lv_group_set_wrap(lv_group_t * group, bool en)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user