A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SvgDocument Class Reference

#include <genesis/utils/formats/svg/document.hpp>

Detailed Description

Definition at line 48 of file svg/document.hpp.

Public Member Functions

 SvgDocument ()=default
 
 SvgDocument (SvgDocument const &)=default
 
 SvgDocument (SvgDocument &&)=default
 
 ~SvgDocument ()=default
 
self_typeadd (SvgObject const &object)
 Add an SvgObject to the document. More...
 
self_typeadd (SvgObject &&object)
 
SvgBox bounding_box () const
 
self_typeoperator<< (SvgObject const &object)
 Shortcut operator for add(), which allows an even more fluent interface. More...
 
self_typeoperator<< (SvgObject &&object)
 
SvgDocumentoperator= (SvgDocument const &)=default
 
SvgDocumentoperator= (SvgDocument &&)=default
 
void write (std::ostream &out) const
 Write the SvgDocument to an output stream. More...
 

Public Types

enum  Overflow {
  kNone, kVisible, kHidden, kScroll,
  kAuto, kInherit
}
 
using self_type = SvgDocument
 

Public Attributes

std::vector< SvgDefinitionsdefs
 
SvgMargin margin
 
Overflow overflow = Overflow::kNone
 

Static Public Attributes

static std::string indentation_string = " "
 

Constructor & Destructor Documentation

SvgDocument ( )
default
~SvgDocument ( )
default
SvgDocument ( SvgDocument const &  )
default
SvgDocument ( SvgDocument &&  )
default

Member Function Documentation

SvgDocument & add ( SvgObject const &  object)

Add an SvgObject to the document.

Returns the SvgDocument in order to allow for a fluent interface.

Definition at line 144 of file svg/document.cpp.

SvgDocument & add ( SvgObject &&  object)

Definition at line 150 of file svg/document.cpp.

SvgBox bounding_box ( ) const

Definition at line 56 of file svg/document.cpp.

SvgDocument & operator<< ( SvgObject const &  object)

Shortcut operator for add(), which allows an even more fluent interface.

Definition at line 156 of file svg/document.cpp.

SvgDocument & operator<< ( SvgObject &&  object)

Definition at line 161 of file svg/document.cpp.

SvgDocument& operator= ( SvgDocument const &  )
default
SvgDocument& operator= ( SvgDocument &&  )
default
void write ( std::ostream &  out) const

Write the SvgDocument to an output stream.

Definition at line 69 of file svg/document.cpp.

Member Typedef Documentation

Definition at line 56 of file svg/document.hpp.

Member Enumeration Documentation

enum Overflow
strong
Enumerator
kNone 
kVisible 
kHidden 
kScroll 
kAuto 
kInherit 

Definition at line 60 of file svg/document.hpp.

Member Data Documentation

std::vector< SvgDefinitions > defs

Definition at line 122 of file svg/document.hpp.

std::string indentation_string = " "
static

Definition at line 58 of file svg/document.hpp.

SvgMargin margin

Definition at line 119 of file svg/document.hpp.

Definition at line 120 of file svg/document.hpp.


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