Home
last modified time | relevance | path

Searched refs:cx (Results 1 – 25 of 39) sorted by relevance

12

/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_arc.c90 float cx = dsc->center.x; in lv_draw_vg_lite_arc() local
96 lv_vg_lite_path_append_circle(path, cx, cy, radius_out, radius_out); in lv_draw_vg_lite_arc()
100 lv_vg_lite_path_append_circle(path, cx, cy, radius_in, radius_in); in lv_draw_vg_lite_arc()
110 float start_x = radius_out * MATH_COSF(start_angle_rad) + cx; in lv_draw_vg_lite_arc()
114 float end_x = radius_in * MATH_COSF(end_angle_rad) + cx; in lv_draw_vg_lite_arc()
121 cx, cy, in lv_draw_vg_lite_arc()
132 cx, cy, in lv_draw_vg_lite_arc()
143 lv_vg_lite_path_append_arc(path, cx, cy, radius_out, start_angle, sweep_angle, true); in lv_draw_vg_lite_arc()
150 float rcx1 = cx + round_center * MATH_COSF(end_angle_rad); in lv_draw_vg_lite_arc()
154 float rcx2 = cx + round_center * MATH_COSF(start_angle_rad); in lv_draw_vg_lite_arc()
[all …]
Dlv_vg_lite_path.c375 float cx, float cy, in lv_vg_lite_path_quad_to() argument
381 lv_vg_lite_path_append_point(path, cx, cy); in lv_vg_lite_path_quad_to()
484 float cx, float cy, in lv_vg_lite_path_append_circle() argument
492 lv_vg_lite_path_move_to(path, cx, cy - ry); in lv_vg_lite_path_append_circle()
493 lv_vg_lite_path_cubic_to(path, cx + rx_kappa, cy - ry, cx + rx, cy - ry_kappa, cx + rx, cy); in lv_vg_lite_path_append_circle()
494 lv_vg_lite_path_cubic_to(path, cx + rx, cy + ry_kappa, cx + rx_kappa, cy + ry, cx, cy + ry); in lv_vg_lite_path_append_circle()
495 lv_vg_lite_path_cubic_to(path, cx - rx_kappa, cy + ry, cx - rx, cy + ry_kappa, cx - rx, cy); in lv_vg_lite_path_append_circle()
496 lv_vg_lite_path_cubic_to(path, cx - rx, cy - ry_kappa, cx - rx_kappa, cy - ry, cx, cy - ry); in lv_vg_lite_path_append_circle()
522 float cx, float cy, in lv_vg_lite_path_append_arc() argument
531 lv_vg_lite_path_append_circle(path, cx, cy, radius, radius); in lv_vg_lite_path_append_arc()
[all …]
Dlv_vg_lite_path.h96 float cx, float cy,
114 float cx, float cy,
123 float cx, float cy,
Dlv_vg_lite_grad.c298 grad.cx = lv_pct_to_px(grad_dsc->params.radial.focal.x, w) + area->x1; in lv_vg_lite_draw_grad_helper()
302 grad.cr = LV_MAX(end_extent_x - grad.cx, end_extent_y - grad.cy); in lv_vg_lite_draw_grad_helper()
492 .cx = item->lv.cx, in radial_grad_create()
495 .fx = item->lv.cx, in radial_grad_create()
652 if(!math_equal(lhs->lv.cx, rhs->lv.cx)) { in grad_compare_cb()
653 return lhs->lv.cx > rhs->lv.cx ? 1 : -1; in grad_compare_cb()
/lvgl-latest/src/libs/thorvg/
DtvgFill.cpp37 ret->pImpl->cx = cx; in duplicate()
48 Result RadialGradient::Impl::radial(float cx, float cy, float r, float fx, float fy, float fr) in radial() argument
52 this->cx = cx; in radial()
179 Result RadialGradient::radial(float cx, float cy, float r) noexcept in radial() argument
181 return pImpl->radial(cx, cy, r, cx, cy, 0.0f); in radial()
185 Result RadialGradient::radial(float* cx, float* cy, float* r) const noexcept in radial() argument
187 if (cx) *cx = pImpl->cx; in radial()
DtvgShape.cpp143 Result Shape::appendCircle(float cx, float cy, float rx, float ry) noexcept in appendCircle() argument
149 pImpl->moveTo(cx + rx, cy); in appendCircle()
150 pImpl->cubicTo(cx + rx, cy + ryKappa, cx + rxKappa, cy + ry, cx, cy + ry); in appendCircle()
151 pImpl->cubicTo(cx - rxKappa, cy + ry, cx - rx, cy + ryKappa, cx - rx, cy); in appendCircle()
152 pImpl->cubicTo(cx - rx, cy - ryKappa, cx - rxKappa, cy - ry, cx, cy - ry); in appendCircle()
153 pImpl->cubicTo(cx + rxKappa, cy - ry, cx + rx, cy - ryKappa, cx + rx, cy); in appendCircle()
162 Result Shape::appendArc(float cx, float cy, float radius, float startAngle, float sweep, bool pie) … in appendArc() argument
165 if (sweep >= 360.0f || sweep <= -360.0f) return appendCircle(cx, cy, radius, radius); in appendArc()
181 pImpl->moveTo(cx, cy); in appendArc()
182 pImpl->lineTo(start.x + cx, start.y + cy); in appendArc()
[all …]
DtvgFill.h94 float cx = 0.0f, cy = 0.0f; member
99 Result radial(float cx, float cy, float r, float fx, float fy, float fr);
DtvgLottieBuilder.cpp50 auto cx = cosf(radianX), sx = sinf(radianX); in _rotationXYZ() local
55 m->e21 = sx * sy * cz + cx * sz; in _rotationXYZ()
56 m->e22 = -sx * sy * sz + cx * cz; in _rotationXYZ()
497 static void _appendCircle(Shape* shape, float cx, float cy, float rx, float ry, const LottieOffsetM… in _appendCircle() argument
516 points[0] = {cx, cy - ry}; //moveTo in _appendCircle()
517 …points[1] = {cx + rxKappa, cy - ry}; points[2] = {cx + rx, cy - ryKappa}; points[3] = {cx + rx, cy… in _appendCircle()
518 …points[4] = {cx + rx, cy + ryKappa}; points[5] = {cx + rxKappa, cy + ry}; points[6] = {cx, cy + ry… in _appendCircle()
519 …points[7] = {cx - rxKappa, cy + ry}; points[8] = {cx - rx, cy + ryKappa}; points[9] = {cx - rx, cy… in _appendCircle()
520 …points[10] = {cx - rx, cy - ryKappa}; points[11] = {cx - rxKappa, cy - ry}; points[12] = {cx, cy -… in _appendCircle()
522 points[0] = {cx, cy - ry}; //moveTo in _appendCircle()
[all …]
DtvgSvgPath.cpp105 float cxp, cyp, cx, cy; in _pathAppendArcTo() local
175 cx = 0.0f; in _pathAppendArcTo()
188 cx = cosPhi * cxp - sinPhi * cyp; in _pathAppendArcTo()
193 cx += (sx + x) / 2.0f; in _pathAppendArcTo()
245 ex = cx + (cosPhiRx * cosTheta2 - sinPhiRy * sinTheta2); in _pathAppendArcTo()
DtvgSvgLoaderCommon.h317 float cx; member
325 float cx; member
403 float cx; member
DtvgCapi.cpp322 TVG_API Tvg_Result tvg_shape_append_arc(Tvg_Paint* paint, float cx, float cy, float radius, float s… in tvg_shape_append_arc() argument
325 …return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendArc(cx, cy, radius, startAngle, sweep, … in tvg_shape_append_arc()
329 TVG_API Tvg_Result tvg_shape_append_circle(Tvg_Paint* paint, float cx, float cy, float rx, float ry) in tvg_shape_append_circle() argument
332 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendCircle(cx, cy, rx, ry); in tvg_shape_append_circle()
631 TVG_API Tvg_Result tvg_radial_gradient_set(Tvg_Gradient* grad, float cx, float cy, float radius) in tvg_radial_gradient_set() argument
634 return (Tvg_Result) reinterpret_cast<RadialGradient*>(grad)->radial(cx, cy, radius); in tvg_radial_gradient_set()
638 TVG_API Tvg_Result tvg_radial_gradient_get(Tvg_Gradient* grad, float* cx, float* cy, float* radius) in tvg_radial_gradient_get() argument
641 return (Tvg_Result) reinterpret_cast<RadialGradient*>(grad)->radial(cx, cy, radius); in tvg_radial_gradient_get()
Dthorvg_capi.h1219 TVG_API Tvg_Result tvg_shape_append_circle(Tvg_Paint* paint, float cx, float cy, float rx, float ry…
1241 TVG_API Tvg_Result tvg_shape_append_arc(Tvg_Paint* paint, float cx, float cy, float radius, float s…
1810 TVG_API Tvg_Result tvg_radial_gradient_set(Tvg_Gradient* grad, float cx, float cy, float radius);
1824 TVG_API Tvg_Result tvg_radial_gradient_get(Tvg_Gradient* grad, float* cx, float* cy, float* radius);
Dthorvg.h805 Result radial(float cx, float cy, float radius) noexcept;
817 Result radial(float* cx, float* cy, float* radius) const noexcept;
959 Result appendCircle(float cx, float cy, float rx, float ry) noexcept;
976 …Result appendArc(float cx, float cy, float radius, float startAngle, float sweep, bool pie) noexce…
/lvgl-latest/tests/src/test_cases/
Dtest_math.c27 float ax, bx, cx, ay, by, cy; in lv_cubic_bezier_f() local
34 cx = 3.f * x1; in lv_cubic_bezier_f()
35 bx = 3.f * (x2 - x1) - cx; in lv_cubic_bezier_f()
36 ax = 1.f - cx - bx; in lv_cubic_bezier_f()
45 xs = do_cubic_bezier_f(t, ax, bx, cx); in lv_cubic_bezier_f()
49 d = (3.f * ax * t + 2.f * bx) * t + cx; in lv_cubic_bezier_f()
68 xs = do_cubic_bezier_f(t, ax, bx, cx); in lv_cubic_bezier_f()
/lvgl-latest/libs/nema_gfx/include/
Dnema_vg.h175 uint32_t nema_vg_draw_ellipse(float cx, float cy, float rx, float ry,
190 uint32_t nema_vg_draw_circle(float cx, float cy, float r,
209 uint32_t nema_vg_draw_ring(float cx, float cy, float ring_radius, float angle_start, float angle_en…
228 uint32_t nema_vg_draw_ring_generic(float cx, float cy, float ring_radius, float angle_start, float …
Dnema_vg_paint.h172 float cx, float cy,
/lvgl-latest/src/draw/
Dlv_draw_vector.c74 dst->stroke_dsc.gradient.cx = src->stroke_dsc.gradient.cx; in _copy_draw_dsc()
329 float cx = c->x; in lv_vector_path_append_circle() local
333 pt.x = cx; in lv_vector_path_append_circle()
337 pt.x = cx + krx; in lv_vector_path_append_circle()
339 pt2.x = cx + rx; in lv_vector_path_append_circle()
341 pt3.x = cx + rx; in lv_vector_path_append_circle()
345 pt.x = cx + rx; in lv_vector_path_append_circle()
347 pt2.x = cx + krx; in lv_vector_path_append_circle()
349 pt3.x = cx; in lv_vector_path_append_circle()
353 pt.x = cx - krx; in lv_vector_path_append_circle()
[all …]
Dlv_draw_vector_private.h43 float cx; member
Dlv_draw_vector.h300 void lv_vector_dsc_set_fill_radial_gradient(lv_vector_dsc_t * dsc, float cx, float cy, float radius…
398 void lv_vector_dsc_set_stroke_radial_gradient(lv_vector_dsc_t * dsc, float cx, float cy, float radi…
/lvgl-latest/src/misc/
Dlv_math.c128 int32_t ax, bx, cx, ay, by, cy; in lv_cubic_bezier() local
149 cx = 3 * x1; in lv_cubic_bezier()
150 bx = 3 * (x2 - x1) - cx; in lv_cubic_bezier()
151 ax = (1L << CUBIC_PRECISION_BITS) - cx - bx; in lv_cubic_bezier()
161 xs = do_cubic_bezier(t, ax, bx, cx) - x; in lv_cubic_bezier()
168 d += cx; in lv_cubic_bezier()
191 xs = do_cubic_bezier(t, ax, bx, cx); in lv_cubic_bezier()
/lvgl-latest/src/draw/nema_gfx/
Dlv_nema_gfx_path.c124 void lv_nema_gfx_path_quad_to(lv_nema_gfx_path_t * path, float cx, float cy, float x, float y) in lv_nema_gfx_path_quad_to() argument
130 path->data[data_point++] = cx; in lv_nema_gfx_path_quad_to()
Dlv_nema_gfx_path.h78 float cx, float cy,
/lvgl-latest/src/libs/svg/
Dlv_svg_render.c118 float cx; member
125 float cx; member
353 grad->dsc.cx = attr->value.fval; in _set_gradient_attr()
411 circle->cx = attr->value.fval; in _set_circle_attr()
428 ellipse->cx = attr->value.fval; in _set_ellipse_attr()
928 grad_dsc->cx = PCT_TO_PX(grad_dsc->cx, w); in _set_gradient_ref()
1140 grad->dsc.cx = 0.5f; in _init_gradient()
1308 lv_fpoint_t cp = {circle->cx, circle->cy}; in _render_circle()
1329 lv_fpoint_t cp = {ellipse->cx, ellipse->cy}; in _render_ellipse()
1689 area->x1 = (int32_t)(circle->cx - circle->r); in _get_circle_bounds()
[all …]
/lvgl-latest/src/widgets/chart/
Dlv_chart.c1201 int32_t cx; in draw_cursors() local
1204 cx = cursor->pos.x; in draw_cursors()
1211 cx = p.x; in draw_cursors()
1215 cx += obj->coords.x1; in draw_cursors()
1220 point_area.x1 = cx - point_w; in draw_cursors()
1221 point_area.x2 = cx + point_w; in draw_cursors()
1226 line_dsc.p1.x = cursor->dir & LV_DIR_LEFT ? obj->coords.x1 : cx; in draw_cursors()
1228 line_dsc.p2.x = cursor->dir & LV_DIR_RIGHT ? obj->coords.x2 : cx; in draw_cursors()
1242 line_dsc.p1.x = cx; in draw_cursors()
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h866 stbtt_vertex_type x, y, cx, cy, cx1, cy1; member
1794 …d stbtt_setvertex(stbtt_vertex * v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, argument
1800 v->cx = (stbtt_int16)cx;
1862 … stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) argument
1866 …stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy);
1871 stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy);
1900 stbtt_int32 x, y, cx, cy, sx, sy, scx, scy; local
1971 sx = sy = cx = cy = scx = scy = 0;
1979 …ertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, scx, scy, cx, cy);
2012 … stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy);
[all …]

12