Nui
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
svg_attribute_factory.hpp
Go to the documentation of this file.
2
3#define MAKE_SVG_VALUE_ATTRIBUTE_RENAME(NAME, SVG_NAME) \
4 namespace Nui::Attributes::Svg \
5 { \
6 static constexpr auto NAME = AttributeFactory{SVG_NAME}; \
7 }
8
9#define MAKE_SVG_VALUE_ATTRIBUTE(NAME) MAKE_SVG_VALUE_ATTRIBUTE_RENAME(NAME, #NAME)
10
11#define MAKE_SVG_EVENT_ATTRIBUTE_RENAME(NAME, SVG_ACTUAL) \
12 namespace Nui::Attributes::Svg \
13 { \
14 namespace Names \
15 { \
16 static constexpr auto Attr##NAME = fixToLower(SVG_ACTUAL); \
17 } \
18 static constexpr auto NAME = AttributeFactory{Names::Attr##NAME}; \
19 }
20
21#define MAKE_SVG_EVENT_ATTRIBUTE(NAME) MAKE_SVG_EVENT_ATTRIBUTE_RENAME(NAME, #NAME)