Lines Matching refs:cont
6 lv_obj_t * cont = lv_event_get_target(e); in scroll_event_cb() local
9 lv_obj_get_coords(cont, &cont_a); in scroll_event_cb()
12 lv_coord_t r = lv_obj_get_height(cont) * 7 / 10; in scroll_event_cb()
14 uint32_t child_cnt = lv_obj_get_child_cnt(cont); in scroll_event_cb()
16 lv_obj_t * child = lv_obj_get_child(cont, i); in scroll_event_cb()
53 lv_obj_t * cont = lv_obj_create(lv_scr_act()); in lv_example_scroll_6() local
54 lv_obj_set_size(cont, 200, 200); in lv_example_scroll_6()
55 lv_obj_center(cont); in lv_example_scroll_6()
56 lv_obj_set_flex_flow(cont, LV_FLEX_FLOW_COLUMN); in lv_example_scroll_6()
57 lv_obj_add_event_cb(cont, scroll_event_cb, LV_EVENT_SCROLL, NULL); in lv_example_scroll_6()
58 lv_obj_set_style_radius(cont, LV_RADIUS_CIRCLE, 0); in lv_example_scroll_6()
59 lv_obj_set_style_clip_corner(cont, true, 0); in lv_example_scroll_6()
60 lv_obj_set_scroll_dir(cont, LV_DIR_VER); in lv_example_scroll_6()
61 lv_obj_set_scroll_snap_y(cont, LV_SCROLL_SNAP_CENTER); in lv_example_scroll_6()
62 lv_obj_set_scrollbar_mode(cont, LV_SCROLLBAR_MODE_OFF); in lv_example_scroll_6()
66 lv_obj_t * btn = lv_btn_create(cont); in lv_example_scroll_6()
74 lv_event_send(cont, LV_EVENT_SCROLL, NULL); in lv_example_scroll_6()
77 lv_obj_scroll_to_view(lv_obj_get_child(cont, 0), LV_ANIM_OFF); in lv_example_scroll_6()