OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 float m_x; | 92 float m_x; |
93 float m_y; | 93 float m_y; |
94 float m_r1; | 94 float m_r1; |
95 float m_r2; | 95 float m_r2; |
96 float m_angle; | 96 float m_angle; |
97 | 97 |
98 bool m_largeArcFlag : 1; | 98 bool m_largeArcFlag : 1; |
99 bool m_sweepFlag : 1; | 99 bool m_sweepFlag : 1; |
100 }; | 100 }; |
101 | 101 |
102 class SVGPathSegArcAbs : public SVGPathSegArc { | |
103 public: | |
104 static PassRefPtr<SVGPathSegArcAbs> create(SVGPathElement* element, SVGPathS
egRole role, float x, float y, float r1, float r2, float angle, bool largeArcFla
g, bool sweepFlag) | |
105 { | |
106 return adoptRef(new SVGPathSegArcAbs(element, role, x, y, r1, r2, angle,
largeArcFlag, sweepFlag)); | |
107 } | |
108 | |
109 private: | |
110 SVGPathSegArcAbs(SVGPathElement* element, SVGPathSegRole role, float x, floa
t y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) | |
111 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepF
lag) | |
112 { | |
113 ScriptWrappable::init(this); | |
114 } | |
115 | |
116 virtual unsigned short pathSegType() const { return PATHSEG_ARC_ABS; } | |
117 virtual String pathSegTypeAsLetter() const { return "A"; } | |
118 }; | |
119 | |
120 class SVGPathSegArcRel : public SVGPathSegArc { | |
121 public: | |
122 static PassRefPtr<SVGPathSegArcRel> create(SVGPathElement* element, SVGPathS
egRole role, float x, float y, float r1, float r2, float angle, bool largeArcFla
g, bool sweepFlag) | |
123 { | |
124 return adoptRef(new SVGPathSegArcRel(element, role, x, y, r1, r2, angle,
largeArcFlag, sweepFlag)); | |
125 } | |
126 | |
127 private: | |
128 SVGPathSegArcRel(SVGPathElement* element, SVGPathSegRole role, float x, floa
t y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag) | |
129 : SVGPathSegArc(element, role, x, y, r1, r2, angle, largeArcFlag, sweepF
lag) | |
130 { | |
131 ScriptWrappable::init(this); | |
132 } | |
133 | |
134 virtual unsigned short pathSegType() const { return PATHSEG_ARC_REL; } | |
135 virtual String pathSegTypeAsLetter() const { return "a"; } | |
136 }; | |
137 | |
138 } // namespace WebCore | 102 } // namespace WebCore |
139 | 103 |
140 #endif | 104 #endif |
OLD | NEW |