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 #if ENABLE(SVG) 0025 #include "SVGPathSegCurvetoCubicSmooth.h" 0026 0027 #include "SVGStyledElement.h" 0028 0029 namespace WebCore 0030 { 0031 0032 SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2) 0033 : SVGPathSeg() 0034 , m_x(x) 0035 , m_y(y) 0036 , m_x2(x2) 0037 , m_y2(y2) 0038 { 0039 } 0040 0041 SVGPathSegCurvetoCubicSmoothAbs::~SVGPathSegCurvetoCubicSmoothAbs() 0042 { 0043 } 0044 0045 void SVGPathSegCurvetoCubicSmoothAbs::setX(float x) 0046 { 0047 m_x = x; 0048 } 0049 0050 float SVGPathSegCurvetoCubicSmoothAbs::x() const 0051 { 0052 return m_x; 0053 } 0054 0055 void SVGPathSegCurvetoCubicSmoothAbs::setY(float y) 0056 { 0057 m_y = y; 0058 } 0059 0060 float SVGPathSegCurvetoCubicSmoothAbs::y() const 0061 { 0062 return m_y; 0063 } 0064 0065 void SVGPathSegCurvetoCubicSmoothAbs::setX2(float x2) 0066 { 0067 m_x2 = x2; 0068 } 0069 0070 float SVGPathSegCurvetoCubicSmoothAbs::x2() const 0071 { 0072 return m_x2; 0073 } 0074 0075 void SVGPathSegCurvetoCubicSmoothAbs::setY2(float y2) 0076 { 0077 m_y2 = y2; 0078 } 0079 0080 float SVGPathSegCurvetoCubicSmoothAbs::y2() const 0081 { 0082 return m_y2; 0083 } 0084 0085 SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2) 0086 : SVGPathSeg() 0087 , m_x(x) 0088 , m_y(y) 0089 , m_x2(x2) 0090 , m_y2(y2) 0091 { 0092 } 0093 0094 SVGPathSegCurvetoCubicSmoothRel::~SVGPathSegCurvetoCubicSmoothRel() 0095 { 0096 } 0097 0098 void SVGPathSegCurvetoCubicSmoothRel::setX(float x) 0099 { 0100 m_x = x; 0101 } 0102 0103 float SVGPathSegCurvetoCubicSmoothRel::x() const 0104 { 0105 return m_x; 0106 } 0107 0108 void SVGPathSegCurvetoCubicSmoothRel::setY(float y) 0109 { 0110 m_y = y; 0111 } 0112 0113 float SVGPathSegCurvetoCubicSmoothRel::y() const 0114 { 0115 return m_y; 0116 } 0117 0118 void SVGPathSegCurvetoCubicSmoothRel::setX2(float x2) 0119 { 0120 m_x2 = x2; 0121 } 0122 0123 float SVGPathSegCurvetoCubicSmoothRel::x2() const 0124 { 0125 return m_x2; 0126 } 0127 0128 void SVGPathSegCurvetoCubicSmoothRel::setY2(float y2) 0129 { 0130 m_y2 = y2; 0131 } 0132 0133 float SVGPathSegCurvetoCubicSmoothRel::y2() const 0134 { 0135 return m_y2; 0136 } 0137 0138 } 0139 0140 #endif // ENABLE(SVG) 0141