|
SVG for C++
|
#include <svg.hpp>
Public Member Functions | |
| VariableSpec (T _key, std::string _css_name) | |
| VariableSpec (T _key, std::string _css_name, std::string _value) | |
Public Attributes | |
| T | key |
| std::string | css_name |
| bool | has_value = false |
| std::string | value |
Mapping entry for a typed CSS custom property, optionally with an initial value.
|
inline |
Register a typed key and CSS custom property name without setting a value.
|
inline |
Register a typed key and CSS custom property name, then set its initial value.
| std::string SVG::VariableSpec< T >::css_name |
CSS custom property name, normalized to include a leading "--" by Variables.
True when this spec also provides an initial value.
| T SVG::VariableSpec< T >::key |
Typed variable key.
| std::string SVG::VariableSpec< T >::value |
Initial CSS custom property value.