OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef SVGPathElement_h | 21 #ifndef SVGPathElement_h |
22 #define SVGPathElement_h | 22 #define SVGPathElement_h |
23 | 23 |
24 #include "SVGNames.h" | 24 #include "SVGNames.h" |
25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
26 #include "core/svg/SVGAnimatedNumber.h" | 26 #include "core/svg/SVGAnimatedNumber.h" |
27 #include "core/svg/SVGExternalResourcesRequired.h" | 27 #include "core/svg/SVGExternalResourcesRequired.h" |
28 #include "core/svg/SVGGraphicsElement.h" | 28 #include "core/svg/SVGGeometryElement.h" |
29 #include "core/svg/SVGPathByteStream.h" | 29 #include "core/svg/SVGPathByteStream.h" |
30 #include "core/svg/SVGPathSegList.h" | 30 #include "core/svg/SVGPathSegList.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class SVGPathSegArcAbs; | 34 class SVGPathSegArcAbs; |
35 class SVGPathSegArcRel; | 35 class SVGPathSegArcRel; |
36 class SVGPathSegClosePath; | 36 class SVGPathSegClosePath; |
37 class SVGPathSegLinetoAbs; | 37 class SVGPathSegLinetoAbs; |
38 class SVGPathSegLinetoRel; | 38 class SVGPathSegLinetoRel; |
39 class SVGPathSegMovetoAbs; | 39 class SVGPathSegMovetoAbs; |
40 class SVGPathSegMovetoRel; | 40 class SVGPathSegMovetoRel; |
41 class SVGPathSegCurvetoCubicAbs; | 41 class SVGPathSegCurvetoCubicAbs; |
42 class SVGPathSegCurvetoCubicRel; | 42 class SVGPathSegCurvetoCubicRel; |
43 class SVGPathSegLinetoVerticalAbs; | 43 class SVGPathSegLinetoVerticalAbs; |
44 class SVGPathSegLinetoVerticalRel; | 44 class SVGPathSegLinetoVerticalRel; |
45 class SVGPathSegLinetoHorizontalAbs; | 45 class SVGPathSegLinetoHorizontalAbs; |
46 class SVGPathSegLinetoHorizontalRel; | 46 class SVGPathSegLinetoHorizontalRel; |
47 class SVGPathSegCurvetoQuadraticAbs; | 47 class SVGPathSegCurvetoQuadraticAbs; |
48 class SVGPathSegCurvetoQuadraticRel; | 48 class SVGPathSegCurvetoQuadraticRel; |
49 class SVGPathSegCurvetoCubicSmoothAbs; | 49 class SVGPathSegCurvetoCubicSmoothAbs; |
50 class SVGPathSegCurvetoCubicSmoothRel; | 50 class SVGPathSegCurvetoCubicSmoothRel; |
51 class SVGPathSegCurvetoQuadraticSmoothAbs; | 51 class SVGPathSegCurvetoQuadraticSmoothAbs; |
52 class SVGPathSegCurvetoQuadraticSmoothRel; | 52 class SVGPathSegCurvetoQuadraticSmoothRel; |
53 class SVGPathSegListPropertyTearOff; | 53 class SVGPathSegListPropertyTearOff; |
54 | 54 |
55 class SVGPathElement FINAL : public SVGGraphicsElement, | 55 class SVGPathElement FINAL : public SVGGeometryElement, |
56 public SVGExternalResourcesRequired { | 56 public SVGExternalResourcesRequired { |
57 public: | 57 public: |
58 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document&); | 58 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document&); |
59 | 59 |
60 float getTotalLength(); | 60 float getTotalLength(); |
61 SVGPoint getPointAtLength(float distance); | 61 SVGPoint getPointAtLength(float distance); |
62 unsigned getPathSegAtLength(float distance); | 62 unsigned getPathSegAtLength(float distance); |
63 | 63 |
64 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); | 64 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); |
65 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 65 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 OwnPtr<SVGPathByteStream> m_pathByteStream; | 128 OwnPtr<SVGPathByteStream> m_pathByteStream; |
129 mutable SVGSynchronizableAnimatedProperty<SVGPathSegList> m_pathSegList; | 129 mutable SVGSynchronizableAnimatedProperty<SVGPathSegList> m_pathSegList; |
130 bool m_isAnimValObserved; | 130 bool m_isAnimValObserved; |
131 }; | 131 }; |
132 | 132 |
133 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag)); | 133 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag)); |
134 | 134 |
135 } // namespace WebCore | 135 } // namespace WebCore |
136 | 136 |
137 #endif | 137 #endif |
OLD | NEW |