Lines Matching refs:shape
43 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() argument
60 shape->bounds(&x, &y, &w, &h, false); in _boundingBox()
62 if (auto strokeW = shape->strokeWidth()) { in _boundingBox()
208 static bool _appendClipUseNode(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& v… in _appendClipUseNode() argument
221 …return _appendClipShape(loaderData, child, shape, vBox, svgPath, identity((const Matrix*)(&finalTr… in _appendClipUseNode()
225 static bool _appendClipChild(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBo… in _appendClipChild() argument
228 return _appendClipUseNode(loaderData, node, shape, vBox, svgPath); in _appendClipChild()
230 return _appendClipShape(loaderData, node, shape, vBox, svgPath, nullptr); in _appendClipChild()
400 auto shape = Shape::gen(); in _shapeBuildHelper() local
401 if (_appendShape(loaderData, node, shape.get(), vBox, svgPath)) return shape; in _shapeBuildHelper()
406 static bool _recognizeShape(SvgNode* node, Shape* shape) in _recognizeShape() argument
411 if (!svgPathToShape(node->node.path.path, shape)) { in _recognizeShape()
419 …shape->appendCircle(node->node.ellipse.cx, node->node.ellipse.cy, node->node.ellipse.rx, node->nod… in _recognizeShape()
425 shape->moveTo(pts[0], pts[1]); in _recognizeShape()
427 shape->lineTo(pts[0], pts[1]); in _recognizeShape()
429 shape->close(); in _recognizeShape()
435 shape->moveTo(pts[0], pts[1]); in _recognizeShape()
437 shape->lineTo(pts[0], pts[1]); in _recognizeShape()
442 …shape->appendCircle(node->node.circle.cx, node->node.circle.cy, node->node.circle.r, node->node.ci… in _recognizeShape()
446 …shape->appendRect(node->node.rect.x, node->node.rect.y, node->node.rect.w, node->node.rect.h, node… in _recognizeShape()
450 shape->moveTo(node->node.line.x1, node->node.line.y1); in _recognizeShape()
451 shape->lineTo(node->node.line.x2, node->node.line.y2); in _recognizeShape()
462 static bool _appendShape(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBox, c… in _appendShape() argument
464 if (!_recognizeShape(node, shape)) return false; in _appendShape()
466 _applyProperty(loaderData, node, shape, vBox, svgPath, false); in _appendShape()
471 static bool _appendClipShape(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBo… in _appendClipShape() argument
479 currentPtsCnt = shape->pathCoords(&tmp); in _appendClipShape()
482 if (!_recognizeShape(node, shape)) return false; in _appendClipShape()
486 auto ptsCnt = shape->pathCoords(&pts); in _appendClipShape()
495 _applyProperty(loaderData, node, shape, vBox, svgPath, true); in _appendClipShape()
863 auto shape = _shapeBuildHelper(loaderData, *child, vBox, svgPath); in _sceneBuildHelper() local
864 if (shape) { in _sceneBuildHelper()
867 shape->fillColor(&r, &g, &b); in _sceneBuildHelper()
868 … if (shape->fill() || r < 255 || g < 255 || b < 255 || shape->strokeFill() || in _sceneBuildHelper()
869 … (shape->strokeColor(&r, &g, &b) == Result::Success && (r < 255 || g < 255 || b < 255))) { in _sceneBuildHelper()
873 scene->push(std::move(shape)); in _sceneBuildHelper()