File indexing completed on 2024-04-28 15:24:39

0001 /*
0002     Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
0003                   2004, 2005, 2006 Rob Buis <buis@kde.org>
0004 
0005     This file is part of the KDE project
0006 
0007     This library is free software; you can redistribute it and/or
0008     modify it under the terms of the GNU Library General Public
0009     License as published by the Free Software Foundation; either
0010     version 2 of the License, or (at your option) any later version.
0011 
0012     This library is distributed in the hope that it will be useful,
0013     but WITHOUT ANY WARRANTY; without even the implied warranty of
0014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015     Library General Public License for more details.
0016 
0017     You should have received a copy of the GNU Library General Public License
0018     along with this library; see the file COPYING.LIB.  If not, write to
0019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0020     Boston, MA 02110-1301, USA.
0021 */
0022 
0023 #include "wtf/Platform.h"
0024 
0025 #if ENABLE(SVG)
0026 #include "SVGPathSegCurvetoQuadratic.h"
0027 
0028 #include "SVGStyledElement.h"
0029 
0030 namespace WebCore
0031 {
0032 
0033 SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs(float x, float y, float x1, float y1)
0034     : SVGPathSeg()
0035     , m_x(x)
0036     , m_y(y)
0037     , m_x1(x1)
0038     , m_y1(y1)
0039 {
0040 }
0041 
0042 SVGPathSegCurvetoQuadraticAbs::~SVGPathSegCurvetoQuadraticAbs()
0043 {
0044 }
0045 
0046 void SVGPathSegCurvetoQuadraticAbs::setX(float x)
0047 {
0048     m_x = x;
0049 }
0050 
0051 float SVGPathSegCurvetoQuadraticAbs::x() const
0052 {
0053     return m_x;
0054 }
0055 
0056 void SVGPathSegCurvetoQuadraticAbs::setY(float y)
0057 {
0058     m_y = y;
0059 }
0060 
0061 float SVGPathSegCurvetoQuadraticAbs::y() const
0062 {
0063     return m_y;
0064 }
0065 
0066 void SVGPathSegCurvetoQuadraticAbs::setX1(float x1)
0067 {
0068     m_x1 = x1;
0069 }
0070 
0071 float SVGPathSegCurvetoQuadraticAbs::x1() const
0072 {
0073     return m_x1;
0074 }
0075 
0076 void SVGPathSegCurvetoQuadraticAbs::setY1(float y1)
0077 {
0078     m_y1 = y1;
0079 }
0080 
0081 float SVGPathSegCurvetoQuadraticAbs::y1() const
0082 {
0083     return m_y1;
0084 }
0085 
0086 SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel(float x, float y, float x1, float y1)
0087     : SVGPathSeg()
0088     , m_x(x)
0089     , m_y(y)
0090     , m_x1(x1)
0091     , m_y1(y1)
0092 {
0093 }
0094 
0095 SVGPathSegCurvetoQuadraticRel::~SVGPathSegCurvetoQuadraticRel()
0096 {
0097 }
0098 
0099 void SVGPathSegCurvetoQuadraticRel::setX(float x)
0100 {
0101     m_x = x;
0102 }
0103 
0104 float SVGPathSegCurvetoQuadraticRel::x() const
0105 {
0106     return m_x;
0107 }
0108 
0109 void SVGPathSegCurvetoQuadraticRel::setY(float y)
0110 {
0111     m_y = y;
0112 }
0113 
0114 float SVGPathSegCurvetoQuadraticRel::y() const
0115 {
0116     return m_y;
0117 }
0118 
0119 void SVGPathSegCurvetoQuadraticRel::setX1(float x1)
0120 {
0121     m_x1 = x1;
0122 }
0123 
0124 float SVGPathSegCurvetoQuadraticRel::x1() const
0125 {
0126     return m_x1;
0127 }
0128 
0129 void SVGPathSegCurvetoQuadraticRel::setY1(float y1)
0130 {
0131     m_y1 = y1;
0132 }
0133 
0134 float SVGPathSegCurvetoQuadraticRel::y1() const
0135 {
0136     return m_y1;
0137 }
0138 
0139 }
0140 
0141 #endif // ENABLE(SVG)
0142