SVGPathSegCurvetoQuadraticSmooth.h [plain text]
#ifndef SVGPathSegCurvetoQuadraticSmooth_h
#define SVGPathSegCurvetoQuadraticSmooth_h
#if ENABLE(SVG)
#include "SVGPathSegWithContext.h"
namespace WebCore {
class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
return adoptRef(new SVGPathSegCurvetoQuadraticSmoothAbs(element, role, x, y));
}
private:
SVGPathSegCurvetoQuadraticSmoothAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
}
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
virtual String pathSegTypeAsLetter() const { return "T"; }
};
class SVGPathSegCurvetoQuadraticSmoothRel : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegCurvetoQuadraticSmoothRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
return adoptRef(new SVGPathSegCurvetoQuadraticSmoothRel(element, role, x, y));
}
private:
SVGPathSegCurvetoQuadraticSmoothRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
}
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; }
virtual String pathSegTypeAsLetter() const { return "t"; }
};
}
#endif // ENABLE(SVG)
#endif