Lines Matching refs:x
90 ext->act_id.x = 0; in lv_tileview_create()
127 ext->act_id.x = copy_ext->act_id.x; 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()
226 ext->act_id.x = x; in lv_tileview_set_tile_act()
229 lv_coord_t x_coord = -x * lv_obj_get_width(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
284 *x = ext->act_id.x; in lv_tileview_get_tile_act()
357 lv_coord_t x = lv_obj_get_x(scrl); in lv_tileview_scrl_signal() local
372 … if(!ext->drag_left_en && x > -(ext->act_id.x * w) && indev->proc.types.pointer.vect.x > 0) { in lv_tileview_scrl_signal()
374 lv_obj_set_x(scrl, -ext->act_id.x * w + left); in lv_tileview_scrl_signal()
377 … if(!ext->drag_right_en && indev->proc.types.pointer.vect.x < 0 && x < -(ext->act_id.x * w)) { in lv_tileview_scrl_signal()
379 lv_obj_set_x(scrl, -ext->act_id.x * w + left); in lv_tileview_scrl_signal()
387 lv_obj_set_x(scrl, -ext->act_id.x * lv_obj_get_width(tileview) + left); in lv_tileview_scrl_signal()
406 p.x = -(lv_obj_get_x(scrl) - lv_obj_get_width(tileview) / 2); in drag_end_handler()
416 while(vect.x != 0) { in drag_end_handler()
417 predict += vect.x; in drag_end_handler()
418 vect.x = vect.x * (100 - LV_INDEV_DEF_DRAG_THROW) / 100; in drag_end_handler()
421 p.x -= predict; in drag_end_handler()
438 p.x = p.x / lv_obj_get_width(tileview); in drag_end_handler()
442 lv_coord_t x_move = p.x - ext->act_id.x; 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()