KHTML
SVGPathSegCurvetoCubicSmooth.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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