KHTML
SVGPathSegCurvetoCubic.cpp
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 00003 2004, 2005, 2006 Rob Buis <buis@kde.org> 00004 00005 This file is part of the KDE project 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #include "config.h" 00024 #include "wtf/Platform.h" 00025 00026 #if ENABLE(SVG) 00027 #include "SVGPathSegCurvetoCubic.h" 00028 00029 #include "SVGStyledElement.h" 00030 00031 namespace WebCore { 00032 00033 SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2) 00034 : SVGPathSeg() 00035 , m_x(x) 00036 , m_y(y) 00037 , m_x1(x1) 00038 , m_y1(y1) 00039 , m_x2(x2) 00040 , m_y2(y2) 00041 { 00042 } 00043 00044 SVGPathSegCurvetoCubicAbs::~SVGPathSegCurvetoCubicAbs() 00045 { 00046 } 00047 00048 void SVGPathSegCurvetoCubicAbs::setX(float x) 00049 { 00050 m_x = x; 00051 } 00052 00053 float SVGPathSegCurvetoCubicAbs::x() const 00054 { 00055 return m_x; 00056 } 00057 00058 void SVGPathSegCurvetoCubicAbs::setY(float y) 00059 { 00060 m_y = y; 00061 } 00062 00063 float SVGPathSegCurvetoCubicAbs::y() const 00064 { 00065 return m_y; 00066 } 00067 00068 void SVGPathSegCurvetoCubicAbs::setX1(float x1) 00069 { 00070 m_x1 = x1; 00071 } 00072 00073 float SVGPathSegCurvetoCubicAbs::x1() const 00074 { 00075 return m_x1; 00076 } 00077 00078 void SVGPathSegCurvetoCubicAbs::setY1(float y1) 00079 { 00080 m_y1 = y1; 00081 } 00082 00083 float SVGPathSegCurvetoCubicAbs::y1() const 00084 { 00085 return m_y1; 00086 } 00087 00088 void SVGPathSegCurvetoCubicAbs::setX2(float x2) 00089 { 00090 m_x2 = x2; 00091 } 00092 00093 float SVGPathSegCurvetoCubicAbs::x2() const 00094 { 00095 return m_x2; 00096 } 00097 00098 void SVGPathSegCurvetoCubicAbs::setY2(float y2) 00099 { 00100 m_y2 = y2; 00101 } 00102 00103 float SVGPathSegCurvetoCubicAbs::y2() const 00104 { 00105 return m_y2; 00106 } 00107 00108 00109 00110 00111 SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2) 00112 : SVGPathSeg() 00113 , m_x(x) 00114 , m_y(y) 00115 , m_x1(x1) 00116 , m_y1(y1) 00117 , m_x2(x2) 00118 , m_y2(y2) 00119 { 00120 } 00121 00122 SVGPathSegCurvetoCubicRel::~SVGPathSegCurvetoCubicRel() 00123 { 00124 } 00125 00126 void SVGPathSegCurvetoCubicRel::setX(float x) 00127 { 00128 m_x = x; 00129 } 00130 00131 float SVGPathSegCurvetoCubicRel::x() const 00132 { 00133 return m_x; 00134 } 00135 00136 void SVGPathSegCurvetoCubicRel::setY(float y) 00137 { 00138 m_y = y; 00139 } 00140 00141 float SVGPathSegCurvetoCubicRel::y() const 00142 { 00143 return m_y; 00144 } 00145 00146 void SVGPathSegCurvetoCubicRel::setX1(float x1) 00147 { 00148 m_x1 = x1; 00149 } 00150 00151 float SVGPathSegCurvetoCubicRel::x1() const 00152 { 00153 return m_x1; 00154 } 00155 00156 void SVGPathSegCurvetoCubicRel::setY1(float y1) 00157 { 00158 m_y1 = y1; 00159 } 00160 00161 float SVGPathSegCurvetoCubicRel::y1() const 00162 { 00163 return m_y1; 00164 } 00165 00166 void SVGPathSegCurvetoCubicRel::setX2(float x2) 00167 { 00168 m_x2 = x2; 00169 } 00170 00171 float SVGPathSegCurvetoCubicRel::x2() const 00172 { 00173 return m_x2; 00174 } 00175 00176 void SVGPathSegCurvetoCubicRel::setY2(float y2) 00177 { 00178 m_y2 = y2; 00179 } 00180 00181 float SVGPathSegCurvetoCubicRel::y2() const 00182 { 00183 return m_y2; 00184 } 00185 00186 } 00187 00188 #endif // ENABLE(SVG) 00189 00190 // vim:ts=4:noet
KDE 4.6 API Reference