/lvgl-3.5.0/src/widgets/ |
D | lv_img.c | 152 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 …]
|
D | lv_img.h | 47 lv_point_t pivot; /*rotation center of the image*/ member 198 void lv_img_get_pivot(lv_obj_t * obj, lv_point_t * pivot);
|
D | lv_canvas.c | 179 draw_dsc.pivot.x = pivot_x; in lv_canvas_transform() 180 draw_dsc.pivot.y = pivot_y; in lv_canvas_transform()
|
D | lv_dropdown.c | 846 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/ |
D | lv_draw_sdl_layer.c | 98 … 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()
|
D | lv_draw_sdl_utils.h | 45 …ea_zoom_to_sdl_rect(const lv_area_t * in, SDL_Rect * out, uint16_t zoom, const lv_point_t * pivot);
|
D | lv_draw_sdl_utils.c | 95 …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()
|
D | lv_draw_sdl_img.c | 119 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/ |
D | lv_area.c | 460 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()
|
D | lv_area.h | 239 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/ |
D | lv_img_buf.c | 424 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()
|
D | lv_draw_img.h | 36 lv_point_t pivot; member
|
D | lv_img_buf.h | 239 const lv_point_t * pivot);
|
D | lv_draw_img.c | 269 …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/ |
D | lv_draw_sw_transform.c | 33 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/ |
D | lv_meter.c | 155 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()
|
D | lv_meter.h | 71 lv_point_t pivot; member
|
/lvgl-3.5.0/src/core/ |
D | lv_obj_pos.c | 1163 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()
|
D | lv_refr.c | 915 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()
|
D | lv_indev_scroll.c | 77 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()
|
D | lv_obj_draw.c | 246 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()
|
D | lv_indev.c | 993 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/ |
D | lv_draw_vglite_blend.c | 550 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/ |
D | meter.md | 9 … 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/ |
D | canvas.md | 66 - `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…
|