KHTML
SVGPathSegCurvetoCubicSmooth.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 #if ENABLE(SVG) 00026 #include "SVGPathSegCurvetoCubicSmooth.h" 00027 00028 #include "SVGStyledElement.h" 00029 00030 namespace WebCore { 00031 00032 SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(float x, float y, float x2, float y2) 00033 : SVGPathSeg() 00034 , m_x(x) 00035 , m_y(y) 00036 , m_x2(x2) 00037 , m_y2(y2) 00038 { 00039 } 00040 00041 SVGPathSegCurvetoCubicSmoothAbs::~SVGPathSegCurvetoCubicSmoothAbs() 00042 { 00043 } 00044 00045 void SVGPathSegCurvetoCubicSmoothAbs::setX(float x) 00046 { 00047 m_x = x; 00048 } 00049 00050 float SVGPathSegCurvetoCubicSmoothAbs::x() const 00051 { 00052 return m_x; 00053 } 00054 00055 void SVGPathSegCurvetoCubicSmoothAbs::setY(float y) 00056 { 00057 m_y = y; 00058 } 00059 00060 float SVGPathSegCurvetoCubicSmoothAbs::y() const 00061 { 00062 return m_y; 00063 } 00064 00065 void SVGPathSegCurvetoCubicSmoothAbs::setX2(float x2) 00066 { 00067 m_x2 = x2; 00068 } 00069 00070 float SVGPathSegCurvetoCubicSmoothAbs::x2() const 00071 { 00072 return m_x2; 00073 } 00074 00075 void SVGPathSegCurvetoCubicSmoothAbs::setY2(float y2) 00076 { 00077 m_y2 = y2; 00078 } 00079 00080 float SVGPathSegCurvetoCubicSmoothAbs::y2() const 00081 { 00082 return m_y2; 00083 } 00084 00085 00086 00087 SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(float x, float y, float x2, float y2) 00088 : SVGPathSeg() 00089 , m_x(x) 00090 , m_y(y) 00091 , m_x2(x2) 00092 , m_y2(y2) 00093 { 00094 } 00095 00096 SVGPathSegCurvetoCubicSmoothRel::~SVGPathSegCurvetoCubicSmoothRel() 00097 { 00098 } 00099 00100 void SVGPathSegCurvetoCubicSmoothRel::setX(float x) 00101 { 00102 m_x = x; 00103 } 00104 00105 float SVGPathSegCurvetoCubicSmoothRel::x() const 00106 { 00107 return m_x; 00108 } 00109 00110 void SVGPathSegCurvetoCubicSmoothRel::setY(float y) 00111 { 00112 m_y = y; 00113 } 00114 00115 float SVGPathSegCurvetoCubicSmoothRel::y() const 00116 { 00117 return m_y; 00118 } 00119 00120 void SVGPathSegCurvetoCubicSmoothRel::setX2(float x2) 00121 { 00122 m_x2 = x2; 00123 } 00124 00125 float SVGPathSegCurvetoCubicSmoothRel::x2() const 00126 { 00127 return m_x2; 00128 } 00129 00130 void SVGPathSegCurvetoCubicSmoothRel::setY2(float y2) 00131 { 00132 m_y2 = y2; 00133 } 00134 00135 float SVGPathSegCurvetoCubicSmoothRel::y2() const 00136 { 00137 return m_y2; 00138 } 00139 00140 } 00141 00142 #endif // ENABLE(SVG) 00143 00144 // vim:ts=4:noet
KDE 4.6 API Reference