| 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, 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 PathSegmentData() | 78 PathSegmentData() |
| 79 : command(PathSegUnknown) | 79 : command(PathSegUnknown) |
| 80 , arcSweep(false) | 80 , arcSweep(false) |
| 81 , arcLarge(false) | 81 , arcLarge(false) |
| 82 { | 82 { |
| 83 } | 83 } |
| 84 | 84 |
| 85 const FloatPoint& arcRadii() const { return point1; } | 85 const FloatPoint& arcRadii() const { return point1; } |
| 86 float arcAngle() const { return point2.x(); } | 86 float arcAngle() const { return point2.x(); } |
| 87 | 87 |
| 88 float r1() const { return arcRadii().x(); } |
| 89 float r2() const { return arcRadii().y(); } |
| 90 |
| 91 bool largeArcFlag() const { return arcLarge; } |
| 92 bool sweepFlag() const { return arcSweep; } |
| 93 |
| 94 float x() const { return targetPoint.x(); } |
| 95 float y() const { return targetPoint.y(); } |
| 96 |
| 97 float x1() const { return point1.x(); } |
| 98 float y1() const { return point1.y(); } |
| 99 |
| 100 float x2() const { return point2.x(); } |
| 101 float y2() const { return point2.y(); } |
| 102 |
| 88 SVGPathSegType command; | 103 SVGPathSegType command; |
| 89 FloatPoint targetPoint; | 104 FloatPoint targetPoint; |
| 90 FloatPoint point1; | 105 FloatPoint point1; |
| 91 FloatPoint point2; | 106 FloatPoint point2; |
| 92 bool arcSweep; | 107 bool arcSweep; |
| 93 bool arcLarge; | 108 bool arcLarge; |
| 94 }; | 109 }; |
| 95 | 110 |
| 96 class SVGPropertyBase; | 111 class SVGPropertyBase; |
| 97 class SVGPathElement; | 112 class SVGPathElement; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 } | 207 } |
| 193 | 208 |
| 194 private: | 209 private: |
| 195 float m_x; | 210 float m_x; |
| 196 float m_y; | 211 float m_y; |
| 197 }; | 212 }; |
| 198 | 213 |
| 199 } // namespace blink | 214 } // namespace blink |
| 200 | 215 |
| 201 #endif // SVGPathSeg_h | 216 #endif // SVGPathSeg_h |
| OLD | NEW |