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 "SVGPathSegCurvetoCubic.h" 0027 0028 #include "SVGStyledElement.h" 0029 0030 namespace WebCore 0031 { 0032 0033 SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2) 0034 : SVGPathSeg() 0035 , m_x(x) 0036 , m_y(y) 0037 , m_x1(x1) 0038 , m_y1(y1) 0039 , m_x2(x2) 0040 , m_y2(y2) 0041 { 0042 } 0043 0044 SVGPathSegCurvetoCubicAbs::~SVGPathSegCurvetoCubicAbs() 0045 { 0046 } 0047 0048 void SVGPathSegCurvetoCubicAbs::setX(float x) 0049 { 0050 m_x = x; 0051 } 0052 0053 float SVGPathSegCurvetoCubicAbs::x() const 0054 { 0055 return m_x; 0056 } 0057 0058 void SVGPathSegCurvetoCubicAbs::setY(float y) 0059 { 0060 m_y = y; 0061 } 0062 0063 float SVGPathSegCurvetoCubicAbs::y() const 0064 { 0065 return m_y; 0066 } 0067 0068 void SVGPathSegCurvetoCubicAbs::setX1(float x1) 0069 { 0070 m_x1 = x1; 0071 } 0072 0073 float SVGPathSegCurvetoCubicAbs::x1() const 0074 { 0075 return m_x1; 0076 } 0077 0078 void SVGPathSegCurvetoCubicAbs::setY1(float y1) 0079 { 0080 m_y1 = y1; 0081 } 0082 0083 float SVGPathSegCurvetoCubicAbs::y1() const 0084 { 0085 return m_y1; 0086 } 0087 0088 void SVGPathSegCurvetoCubicAbs::setX2(float x2) 0089 { 0090 m_x2 = x2; 0091 } 0092 0093 float SVGPathSegCurvetoCubicAbs::x2() const 0094 { 0095 return m_x2; 0096 } 0097 0098 void SVGPathSegCurvetoCubicAbs::setY2(float y2) 0099 { 0100 m_y2 = y2; 0101 } 0102 0103 float SVGPathSegCurvetoCubicAbs::y2() const 0104 { 0105 return m_y2; 0106 } 0107 0108 SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2) 0109 : SVGPathSeg() 0110 , m_x(x) 0111 , m_y(y) 0112 , m_x1(x1) 0113 , m_y1(y1) 0114 , m_x2(x2) 0115 , m_y2(y2) 0116 { 0117 } 0118 0119 SVGPathSegCurvetoCubicRel::~SVGPathSegCurvetoCubicRel() 0120 { 0121 } 0122 0123 void SVGPathSegCurvetoCubicRel::setX(float x) 0124 { 0125 m_x = x; 0126 } 0127 0128 float SVGPathSegCurvetoCubicRel::x() const 0129 { 0130 return m_x; 0131 } 0132 0133 void SVGPathSegCurvetoCubicRel::setY(float y) 0134 { 0135 m_y = y; 0136 } 0137 0138 float SVGPathSegCurvetoCubicRel::y() const 0139 { 0140 return m_y; 0141 } 0142 0143 void SVGPathSegCurvetoCubicRel::setX1(float x1) 0144 { 0145 m_x1 = x1; 0146 } 0147 0148 float SVGPathSegCurvetoCubicRel::x1() const 0149 { 0150 return m_x1; 0151 } 0152 0153 void SVGPathSegCurvetoCubicRel::setY1(float y1) 0154 { 0155 m_y1 = y1; 0156 } 0157 0158 float SVGPathSegCurvetoCubicRel::y1() const 0159 { 0160 return m_y1; 0161 } 0162 0163 void SVGPathSegCurvetoCubicRel::setX2(float x2) 0164 { 0165 m_x2 = x2; 0166 } 0167 0168 float SVGPathSegCurvetoCubicRel::x2() const 0169 { 0170 return m_x2; 0171 } 0172 0173 void SVGPathSegCurvetoCubicRel::setY2(float y2) 0174 { 0175 m_y2 = y2; 0176 } 0177 0178 float SVGPathSegCurvetoCubicRel::y2() const 0179 { 0180 return m_y2; 0181 } 0182 0183 } 0184 0185 #endif // ENABLE(SVG) 0186