Nui
Macros
svg_attribute_factory.hpp File Reference
#include <nui/frontend/attributes/impl/attribute_factory.hpp>
Include dependency graph for svg_attribute_factory.hpp:

Go to the source code of this file.

Macros

#define MAKE_SVG_VALUE_ATTRIBUTE_RENAME(NAME, SVG_NAME)
 
#define MAKE_SVG_VALUE_ATTRIBUTE(NAME)   MAKE_SVG_VALUE_ATTRIBUTE_RENAME(NAME, #NAME)
 
#define MAKE_SVG_EVENT_ATTRIBUTE_RENAME(NAME, SVG_ACTUAL)
 

Macro Definition Documentation

◆ MAKE_SVG_EVENT_ATTRIBUTE_RENAME

#define MAKE_SVG_EVENT_ATTRIBUTE_RENAME (   NAME,
  SVG_ACTUAL 
)
Value:
namespace Nui::Attributes::Svg \
{ \
namespace Names \
{ \
static constexpr auto Attr##NAME = fixToLower(SVG_ACTUAL); \
} \
static constexpr auto NAME = AttributeFactory{Names::Attr##NAME}; \
}
constexpr auto fixToLower(FixedString< N > base)
Definition: fixed_string.hpp:88

◆ MAKE_SVG_VALUE_ATTRIBUTE

#define MAKE_SVG_VALUE_ATTRIBUTE (   NAME)    MAKE_SVG_VALUE_ATTRIBUTE_RENAME(NAME, #NAME)

◆ MAKE_SVG_VALUE_ATTRIBUTE_RENAME

#define MAKE_SVG_VALUE_ATTRIBUTE_RENAME (   NAME,
  SVG_NAME 
)
Value:
namespace Nui::Attributes::Svg \
{ \
static constexpr auto NAME = AttributeFactory{SVG_NAME}; \
}