#include <genesis/utils/formats/svg/document.hpp>
Definition at line 50 of file svg/document.hpp.
Public Member Functions | |
SvgDocument ()=default | |
SvgDocument (SvgDocument &&)=default | |
SvgDocument (SvgDocument const &)=default | |
~SvgDocument ()=default | |
self_type & | add (SvgObject &&object) |
self_type & | add (SvgObject const &object) |
Add an SvgObject to the document. More... | |
SvgBox | bounding_box () const |
self_type & | operator<< (SvgObject &&object) |
self_type & | operator<< (SvgObject const &object) |
Shortcut operator for add(), which allows an even more fluent interface. More... | |
SvgDocument & | operator= (SvgDocument &&)=default |
SvgDocument & | operator= (SvgDocument const &)=default |
void | write (std::ostream &out) const |
Write the SvgDocument to an output stream. More... | |
void | write (std::shared_ptr< utils::BaseOutputTarget > target) const |
Public Types | |
enum | Overflow { kNone, kVisible, kHidden, kScroll, kAuto, kInherit } |
using | self_type = SvgDocument |
Public Attributes | |
Color | background_color = Color( 1.0, 1.0, 1.0, 1.0 ) |
std::vector< SvgDefinitions > | defs |
SvgMargin | margin |
Overflow | overflow = Overflow::kNone |
Static Public Attributes | |
static std::string | indentation_string = " " |
|
default |
|
default |
|
default |
|
default |
SvgDocument & add | ( | SvgObject && | object | ) |
Definition at line 163 of file svg/document.cpp.
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 157 of file svg/document.cpp.
SvgBox bounding_box | ( | ) | const |
Definition at line 57 of file svg/document.cpp.
SvgDocument & operator<< | ( | SvgObject && | object | ) |
Definition at line 174 of file svg/document.cpp.
SvgDocument & operator<< | ( | SvgObject const & | object | ) |
Shortcut operator for add(), which allows an even more fluent interface.
Definition at line 169 of file svg/document.cpp.
|
default |
|
default |
void write | ( | std::ostream & | out | ) | const |
Write the SvgDocument to an output stream.
Definition at line 70 of file svg/document.cpp.
void write | ( | std::shared_ptr< utils::BaseOutputTarget > | target | ) | const |
Definition at line 151 of file svg/document.cpp.
using self_type = SvgDocument |
Definition at line 58 of file svg/document.hpp.
|
strong |
Enumerator | |
---|---|
kNone | |
kVisible | |
kHidden | |
kScroll | |
kAuto | |
kInherit |
Definition at line 62 of file svg/document.hpp.
Definition at line 126 of file svg/document.hpp.
std::vector< SvgDefinitions > defs |
Definition at line 125 of file svg/document.hpp.
|
static |
Definition at line 60 of file svg/document.hpp.
SvgMargin margin |
Definition at line 122 of file svg/document.hpp.
Overflow overflow = Overflow::kNone |
Definition at line 123 of file svg/document.hpp.