Nui
Loading...
Searching...
No Matches
svg_element.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#define NUI_DECLARE_SVG_ELEMENT_RENAME(NAME, HTML_ACTUAL) \
6 namespace Nui::Elements::Svg \
7 { \
8 struct NAME : HtmlElement \
9 { \
10 NAME(NAME const&) = default; \
11 NAME(NAME&&) = default; \
12 NAME(std::vector<Attribute> const& attributes) \
13 : HtmlElement{HTML_ACTUAL, &SvgElementBridge, attributes} \
14 {} \
15 NAME(std::vector<Attribute>&& attributes) \
16 : HtmlElement{HTML_ACTUAL, &SvgElementBridge, std::move(attributes)} \
17 {} \
18 template <typename... T> \
19 NAME(T&&... attributes) \
20 : HtmlElement{HTML_ACTUAL, &SvgElementBridge, std::forward<T>(attributes)...} \
21 {} \
22 }; \
23 }
24
25#define NUI_DECLARE_SVG_ELEMENT(NAME) NUI_DECLARE_SVG_ELEMENT_RENAME(NAME, #NAME)