Home
last modified time | relevance | path

Searched refs:Shape (Results 1 – 17 of 17) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgShape.cpp38 Shape :: Shape() : pImpl(new Impl(this)) in Shape() function in Shape
43 Shape :: ~Shape() in ~Shape()
49 unique_ptr<Shape> Shape::gen() noexcept in gen()
51 return unique_ptr<Shape>(new Shape); in gen()
55 uint32_t Shape::identifier() noexcept in identifier()
57 return (uint32_t) Type::Shape; in identifier()
61 Type Shape::type() const noexcept in type()
63 return Type::Shape; in type()
67 Result Shape::reset() noexcept in reset()
78 uint32_t Shape::pathCommands(const PathCommand** cmds) const noexcept in pathCommands()
[all …]
DtvgCapi.cpp276 return (Tvg_Paint*) Shape::gen().release(); in tvg_shape_new()
283 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->reset(); in tvg_shape_reset()
290 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->moveTo(x, y); in tvg_shape_move_to()
297 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->lineTo(x, y); in tvg_shape_line_to()
304 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->cubicTo(cx1, cy1, cx2, cy2, x, y); in tvg_shape_cubic_to()
311 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->close(); in tvg_shape_close()
318 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendRect(x, y, w, h, rx, ry); in tvg_shape_append_rect()
325 …return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendArc(cx, cy, radius, startAngle, sweep, … in tvg_shape_append_arc()
332 return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendCircle(cx, cy, rx, ry); in tvg_shape_append_circle()
339 …return (Tvg_Result) reinterpret_cast<Shape*>(paint)->appendPath((const PathCommand*)cmds, cmdCnt, … in tvg_shape_append_path()
[all …]
DtvgLottieBuilder.h57 Shape* propagator = nullptr; //for propagating the shape properties excluding paths
58 Shape* merging = nullptr; //merging shapes if possible (if shapes have same properties)
67 RenderContext(Shape* propagator) in RenderContext()
82 RenderContext(const RenderContext& rhs, Shape* propagator, bool mergeable = false)
DtvgSvgPath.h31 bool svgPathToShape(const char* svgPath, Shape* shape);
DtvgShape.h34 struct Shape::Impl
38 Shape* shape;
44 Impl(Shape* s) : shape(s) in Impl()
89 if (target->type() == Type::Shape) { in needComposition()
90 auto shape = static_cast<const Shape*>(target); in needComposition()
356 auto shape = static_cast<Shape*>(ret); in duplicate()
358 else shape = Shape::gen().release(); in duplicate()
DtvgSvgSceneBuilder.cpp43 static bool _appendShape(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBox, c…
44 static bool _appendClipShape(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBo…
57 static Box _boundingBox(const Shape* shape) in _boundingBox()
208 static bool _appendClipUseNode(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& v… in _appendClipUseNode()
225 static bool _appendClipChild(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBo… in _appendClipChild()
266 auto comp = Shape::gen(); in _applyComposition()
317 static void _applyProperty(SvgLoaderData& loaderData, SvgNode* node, Shape* vg, const Box& vBox, co… in _applyProperty()
398 static unique_ptr<Shape> _shapeBuildHelper(SvgLoaderData& loaderData, SvgNode* node, const Box& vBo… in _shapeBuildHelper()
400 auto shape = Shape::gen(); in _shapeBuildHelper()
406 static bool _recognizeShape(SvgNode* node, Shape* shape) in _recognizeShape()
[all …]
DtvgPaint.cpp39 case Type::Shape: ret = P((Shape*)paint)->METHOD; break; \
82 auto shape = static_cast<Shape*>(cmpTarget); in _compFastTrack()
261 if (target->type() == Type::Shape) { in update()
262 auto shape = static_cast<Shape*>(target); in update()
458 if (p && p->type() != Type::Shape) { in clip()
DtvgLottieModel.h204 enum Shape : uint8_t { Square = 1, RampUp, RampDown, Triangle, Round, Smooth }; enum
216 Shape shape = Square;
257 struct LottieText : LottieObject, LottieRenderPooler<tvg::Shape>
319 struct LottieShape : LottieObject, LottieRenderPooler<tvg::Shape>
712 struct LottieGroup : LottieObject, LottieRenderPooler<tvg::Shape>
751 enum Type : uint8_t {Precomp = 0, Solid, Image, Null, Shape, Text}; enumerator
776 LottieRenderPooler<tvg::Shape> statical; //static pooler for solid fill and clipper
DtvgText.h38 Shape* shape;
44 Impl(Text* p) : paint(p), shape(Shape::gen().release()) in Impl()
DtvgLoadModule.h107 virtual bool request(Shape* shape, char* text) = 0;
Dthorvg.h259 Shape, ///< Shape class enumerator
858 class TVG_API Shape final : public Paint
861 ~Shape();
1224 static std::unique_ptr<Shape> gen() noexcept;
1242 _TVG_DECLARE_PRIVATE(Shape);
DtvgLottieBuilder.cpp219 …auto propagator = group->mergeable() ? ctx->propagator : static_cast<Shape*>(PP(ctx->propagator)->… in updateGroup()
251 …contexts.back(new RenderContext(*ctx, static_cast<Shape*>(PP(ctx->propagator)->duplicate(parent->p… in _fragmented()
323 ctx->merging = static_cast<Shape*>(ctx->propagator->duplicate()); in _draw()
332 static void _repeat(LottieGroup* parent, Shape* path, RenderContext* ctx) in _repeat()
334 Array<Shape*> propagators; in _repeat()
336 Array<Shape*> shapes; in _repeat()
345 auto shape = static_cast<Shape*>((*propagator)->duplicate()); in _repeat()
386 static void _appendRect(Shape* shape, float x, float y, float w, float h, float r, const LottieOffs… in _appendRect()
497 static void _appendCircle(Shape* shape, float cx, float cy, float rx, float ry, const LottieOffsetM… in _appendCircle()
576 …difier* roundness, const LottieOffsetModifier* offsetPath, float frameNo, Shape* merging, LottieEx… in _updateStar()
[all …]
DtvgScene.h108 if (paints.size() == 1 && paints.front()->type() == Type::Shape) return false; in needComposition()
DtvgLottieModel.cpp443 auto clipper = Shape::gen().release(); in prepare()
449 auto solidFill = Shape::gen().release(); in prepare()
DtvgSvgPath.cpp549 bool svgPathToShape(const char* svgPath, Shape* shape) in svgPathToShape()
DtvgLottieParser.cpp1153 else if (KEY_AS("sh")) selector->shape = (LottieTextRange::Shape) getInt(); in parseTextRange()
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite_tvg.cpp302 static Result shape_append_path(std::unique_ptr<Shape> & shape, vg_lite_path_t * path, vg_lite_matr…
303 static Result shape_append_rect(std::unique_ptr<Shape> & shape, const vg_lite_buffer_t * target,
598 auto shape = Shape::gen(); in vg_lite_clear()
660 auto shape = Shape::gen(); in vg_lite_blit_rect()
880 auto shape = Shape::gen(); in vg_lite_draw()
1138 auto shape = Shape::gen(); in vg_lite_draw_pattern()
1454 auto shape = Shape::gen(); in vg_lite_draw_linear_grad()
1908 auto shape = Shape::gen(); in vg_lite_draw_grad()
1972 auto shape = Shape::gen(); in vg_lite_draw_radial_grad()
2343 static Result shape_set_stroke(std::unique_ptr<Shape> & shape, const vg_lite_path_t * path) in shape_set_stroke()
[all …]