Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
SVGElementNames.h File Reference

Compile-time lists of SVG element tag names and known attribute names, derived from donner's type registries. Used by the parser fuzzer, editor syntax highlighting, and autocomplete. More...

#include <array>
#include <string_view>
#include "donner/svg/AllSVGElements.h"
Include dependency graph for SVGElementNames.h:

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.

Functions

template<typename... Types>
constexpr auto donner::svg::detail::extractTagNames (entt::type_list< Types... >)
 Extract Tag constants from AllSVGElements type list at compile time.

Variables

constexpr auto donner::svg::kSVGElementNames = detail::extractTagNames(AllSVGElements{})
 Compile-time array of all known SVG element tag names (e.g. "rect", "circle", "path"). Derived from AllSVGElements and each element class's static Tag constant.
constexpr std::array< std::string_view, 70 > donner::svg::kSVGPresentationAttributeNames
 Compile-time array of all known SVG presentation attributes and geometry attributes. Each entry is an attribute name string (e.g. "fill", "stroke", "transform").

Detailed Description

Compile-time lists of SVG element tag names and known attribute names, derived from donner's type registries. Used by the parser fuzzer, editor syntax highlighting, and autocomplete.