SVGPathSegLineto.h [plain text]
#ifndef SVGPathSegLineto_h
#define SVGPathSegLineto_h
#if ENABLE(SVG)
#include "SVGPathSeg.h"
namespace WebCore {
class SVGPathSegLinetoAbs : public SVGPathSeg {
public:
SVGPathSegLinetoAbs(float x, float y);
virtual ~SVGPathSegLinetoAbs();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "L"; }
virtual String toString() const { return String::format("L %.6lg %.6lg", m_x, m_y); }
void setX(float);
float x() const;
void setY(float);
float y() const;
private:
float m_x;
float m_y;
};
class SVGPathSegLinetoRel : public SVGPathSeg {
public:
SVGPathSegLinetoRel(float x, float y);
virtual ~SVGPathSegLinetoRel();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
virtual String pathSegTypeAsLetter() const { return "l"; }
virtual String toString() const { return String::format("l %.6lg %.6lg", m_x, m_y); }
void setX(float);
float x() const;
void setY(float);
float y() const;
private:
float m_x;
float m_y;
};
}
#endif // ENABLE(SVG)
#endif