2 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2006 Rob Buis <buis@kde.org>
5 This file is part of the KDE project
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
24 #include "wtf/Platform.h"
27 #include "SVGPathSegArc.h"
29 #include "SVGStyledElement.h"
33 SVGPathSegArcAbs::SVGPathSegArcAbs(float x
, float y
, float r1
, float r2
, float angle
, bool largeArcFlag
, bool sweepFlag
)
40 , m_largeArcFlag(largeArcFlag
)
41 , m_sweepFlag(sweepFlag
)
45 SVGPathSegArcAbs::~SVGPathSegArcAbs()
49 void SVGPathSegArcAbs::setX(float x
)
54 float SVGPathSegArcAbs::x() const
59 void SVGPathSegArcAbs::setY(float y
)
64 float SVGPathSegArcAbs::y() const
69 void SVGPathSegArcAbs::setR1(float r1
)
74 float SVGPathSegArcAbs::r1() const
79 void SVGPathSegArcAbs::setR2(float r2
)
84 float SVGPathSegArcAbs::r2() const
89 void SVGPathSegArcAbs::setAngle(float angle
)
94 float SVGPathSegArcAbs::angle() const
99 void SVGPathSegArcAbs::setLargeArcFlag(bool largeArcFlag
)
101 m_largeArcFlag
= largeArcFlag
;
104 bool SVGPathSegArcAbs::largeArcFlag() const
106 return m_largeArcFlag
;
109 void SVGPathSegArcAbs::setSweepFlag(bool sweepFlag
)
111 m_sweepFlag
= sweepFlag
;
114 bool SVGPathSegArcAbs::sweepFlag() const
121 SVGPathSegArcRel::SVGPathSegArcRel(float x
, float y
, float r1
, float r2
, float angle
, bool largeArcFlag
, bool sweepFlag
)
128 , m_largeArcFlag(largeArcFlag
)
129 , m_sweepFlag(sweepFlag
)
133 SVGPathSegArcRel::~SVGPathSegArcRel()
137 void SVGPathSegArcRel::setX(float x
)
142 float SVGPathSegArcRel::x() const
147 void SVGPathSegArcRel::setY(float y
)
152 float SVGPathSegArcRel::y() const
157 void SVGPathSegArcRel::setR1(float r1
)
162 float SVGPathSegArcRel::r1() const
167 void SVGPathSegArcRel::setR2(float r2
)
172 float SVGPathSegArcRel::r2() const
177 void SVGPathSegArcRel::setAngle(float angle
)
182 float SVGPathSegArcRel::angle() const
187 void SVGPathSegArcRel::setLargeArcFlag(bool largeArcFlag
)
189 m_largeArcFlag
= largeArcFlag
;
192 bool SVGPathSegArcRel::largeArcFlag() const
194 return m_largeArcFlag
;
197 void SVGPathSegArcRel::setSweepFlag(bool sweepFlag
)
199 m_sweepFlag
= sweepFlag
;
202 bool SVGPathSegArcRel::sweepFlag() const
209 #endif // ENABLE(SVG)