feat(obj): merge draw clallback to events

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-18 17:03:36 +01:00
parent 6b7fe23fb8
commit 03f74ce186
26 changed files with 1302 additions and 1544 deletions

View File

@@ -39,6 +39,7 @@ void lv_example_scroll_2(void)
}
lv_obj_update_snap(panel, LV_ANIM_ON);
#if LV_USE_SWITCH
/*Switch between "One scroll" and "Normal scroll" mode*/
lv_obj_t * sw = lv_switch_create(lv_scr_act(), NULL);
lv_obj_align(sw, NULL, LV_ALIGN_IN_TOP_RIGHT, -20, 10);
@@ -46,6 +47,7 @@ void lv_example_scroll_2(void)
lv_obj_t * label = lv_label_create(lv_scr_act(), NULL);
lv_label_set_text(label, "One scroll");
lv_obj_align(label, sw, LV_ALIGN_OUT_BOTTOM_MID, 0, 5);
#endif
}
#endif