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