SVGPathSegListBuilder.h [plain text]
#ifndef SVGPathSegListBuilder_h
#define SVGPathSegListBuilder_h
#include "FloatPoint.h"
#include "SVGPathConsumer.h"
#include "SVGPathSegList.h"
namespace WebCore {
class SVGPathElement;
class SVGPathSegListBuilder final : public SVGPathConsumer {
public:
SVGPathSegListBuilder(SVGPathElement&, SVGPathSegList&, SVGPathSegRole);
private:
void incrementPathSegmentCount() override { }
bool continueConsuming() override { return true; }
void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) override;
void lineTo(const FloatPoint&, PathCoordinateMode) override;
void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateMode) override;
void closePath() override;
void lineToHorizontal(float, PathCoordinateMode) override;
void lineToVertical(float, PathCoordinateMode) override;
void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) override;
void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) override;
void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) override;
void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, PathCoordinateMode) override;
SVGPathElement& m_pathElement;
SVGPathSegList& m_pathSegList;
SVGPathSegRole m_pathSegRole { PathSegUndefinedRole };
};
}
#endif // SVGPathSegListBuilder_h