SVG for C++
Loading...
Searching...
No Matches
Classes | 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.

Classes

struct  AttrSetter
 

Public Member Functions

 AttributeMap (SVGAttrib _attr)
 
template<typename T >
AttributeMapset_attr (const std::string key, T value)
 
AttributeMapset_attrs (std::initializer_list< std::pair< std::string, std::string > > values)
 
AttrSetter set_attr (const std::string key)
 
ClassList class_list ()
 
ClassList class_list () const
 
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 char *  value 
)
inline

Modify the attribute specified by key

◆ set_attr() [2/3]

template<>
AttributeMap & SVG::AttributeMap::set_attr ( const std::string  key,
const double  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

◆ set_attrs()

AttributeMap & SVG::AttributeMap::set_attrs ( std::initializer_list< std::pair< std::string, std::string > >  values)
inline

Set multiple attributes at once


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