|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file.
93 elem.write( out,
indent + extra_in + 1, options );
115 content_.push_back( std::move(
object ));
127 return add(
object );
132 return add( std::move(
object ));
std::string indent(std::string const &text, std::string const &indentation)
Indent each line of text with indentation and return the result.
static SvgBox combine(SvgBox const &lhs, SvgBox const &rhs)
std::vector< SvgObject > content_
std::unordered_map< std::string, std::string > hyperlink_
static std::string indentation_string
Provides some commonly used string utility functions.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::string svg_attribute(std::string const &name, T const &value, std::string const &unit="")
std::string repeat(std::string const &word, size_t times)
Take a string and repeat it a given number of times.
SvgBox bounding_box() const
self_type & add(SvgObject const &object)
Add an SvgObject to the document.
self_type & operator<<(SvgObject const &object)
Shortcut operator for add(), which allows an even more fluent interface.
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
self_type & reverse()
Reverse the order to the stored SvgObjects.