Lines Matching refs:y
91 ext->act_id.y = 0; in lv_tileview_create()
128 ext->act_id.y = copy_ext->act_id.y; in lv_tileview_create()
187 if(valid_pos[i].x == ext->act_id.x && valid_pos[i].y == ext->act_id.y) { in lv_tileview_set_valid_positions()
194 lv_tileview_set_tile_act(tileview, valid_pos[0].x, valid_pos[0].y, LV_ANIM_OFF); in lv_tileview_set_valid_positions()
205 void lv_tileview_set_tile_act(lv_obj_t * tileview, lv_coord_t x, lv_coord_t y, lv_anim_enable_t ani… in lv_tileview_set_tile_act() argument
218 if(ext->valid_pos[tile_id].x == x && ext->valid_pos[tile_id].y == y) { in lv_tileview_set_tile_act()
227 ext->act_id.y = y; in lv_tileview_set_tile_act()
230 lv_coord_t y_coord = -y * lv_obj_get_height(tileview); in lv_tileview_set_tile_act()
280 void lv_tileview_get_tile_act(lv_obj_t * tileview, lv_coord_t * x, lv_coord_t * y) in lv_tileview_get_tile_act() argument
285 *y = ext->act_id.y; in lv_tileview_get_tile_act()
358 lv_coord_t y = lv_obj_get_y(scrl); in lv_tileview_scrl_signal() local
363 … if(!ext->drag_top_en && y > -(ext->act_id.y * h) && indev->proc.types.pointer.vect.y > 0) { in lv_tileview_scrl_signal()
365 lv_obj_set_y(scrl, -ext->act_id.y * h + top); in lv_tileview_scrl_signal()
367 … if(!ext->drag_bottom_en && indev->proc.types.pointer.vect.y < 0 && y < -(ext->act_id.y * h)) { in lv_tileview_scrl_signal()
369 lv_obj_set_y(scrl, -ext->act_id.y * h + top); in lv_tileview_scrl_signal()
385 lv_obj_set_y(scrl, -ext->act_id.y * lv_obj_get_height(tileview) + top); in lv_tileview_scrl_signal()
407 p.y = -(lv_obj_get_y(scrl) - lv_obj_get_height(tileview) / 2); in drag_end_handler()
429 while(vect.y != 0) { in drag_end_handler()
430 predict += vect.y; in drag_end_handler()
431 vect.y = vect.y * (100 - LV_INDEV_DEF_DRAG_THROW) / 100; in drag_end_handler()
434 p.y -= predict; in drag_end_handler()
439 p.y = p.y / lv_obj_get_height(tileview); in drag_end_handler()
443 lv_coord_t y_move = p.y - ext->act_id.y; in drag_end_handler()
450 lv_tileview_set_tile_act(tileview, ext->act_id.x + x_move, ext->act_id.y + y_move, true); in drag_end_handler()
466 …if(ext->valid_pos[i].x == ext->act_id.x && ext->valid_pos[i].y == ext->act_id.y - 1) ext->drag_top… in set_valid_drag_dirs()
467 …if(ext->valid_pos[i].x == ext->act_id.x && ext->valid_pos[i].y == ext->act_id.y + 1) ext->drag_bot… in set_valid_drag_dirs()
468 …if(ext->valid_pos[i].x == ext->act_id.x - 1 && ext->valid_pos[i].y == ext->act_id.y) ext->drag_lef… in set_valid_drag_dirs()
469 …if(ext->valid_pos[i].x == ext->act_id.x + 1 && ext->valid_pos[i].y == ext->act_id.y) ext->drag_rig… in set_valid_drag_dirs()