A toolkit for working with phylogenetic data.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SvgText Struct Reference

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

Detailed Description

Definition at line 47 of file text.hpp.

Public Member Functions

 SvgText (std::string const &text="", SvgPoint const &position=SvgPoint(), SvgFont const &font=SvgFont(), SvgFill const &fill=SvgFill(), SvgStroke const &stroke=SvgStroke(SvgStroke::Type::kOmit))
 SvgText (SvgText const &)=default
 SvgText (SvgText &&)=default
 ~SvgText ()=default
SvgBox bounding_box () const
SvgTextoperator= (SvgText const &)=default
SvgTextoperator= (SvgText &&)=default
void write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const

Public Types

enum  Anchor { kNone, kStart, kMiddle, kEnd }
using self_type = SvgText

Public Attributes

Anchor anchor = Anchor::kNone
std::string dx
std::string dy
SvgFill fill
SvgFont font
std::string id
double kerning
double letter_spacing
SvgPoint position
SvgStroke stroke
std::string text
SvgTransform transform
double word_spacing

Constructor & Destructor Documentation

SvgText ( std::string const &  text = "",
SvgPoint const &  position = SvgPoint(),
SvgFont const &  font = SvgFont(),
SvgFill const &  fill = SvgFill(),
SvgStroke const &  stroke = SvgStrokeSvgStroke::Type::kOmit ) 

Definition at line 50 of file text.cpp.

~SvgText ( )
SvgText ( SvgText const &  )
SvgText ( SvgText &&  )

Member Function Documentation

SvgBox bounding_box ( ) const

Definition at line 71 of file text.cpp.

SvgText& operator= ( SvgText const &  )
SvgText& operator= ( SvgText &&  )
void write ( std::ostream &  out,
size_t  indent = 0,
SvgDrawingOptions const &  options = SvgDrawingOptions() 
) const

Definition at line 101 of file text.cpp.

Member Typedef Documentation

using self_type = SvgText

Definition at line 55 of file text.hpp.

Member Enumeration Documentation

enum Anchor

Definition at line 57 of file text.hpp.

Member Data Documentation

Definition at line 110 of file text.hpp.

std::string dx

Definition at line 116 of file text.hpp.

std::string dy

Definition at line 117 of file text.hpp.

SvgFill fill

Definition at line 107 of file text.hpp.

SvgFont font

Definition at line 106 of file text.hpp.

std::string id

Definition at line 101 of file text.hpp.

double kerning

Definition at line 112 of file text.hpp.

double letter_spacing

Definition at line 113 of file text.hpp.

SvgPoint position

Definition at line 104 of file text.hpp.

SvgStroke stroke

Definition at line 108 of file text.hpp.

std::string text

Definition at line 103 of file text.hpp.

SvgTransform transform

Definition at line 119 of file text.hpp.

double word_spacing

Definition at line 114 of file text.hpp.

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