Lines Matching refs:loaderData
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…
45 static unique_ptr<Scene> _sceneBuildHelper(SvgLoaderData& loaderData, const SvgNode* node, const Bo…
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()
254 static void _applyComposition(SvgLoaderData& loaderData, Paint* paint, const SvgNode* node, const B… in _applyComposition() argument
272 …if (_appendClipChild(loaderData, *child, comp.get(), vBox, svgPath, compNode->child.count > 1)) va… in _applyComposition()
296 … if (auto comp = _sceneBuildHelper(loaderData, compNode, vBox, svgPath, true, 0, &isMaskWhite)) { in _applyComposition()
317 static void _applyProperty(SvgLoaderData& loaderData, SvgNode* node, Shape* vg, const Box& vBox, co… in _applyProperty() argument
394 _applyComposition(loaderData, vg, node, vBox, svgPath); in _applyProperty()
398 static unique_ptr<Shape> _shapeBuildHelper(SvgLoaderData& loaderData, SvgNode* node, const Box& vBo… in _shapeBuildHelper() argument
401 if (_appendShape(loaderData, node, shape.get(), vBox, svgPath)) return shape; in _shapeBuildHelper()
462 static bool _appendShape(SvgLoaderData& loaderData, SvgNode* node, Shape* shape, const Box& vBox, c… in _appendShape() argument
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
495 _applyProperty(loaderData, node, shape, vBox, svgPath, true); in _appendClipShape()
574 static unique_ptr<Picture> _imageBuildHelper(SvgLoaderData& loaderData, SvgNode* node, const Box& v… in _imageBuildHelper() argument
603 loaderData.images.push(decoded); in _imageBuildHelper()
637 _applyComposition(loaderData, picture.get(), node, vBox, svgPath); in _imageBuildHelper()
717 static unique_ptr<Scene> _useBuildHelper(SvgLoaderData& loaderData, const SvgNode* node, const Box&… in _useBuildHelper() argument
719 auto scene = _sceneBuildHelper(loaderData, node, vBox, svgPath, false, depth + 1, isMaskWhite); in _useBuildHelper()
807 static unique_ptr<Text> _textBuildHelper(SvgLoaderData& loaderData, const SvgNode* node, const Box&… in _textBuildHelper() argument
825 _applyComposition(loaderData, text.get(), node, vBox, svgPath); in _textBuildHelper()
831 static unique_ptr<Scene> _sceneBuildHelper(SvgLoaderData& loaderData, const SvgNode* node, const Bo… in _sceneBuildHelper() argument
850 … scene->push(_useBuildHelper(loaderData, *child, vBox, svgPath, depth + 1, isMaskWhite)); in _sceneBuildHelper()
852 … scene->push(_sceneBuildHelper(loaderData, *child, vBox, svgPath, false, depth + 1, isMaskWhite)); in _sceneBuildHelper()
854 auto image = _imageBuildHelper(loaderData, *child, vBox, svgPath); in _sceneBuildHelper()
860 auto text = _textBuildHelper(loaderData, *child, vBox, svgPath); in _sceneBuildHelper()
863 auto shape = _shapeBuildHelper(loaderData, *child, vBox, svgPath); in _sceneBuildHelper()
877 _applyComposition(loaderData, scene.get(), node, vBox, svgPath); in _sceneBuildHelper()
910 Scene* svgSceneBuild(SvgLoaderData& loaderData, Box vBox, float w, float h, AspectRatioAlign align,… in svgSceneBuild() argument
914 if (!loaderData.doc || (loaderData.doc->type != SvgNodeType::Doc)) return nullptr; in svgSceneBuild()
916 auto docNode = _sceneBuildHelper(loaderData, loaderData.doc, vBox, svgPath, false, 0); in svgSceneBuild()
937 loaderData.doc->node.doc.vx = vBox.x; in svgSceneBuild()
938 loaderData.doc->node.doc.vy = vBox.y; in svgSceneBuild()
939 loaderData.doc->node.doc.vw = vBox.w; in svgSceneBuild()
940 loaderData.doc->node.doc.vh = vBox.h; in svgSceneBuild()
941 loaderData.doc->node.doc.w = w; in svgSceneBuild()
942 loaderData.doc->node.doc.h = h; in svgSceneBuild()