/third_party/skia/modules/svg/include/ |
D | SkSVGLinearGradient.h | 20 SVG_ATTR(X1, SkSVGLength, SkSVGLength(0 , SkSVGLength::Unit::kPercentage)) 21 SVG_ATTR(Y1, SkSVGLength, SkSVGLength(0 , SkSVGLength::Unit::kPercentage)) 22 SVG_ATTR(X2, SkSVGLength, SkSVGLength(100, SkSVGLength::Unit::kPercentage)) 23 SVG_ATTR(Y2, SkSVGLength, SkSVGLength(0 , SkSVGLength::Unit::kPercentage))
|
D | SkSVGFilter.h | 20 SVG_ATTR(X, SkSVGLength, SkSVGLength(-10, SkSVGLength::Unit::kPercentage)) 21 SVG_ATTR(Y, SkSVGLength, SkSVGLength(-10, SkSVGLength::Unit::kPercentage)) 22 SVG_ATTR(Width, SkSVGLength, SkSVGLength(120, SkSVGLength::Unit::kPercentage)) 23 SVG_ATTR(Height, SkSVGLength, SkSVGLength(120, SkSVGLength::Unit::kPercentage))
|
D | SkSVGMask.h | 20 SVG_ATTR(X , SkSVGLength, SkSVGLength(-10, SkSVGLength::Unit::kPercentage)) 21 SVG_ATTR(Y , SkSVGLength, SkSVGLength(-10, SkSVGLength::Unit::kPercentage)) 22 SVG_ATTR(Width , SkSVGLength, SkSVGLength(120, SkSVGLength::Unit::kPercentage)) 23 SVG_ATTR(Height, SkSVGLength, SkSVGLength(120, SkSVGLength::Unit::kPercentage))
|
D | SkSVGRadialGradient.h | 20 SVG_ATTR(Cx, SkSVGLength, SkSVGLength(50, SkSVGLength::Unit::kPercentage)) 21 SVG_ATTR(Cy, SkSVGLength, SkSVGLength(50, SkSVGLength::Unit::kPercentage)) 22 SVG_ATTR(R, SkSVGLength, SkSVGLength(50, SkSVGLength::Unit::kPercentage)) 23 SVG_OPTIONAL_ATTR(Fx, SkSVGLength) 24 SVG_OPTIONAL_ATTR(Fy, SkSVGLength)
|
D | SkSVGRect.h | 20 SVG_ATTR(X , SkSVGLength, SkSVGLength(0)) 21 SVG_ATTR(Y , SkSVGLength, SkSVGLength(0)) 22 SVG_ATTR(Width , SkSVGLength, SkSVGLength(0)) 23 SVG_ATTR(Height, SkSVGLength, SkSVGLength(0)) 25 SVG_OPTIONAL_ATTR(Rx, SkSVGLength) 26 SVG_OPTIONAL_ATTR(Ry, SkSVGLength)
|
D | SkSVGRenderContext.h | 25 class SkSVGLength; variable 42 SkScalar resolve(const SkSVGLength&, LengthType) const; 43 SkScalar resolveForSVG(const SkSVGLength&, LengthType) const; 44 SkRect resolveRect(const SkSVGLength& x, const SkSVGLength& y, 45 const SkSVGLength& w, const SkSVGLength& h) const; 46 SkRect resolveRectForSVG(const SkSVGLength& x, const SkSVGLength& y, 47 const SkSVGLength& w, const SkSVGLength& h) const; 157 SkRect resolveOBBRect(const SkSVGLength& x, const SkSVGLength& y, 158 const SkSVGLength& w, const SkSVGLength& h,
|
D | SkSVGSVG.h | 25 SVG_ATTR(X , SkSVGLength, SkSVGLength(0)) 26 SVG_ATTR(Y , SkSVGLength, SkSVGLength(0)) 27 SVG_ATTR(Width , SkSVGLength, SkSVGLength(100, SkSVGLength::Unit::kPercentage)) 28 SVG_ATTR(Height , SkSVGLength, SkSVGLength(100, SkSVGLength::Unit::kPercentage))
|
D | SkSVGEllipse.h | 20 SVG_ATTR(Cx, SkSVGLength, SkSVGLength(0)) 21 SVG_ATTR(Cy, SkSVGLength, SkSVGLength(0)) 22 SVG_ATTR(Rx, SkSVGLength, SkSVGLength(0)) 23 SVG_ATTR(Ry, SkSVGLength, SkSVGLength(0))
|
D | SkSVGLine.h | 20 SVG_ATTR(X1, SkSVGLength, SkSVGLength(0)) 21 SVG_ATTR(Y1, SkSVGLength, SkSVGLength(0)) 22 SVG_ATTR(X2, SkSVGLength, SkSVGLength(0)) 23 SVG_ATTR(Y2, SkSVGLength, SkSVGLength(0))
|
D | SkSVGImage.h | 42 SVG_ATTR(X , SkSVGLength , SkSVGLength(0)) 43 SVG_ATTR(Y , SkSVGLength , SkSVGLength(0)) 44 SVG_ATTR(Width , SkSVGLength , SkSVGLength(0)) 45 SVG_ATTR(Height , SkSVGLength , SkSVGLength(0))
|
D | SkSVGCircle.h | 20 SVG_ATTR(Cx, SkSVGLength, SkSVGLength(0)) 21 SVG_ATTR(Cy, SkSVGLength, SkSVGLength(0)) 22 SVG_ATTR(R , SkSVGLength, SkSVGLength(0))
|
D | SkSVGPattern.h | 23 SVG_OPTIONAL_ATTR(X , SkSVGLength) 24 SVG_OPTIONAL_ATTR(Y , SkSVGLength) 25 SVG_OPTIONAL_ATTR(Width , SkSVGLength) 26 SVG_OPTIONAL_ATTR(Height , SkSVGLength) 38 SkTLazy<SkSVGLength> fX,
|
D | SkSVGText.h | 40 SVG_ATTR(X, std::vector<SkSVGLength>, {}) 41 SVG_ATTR(Y, std::vector<SkSVGLength>, {}) 42 SVG_ATTR(Dx, std::vector<SkSVGLength>, {}) 43 SVG_ATTR(Dy, std::vector<SkSVGLength>, {}) 112 SVG_ATTR(StartOffset, SkSVGLength, SkSVGLength(0))
|
D | SkSVGUse.h | 24 SVG_ATTR(X , SkSVGLength, SkSVGLength(0)) 25 SVG_ATTR(Y , SkSVGLength, SkSVGLength(0))
|
D | SkSVGTypes.h | 101 class SkSVGLength { 117 constexpr SkSVGLength() : fValue(0), fUnit(Unit::kUnknown) {} in SkSVGLength() function 118 explicit constexpr SkSVGLength(SkScalar v, Unit u = Unit::kNumber) 120 SkSVGLength(const SkSVGLength&) = default; 121 SkSVGLength& operator=(const SkSVGLength&) = default; 123 bool operator==(const SkSVGLength& other) const { 126 bool operator!=(const SkSVGLength& other) const { return !(*this == other); } 364 explicit SkSVGDashArray(SkTDArray<SkSVGLength>&& dashArray) in SkSVGDashArray() 378 const SkTDArray<SkSVGLength>& dashArray() const { return fDashArray; } in dashArray() 382 SkTDArray<SkSVGLength> fDashArray; [all …]
|
D | SkSVGFe.h | 59 SVG_OPTIONAL_ATTR(X, SkSVGLength) in SVG_ATTR() 60 SVG_OPTIONAL_ATTR(Y, SkSVGLength) in SVG_ATTR() 61 SVG_OPTIONAL_ATTR(Width, SkSVGLength) in SVG_ATTR() 62 SVG_OPTIONAL_ATTR(Height, SkSVGLength) in SVG_ATTR()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGRenderContext.cpp | 51 SkScalar SkSVGLengthContext::resolveForSVG(const SkSVGLength& l, LengthType t) const { in resolveForSVG() 53 case SkSVGLength::Unit::kNumber: in resolveForSVG() 55 case SkSVGLength::Unit::kPX: in resolveForSVG() 57 case SkSVGLength::Unit::kPercentage: in resolveForSVG() 59 case SkSVGLength::Unit::kCM: in resolveForSVG() 61 case SkSVGLength::Unit::kMM: in resolveForSVG() 63 case SkSVGLength::Unit::kIN: in resolveForSVG() 65 case SkSVGLength::Unit::kPT: in resolveForSVG() 67 case SkSVGLength::Unit::kPC: in resolveForSVG() 75 SkRect SkSVGLengthContext::resolveRectForSVG(const SkSVGLength& x, const SkSVGLength& y, in resolveRectForSVG() [all …]
|
D | SkSVGFe.cpp | 21 const auto x = fX.isValid() ? *fX : SkSVGLength(0, SkSVGLength::Unit::kPercentage); in resolveBoundaries() 22 const auto y = fY.isValid() ? *fY : SkSVGLength(0, SkSVGLength::Unit::kPercentage); in resolveBoundaries() 23 const auto w = fWidth.isValid() ? *fWidth : SkSVGLength(100, SkSVGLength::Unit::kPercentage); in resolveBoundaries() 24 const auto h = fHeight.isValid() ? *fHeight : SkSVGLength(100, SkSVGLength::Unit::kPercentage); in resolveBoundaries() 97 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", name, value)) || in parseAndSetAttribute() 98 this->setY(SkSVGAttributeParser::parse<SkSVGLength>("y", name, value)) || in parseAndSetAttribute() 99 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>("width", name, value)) || in parseAndSetAttribute() 100 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>("height", name, value)); in parseAndSetAttribute()
|
D | SkSVGRect.cpp | 20 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", n, v)) || in parseAndSetAttribute() 21 this->setY(SkSVGAttributeParser::parse<SkSVGLength>("y", n, v)) || in parseAndSetAttribute() 22 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>("width", n, v)) || in parseAndSetAttribute() 23 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>("height", n, v)) || in parseAndSetAttribute() 24 this->setRx(SkSVGAttributeParser::parse<SkSVGLength>("rx", n, v)) || in parseAndSetAttribute() 25 this->setRy(SkSVGAttributeParser::parse<SkSVGLength>("ry", n, v)); in parseAndSetAttribute() 52 : std::make_tuple(SkSVGLength(0), SkSVGLength(0)); in resolve()
|
D | SkSVGPattern.cpp | 19 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", name, value)) || in parseAndSetAttribute() 20 this->setY(SkSVGAttributeParser::parse<SkSVGLength>("y", name, value)) || in parseAndSetAttribute() 21 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>("width", name, value)) || in parseAndSetAttribute() 22 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>("height", name, value)) || in parseAndSetAttribute() 95 attrs.fX.isValid() ? *attrs.fX : SkSVGLength(0), in onAsPaint() 96 attrs.fY.isValid() ? *attrs.fY : SkSVGLength(0), in onAsPaint() 97 attrs.fWidth.isValid() ? *attrs.fWidth : SkSVGLength(0), in onAsPaint() 98 attrs.fHeight.isValid() ? *attrs.fHeight : SkSVGLength(0)); in onAsPaint()
|
D | SkSVGAttributeParser.cpp | 119 bool SkSVGAttributeParser::parseLengthUnitToken(SkSVGLength::Unit* unit) { in parseLengthUnitToken() 122 SkSVGLength::Unit fUnit; in parseLengthUnitToken() 124 { "%" , SkSVGLength::Unit::kPercentage }, in parseLengthUnitToken() 125 { "em", SkSVGLength::Unit::kEMS }, in parseLengthUnitToken() 126 { "ex", SkSVGLength::Unit::kEXS }, in parseLengthUnitToken() 127 { "px", SkSVGLength::Unit::kPX }, in parseLengthUnitToken() 128 { "cm", SkSVGLength::Unit::kCM }, in parseLengthUnitToken() 129 { "mm", SkSVGLength::Unit::kMM }, in parseLengthUnitToken() 130 { "in", SkSVGLength::Unit::kIN }, in parseLengthUnitToken() 131 { "pt", SkSVGLength::Unit::kPT }, in parseLengthUnitToken() [all …]
|
D | SkSVGRadialGradient.cpp | 17 this->setCx(SkSVGAttributeParser::parse<SkSVGLength>("cx", name, value)) || in parseAndSetAttribute() 18 this->setCy(SkSVGAttributeParser::parse<SkSVGLength>("cy", name, value)) || in parseAndSetAttribute() 19 this->setR(SkSVGAttributeParser::parse<SkSVGLength>("r", name, value)) || in parseAndSetAttribute() 20 this->setFx(SkSVGAttributeParser::parse<SkSVGLength>("fx", name, value)) || in parseAndSetAttribute() 21 this->setFy(SkSVGAttributeParser::parse<SkSVGLength>("fy", name, value)); in parseAndSetAttribute()
|
D | SkSVGLinearGradient.cpp | 17 this->setX1(SkSVGAttributeParser::parse<SkSVGLength>("x1", name, value)) || in parseAndSetAttribute() 18 this->setY1(SkSVGAttributeParser::parse<SkSVGLength>("y1", name, value)) || in parseAndSetAttribute() 19 this->setX2(SkSVGAttributeParser::parse<SkSVGLength>("x2", name, value)) || in parseAndSetAttribute() 20 this->setY2(SkSVGAttributeParser::parse<SkSVGLength>("y2", name, value)); in parseAndSetAttribute()
|
D | SkSVGEllipse.cpp | 17 this->setCx(SkSVGAttributeParser::parse<SkSVGLength>("cx", n, v)) || in parseAndSetAttribute() 18 this->setCy(SkSVGAttributeParser::parse<SkSVGLength>("cy", n, v)) || in parseAndSetAttribute() 19 this->setRx(SkSVGAttributeParser::parse<SkSVGLength>("rx", n, v)) || in parseAndSetAttribute() 20 this->setRy(SkSVGAttributeParser::parse<SkSVGLength>("ry", n, v)); in parseAndSetAttribute()
|
D | SkSVGMask.cpp | 16 this->setX(SkSVGAttributeParser::parse<SkSVGLength>("x", n, v)) || in parseAndSetAttribute() 17 this->setY(SkSVGAttributeParser::parse<SkSVGLength>("y", n, v)) || in parseAndSetAttribute() 18 this->setWidth(SkSVGAttributeParser::parse<SkSVGLength>("width", n, v)) || in parseAndSetAttribute() 19 this->setHeight(SkSVGAttributeParser::parse<SkSVGLength>("height", n, v)) || in parseAndSetAttribute()
|