Lines Matching refs:paint
20 #include "gfx_utils/diagram/common/paint.h"
52 const Paint& paint,
61 const Paint& paint,
73 const Paint& paint);
76 const Paint& paint,
85 static void RenderGradient(const Paint& paint,
93 static void BuildGradientColor(const Paint& paint, FillGradientLut& gradientColorMode);
95 static void BuildLineGradientMatrix(const Paint& paint,
100 Paint::LinearGradientPoint linearPoint = paint.GetLinearGradientPoint();
111 static void BuildRadialGradientMatrix(const Paint& paint,
123 static void RenderPattern(const Paint& paint,
140 static void RenderBlendSolid(const Paint& paint, Rgba8T& color, const bool& isStroke)
143 if (paint.GetStyle() == Paint::STROKE_STYLE || paint.GetStyle() == Paint::STROKE_FILL_STYLE) {
144 ChangeColor(color, paint.GetStrokeColor(),
145 static_cast<uint8_t>(paint.GetStrokeColor().alpha * paint.GetGlobalAlpha()));
148 if (paint.GetStyle() == Paint::FILL_STYLE || paint.GetStyle() == Paint::STROKE_FILL_STYLE) {
149 ChangeColor(color, paint.GetFillColor(),
150 static_cast<uint8_t>(paint.GetFillColor().alpha * paint.GetGlobalAlpha()));
158 template <class LineStyle> static void LineStyleCalc(DepictStroke<LineStyle>& strokeLineStyle, const Paint& paint)
160 strokeLineStyle.SetWidth(paint.GetStrokeWidth()); // Line style related
162 strokeLineStyle.SetLineCap(paint.GetLineCap());
165 strokeLineStyle.SetLineJoin(paint.GetLineJoin());
166 if (paint.GetMiterLimit() > 0) {
167 strokeLineStyle.SetMiterLimit(paint.GetMiterLimit());
176 static void LineDashStyleCalc(DepictDash& dashStyle, const Paint& paint)
178 for (uint32_t i = 0; i < paint.GetLineDashCount(); i += TWO_STEP) {
179 dashStyle.AddDash(paint.GetLineDash()[i], paint.GetLineDash()[i + 1]);
181 dashStyle.DashStart(paint.GetLineDashOffset());