SVG for C++
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SVG::VariableSpec< T > Struct Template Reference

#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
 

Detailed Description

template<typename T>
struct SVG::VariableSpec< T >

Mapping entry for a typed CSS custom property, optionally with an initial value.

Constructor & Destructor Documentation

◆ VariableSpec() [1/2]

template<typename T >
SVG::VariableSpec< T >::VariableSpec ( T  _key,
std::string  _css_name 
)
inline

Register a typed key and CSS custom property name without setting a value.

◆ VariableSpec() [2/2]

template<typename T >
SVG::VariableSpec< T >::VariableSpec ( T  _key,
std::string  _css_name,
std::string  _value 
)
inline

Register a typed key and CSS custom property name, then set its initial value.

Member Data Documentation

◆ css_name

template<typename T >
std::string SVG::VariableSpec< T >::css_name

CSS custom property name, normalized to include a leading "--" by Variables.

◆ has_value

template<typename T >
bool SVG::VariableSpec< T >::has_value = false

True when this spec also provides an initial value.

◆ key

template<typename T >
T SVG::VariableSpec< T >::key

Typed variable key.

◆ value

template<typename T >
std::string SVG::VariableSpec< T >::value

Initial CSS custom property value.


The documentation for this struct was generated from the following file: