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, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class SVGPathSegCurvetoCubicSmoothRel; | 49 class SVGPathSegCurvetoCubicSmoothRel; |
50 class SVGPathSegCurvetoQuadraticSmoothAbs; | 50 class SVGPathSegCurvetoQuadraticSmoothAbs; |
51 class SVGPathSegCurvetoQuadraticSmoothRel; | 51 class SVGPathSegCurvetoQuadraticSmoothRel; |
52 class SVGPathSegListPropertyTearOff; | 52 class SVGPathSegListPropertyTearOff; |
53 | 53 |
54 class SVGPathElement FINAL : public SVGGeometryElement { | 54 class SVGPathElement FINAL : public SVGGeometryElement { |
55 public: | 55 public: |
56 static PassRefPtr<SVGPathElement> create(Document&); | 56 static PassRefPtr<SVGPathElement> create(Document&); |
57 | 57 |
58 float getTotalLength(); | 58 float getTotalLength(); |
59 SVGPoint getPointAtLength(float distance); | 59 PassRefPtr<SVGPointTearOff> getPointAtLength(float distance); |
60 unsigned getPathSegAtLength(float distance); | 60 unsigned getPathSegAtLength(float distance); |
61 | 61 |
62 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); | 62 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol
e = PathSegUndefinedRole); |
63 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 63 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
64 PassRefPtr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 64 PassRefPtr<SVGPathSegMovetoRel> createSVGPathSegMovetoRel(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
65 PassRefPtr<SVGPathSegLinetoAbs> createSVGPathSegLinetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 65 PassRefPtr<SVGPathSegLinetoAbs> createSVGPathSegLinetoAbs(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
66 PassRefPtr<SVGPathSegLinetoRel> createSVGPathSegLinetoRel(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); | 66 PassRefPtr<SVGPathSegLinetoRel> createSVGPathSegLinetoRel(float x, float y,
SVGPathSegRole role = PathSegUndefinedRole); |
67 PassRefPtr<SVGPathSegCurvetoCubicAbs> createSVGPathSegCurvetoCubicAbs(float
x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe
gUndefinedRole); | 67 PassRefPtr<SVGPathSegCurvetoCubicAbs> createSVGPathSegCurvetoCubicAbs(float
x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe
gUndefinedRole); |
68 PassRefPtr<SVGPathSegCurvetoCubicRel> createSVGPathSegCurvetoCubicRel(float
x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe
gUndefinedRole); | 68 PassRefPtr<SVGPathSegCurvetoCubicRel> createSVGPathSegCurvetoCubicRel(float
x, float y, float x1, float y1, float x2, float y2, SVGPathSegRole role = PathSe
gUndefinedRole); |
69 PassRefPtr<SVGPathSegCurvetoQuadraticAbs> createSVGPathSegCurvetoQuadraticAb
s(float x, float y, float x1, float y1, SVGPathSegRole role = PathSegUndefinedRo
le); | 69 PassRefPtr<SVGPathSegCurvetoQuadraticAbs> createSVGPathSegCurvetoQuadraticAb
s(float x, float y, float x1, float y1, SVGPathSegRole role = PathSegUndefinedRo
le); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement) | 121 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPathElement) |
122 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) | 122 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) |
123 END_DECLARE_ANIMATED_PROPERTIES | 123 END_DECLARE_ANIMATED_PROPERTIES |
124 }; | 124 }; |
125 | 125 |
126 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag)); | 126 DEFINE_NODE_TYPE_CASTS(SVGPathElement, hasTagName(SVGNames::pathTag)); |
127 | 127 |
128 } // namespace WebCore | 128 } // namespace WebCore |
129 | 129 |
130 #endif | 130 #endif |
OLD | NEW |