SVGPathSegLinetoHorizontal.h [plain text]
#ifndef SVGPathSegLinetoHorizontal_h
#define SVGPathSegLinetoHorizontal_h
#if ENABLE(SVG)
#include "SVGPathSeg.h"
namespace WebCore {
class SVGPathSegLinetoHorizontalAbs : public SVGPathSeg {
public:
SVGPathSegLinetoHorizontalAbs(float x);
virtual ~SVGPathSegLinetoHorizontalAbs();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTAL_ABS; }
virtual String pathSegTypeAsLetter() const { return "H"; }
virtual String toString() const { return String::format("H %.6lg", m_x); }
void setX(float);
float x() const;
private:
float m_x;
};
class SVGPathSegLinetoHorizontalRel : public SVGPathSeg {
public:
SVGPathSegLinetoHorizontalRel(float x);
virtual ~SVGPathSegLinetoHorizontalRel();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTAL_REL; }
virtual String pathSegTypeAsLetter() const { return "h"; }
virtual String toString() const { return String::format("h %.6lg", m_x); }
void setX(float);
float x() const;
private:
float m_x;
};
}
#endif // ENABLE(SVG)
#endif