#include "config.h"
#if SVG_SUPPORT
#include "SVGPathSegArc.h"
#include "SVGStyledElement.h"
using namespace WebCore;
SVGPathSegArcAbs::SVGPathSegArcAbs(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = m_r1 = m_r2 = m_angle = 0.0;
m_largeArcFlag = m_sweepFlag = false;
}
SVGPathSegArcAbs::~SVGPathSegArcAbs()
{
}
void SVGPathSegArcAbs::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcAbs::x() const
{
return m_x;
}
void SVGPathSegArcAbs::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcAbs::y() const
{
return m_y;
}
void SVGPathSegArcAbs::setR1(double r1)
{
m_r1 = r1;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcAbs::r1() const
{
return m_r1;
}
void SVGPathSegArcAbs::setR2(double r2)
{
m_r2 = r2;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcAbs::r2() const
{
return m_r2;
}
void SVGPathSegArcAbs::setAngle(double angle)
{
m_angle = angle;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcAbs::angle() const
{
return m_angle;
}
void SVGPathSegArcAbs::setLargeArcFlag(bool largeArcFlag)
{
m_largeArcFlag = largeArcFlag;
if(m_context)
m_context->notifyAttributeChange();
}
bool SVGPathSegArcAbs::largeArcFlag() const
{
return m_largeArcFlag;
}
void SVGPathSegArcAbs::setSweepFlag(bool sweepFlag)
{
m_sweepFlag = sweepFlag;
if(m_context)
m_context->notifyAttributeChange();
}
bool SVGPathSegArcAbs::sweepFlag() const
{
return m_sweepFlag;
}
SVGPathSegArcRel::SVGPathSegArcRel(const SVGStyledElement *context)
: SVGPathSeg(context)
{
m_x = m_y = m_r1 = m_r2 = m_angle = 0.0;
m_largeArcFlag = m_sweepFlag = false;
}
SVGPathSegArcRel::~SVGPathSegArcRel()
{
}
void SVGPathSegArcRel::setX(double x)
{
m_x = x;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcRel::x() const
{
return m_x;
}
void SVGPathSegArcRel::setY(double y)
{
m_y = y;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcRel::y() const
{
return m_y;
}
void SVGPathSegArcRel::setR1(double r1)
{
m_r1 = r1;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcRel::r1() const
{
return m_r1;
}
void SVGPathSegArcRel::setR2(double r2)
{
m_r2 = r2;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcRel::r2() const
{
return m_r2;
}
void SVGPathSegArcRel::setAngle(double angle)
{
m_angle = angle;
if(m_context)
m_context->notifyAttributeChange();
}
double SVGPathSegArcRel::angle() const
{
return m_angle;
}
void SVGPathSegArcRel::setLargeArcFlag(bool largeArcFlag)
{
m_largeArcFlag = largeArcFlag;
if(m_context)
m_context->notifyAttributeChange();
}
bool SVGPathSegArcRel::largeArcFlag() const
{
return m_largeArcFlag;
}
void SVGPathSegArcRel::setSweepFlag(bool sweepFlag)
{
m_sweepFlag = sweepFlag;
if(m_context)
m_context->notifyAttributeChange();
}
bool SVGPathSegArcRel::sweepFlag() const
{
return m_sweepFlag;
}
#endif // SVG_SUPPORT