Go to the documentation of this file.
5 #define NUI_DECLARE_SVG_ELEMENT_RENAME(NAME, HTML_ACTUAL) \
6 namespace Nui::Elements::Svg \
8 struct NAME : HtmlElement \
10 NAME(NAME const&) = default; \
11 NAME(NAME&&) = default; \
12 NAME(std::vector<Attribute> const& attributes) \
13 : HtmlElement{HTML_ACTUAL, &SvgElementBridge, attributes} \
15 NAME(std::vector<Attribute>&& attributes) \
16 : HtmlElement{HTML_ACTUAL, &SvgElementBridge, std::move(attributes)} \
18 template <typename... T> \
19 NAME(T&&... attributes) \
20 : HtmlElement{HTML_ACTUAL, &SvgElementBridge, std::forward<T>(attributes)...} \
25 #define NUI_DECLARE_SVG_ELEMENT(NAME) NUI_DECLARE_SVG_ELEMENT_RENAME(NAME, #NAME)