Lines Matching refs:pointer
48 if(proc->types.pointer.vect.x == 0 && proc->types.pointer.vect.y == 0) { in _lv_indev_scroll_handler()
52 lv_obj_t * scroll_obj = proc->types.pointer.scroll_obj; in _lv_indev_scroll_handler()
78 lv_point_transform(&proc->types.pointer.vect, angle, zoom, &pivot); in _lv_indev_scroll_handler()
83 if(proc->types.pointer.scroll_dir == LV_DIR_HOR) { in _lv_indev_scroll_handler()
86 diff_x = elastic_diff(scroll_obj, proc->types.pointer.vect.x, sl, sr, LV_DIR_HOR); in _lv_indev_scroll_handler()
91 diff_y = elastic_diff(scroll_obj, proc->types.pointer.vect.y, st, sb, LV_DIR_VER); in _lv_indev_scroll_handler()
105 proc->types.pointer.scroll_sum.x += diff_x; in _lv_indev_scroll_handler()
106 proc->types.pointer.scroll_sum.y += diff_y; in _lv_indev_scroll_handler()
111 lv_obj_t * scroll_obj = proc->types.pointer.scroll_obj; in _lv_indev_scroll_throw_handler()
113 if(proc->types.pointer.scroll_dir == LV_DIR_NONE) return; in _lv_indev_scroll_throw_handler()
119 proc->types.pointer.scroll_throw_vect.y = 0; in _lv_indev_scroll_throw_handler()
120 proc->types.pointer.scroll_throw_vect.x = 0; in _lv_indev_scroll_throw_handler()
126 if(proc->types.pointer.scroll_dir == LV_DIR_VER) { in _lv_indev_scroll_throw_handler()
127 proc->types.pointer.scroll_throw_vect.x = 0; in _lv_indev_scroll_throw_handler()
130 proc->types.pointer.scroll_throw_vect.y = in _lv_indev_scroll_throw_handler()
131 proc->types.pointer.scroll_throw_vect.y * (100 - scroll_throw) / 100; in _lv_indev_scroll_throw_handler()
136 …proc->types.pointer.scroll_throw_vect.y = elastic_diff(scroll_obj, proc->types.pointer.scroll_thro… in _lv_indev_scroll_throw_handler()
139 lv_obj_scroll_by(scroll_obj, 0, proc->types.pointer.scroll_throw_vect.y, LV_ANIM_OFF); in _lv_indev_scroll_throw_handler()
144 proc->types.pointer.scroll_throw_vect.y = 0; in _lv_indev_scroll_throw_handler()
150 else if(proc->types.pointer.scroll_dir == LV_DIR_HOR) { in _lv_indev_scroll_throw_handler()
151 proc->types.pointer.scroll_throw_vect.y = 0; in _lv_indev_scroll_throw_handler()
154 proc->types.pointer.scroll_throw_vect.x = in _lv_indev_scroll_throw_handler()
155 proc->types.pointer.scroll_throw_vect.x * (100 - scroll_throw) / 100; in _lv_indev_scroll_throw_handler()
160 …proc->types.pointer.scroll_throw_vect.x = elastic_diff(scroll_obj, proc->types.pointer.scroll_thro… in _lv_indev_scroll_throw_handler()
163 lv_obj_scroll_by(scroll_obj, proc->types.pointer.scroll_throw_vect.x, 0, LV_ANIM_OFF); in _lv_indev_scroll_throw_handler()
168 proc->types.pointer.scroll_throw_vect.x = 0; in _lv_indev_scroll_throw_handler()
176 … if(proc->types.pointer.scroll_throw_vect.x == 0 && proc->types.pointer.scroll_throw_vect.y == 0) { in _lv_indev_scroll_throw_handler()
209 proc->types.pointer.scroll_dir = LV_DIR_NONE; in _lv_indev_scroll_throw_handler()
210 proc->types.pointer.scroll_obj = NULL; in _lv_indev_scroll_throw_handler()
226 v = indev->proc.types.pointer.scroll_throw_vect_ori.y; in lv_indev_scroll_throw_predict()
229 v = indev->proc.types.pointer.scroll_throw_vect_ori.x; in lv_indev_scroll_throw_predict()
269 lv_obj_t * obj_act = proc->types.pointer.act_obj; in find_scroll_obj()
275 proc->types.pointer.scroll_sum.x += proc->types.pointer.vect.x; in find_scroll_obj()
276 proc->types.pointer.scroll_sum.y += proc->types.pointer.vect.y; in find_scroll_obj()
291 lv_point_t obj_scroll_sum = proc->types.pointer.scroll_sum; in find_scroll_obj()
361 proc->types.pointer.scroll_dir = hor_en ? LV_DIR_HOR : LV_DIR_VER; in find_scroll_obj()
375 proc->types.pointer.scroll_dir = dir_candidate; in find_scroll_obj()
376 proc->types.pointer.scroll_obj = obj_candidate; in find_scroll_obj()
377 proc->types.pointer.scroll_sum.x = 0; in find_scroll_obj()
378 proc->types.pointer.scroll_sum.y = 0; in find_scroll_obj()
386 lv_obj_t * obj = proc->types.pointer.scroll_obj; in init_scroll_limits()
389 …lv_area_set(&proc->types.pointer.scroll_area, LV_COORD_MIN, LV_COORD_MIN, LV_COORD_MAX, LV_COORD_M… in init_scroll_limits()
395 … proc->types.pointer.scroll_area.y1 = find_snap_point_y(obj, obj->coords.y1 + 1, LV_COORD_MAX, 0); in init_scroll_limits()
396 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, obj->coords.y1 - 1, 0); in init_scroll_limits()
399 … proc->types.pointer.scroll_area.y1 = find_snap_point_y(obj, obj->coords.y2, LV_COORD_MAX, 0); in init_scroll_limits()
400 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, obj->coords.y2, 0); in init_scroll_limits()
404 … proc->types.pointer.scroll_area.y1 = find_snap_point_y(obj, y_mid + 1, LV_COORD_MAX, 0); in init_scroll_limits()
405 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, y_mid - 1, 0); in init_scroll_limits()
409 proc->types.pointer.scroll_area.y1 = LV_COORD_MIN; in init_scroll_limits()
410 proc->types.pointer.scroll_area.y2 = LV_COORD_MAX; in init_scroll_limits()
416 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x1, LV_COORD_MAX, 0); in init_scroll_limits()
417 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x1, 0); in init_scroll_limits()
420 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x2, LV_COORD_MAX, 0); in init_scroll_limits()
421 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x2, 0); in init_scroll_limits()
425 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, x_mid + 1, LV_COORD_MAX, 0); in init_scroll_limits()
426 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, x_mid - 1, 0); in init_scroll_limits()
430 proc->types.pointer.scroll_area.x1 = LV_COORD_MIN; in init_scroll_limits()
431 proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits()
437 if(proc->types.pointer.scroll_area.x1 == 0) proc->types.pointer.scroll_area.x1 = LV_COORD_MIN; in init_scroll_limits()
438 if(proc->types.pointer.scroll_area.x2 == 0) proc->types.pointer.scroll_area.x2 = LV_COORD_MAX; in init_scroll_limits()
439 if(proc->types.pointer.scroll_area.y1 == 0) proc->types.pointer.scroll_area.y1 = LV_COORD_MIN; in init_scroll_limits()
440 if(proc->types.pointer.scroll_area.y2 == 0) proc->types.pointer.scroll_area.y2 = LV_COORD_MAX; in init_scroll_limits()
556 if(proc->types.pointer.scroll_sum.y + *diff_y < proc->types.pointer.scroll_area.y1) { in scroll_limit_diff()
557 *diff_y = proc->types.pointer.scroll_area.y1 - proc->types.pointer.scroll_sum.y; in scroll_limit_diff()
560 if(proc->types.pointer.scroll_sum.y + *diff_y > proc->types.pointer.scroll_area.y2) { in scroll_limit_diff()
561 *diff_y = proc->types.pointer.scroll_area.y2 - proc->types.pointer.scroll_sum.y; in scroll_limit_diff()
566 if(proc->types.pointer.scroll_sum.x + *diff_x < proc->types.pointer.scroll_area.x1) { in scroll_limit_diff()
567 *diff_x = proc->types.pointer.scroll_area.x1 - proc->types.pointer.scroll_sum.x; in scroll_limit_diff()
570 if(proc->types.pointer.scroll_sum.x + *diff_x > proc->types.pointer.scroll_area.x2) { in scroll_limit_diff()
571 *diff_x = proc->types.pointer.scroll_area.x2 - proc->types.pointer.scroll_sum.x; in scroll_limit_diff()
578 lv_coord_t y = proc->types.pointer.scroll_throw_vect.y; in scroll_throw_predict_y()
593 lv_coord_t x = proc->types.pointer.scroll_throw_vect.x; in scroll_throw_predict_x()