SVGPathSegCurvetoQuadraticSmooth.h [plain text]
#ifndef SVGPathSegCurvetoQuadraticSmooth_h
#define SVGPathSegCurvetoQuadraticSmooth_h
#if ENABLE(SVG)
#include "SVGPathSeg.h"
namespace WebCore {
class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSeg {
public:
SVGPathSegCurvetoQuadraticSmoothAbs(float x, float y);
virtual ~SVGPathSegCurvetoQuadraticSmoothAbs();
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; }
virtual String pathSegTypeAsLetter() const { return "T"; }
virtual String toString() const { return String::format("T %.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 SVGPathSegCurvetoQuadraticSmoothRel : public SVGPathSeg {
public:
SVGPathSegCurvetoQuadraticSmoothRel(float x, float y);
virtual ~SVGPathSegCurvetoQuadraticSmoothRel();
virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; }
virtual String pathSegTypeAsLetter() const { return "t"; }
virtual String toString() const { return String::format("t %.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