Lines Matching refs:point
221 void lv_indev_get_point(const lv_indev_t * indev, lv_point_t * point) in lv_indev_get_point() argument
224 point->x = 0; in lv_indev_get_point()
225 point->y = 0; in lv_indev_get_point()
229 point->x = -1; in lv_indev_get_point()
230 point->y = -1; in lv_indev_get_point()
233 point->x = indev->proc.types.pointer.act_point.x; in lv_indev_get_point()
234 point->y = indev->proc.types.pointer.act_point.y; in lv_indev_get_point()
265 void lv_indev_get_vect(const lv_indev_t * indev, lv_point_t * point) in lv_indev_get_vect() argument
267 point->x = 0; in lv_indev_get_vect()
268 point->y = 0; in lv_indev_get_vect()
273 point->x = indev->proc.types.pointer.vect.x; in lv_indev_get_vect()
274 point->y = indev->proc.types.pointer.vect.y; in lv_indev_get_vect()
299 lv_obj_t * lv_indev_search_obj(lv_obj_t * obj, lv_point_t * point) in lv_indev_search_obj() argument
306 lv_point_t p_trans = *point; in lv_indev_search_obj()
343 i->proc.types.pointer.last_raw_point.x = data->point.x; in indev_pointer_proc()
344 i->proc.types.pointer.last_raw_point.y = data->point.y; in indev_pointer_proc()
347 data->point.x = disp->driver->hor_res - data->point.x - 1; in indev_pointer_proc()
348 data->point.y = disp->driver->ver_res - data->point.y - 1; in indev_pointer_proc()
351 lv_coord_t tmp = data->point.y; in indev_pointer_proc()
352 data->point.y = data->point.x; in indev_pointer_proc()
353 data->point.x = disp->driver->ver_res - tmp - 1; in indev_pointer_proc()
357 if(data->point.x < 0) { in indev_pointer_proc()
358 LV_LOG_WARN("X is %d which is smaller than zero", (int)data->point.x); in indev_pointer_proc()
360 if(data->point.x >= lv_disp_get_hor_res(i->driver->disp)) { in indev_pointer_proc()
361 LV_LOG_WARN("X is %d which is greater than hor. res", (int)data->point.x); in indev_pointer_proc()
363 if(data->point.y < 0) { in indev_pointer_proc()
364 LV_LOG_WARN("Y is %d which is smaller than zero", (int)data->point.y); in indev_pointer_proc()
366 if(data->point.y >= lv_disp_get_ver_res(i->driver->disp)) { in indev_pointer_proc()
367 LV_LOG_WARN("Y is %d which is greater than ver. res", (int)data->point.y); in indev_pointer_proc()
372 …(i->proc.types.pointer.last_point.x != data->point.x || i->proc.types.pointer.last_point.y != data… in indev_pointer_proc()
373 lv_obj_set_pos(i->cursor, data->point.x, data->point.y); in indev_pointer_proc()
376 i->proc.types.pointer.act_point.x = data->point.x; in indev_pointer_proc()
377 i->proc.types.pointer.act_point.y = data->point.y; in indev_pointer_proc()