SVGPathSegCurvetoCubicSmooth.cpp [plain text]
#include "config.h"
#if SVG_SUPPORT
#include "SVGPathSegCurvetoCubicSmooth.h"
#include "SVGStyledElement.h"
using namespace WebCore;
SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = m_x2 = m_y2 = 0.0;
}
SVGPathSegCurvetoCubicSmoothAbs::~SVGPathSegCurvetoCubicSmoothAbs()
{
}
void SVGPathSegCurvetoCubicSmoothAbs::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothAbs::x() const
{
return m_x;
}
void SVGPathSegCurvetoCubicSmoothAbs::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothAbs::y() const
{
return m_y;
}
void SVGPathSegCurvetoCubicSmoothAbs::setX2(double x2)
{
m_x2 = x2;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothAbs::x2() const
{
return m_x2;
}
void SVGPathSegCurvetoCubicSmoothAbs::setY2(double y2)
{
m_y2 = y2;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothAbs::y2() const
{
return m_y2;
}
SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = m_x2 = m_y2 = 0.0;
}
SVGPathSegCurvetoCubicSmoothRel::~SVGPathSegCurvetoCubicSmoothRel()
{
}
void SVGPathSegCurvetoCubicSmoothRel::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothRel::x() const
{
return m_x;
}
void SVGPathSegCurvetoCubicSmoothRel::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothRel::y() const
{
return m_y;
}
void SVGPathSegCurvetoCubicSmoothRel::setX2(double x2)
{
m_x2 = x2;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothRel::x2() const
{
return m_x2;
}
void SVGPathSegCurvetoCubicSmoothRel::setY2(double y2)
{
m_y2 = y2;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegCurvetoCubicSmoothRel::y2() const
{
return m_y2;
}
#endif // SVG_SUPPORT