Lines Matching full:h
23 #include "../../lv_conf_internal.h"
26 #include "tvgMath.h" /* to include math.h before cstring */
29 #include "tvgShape.h"
30 #include "tvgCompressor.h"
31 #include "tvgPaint.h"
32 #include "tvgFill.h"
33 #include "tvgStr.h"
34 #include "tvgSvgLoaderCommon.h"
35 #include "tvgSvgSceneBuilder.h"
36 #include "tvgSvgPath.h"
37 #include "tvgSvgUtil.h"
59 float x, y, w, h; in _boundingBox() local
60 shape->bounds(&x, &y, &w, &h, false); in _boundingBox()
66 h -= strokeW; in _boundingBox()
69 return {x, y, w, h}; in _boundingBox()
75 float x, y, w, h; in _boundingBox() local
76 text->bounds(&x, &y, &w, &h, false); in _boundingBox()
77 return {x, y, w, h}; in _boundingBox()
105 g->linear->y1 = g->linear->y1 * vBox.h; in _applyLinearGradientProperty()
107 g->linear->y2 = g->linear->y2 * vBox.h; in _applyLinearGradientProperty()
109 Matrix m = {vBox.w, 0, vBox.x, 0, vBox.h, vBox.y, 0, 0, 1}; in _applyLinearGradientProperty()
162 g->radial->cy = g->radial->cy * vBox.h; in _applyRadialGradientProperty()
163 g->radial->r = g->radial->r * sqrtf(powf(vBox.w, 2.0f) + powf(vBox.h, 2.0f)) / sqrtf(2.0f); in _applyRadialGradientProperty()
165 g->radial->fy = g->radial->fy * vBox.h; in _applyRadialGradientProperty()
166 … g->radial->fr = g->radial->fr * sqrtf(powf(vBox.w, 2.0f) + powf(vBox.h, 2.0f)) / sqrtf(2.0f); in _applyRadialGradientProperty()
168 Matrix m = {vBox.w, 0, vBox.x, 0, vBox.h, vBox.y, 0, 0, 1}; in _applyRadialGradientProperty()
245 float x, y, w, h; in _compositionTransform() local
246 P(paint)->bounds(&x, &y, &w, &h, false, false); in _compositionTransform()
247 Matrix mBBox = {w, 0, x, 0, h, y, 0, 0, 1}; in _compositionTransform()
446 …ct(node->node.rect.x, node->node.rect.y, node->node.rect.w, node->node.rect.h, node->node.rect.rx,… in _recognizeShape()
572 #include "tvgTaskScheduler.h"
627 float w, h; in _imageBuildHelper() local
629 if (picture->size(&w, &h) == Result::Success && w > 0 && h > 0) { in _imageBuildHelper()
631 auto sy = node->node.image.h / h; in _imageBuildHelper()
646 auto sy = height / box.h; in _calculateAspectRatioMatrix()
666 auto tvh = box.h * sy; in _calculateAspectRatioMatrix()
734 auto height = (symbol.hasHeight ? symbol.h : vBox.h);; in _useBuildHelper()
735 if (node->node.use.isHeightSet) height = node->node.use.h; in _useBuildHelper()
886 static void _updateInvalidViewSize(const Scene* scene, Box& vBox, float& w, float& h, SvgViewFlag v… in _updateInvalidViewSize() argument
892 scene->bounds(&x, &y, &vBox.w, &vBox.h, false); in _updateInvalidViewSize()
898 if (validHeight) vBox.h = h; in _updateInvalidViewSize()
903 if (!validHeight) h *= vBox.h; in _updateInvalidViewSize()
910 Scene* svgSceneBuild(SvgLoaderData& loaderData, Box vBox, float w, float h, AspectRatioAlign align,… in svgSceneBuild() argument
918 …if (!(viewFlag & SvgViewFlag::Viewbox)) _updateInvalidViewSize(docNode.get(), vBox, w, h, viewFlag… in svgSceneBuild()
920 if (!tvg::equal(w, vBox.w) || !tvg::equal(h, vBox.h)) { in svgSceneBuild()
921 Matrix m = _calculateAspectRatioMatrix(align, meetOrSlice, w, h, vBox); in svgSceneBuild()
928 viewBoxClip->appendRect(0, 0, w, h); in svgSceneBuild()
940 loaderData.doc->node.doc.vh = vBox.h; in svgSceneBuild()
942 loaderData.doc->node.doc.h = h; in svgSceneBuild()