Searched refs:diff_y (Results 1 – 5 of 5) sorted by relevance
/lvgl-3.7.0/examples/scroll/ |
D | lv_example_scroll_6.c | 22 lv_coord_t diff_y = child_y_center - cont_y_center; in scroll_event_cb() local 23 diff_y = LV_ABS(diff_y); in scroll_event_cb() 28 if(diff_y >= r) { in scroll_event_cb() 33 uint32_t x_sqr = r * r - diff_y * diff_y; in scroll_event_cb()
|
D | lv_example_scroll_6.py | 19 diff_y = child_y_center - cont_y_center 20 diff_y = abs(diff_y) 25 if diff_y >= r: 29 x_sqr = r * r - diff_y * diff_y
|
/lvgl-3.7.0/src/core/ |
D | lv_indev_scroll.c | 28 static void scroll_limit_diff(_lv_indev_proc_t * proc, lv_coord_t * diff_x, lv_coord_t * diff_y); 82 lv_coord_t diff_y = 0; in _lv_indev_scroll_handler() local 91 diff_y = elastic_diff(scroll_obj, proc->types.pointer.vect.y, st, sb, LV_DIR_VER); in _lv_indev_scroll_handler() 97 if((scroll_dir & LV_DIR_TOP) == 0 && diff_y > 0) diff_y = 0; in _lv_indev_scroll_handler() 98 if((scroll_dir & LV_DIR_BOTTOM) == 0 && diff_y < 0) diff_y = 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() 106 proc->types.pointer.scroll_sum.y += diff_y; in _lv_indev_scroll_handler() 143 lv_coord_t diff_y = scroll_throw_predict_y(proc); in _lv_indev_scroll_throw_handler() local 145 scroll_limit_diff(proc, NULL, &diff_y); in _lv_indev_scroll_throw_handler() [all …]
|
/lvgl-3.7.0/src/extra/layouts/flex/ |
D | lv_flex.c | 518 lv_coord_t diff_y = abs_y - item->coords.y1 + tr_y; in children_repos() local 520 diff_y += f->row ? cross_pos : main_pos; in children_repos() 522 if(diff_x || diff_y) { in children_repos() 526 item->coords.y1 += diff_y; in children_repos() 527 item->coords.y2 += diff_y; 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/ |
D | lv_grid.c | 672 lv_coord_t diff_y = hint->grid_abs.y + y - item->coords.y1; in item_repos() local 673 if(diff_x || diff_y) { in item_repos() 677 item->coords.y1 += diff_y; in item_repos() 678 item->coords.y2 += diff_y; in item_repos() 680 lv_obj_move_children_by(item, diff_x, diff_y, false); in item_repos()
|