SVGPathSegLinetoHorizontal.h [plain text]
#ifndef KSVG_SVGPathSegLinetoHorizontalImpl_H
#define KSVG_SVGPathSegLinetoHorizontalImpl_H
#if SVG_SUPPORT
#include <ksvg2/svg/SVGPathSeg.h>
namespace WebCore
{
class SVGPathSegLinetoHorizontalAbs : public SVGPathSeg
{
public:
SVGPathSegLinetoHorizontalAbs(const SVGStyledElement *context = 0);
virtual ~SVGPathSegLinetoHorizontalAbs();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTAL_ABS; }
virtual String pathSegTypeAsLetter() const { return "H"; }
virtual String toString() const { return String::sprintf("H %.6lg", m_x); }
void setX(double);
double x() const;
private:
double m_x;
};
class SVGPathSegLinetoHorizontalRel : public SVGPathSeg
{
public:
SVGPathSegLinetoHorizontalRel(const SVGStyledElement *context = 0);
virtual ~SVGPathSegLinetoHorizontalRel();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_HORIZONTAL_REL; }
virtual String pathSegTypeAsLetter() const { return "h"; }
virtual String toString() const { return String::sprintf("h %.6lg", m_x); }
void setX(double);
double x() const;
private:
double m_x;
};
};
#endif // SVG_SUPPORT
#endif