Nui
Macros
svg_element.hpp File Reference
#include <nui/frontend/elements/impl/html_element.hpp>
Include dependency graph for svg_element.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NUI_DECLARE_SVG_ELEMENT_RENAME(NAME, HTML_ACTUAL)
 

Macro Definition Documentation

◆ NUI_DECLARE_SVG_ELEMENT_RENAME

#define NUI_DECLARE_SVG_ELEMENT_RENAME (   NAME,
  HTML_ACTUAL 
)
Value:
namespace Nui::Elements::Svg \
{ \
struct NAME : HtmlElement \
{ \
NAME(NAME const&) = default; \
NAME(NAME&&) = default; \
NAME(std::vector<Attribute> const& attributes) \
: HtmlElement{HTML_ACTUAL, &SvgElementBridge, attributes} \
{} \
NAME(std::vector<Attribute>&& attributes) \
: HtmlElement{HTML_ACTUAL, &SvgElementBridge, std::move(attributes)} \
{} \
template <typename... T> \
NAME(T&&... attributes) \
: HtmlElement{HTML_ACTUAL, &SvgElementBridge, std::forward<T>(attributes)...} \
{} \
}; \
}
constexpr auto SvgElementBridge
Definition: html_element_bridges.hpp:15