OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkSVGAttribute_DEFINED | 8 #ifndef SkSVGAttribute_DEFINED |
9 #define SkSVGAttribute_DEFINED | 9 #define SkSVGAttribute_DEFINED |
10 | 10 |
11 #include "SkSVGTypes.h" | 11 #include "SkSVGTypes.h" |
12 #include "SkTLazy.h" | 12 #include "SkTLazy.h" |
13 | 13 |
14 class SkSVGRenderContext; | 14 class SkSVGRenderContext; |
15 | 15 |
16 enum class SkSVGAttribute { | 16 enum class SkSVGAttribute { |
17 kCx, // <circle>,<ellipse>: center x position | 17 kCx, // <circle>,<ellipse>: center x position |
18 kCy, // <circle>,<ellipse>: center y position | 18 kCy, // <circle>,<ellipse>: center y position |
19 kD, | 19 kD, |
20 kFill, | 20 kFill, |
21 kFillOpacity, | 21 kFillOpacity, |
22 kHeight, | 22 kHeight, |
23 kHref, | 23 kHref, |
24 kOffset, | 24 kOffset, |
25 kOpacity, | 25 kOpacity, |
26 kPoints, | 26 kPoints, |
27 kR, // <circle>: radius | 27 kR, // <circle>: radius |
28 kRx, // <ellipse>,<rect>: horizontal (corner) radius | 28 kRx, // <ellipse>,<rect>: horizontal (corner) radius |
29 kRy, // <ellipse>,<rect>: vertical (corner) radius | 29 kRy, // <ellipse>,<rect>: vertical (corner) radius |
| 30 kSpreadMethod, |
30 kStopColor, | 31 kStopColor, |
31 kStopOpacity, | 32 kStopOpacity, |
32 kStroke, | 33 kStroke, |
33 kStrokeOpacity, | 34 kStrokeOpacity, |
34 kStrokeLineCap, | 35 kStrokeLineCap, |
35 kStrokeLineJoin, | 36 kStrokeLineJoin, |
36 kStrokeWidth, | 37 kStrokeWidth, |
37 kTransform, | 38 kTransform, |
38 kViewBox, | 39 kViewBox, |
39 kWidth, | 40 kWidth, |
(...skipping 18 matching lines...) Expand all Loading... |
58 SkTLazy<SkSVGPaint> fStroke; | 59 SkTLazy<SkSVGPaint> fStroke; |
59 SkTLazy<SkSVGLineCap> fStrokeLineCap; | 60 SkTLazy<SkSVGLineCap> fStrokeLineCap; |
60 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; | 61 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; |
61 SkTLazy<SkSVGNumberType> fStrokeOpacity; | 62 SkTLazy<SkSVGNumberType> fStrokeOpacity; |
62 SkTLazy<SkSVGLength> fStrokeWidth; | 63 SkTLazy<SkSVGLength> fStrokeWidth; |
63 | 64 |
64 SkTLazy<SkSVGNumberType> fOpacity; | 65 SkTLazy<SkSVGNumberType> fOpacity; |
65 }; | 66 }; |
66 | 67 |
67 #endif // SkSVGAttribute_DEFINED | 68 #endif // SkSVGAttribute_DEFINED |
OLD | NEW |