Home
last modified time | relevance | path

Searched refs:linear (Results 1 – 23 of 23) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgSwFill.cpp213 bool _prepareLinear(SwFill* fill, const LinearGradient* linear, const Matrix& transform) in _prepareLinear() argument
216 if (linear->linear(&x1, &y1, &x2, &y2) != Result::Success) return false; in _prepareLinear()
218 fill->linear.dx = x2 - x1; in _prepareLinear()
219 fill->linear.dy = y2 - y1; in _prepareLinear()
220 auto len = fill->linear.dx * fill->linear.dx + fill->linear.dy * fill->linear.dy; in _prepareLinear()
223 if (tvg::zero(fill->linear.dx) && tvg::zero(fill->linear.dy)) { in _prepareLinear()
229 fill->linear.dx /= len; in _prepareLinear()
230 fill->linear.dy /= len; in _prepareLinear()
231 fill->linear.offset = -fill->linear.dx * x1 - fill->linear.dy * y1; in _prepareLinear()
233 auto gradTransform = linear->transform(); in _prepareLinear()
[all …]
DtvgSvgLoader.cpp2606 static void _handleLinearX1Attr(SvgLoaderData* loader, SvgLinearGradient* linear, const char* value) in _handleLinearX1Attr() argument
2608 linear->x1 = _gradientToFloat(loader->svgParse, value, linear->isX1Percentage); in _handleLinearX1Attr()
2612 static void _handleLinearY1Attr(SvgLoaderData* loader, SvgLinearGradient* linear, const char* value) in _handleLinearY1Attr() argument
2614 linear->y1 = _gradientToFloat(loader->svgParse, value, linear->isY1Percentage); in _handleLinearY1Attr()
2618 static void _handleLinearX2Attr(SvgLoaderData* loader, SvgLinearGradient* linear, const char* value) in _handleLinearX2Attr() argument
2620 linear->x2 = _gradientToFloat(loader->svgParse, value, linear->isX2Percentage); in _handleLinearX2Attr()
2624 static void _handleLinearY2Attr(SvgLoaderData* loader, SvgLinearGradient* linear, const char* value) in _handleLinearY2Attr() argument
2626 linear->y2 = _gradientToFloat(loader->svgParse, value, linear->isY2Percentage); in _handleLinearY2Attr()
2630 static void _recalcLinearX1Attr(SvgLoaderData* loader, SvgLinearGradient* linear, bool userSpace) in _recalcLinearX1Attr() argument
2632 if (userSpace && !linear->isX1Percentage) linear->x1 = linear->x1 / loader->svgParse->global.w; in _recalcLinearX1Attr()
[all …]
DtvgSvgSceneBuilder.cpp104 g->linear->x1 = g->linear->x1 * vBox.w; in _applyLinearGradientProperty()
105 g->linear->y1 = g->linear->y1 * vBox.h; in _applyLinearGradientProperty()
106 g->linear->x2 = g->linear->x2 * vBox.w; in _applyLinearGradientProperty()
107 g->linear->y2 = g->linear->y2 * vBox.h; in _applyLinearGradientProperty()
119 fillGrad->linear(g->linear->x1, g->linear->y1, g->linear->x2, g->linear->y2); in _applyLinearGradientProperty()
333 … auto linear = _applyLinearGradientProperty(style->fill.paint.gradient, bBox, style->fill.opacity); in _applyProperty() local
334 vg->fill(std::move(linear)); in _applyProperty()
377 …auto linear = _applyLinearGradientProperty(style->stroke.paint.gradient, bBox, style->stroke.opaci… in _applyProperty() local
378 vg->stroke(std::move(linear)); in _applyProperty()
786 … auto linear = _applyLinearGradientProperty(style->fill.paint.gradient, bBox, style->fill.opacity); in _applyTextFill() local
[all …]
DtvgFill.cpp225 Result LinearGradient::linear(float x1, float y1, float x2, float y2) noexcept in linear() function in LinearGradient
236 Result LinearGradient::linear(float* x1, float* y1, float* x2, float* y2) const noexcept in linear() function in LinearGradient
DtvgSvgLoaderCommon.h453 SvgLinearGradient* linear; member
464 free(linear); in clear()
Dthorvg.h738 Result linear(float x1, float y1, float x2, float y2) noexcept;
752 Result linear(float* x1, float* y1, float* x2, float* y2) const noexcept;
DtvgCapi.cpp620 return (Tvg_Result) reinterpret_cast<LinearGradient*>(grad)->linear(x1, y1, x2, y2); in tvg_linear_gradient_set()
627 return (Tvg_Result) reinterpret_cast<LinearGradient*>(grad)->linear(x1, y1, x2, y2); in tvg_linear_gradient_get()
DtvgLottieExpressions.cpp1198 auto linear = jerry_function_external(_linear); in _buildMath() local
1199 jerry_object_set_sz(context, "linear", linear); in _buildMath()
1200 jerry_value_free(linear); in _buildMath()
DtvgLottieModel.cpp288 static_cast<LinearGradient*>(fill)->linear(s.x, s.y, e.x, e.y); in fill()
DtvgSwCommon.h152 SwLinear linear; member
/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_grad.c46 vg_lite_linear_gradient_t linear; member
154 vg_lite_linear_gradient_t * linear_grad = &grad_item->vg.linear; in lv_vg_lite_draw_grad()
286 grad.x1 = lv_pct_to_px(grad_dsc->params.linear.start.x, w) + area->x1; in lv_vg_lite_draw_grad_helper()
287 grad.y1 = lv_pct_to_px(grad_dsc->params.linear.start.y, h) + area->y1; in lv_vg_lite_draw_grad_helper()
288 grad.x2 = lv_pct_to_px(grad_dsc->params.linear.end.x, w) + area->x1; in lv_vg_lite_draw_grad_helper()
289 grad.y2 = lv_pct_to_px(grad_dsc->params.linear.end.y, h) + area->y1; in lv_vg_lite_draw_grad_helper()
386 vg_lite_error_t err = vg_lite_init_grad(&item->vg.linear); in linear_grad_create()
413 LV_VG_LITE_CHECK_ERROR(vg_lite_set_grad(&item->vg.linear, item->lv.stops_count, colors, stops)); in linear_grad_create()
416 LV_VG_LITE_CHECK_ERROR(vg_lite_update_grad(&item->vg.linear)); in linear_grad_create()
598 LV_VG_LITE_CHECK_ERROR(vg_lite_clear_grad(&item->vg.linear)); in grad_free_cb()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_gradient.c471 lv_point_t start = dsc->params.linear.start; in lv_gradient_linear_setup()
472 lv_point_t end = dsc->params.linear.end; in lv_gradient_linear_setup()
625 dsc->params.linear.start.x = from_x; in lv_grad_linear_init()
626 dsc->params.linear.start.y = from_y; in lv_grad_linear_init()
627 dsc->params.linear.end.x = to_x; in lv_grad_linear_init()
628 dsc->params.linear.end.y = to_y; in lv_grad_linear_init()
/lvgl-latest/docs/details/main-components/
Danimation.rst21 This variation over time can be linear (default), it can be on a path (curve) that
22 you specify, and there is even a variety of commonly-used non-linear effects that can
105 /* Set path (curve). Default is linear */
143 You can control the Path (curve) of an Animation. The simplest case is linear,
149 - :cpp:func:`lv_anim_path_linear`: linear Animation (default)
Dfs.rst313 for linear reading of large files but less helpful for short random reads across a file bigger than…
/lvgl-latest/demos/render/
Dlv_demo_render.c878 grad->params.linear.start.x = 0; /*vector start x position*/ in create_linear_gradient_obj()
879 grad->params.linear.start.y = 0; /*vector start y position*/ in create_linear_gradient_obj()
880 grad->params.linear.end.x = x1; /*vector end x position*/ in create_linear_gradient_obj()
881 grad->params.linear.end.y = y1; /*vector end y position*/ in create_linear_gradient_obj()
/lvgl-latest/src/misc/
Dlv_style.h154 } linear; member
/lvgl-latest/docs/details/integration/renderers/
Dvg_lite.rst53 …Gradient drawing includes linear gradients and radial gradients. Using a cache can effectively red…
/lvgl-latest/docs/
DROADMAP.rst81 (see `here <https://forum.lvgl.io/t/linear-meter-bar-with-ticks/10986>`__ and #4043)
/lvgl-latest/docs/details/widgets/
Dscale.rst11 Scale Widgets show linear or circular scales with configurable ranges, tick counts,
/lvgl-latest/
DKconfig314 1: enable complex gradients (linear at an angle, radial or conical)
460 linear: 4K bytes.
741 bool "Enable linear gradient extension support"
/lvgl-latest/docs/details/integration/chip/
Dnxp.rst388 requirement for linear buffer layouts (:c:macro:`VG_LITE_LINEAR`).
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite_tvg.cpp1461 …TVG_CHECK_RETURN_VG_ERROR(linearGrad->linear(grad->linear_grad.X0, grad->linear_grad.Y0, grad->lin… in vg_lite_draw_linear_grad()
1938 TVG_CHECK_RETURN_VG_ERROR(linearGrad->linear(x_min, y_min, x_max, y_max)); in vg_lite_draw_grad()
/lvgl-latest/docs/_static/css/
Dfontawesome.min.css5 …as.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animatio…