Lines Matching refs:cont

241     lv_obj_t * cont = lv_obj_get_child(lv_screen_active(), 0);  in inactive_timer_cb()  local
242 if(cont == NULL) return; in inactive_timer_cb()
245 lv_obj_scroll_by(cont, -100, 0, LV_ANIM_ON); in inactive_timer_cb()
253 lv_obj_scroll_by(cont, 100, 0, LV_ANIM_ON); in inactive_timer_cb()
261 lv_obj_t * cont = var; in shrink_anim_cb() local
262 lv_obj_set_height(cont, (v * CARD_HEIGHT) >> 8); in shrink_anim_cb()
263 lv_obj_set_style_opa(cont, v, 0); in shrink_anim_cb()
269 lv_obj_t * cont = lv_event_get_target(e); in scroll_event_cb() local
270 if(lv_indev_get_scroll_obj(indev) != cont) return; in scroll_event_cb()
272 int32_t w = lv_obj_get_width(cont); in scroll_event_cb()
273 int32_t scroll_x = lv_obj_get_scroll_x(cont) - lv_indev_scroll_throw_predict(indev, LV_DIR_HOR); in scroll_event_cb()
276 lv_obj_set_scroll_snap_x(cont, LV_SCROLL_SNAP_NONE); in scroll_event_cb()
277 lv_obj_remove_flag(cont, LV_OBJ_FLAG_CLICKABLE); in scroll_event_cb()
279 lv_obj_scroll_to_view(lv_obj_get_child(cont, 0), LV_ANIM_ON); in scroll_event_cb()
287 lv_anim_set_var(&a, cont); in scroll_event_cb()
294 lv_obj_t * cont = lv_obj_create(parent); in card_create() local
295 lv_obj_add_style(cont, &style_card_cont, 0); in card_create()
296 lv_obj_set_scroll_snap_x(cont, LV_SCROLL_SNAP_CENTER); in card_create()
297 lv_obj_add_event_cb(cont, scroll_event_cb, LV_EVENT_RELEASED, NULL); in card_create()
298 lv_obj_remove_flag(cont, LV_OBJ_FLAG_SCROLL_ELASTIC); in card_create()
299 lv_obj_set_scrollbar_mode(cont, LV_SCROLLBAR_MODE_OFF); in card_create()
301 lv_obj_t * remove = lv_obj_create(cont); in card_create()
311 lv_obj_t * placeholder = lv_obj_create(cont); in card_create()
314 lv_obj_t * card = lv_obj_create(cont); in card_create()