Lines Matching refs:panel
40 lv_obj_t * panel = lv_obj_create(lv_screen_active()); in lv_demo_scroll() local
41 lv_obj_set_style_shadow_width(panel, 16, 0); in lv_demo_scroll()
42 lv_obj_set_style_shadow_offset_y(panel, 8, 0); in lv_demo_scroll()
43 lv_obj_set_style_shadow_offset_x(panel, 4, 0); in lv_demo_scroll()
44 lv_obj_set_style_shadow_opa(panel, LV_OPA_40, 0); in lv_demo_scroll()
46 lv_obj_set_size(panel, lv_pct(70), lv_pct(90)); in lv_demo_scroll()
47 lv_obj_center(panel); in lv_demo_scroll()
48 lv_obj_set_flex_flow(panel, LV_FLEX_FLOW_COLUMN); in lv_demo_scroll()
49 lv_obj_set_flex_align(panel, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); in lv_demo_scroll()
51 list = lv_list_create(panel); in lv_demo_scroll()
63 switch_create(panel, "Scrollable", LV_OBJ_FLAG_SCROLLABLE, true); in lv_demo_scroll()
64 switch_create(panel, "Scroll chain", LV_OBJ_FLAG_SCROLL_CHAIN, true); in lv_demo_scroll()
65 switch_create(panel, "Elastic scroll", LV_OBJ_FLAG_SCROLL_ELASTIC, true); in lv_demo_scroll()
66 switch_create(panel, "Add scroll momentum", LV_OBJ_FLAG_SCROLL_MOMENTUM, true); in lv_demo_scroll()