KHtml

SVGPathSegCurvetoCubicSmooth.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 #if ENABLE(SVG)
25 #include "SVGPathSegCurvetoCubicSmooth.h"
26 
27 #include "SVGStyledElement.h"
28 
29 namespace WebCore
30 {
31 
32 SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2)
33  : SVGPathSeg()
34  , m_x(x)
35  , m_y(y)
36  , m_x2(x2)
37  , m_y2(y2)
38 {
39 }
40 
41 SVGPathSegCurvetoCubicSmoothAbs::~SVGPathSegCurvetoCubicSmoothAbs()
42 {
43 }
44 
45 void SVGPathSegCurvetoCubicSmoothAbs::setX(float x)
46 {
47  m_x = x;
48 }
49 
50 float SVGPathSegCurvetoCubicSmoothAbs::x() const
51 {
52  return m_x;
53 }
54 
55 void SVGPathSegCurvetoCubicSmoothAbs::setY(float y)
56 {
57  m_y = y;
58 }
59 
60 float SVGPathSegCurvetoCubicSmoothAbs::y() const
61 {
62  return m_y;
63 }
64 
65 void SVGPathSegCurvetoCubicSmoothAbs::setX2(float x2)
66 {
67  m_x2 = x2;
68 }
69 
70 float SVGPathSegCurvetoCubicSmoothAbs::x2() const
71 {
72  return m_x2;
73 }
74 
75 void SVGPathSegCurvetoCubicSmoothAbs::setY2(float y2)
76 {
77  m_y2 = y2;
78 }
79 
80 float SVGPathSegCurvetoCubicSmoothAbs::y2() const
81 {
82  return m_y2;
83 }
84 
85 SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2)
86  : SVGPathSeg()
87  , m_x(x)
88  , m_y(y)
89  , m_x2(x2)
90  , m_y2(y2)
91 {
92 }
93 
94 SVGPathSegCurvetoCubicSmoothRel::~SVGPathSegCurvetoCubicSmoothRel()
95 {
96 }
97 
98 void SVGPathSegCurvetoCubicSmoothRel::setX(float x)
99 {
100  m_x = x;
101 }
102 
103 float SVGPathSegCurvetoCubicSmoothRel::x() const
104 {
105  return m_x;
106 }
107 
108 void SVGPathSegCurvetoCubicSmoothRel::setY(float y)
109 {
110  m_y = y;
111 }
112 
113 float SVGPathSegCurvetoCubicSmoothRel::y() const
114 {
115  return m_y;
116 }
117 
118 void SVGPathSegCurvetoCubicSmoothRel::setX2(float x2)
119 {
120  m_x2 = x2;
121 }
122 
123 float SVGPathSegCurvetoCubicSmoothRel::x2() const
124 {
125  return m_x2;
126 }
127 
128 void SVGPathSegCurvetoCubicSmoothRel::setY2(float y2)
129 {
130  m_y2 = y2;
131 }
132 
133 float SVGPathSegCurvetoCubicSmoothRel::y2() const
134 {
135  return m_y2;
136 }
137 
138 }
139 
140 #endif // ENABLE(SVG)
141 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:48:10 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.