SVGPathSegCurvetoQuadraticSmooth.h [plain text]
#ifndef KSVG_SVGPathSegCurvetoQuadraticSmoothImpl_H
#define KSVG_SVGPathSegCurvetoQuadraticSmoothImpl_H
#if SVG_SUPPORT
#include "SVGPathSeg.h"
namespace WebCore
{
class SVGPathSegCurvetoQuadraticSmoothAbs : public SVGPathSeg
{
public:
SVGPathSegCurvetoQuadraticSmoothAbs(const SVGStyledElement *context = 0);
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::sprintf("T %.6lg %.6lg", m_x, m_y); }
void setX(double);
double x() const;
void setY(double);
double y() const;
private:
double m_x;
double m_y;
};
class SVGPathSegCurvetoQuadraticSmoothRel : public SVGPathSeg
{
public:
SVGPathSegCurvetoQuadraticSmoothRel(const SVGStyledElement *context = 0);
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::sprintf("t %.6lg %.6lg", m_x, m_y); }
void setX(double);
double x() const;
void setY(double);
double y() const;
private:
double m_x;
double m_y;
};
};
#endif // SVG_SUPPORT
#endif