SVG for C++
Public Member Functions | Public Attributes | List of all members
SVG::AttributeMap Class Reference

Base class for anything that has attributes (e.g. SVG elements, CSS stylesheets) More...

#include <svg.hpp>

Inherited by SVG::Element.

Public Member Functions

 AttributeMap (SVGAttrib _attr)
 
template<typename T >
AttributeMapset_attr (const std::string key, T value)
 
template<>
AttributeMapset_attr (const std::string key, const double value)
 
template<>
AttributeMapset_attr (const std::string key, const char *value)
 
template<>
AttributeMapset_attr (const std::string key, const std::string value)
 

Public Attributes

SVGAttrib attr
 

Detailed Description

Base class for anything that has attributes (e.g. SVG elements, CSS stylesheets)

Member Function Documentation

◆ set_attr() [1/3]

template<>
AttributeMap& SVG::AttributeMap::set_attr ( const std::string  key,
const double  value 
)
inline

Modify the attribute specified by key

◆ set_attr() [2/3]

template<>
AttributeMap& SVG::AttributeMap::set_attr ( const std::string  key,
const char *  value 
)
inline

Modify the attribute specified by key

◆ set_attr() [3/3]

template<>
AttributeMap& SVG::AttributeMap::set_attr ( const std::string  key,
const std::string  value 
)
inline

Modify the attribute specified by key


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