Home
last modified time | relevance | path

Searched refs:pivot (Results 1 – 25 of 30) sorted by relevance

12

/lvgl-3.5.0/src/widgets/
Dlv_img.c152 img->pivot.x = header.w / 2; in lv_img_set_src()
153 img->pivot.y = header.h / 2; in lv_img_set_src()
195 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
211 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
222 if(img->pivot.x == x && img->pivot.y == y) return; in lv_img_set_pivot()
228 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_pivot()
235 img->pivot.x = x; in lv_img_set_pivot()
236 img->pivot.y = y; in lv_img_set_pivot()
245 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_pivot()
264 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom >> 8, &img->pivot); in lv_img_set_zoom()
[all …]
Dlv_img.h47 lv_point_t pivot; /*rotation center of the image*/ member
198 void lv_img_get_pivot(lv_obj_t * obj, lv_point_t * pivot);
Dlv_canvas.c179 draw_dsc.pivot.x = pivot_x; in lv_canvas_transform()
180 draw_dsc.pivot.y = pivot_y; in lv_canvas_transform()
Dlv_dropdown.c846 img_dsc.pivot.x = symbol_w / 2; in draw_main()
847 img_dsc.pivot.y = symbol_h / 2; in draw_main()
/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_layer.c98 … lv_area_zoom_to_sdl_rect(&layer_ctx->area_act, &trans_rect, draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_layer_blend()
101 … lv_area_zoom_to_sdl_rect(&layer_ctx->area_full, &trans_rect, draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_layer_blend()
109 SDL_Point center = {.x = draw_dsc->pivot.x, .y = draw_dsc->pivot.y}; in lv_draw_sdl_layer_blend()
Dlv_draw_sdl_utils.h45 …ea_zoom_to_sdl_rect(const lv_area_t * in, SDL_Rect * out, uint16_t zoom, const lv_point_t * pivot);
Dlv_draw_sdl_utils.c95 …rea_zoom_to_sdl_rect(const lv_area_t * in, SDL_Rect * out, uint16_t zoom, const lv_point_t * pivot) in lv_area_zoom_to_sdl_rect() argument
102 …_img_buf_get_transformed_area(&tmp, lv_area_get_width(in), lv_area_get_height(in), 0, zoom, pivot); in lv_area_zoom_to_sdl_rect()
Dlv_draw_sdl_img.c119 draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_img_core()
299 SDL_Point pivot = {.x = draw_dsc->pivot.x, .y = draw_dsc->pivot.y}; in draw_img_simple() local
310 …SDL_RenderCopyEx(ctx->renderer, texture, &src_rect, &dst_rect, draw_dsc->angle, &pivot, SDL_FLIP_N… in draw_img_simple()
/lvgl-3.5.0/src/misc/
Dlv_area.c460 void lv_point_transform(lv_point_t * p, int32_t angle, int32_t zoom, const lv_point_t * pivot) in lv_point_transform() argument
466 p->x -= pivot->x; in lv_point_transform()
467 p->y -= pivot->y; in lv_point_transform()
470 p->x = (((int32_t)(p->x) * zoom) >> 8) + pivot->x; in lv_point_transform()
471 p->y = (((int32_t)(p->y) * zoom) >> 8) + pivot->y; in lv_point_transform()
502 p->x = ((cosma * x - sinma * y) >> _LV_TRANSFORM_TRIGO_SHIFT) + pivot->x; in lv_point_transform()
503 p->y = ((sinma * x + cosma * y) >> _LV_TRANSFORM_TRIGO_SHIFT) + pivot->y; in lv_point_transform()
506 p->x = (((cosma * x - sinma * y) * zoom) >> (_LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->x; in lv_point_transform()
507 p->y = (((sinma * x + cosma * y) * zoom) >> (_LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->y; in lv_point_transform()
Dlv_area.h239 void lv_point_transform(lv_point_t * p, int32_t angle, int32_t zoom, const lv_point_t * pivot);
/lvgl-3.5.0/src/draw/
Dlv_img_buf.c424 const lv_point_t * pivot) in _lv_img_buf_get_transformed_area() argument
441 lv_point_transform(&p[0], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
442 lv_point_transform(&p[1], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
443 lv_point_transform(&p[2], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
444 lv_point_transform(&p[3], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
453 LV_UNUSED(pivot); in _lv_img_buf_get_transformed_area()
Dlv_draw_img.h36 lv_point_t pivot; member
Dlv_img_buf.h239 const lv_point_t * pivot);
Dlv_draw_img.c269 …g_buf_get_transformed_area(&map_area_rot, w, h, draw_dsc->angle, draw_dsc->zoom, &draw_dsc->pivot); in decode_and_draw()
/lvgl-3.5.0/src/draw/sw/
Dlv_draw_sw_transform.c33 lv_point_t pivot; member
89 tr_dsc.pivot = draw_dsc->pivot; in lv_draw_sw_transform()
105 tr_dsc.pivot_x_256 = tr_dsc.pivot.x * 256; in lv_draw_sw_transform()
106 tr_dsc.pivot_y_256 = tr_dsc.pivot.y * 256; in lv_draw_sw_transform()
478 xin -= t->pivot.x; in transform_point_upscaled()
479 yin -= t->pivot.y; in transform_point_upscaled()
/lvgl-3.5.0/src/extra/widgets/meter/
Dlv_meter.c155 indic->type_data.needle_img.pivot.x = pivot_x; in lv_meter_add_needle_img()
156 indic->type_data.needle_img.pivot.y = pivot_y; in lv_meter_add_needle_img()
603 a.x1 = scale_center.x - indic->type_data.needle_img.pivot.x; in draw_needles()
604 a.y1 = scale_center.y - indic->type_data.needle_img.pivot.y; in draw_needles()
609 img_dsc.pivot.x = indic->type_data.needle_img.pivot.x; in draw_needles()
610 img_dsc.pivot.y = indic->type_data.needle_img.pivot.y; in draw_needles()
686 scale_center.x -= indic->type_data.needle_img.pivot.x; in inv_line()
687 scale_center.y -= indic->type_data.needle_img.pivot.y; in inv_line()
689 …_transformed_area(&a, info.w, info.h, angle, LV_IMG_ZOOM_NONE, &indic->type_data.needle_img.pivot); in inv_line()
Dlv_meter.h71 lv_point_t pivot; member
/lvgl-3.5.0/src/core/
Dlv_obj_pos.c1163 lv_point_t pivot = { in transform_point() local
1168 if(LV_COORD_IS_PCT(pivot.x)) { in transform_point()
1169 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in transform_point()
1171 if(LV_COORD_IS_PCT(pivot.y)) { in transform_point()
1172 pivot.y = (LV_COORD_GET_PCT(pivot.y) * lv_area_get_height(&obj->coords)) / 100; in transform_point()
1175 pivot.x = obj->coords.x1 + pivot.x; in transform_point()
1176 pivot.y = obj->coords.y1 + pivot.y; in transform_point()
1183 lv_point_transform(p, angle, zoom, &pivot); in transform_point()
Dlv_refr.c915 lv_point_t pivot = { in refr_obj() local
920 if(LV_COORD_IS_PCT(pivot.x)) { in refr_obj()
921 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in refr_obj()
923 if(LV_COORD_IS_PCT(pivot.y)) { in refr_obj()
924 pivot.y = (LV_COORD_GET_PCT(pivot.y) * lv_area_get_height(&obj->coords)) / 100; in refr_obj()
951 draw_dsc.pivot.x = obj->coords.x1 + pivot.x - draw_ctx->buf_area->x1; in refr_obj()
952 draw_dsc.pivot.y = obj->coords.y1 + pivot.y - draw_ctx->buf_area->y1; in refr_obj()
Dlv_indev_scroll.c77 lv_point_t pivot = { 0, 0 }; in _lv_indev_scroll_handler() local
78 lv_point_transform(&proc->types.pointer.vect, angle, zoom, &pivot); in _lv_indev_scroll_handler()
285 lv_point_t pivot = { 0, 0 }; in find_scroll_obj() local
298 lv_point_transform(&obj_scroll_sum, angle, zoom, &pivot); in find_scroll_obj()
Dlv_obj_draw.c246 draw_dsc->pivot.x = lv_area_get_width(&obj->coords) / 2; in lv_obj_init_draw_img_dsc()
247 draw_dsc->pivot.y = lv_area_get_height(&obj->coords) / 2; in lv_obj_init_draw_img_dsc()
Dlv_indev.c993 lv_point_t pivot = { 0, 0 }; in indev_proc_release() local
1004 lv_point_transform(&proc->types.pointer.scroll_throw_vect, angle, zoom, &pivot); in indev_proc_release()
1005 lv_point_transform(&proc->types.pointer.scroll_throw_vect_ori, angle, zoom, &pivot); in indev_proc_release()
/lvgl-3.5.0/src/draw/nxp/vglite/
Dlv_draw_vglite_blend.c550 vg_lite_translate(dsc->pivot.x, dsc->pivot.y, &vgmatrix); in lv_vglite_set_transformation_matrix()
557 vg_lite_translate(0.0f - dsc->pivot.x, 0.0f - dsc->pivot.y, &vgmatrix); in lv_vglite_set_transformation_matrix()
/lvgl-3.5.0/docs/widgets/extra/
Dmeter.md9 … as well as the background properties to draw a square (or circle) on the pivot of the needles. Pa…
44 `pivot_x` and `pivot_y` sets the pivot point of the rotation relative to the top left corner of the…
/lvgl-3.5.0/docs/widgets/core/
Dcanvas.md66 - `pivot_x` pivot X of rotation. Relative to the source canvas. Set to `source width / 2` to rotate…
67 - `pivot_y` pivot Y of rotation. Relative to the source canvas. Set to `source height / 2` to rotat…

12