Skia
2D Graphics Library
SkSVGAttribute.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkSVGAttribute_DEFINED
9 #define SkSVGAttribute_DEFINED
10 
12 #include "src/base/SkTLazy.h"
13 
14 class SkSVGRenderContext;
15 
16 enum class SkSVGAttribute {
17  kClipRule,
18  kColor,
21  kCx, // <circle>, <ellipse>, <radialGradient>: center x position
22  kCy, // <circle>, <ellipse>, <radialGradient>: center y position
23  kFill,
25  kFillRule,
26  kFilter,
29  kFontSize,
30  kFontStyle,
32  kFx, // <radialGradient>: focal point x position
33  kFy, // <radialGradient>: focal point y position
36  kHeight,
37  kHref,
38  kOpacity,
39  kPoints,
41  kR, // <circle>, <radialGradient>: radius
42  kRx, // <ellipse>,<rect>: horizontal (corner) radius
43  kRy, // <ellipse>,<rect>: vertical (corner) radius
45  kStroke,
53  kTransform,
54  kText,
56  kViewBox,
58  kWidth,
59  kX,
60  kX1, // <line>: first endpoint x
61  kX2, // <line>: second endpoint x
62  kY,
63  kY1, // <line>: first endpoint y
64  kY2, // <line>: second endpoint y
65 
66  kUnknown,
67 };
68 
71 
72  // TODO: SkSVGProperty adds an extra ptr per attribute; refactor to reduce overhead.
73 
78 
87 
89 
93 
99 
100  // uninherited
111 };
112 
113 #endif // SkSVGAttribute_DEFINED
SkSVGAttribute
Definition: SkSVGAttribute.h:16
@ kColorInterpolationFilters
Definition: SkSVGRenderContext.h:61
Definition: SkSVGAttribute.h:69
SkSVGProperty< SkSVGDashArray, true > fStrokeDashArray
Definition: SkSVGAttribute.h:80
SkSVGProperty< SkSVGFontSize, true > fFontSize
Definition: SkSVGAttribute.h:96
SkSVGProperty< SkSVGColor, false > fLightingColor
Definition: SkSVGAttribute.h:110
SkSVGProperty< SkSVGColor, false > fStopColor
Definition: SkSVGAttribute.h:106
static SkSVGPresentationAttributes MakeInitial()
SkSVGProperty< SkSVGNumberType, true > fStrokeMiterLimit
Definition: SkSVGAttribute.h:84
SkSVGProperty< SkSVGFuncIRI, false > fMask
Definition: SkSVGAttribute.h:104
SkSVGProperty< SkSVGLineCap, true > fStrokeLineCap
Definition: SkSVGAttribute.h:82
SkSVGProperty< SkSVGFontFamily, true > fFontFamily
Definition: SkSVGAttribute.h:94
SkSVGProperty< SkSVGColorspace, true > fColorInterpolationFilters
Definition: SkSVGAttribute.h:92
SkSVGProperty< SkSVGLength, true > fStrokeDashOffset
Definition: SkSVGAttribute.h:81
SkSVGProperty< SkSVGDisplay, false > fDisplay
Definition: SkSVGAttribute.h:103
SkSVGProperty< SkSVGFontWeight, true > fFontWeight
Definition: SkSVGAttribute.h:97
SkSVGProperty< SkSVGVisibility, true > fVisibility
Definition: SkSVGAttribute.h:88
SkSVGProperty< SkSVGPaint, true > fFill
Definition: SkSVGAttribute.h:74
SkSVGProperty< SkSVGNumberType, true > fStrokeOpacity
Definition: SkSVGAttribute.h:85
SkSVGProperty< SkSVGFuncIRI, false > fClipPath
Definition: SkSVGAttribute.h:102
SkSVGProperty< SkSVGFillRule, true > fClipRule
Definition: SkSVGAttribute.h:77
SkSVGProperty< SkSVGNumberType, false > fFloodOpacity
Definition: SkSVGAttribute.h:109
SkSVGProperty< SkSVGNumberType, false > fOpacity
Definition: SkSVGAttribute.h:101
SkSVGProperty< SkSVGColor, false > fFloodColor
Definition: SkSVGAttribute.h:108
SkSVGProperty< SkSVGNumberType, true > fFillOpacity
Definition: SkSVGAttribute.h:75
SkSVGProperty< SkSVGLength, true > fStrokeWidth
Definition: SkSVGAttribute.h:86
SkSVGProperty< SkSVGTextAnchor, true > fTextAnchor
Definition: SkSVGAttribute.h:98
SkSVGProperty< SkSVGFillRule, true > fFillRule
Definition: SkSVGAttribute.h:76
SkSVGProperty< SkSVGColorspace, true > fColorInterpolation
Definition: SkSVGAttribute.h:91
SkSVGProperty< SkSVGLineJoin, true > fStrokeLineJoin
Definition: SkSVGAttribute.h:83
SkSVGProperty< SkSVGNumberType, false > fStopOpacity
Definition: SkSVGAttribute.h:107
SkSVGProperty< SkSVGFontStyle, true > fFontStyle
Definition: SkSVGAttribute.h:95
SkSVGProperty< SkSVGPaint, true > fStroke
Definition: SkSVGAttribute.h:79
SkSVGProperty< SkSVGColorType, true > fColor
Definition: SkSVGAttribute.h:90
SkSVGProperty< SkSVGFuncIRI, false > fFilter
Definition: SkSVGAttribute.h:105