SVGPathSegLineto.h [plain text]
#ifndef KSVG_SVGPathSegLinetoImpl_H
#define KSVG_SVGPathSegLinetoImpl_H
#if SVG_SUPPORT
#include <ksvg2/svg/SVGPathSeg.h>
namespace WebCore
{
class SVGPathSegLinetoAbs : public SVGPathSeg
{
public:
SVGPathSegLinetoAbs(const SVGStyledElement *context = 0);
virtual ~SVGPathSegLinetoAbs();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_ABS; }
virtual String pathSegTypeAsLetter() const { return "L"; }
virtual String toString() const { return String::sprintf("L %.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 SVGPathSegLinetoRel : public SVGPathSeg
{
public:
SVGPathSegLinetoRel(const SVGStyledElement *context = 0);
virtual ~SVGPathSegLinetoRel();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_REL; }
virtual String pathSegTypeAsLetter() const { return "l"; }
virtual String toString() const { return String::sprintf("l %.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