SVGPathSegMoveto.h [plain text]
#ifndef KSVG_SVGPathSegMovetoImpl_H
#define KSVG_SVGPathSegMovetoImpl_H
#if SVG_SUPPORT
#include <ksvg2/svg/SVGPathSeg.h>
namespace WebCore
{
class SVGPathSegMovetoAbs : public SVGPathSeg
{
public:
SVGPathSegMovetoAbs(const SVGStyledElement *context = 0);
virtual ~SVGPathSegMovetoAbs();
virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "M"; }
virtual String toString() const { return String::sprintf("M %.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 SVGPathSegMovetoRel : public SVGPathSeg
{
public:
SVGPathSegMovetoRel(const SVGStyledElement *context = 0);
virtual ~SVGPathSegMovetoRel();
virtual unsigned short pathSegType() const { return PATHSEG_MOVETO_REL; }
virtual String pathSegTypeAsLetter() const { return "m"; }
virtual String toString() const { return String::sprintf("m %.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