SVGPathSegLineto.h [plain text]
#ifndef SVGPathSegLineto_h
#define SVGPathSegLineto_h
#if ENABLE(SVG)
#include "SVGPathSegWithContext.h"
namespace WebCore {
class SVGPathSegLinetoAbs : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegLinetoAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
return adoptRef(new SVGPathSegLinetoAbs(element, role, x, y));
}
private:
SVGPathSegLinetoAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
}
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "L"; }
};
class SVGPathSegLinetoRel : public SVGPathSegSingleCoordinate {
public:
static PassRefPtr<SVGPathSegLinetoRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y)
{
return adoptRef(new SVGPathSegLinetoRel(element, role, x, y));
}
private:
SVGPathSegLinetoRel(SVGPathElement* element, SVGPathSegRole role, float x, float y)
: SVGPathSegSingleCoordinate(element, role, x, y)
{
}
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
virtual String pathSegTypeAsLetter() const { return "l"; }
};
}
#endif // ENABLE(SVG)
#endif