SVGPathSegMoveto.cpp [plain text]
#include "config.h"
#if SVG_SUPPORT
#include "SVGPathSegMoveto.h"
#include "SVGStyledElement.h"
using namespace WebCore;
SVGPathSegMovetoAbs::SVGPathSegMovetoAbs(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = 0.0;
}
SVGPathSegMovetoAbs::~SVGPathSegMovetoAbs()
{
}
void SVGPathSegMovetoAbs::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegMovetoAbs::x() const
{
return m_x;
}
void SVGPathSegMovetoAbs::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegMovetoAbs::y() const
{
return m_y;
}
SVGPathSegMovetoRel::SVGPathSegMovetoRel(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = 0.0;
}
SVGPathSegMovetoRel::~SVGPathSegMovetoRel()
{
}
void SVGPathSegMovetoRel::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegMovetoRel::x() const
{
return m_x;
}
void SVGPathSegMovetoRel::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegMovetoRel::y() const
{
return m_y;
}
#endif // SVG_SUPPORT