Parses XML attributes and sets applies them to SVGElements.
More...
#include "donner/svg/parser/AttributeParser.h"
Parses XML attributes and sets applies them to SVGElements.
◆ ApplyParsedAttribute()
Apply an XML attribute read by the SVG parser without writing back to source.
- Parameters
-
| element | The element to set the attribute on. |
| name | The name of the attribute, as specified in the document's XML. |
| value | The value of the attribute. |
| [out] | consumedAsPresentationAttribute | When non-null, set to true if the value was recognized and applied as a presentation attribute, and false if it was stored only as a generic XML attribute. |
◆ ParseAndSetAttribute()
Parse an XML attribute and set it on the given element.
- Parameters
-
| context | The parser context, used to store XML document metadata and store warnings. |
| element | The element to set the attribute on. |
| name | The name of the attribute, as specified in the document's XML. |
| value | The value of the attribute. |
◆ RemoveParsedAttribute()
Remove an XML attribute from the SVG projection without writing back to source.
- Parameters
-
| element | The element to remove the attribute from. |
| name | The name of the attribute, as specified in the document's XML. |
The documentation for this class was generated from the following file: