KHtml

SVGPathSegArc.cpp
1 /*
2  Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <[email protected]>
3  2004, 2005, 2006 Rob Buis <[email protected]>
4 
5  This file is part of the KDE project
6 
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.
11 
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.
16 
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.
21 */
22 
23 #include "wtf/Platform.h"
24 
25 #if ENABLE(SVG)
26 #include "SVGPathSegArc.h"
27 
28 #include "SVGStyledElement.h"
29 
30 namespace WebCore
31 {
32 
33 SVGPathSegArcAbs::SVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)
34  : SVGPathSeg()
35  , m_x(x)
36  , m_y(y)
37  , m_r1(r1)
38  , m_r2(r2)
39  , m_angle(angle)
40  , m_largeArcFlag(largeArcFlag)
41  , m_sweepFlag(sweepFlag)
42 {
43 }
44 
45 SVGPathSegArcAbs::~SVGPathSegArcAbs()
46 {
47 }
48 
49 void SVGPathSegArcAbs::setX(float x)
50 {
51  m_x = x;
52 }
53 
54 float SVGPathSegArcAbs::x() const
55 {
56  return m_x;
57 }
58 
59 void SVGPathSegArcAbs::setY(float y)
60 {
61  m_y = y;
62 }
63 
64 float SVGPathSegArcAbs::y() const
65 {
66  return m_y;
67 }
68 
69 void SVGPathSegArcAbs::setR1(float r1)
70 {
71  m_r1 = r1;
72 }
73 
74 float SVGPathSegArcAbs::r1() const
75 {
76  return m_r1;
77 }
78 
79 void SVGPathSegArcAbs::setR2(float r2)
80 {
81  m_r2 = r2;
82 }
83 
84 float SVGPathSegArcAbs::r2() const
85 {
86  return m_r2;
87 }
88 
89 void SVGPathSegArcAbs::setAngle(float angle)
90 {
91  m_angle = angle;
92 }
93 
94 float SVGPathSegArcAbs::angle() const
95 {
96  return m_angle;
97 }
98 
99 void SVGPathSegArcAbs::setLargeArcFlag(bool largeArcFlag)
100 {
101  m_largeArcFlag = largeArcFlag;
102 }
103 
104 bool SVGPathSegArcAbs::largeArcFlag() const
105 {
106  return m_largeArcFlag;
107 }
108 
109 void SVGPathSegArcAbs::setSweepFlag(bool sweepFlag)
110 {
111  m_sweepFlag = sweepFlag;
112 }
113 
114 bool SVGPathSegArcAbs::sweepFlag() const
115 {
116  return m_sweepFlag;
117 }
118 
119 SVGPathSegArcRel::SVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)
120  : SVGPathSeg()
121  , m_x(x)
122  , m_y(y)
123  , m_r1(r1)
124  , m_r2(r2)
125  , m_angle(angle)
126  , m_largeArcFlag(largeArcFlag)
127  , m_sweepFlag(sweepFlag)
128 {
129 }
130 
131 SVGPathSegArcRel::~SVGPathSegArcRel()
132 {
133 }
134 
135 void SVGPathSegArcRel::setX(float x)
136 {
137  m_x = x;
138 }
139 
140 float SVGPathSegArcRel::x() const
141 {
142  return m_x;
143 }
144 
145 void SVGPathSegArcRel::setY(float y)
146 {
147  m_y = y;
148 }
149 
150 float SVGPathSegArcRel::y() const
151 {
152  return m_y;
153 }
154 
155 void SVGPathSegArcRel::setR1(float r1)
156 {
157  m_r1 = r1;
158 }
159 
160 float SVGPathSegArcRel::r1() const
161 {
162  return m_r1;
163 }
164 
165 void SVGPathSegArcRel::setR2(float r2)
166 {
167  m_r2 = r2;
168 }
169 
170 float SVGPathSegArcRel::r2() const
171 {
172  return m_r2;
173 }
174 
175 void SVGPathSegArcRel::setAngle(float angle)
176 {
177  m_angle = angle;
178 }
179 
180 float SVGPathSegArcRel::angle() const
181 {
182  return m_angle;
183 }
184 
185 void SVGPathSegArcRel::setLargeArcFlag(bool largeArcFlag)
186 {
187  m_largeArcFlag = largeArcFlag;
188 }
189 
190 bool SVGPathSegArcRel::largeArcFlag() const
191 {
192  return m_largeArcFlag;
193 }
194 
195 void SVGPathSegArcRel::setSweepFlag(bool sweepFlag)
196 {
197  m_sweepFlag = sweepFlag;
198 }
199 
200 bool SVGPathSegArcRel::sweepFlag() const
201 {
202  return m_sweepFlag;
203 }
204 
205 }
206 
207 #endif // ENABLE(SVG)
208 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.