Stores the parsed element type of the current entity. More...
#include "donner/svg/components/ElementTypeComponent.h"
Public Member Functions | |
| ElementTypeComponent (ElementType type) | |
Tag this entity to have ElementType type. | |
| ElementType | type () const |
| Get the effective type, reporting foreign-namespace elements as unknown. | |
| ElementType | parsedType () const |
| Retained semantic type, independent of the current namespace binding. | |
| bool | inSvgNamespace () const |
| Whether this element currently belongs to the SVG namespace. | |
| void | setInSvgNamespace (bool value) |
| Update namespace membership without losing specialized components or rendering behavior. | |
Stores the parsed element type of the current entity.
|
inlineexplicit |
Tag this entity to have ElementType type.
| type | The type of the element. |