Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::ElementTypeComponent Class Reference

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.

Detailed Description

Stores the parsed element type of the current entity.

Constructor & Destructor Documentation

◆ ElementTypeComponent()

donner::svg::components::ElementTypeComponent::ElementTypeComponent ( ElementType type)
inlineexplicit

Tag this entity to have ElementType type.

Parameters
typeThe type of the element.

The documentation for this class was generated from the following file: