|
|
Donner
C++20 SVG rendering library
|
Parse an SVG viewBox attribute, such as "0 0 100 100". More...
#include "donner/svg/parser/ViewBoxParser.h"
Static Public Member Functions | |
| static ParseResult< Boxd > | Parse (std::string_view str) |
| Parse an SVG viewBox attribute, such as 0 0 100 100. | |
Parse an SVG viewBox attribute, such as "0 0 100 100".
|
static |
Parse an SVG viewBox attribute, such as 0 0 100 100.
It parses a string containing the following values:
Each parameter is a "<number>" type, as parsed by donner::parser::NumberParser. "<width>" and "<height>" must be positive, but the caller must ensure that they are non-zero; a value of zero should disable rendering of the element.
| str | Input string, e.g. "0 0 100 100". |