#include <hex.h>
Inheritance diagram for hex::svg::Identity:
Definition at line 149 of file hex.h.
Public Member Functions | |
virtual | ~Identity (void) |
std::string | attributes (void) const |
Helper, used by child types to render attributes into SVG. | |
Public Attributes | |
std::string | id |
std::string | style |
std::string | className |
virtual hex::svg::Identity::~Identity | ( | void | ) | [inline, virtual] |
std::string hex::svg::Identity::attributes | ( | void | ) | const |
Helper, used by child types to render attributes into SVG.
Definition at line 129 of file svg.cc.
References className, and style.
Referenced by hex::svg::Document::draw_complex_area(), hex::svg::Document::draw_poly(), and hex::svg::Document::draw_skeleton().
00130 { 00131 std::string result =""; 00132 if(!this->id.empty()) 00133 result += std::string(" id=\"") + this->id + "\""; 00134 if(!this->style.empty()) 00135 result += std::string(" style=\"") + this->style + "\""; 00136 if(!this->className.empty()) 00137 result += std::string(" class=\"") + this->className + "\""; 00138 return result; 00139 }
std::string hex::svg::Identity::id |
std::string hex::svg::Identity::style |
std::string hex::svg::Identity::className |