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(SVGPathByteStream*, Path&);
bool buildSVGPathByteStreamFromSVGPathSegList(const SVGPathSegList&, SVGPathByteStream*, PathParsingMode);
bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtr<SVGPathSeg>, SVGPathByteStream*, PathParsingMode);
bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream*, PathParsingMode);
bool buildStringFromByteStream(SVGPathByteStream*, String&, PathParsingMode);
bool buildStringFromSVGPathSegList(const SVGPathSegList&, String&, PathParsingMode);
bool buildSVGPathSegListFromByteStream(SVGPathByteStream*, SVGPathElement*, SVGPathSegList&, PathParsingMode);
bool buildAnimatedSVGPathByteStream(SVGPathByteStream*, SVGPathByteStream*, SVGPathByteStream*, float);
bool addToSVGPathByteStream(SVGPathByteStream*, SVGPathByteStream*, unsigned repeatCount = 1);
bool getSVGPathSegAtLengthFromSVGPathByteStream(SVGPathByteStream*, float length, unsigned& pathSeg);
bool getTotalLengthOfSVGPathByteStream(SVGPathByteStream*, float& totalLength);
bool getPointAtLengthOfSVGPathByteStream(SVGPathByteStream*, float length, SVGPoint&);
}
#endif // SVGPathUtilities_h