|
SVG for C++
|
#include <svg.hpp>
Inherits detail::TypedNames< T >.
Public Member Functions | |
| Variables (AttributeMap &target, std::initializer_list< VariableSpec< T > > specs) | |
| std::string | var (T key) const |
| Variables & | set (T key, const std::string &value) |
| Variables & | set (T key, const char *value) |
| template<typename... Keys> | |
| std::string | format (const std::string &pattern, Keys... keys) const |
Typed helper for defining and referencing CSS custom properties without stringly lookups.
|
inline |
Validate the enum-to-name map and apply any initial values to the target style block.
|
inline |
Replace numbered placeholders like "{0}" with typed var() references.
|
inline |
Set a CSS custom property value from a string literal.
|
inline |
Set a CSS custom property value in the bound style block.
|
inline |
Return a CSS var() reference for a typed key.