SVGPathSegLinetoVertical.h [plain text]
#ifndef SVGPathSegLinetoVertical_h
#define SVGPathSegLinetoVertical_h
#if ENABLE(SVG)
#include "SVGPathSeg.h"
namespace WebCore {
class SVGPathSegLinetoVerticalAbs : public SVGPathSeg {
public:
SVGPathSegLinetoVerticalAbs(float y);
virtual~SVGPathSegLinetoVerticalAbs();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_VERTICAL_ABS; }
virtual String pathSegTypeAsLetter() const { return "V"; }
virtual String toString() const { return String::format("V %.6lg", m_y); }
void setY(float);
float y() const;
private:
float m_y;
};
class SVGPathSegLinetoVerticalRel : public SVGPathSeg {
public:
SVGPathSegLinetoVerticalRel(float y);
virtual ~SVGPathSegLinetoVerticalRel();
virtual unsigned short pathSegType() const { return PATHSEG_LINETO_VERTICAL_REL; }
virtual String pathSegTypeAsLetter() const { return "v"; }
virtual String toString() const { return String::format("v %.6lg", m_y); }
void setY(float);
float y() const;
private:
float m_y;
};
}
#endif // ENABLE(SVG)
#endif