Flutter Engine
The Flutter Engine
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
15
16enum class SkSVGAttribute {
18 kColor,
21 kCx, // <circle>, <ellipse>, <radialGradient>: center x position
22 kCy, // <circle>, <ellipse>, <radialGradient>: center y position
23 kFill,
26 kFilter,
32 kFx, // <radialGradient>: focal point x position
33 kFy, // <radialGradient>: focal point y position
36 kHeight,
37 kHref,
39 kPoints,
41 kR, // <circle>, <radialGradient>: radius
42 kRx, // <ellipse>,<rect>: horizontal (corner) radius
43 kRy, // <ellipse>,<rect>: vertical (corner) radius
45 kStroke,
54 kText,
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
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
@ kColor
hue and saturation of source with luminosity of destination
SkSVGAttribute
@ kColorInterpolationFilters
SkSVGProperty< SkSVGDashArray, true > fStrokeDashArray
SkSVGProperty< SkSVGFontSize, true > fFontSize
SkSVGProperty< SkSVGColor, false > fLightingColor
SkSVGProperty< SkSVGColor, false > fStopColor
SkSVGProperty< SkSVGNumberType, true > fStrokeMiterLimit
SkSVGProperty< SkSVGFuncIRI, false > fMask
SkSVGProperty< SkSVGLineCap, true > fStrokeLineCap
SkSVGProperty< SkSVGFontFamily, true > fFontFamily
SkSVGProperty< SkSVGColorspace, true > fColorInterpolationFilters
SkSVGProperty< SkSVGLength, true > fStrokeDashOffset
SkSVGProperty< SkSVGDisplay, false > fDisplay
SkSVGProperty< SkSVGFontWeight, true > fFontWeight
SkSVGProperty< SkSVGVisibility, true > fVisibility
SkSVGProperty< SkSVGPaint, true > fFill
SkSVGProperty< SkSVGNumberType, true > fStrokeOpacity
SkSVGProperty< SkSVGFuncIRI, false > fClipPath
SkSVGProperty< SkSVGFillRule, true > fClipRule
SkSVGProperty< SkSVGNumberType, false > fFloodOpacity
SkSVGProperty< SkSVGNumberType, false > fOpacity
SkSVGProperty< SkSVGColor, false > fFloodColor
SkSVGProperty< SkSVGNumberType, true > fFillOpacity
SkSVGProperty< SkSVGLength, true > fStrokeWidth
SkSVGProperty< SkSVGTextAnchor, true > fTextAnchor
SkSVGProperty< SkSVGFillRule, true > fFillRule
SkSVGProperty< SkSVGColorspace, true > fColorInterpolation
SkSVGProperty< SkSVGLineJoin, true > fStrokeLineJoin
SkSVGProperty< SkSVGNumberType, false > fStopOpacity
SkSVGProperty< SkSVGFontStyle, true > fFontStyle
static SkSVGPresentationAttributes MakeInitial()
SkSVGProperty< SkSVGPaint, true > fStroke
SkSVGProperty< SkSVGColorType, true > fColor
SkSVGProperty< SkSVGFuncIRI, false > fFilter