Home
last modified time | relevance | path

Searched refs:diff_x (Results 1 – 3 of 3) sorted by relevance

/lvgl-3.7.0/src/core/
Dlv_indev_scroll.c28 static void scroll_limit_diff(_lv_indev_proc_t * proc, lv_coord_t * diff_x, lv_coord_t * diff_y);
81 lv_coord_t diff_x = 0; in _lv_indev_scroll_handler() local
86 diff_x = elastic_diff(scroll_obj, proc->types.pointer.vect.x, sl, sr, LV_DIR_HOR); in _lv_indev_scroll_handler()
95 if((scroll_dir & LV_DIR_LEFT) == 0 && diff_x > 0) diff_x = 0; in _lv_indev_scroll_handler()
96 if((scroll_dir & LV_DIR_RIGHT) == 0 && diff_x < 0) diff_x = 0; in _lv_indev_scroll_handler()
101 scroll_limit_diff(proc, &diff_x, &diff_y); in _lv_indev_scroll_handler()
103 _lv_obj_scroll_by_raw(scroll_obj, diff_x, diff_y); in _lv_indev_scroll_handler()
105 proc->types.pointer.scroll_sum.x += diff_x; in _lv_indev_scroll_handler()
167 lv_coord_t diff_x = scroll_throw_predict_x(proc); in _lv_indev_scroll_throw_handler() local
169 scroll_limit_diff(proc, &diff_x, NULL); in _lv_indev_scroll_throw_handler()
[all …]
/lvgl-3.7.0/src/extra/layouts/flex/
Dlv_flex.c517 lv_coord_t diff_x = abs_x - item->coords.x1 + tr_x; in children_repos() local
519 diff_x += f->row ? main_pos : cross_pos; in children_repos()
522 if(diff_x || diff_y) { in children_repos()
524 item->coords.x1 += diff_x; in children_repos()
525 item->coords.x2 += diff_x; in children_repos()
529 lv_obj_move_children_by(item, diff_x, diff_y, false); in children_repos()
/lvgl-3.7.0/src/extra/layouts/grid/
Dlv_grid.c671 lv_coord_t diff_x = hint->grid_abs.x + x - item->coords.x1; in item_repos() local
673 if(diff_x || diff_y) { in item_repos()
675 item->coords.x1 += diff_x; in item_repos()
676 item->coords.x2 += diff_x; in item_repos()
680 lv_obj_move_children_by(item, diff_x, diff_y, false); in item_repos()