SVGPathUtilities.h [plain text]
#ifndef SVGPathUtilities_h
#define SVGPathUtilities_h
#include "SVGPathConsumer.h"
#include "SVGPoint.h"
#include <wtf/text/WTFString.h>
namespace WebCore {
class Path;
class SVGPathByteStream;
class SVGPathElement;
class SVGPathSeg;
class SVGPathSegList;
bool buildPathFromString(const String&, Path&);
bool buildPathFromByteStream(const SVGPathByteStream&, Path&);
bool buildSVGPathByteStreamFromSVGPathSegList(const SVGPathSegList&, SVGPathByteStream& result, PathParsingMode);
bool appendSVGPathByteStreamFromSVGPathSeg(RefPtr<SVGPathSeg>&&, SVGPathByteStream&, PathParsingMode);
bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream&, PathParsingMode);
bool buildStringFromByteStream(const SVGPathByteStream&, String&, PathParsingMode);
bool buildStringFromSVGPathSegList(const SVGPathSegList&, String&, PathParsingMode);
bool buildSVGPathSegListFromByteStream(const SVGPathByteStream&, SVGPathElement&, SVGPathSegList&, PathParsingMode);
bool canBlendSVGPathByteStreams(const SVGPathByteStream& from, const SVGPathByteStream& to);
bool buildAnimatedSVGPathByteStream(const SVGPathByteStream& from, const SVGPathByteStream& to, SVGPathByteStream& result, float progress);
bool addToSVGPathByteStream(SVGPathByteStream& streamToAppendTo, const SVGPathByteStream& from, unsigned repeatCount = 1);
bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream&, float length, unsigned& pathSeg);
bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream&, float& totalLength);
bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream&, float length, SVGPoint&);
WEBCORE_EXPORT bool buildStringFromPath(const Path&, String&);
}
#endif // SVGPathUtilities_h