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