Lines Matching refs:g
93 static unique_ptr<LinearGradient> _applyLinearGradientProperty(SvgStyleGradient* g, const Box& vBox… in _applyLinearGradientProperty() argument
99 bool isTransform = (g->transform ? true : false); in _applyLinearGradientProperty()
101 if (isTransform) finalTransform = *g->transform; in _applyLinearGradientProperty()
103 if (g->userSpace) { in _applyLinearGradientProperty()
104 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()
120 fillGrad->spread(g->spread); in _applyLinearGradientProperty()
123 stopCount = g->stops.count; in _applyLinearGradientProperty()
128 for (uint32_t i = 0; i < g->stops.count; ++i) { in _applyLinearGradientProperty()
129 auto colorStop = &g->stops[i]; in _applyLinearGradientProperty()
132 stops[i].g = colorStop->g; in _applyLinearGradientProperty()
148 static unique_ptr<RadialGradient> _applyRadialGradientProperty(SvgStyleGradient* g, const Box& vBox… in _applyRadialGradientProperty() argument
154 bool isTransform = (g->transform ? true : false); in _applyRadialGradientProperty()
156 if (isTransform) finalTransform = *g->transform; in _applyRadialGradientProperty()
158 if (g->userSpace) { in _applyRadialGradientProperty()
161 g->radial->cx = g->radial->cx * vBox.w; in _applyRadialGradientProperty()
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()
164 g->radial->fx = g->radial->fx * vBox.w; 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()
178 …P(fillGrad)->radial(g->radial->cx, g->radial->cy, g->radial->r, g->radial->fx, g->radial->fy, g->r… in _applyRadialGradientProperty()
179 fillGrad->spread(g->spread); in _applyRadialGradientProperty()
182 stopCount = g->stops.count; in _applyRadialGradientProperty()
187 for (uint32_t i = 0; i < g->stops.count; ++i) { in _applyRadialGradientProperty()
188 auto colorStop = &g->stops[i]; in _applyRadialGradientProperty()
191 stops[i].g = colorStop->g; in _applyRadialGradientProperty()
344 vg->fill(style->color.r, style->color.g, style->color.b, style->fill.opacity); in _applyProperty()
347 …vg->fill(style->fill.paint.color.r, style->fill.paint.color.g, style->fill.paint.color.b, style->f… in _applyProperty()
388 vg->stroke(style->color.r, style->color.g, style->color.b, style->stroke.opacity); in _applyProperty()
391 …vg->stroke(style->stroke.paint.color.r, style->stroke.paint.color.g, style->stroke.paint.color.b, … in _applyProperty()
797 text->fill(style->color.r, style->color.g, style->color.b); in _applyTextFill()
801 text->fill(style->fill.paint.color.r, style->fill.paint.color.g, style->fill.paint.color.b); in _applyTextFill()
866 uint8_t r, g, b; in _sceneBuildHelper() local
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()