Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
PathParser.h File Reference
#include <cstdint>
#include <string_view>
#include <vector>
#include "donner/base/ParseResult.h"
#include "donner/base/Path.h"
Include dependency graph for PathParser.h:

Classes

class  donner::svg::parser::PathParser
 Parse an SVG path "d"-string, see Path Data Syntax. More...
struct  donner::svg::parser::PathParser::Command
 One authored command, before coordinate or curve normalization. More...
struct  donner::svg::parser::PathParser::CommandList
 Owning command syntax; implicit repetitions are expanded, including moveto's later lineto. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
namespace  donner::svg::parser
 Parsers for the SVG XML format, SVGParser, as well as individual parsers for SVG components, such as PathParser and TransformParser.

Class Documentation

◆ donner::svg::parser::PathParser::Command

struct donner::svg::parser::PathParser::Command

One authored command, before coordinate or curve normalization.

Class Members
char letter = 0 SVG command letter; closepath is always uppercase Z.
uint8_t parameterCount = 0 Number of parameters, at most seven.
uint32_t parameterOffset = 0 First entry in CommandList::parameters.

◆ donner::svg::parser::PathParser::CommandList

struct donner::svg::parser::PathParser::CommandList

Owning command syntax; implicit repetitions are expanded, including moveto's later lineto.

Class Members
vector< Command > commands Authored command kinds and parameter ranges.
vector< double > parameters Parameters before relative-coordinate conversion.