A toolkit for working with phylogenetic data.
v0.24.0
SvgImage Struct Reference

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

Detailed Description

Definition at line 47 of file image.hpp.

Public Member Functions

 SvgImage (std::string const &href)
 
 SvgImage (std::string const &href, SvgPoint const &position)
 
 SvgImage (std::string const &href, SvgPoint const &position, SvgSize const &size)
 
 SvgImage (std::string const &href, double x, double y, double w, double h)
 
 SvgImage (SvgImage const &)=default
 
 SvgImage (SvgImage &&)=default
 
 ~SvgImage ()=default
 
SvgBox bounding_box () const
 
SvgImageoperator= (SvgImage const &)=default
 
SvgImageoperator= (SvgImage &&)=default
 
void write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
 

Public Types

using self_type = SvgImage
 

Public Attributes

std::string href
 
std::string id
 
SvgPoint position
 
SvgSize size
 
SvgTransform transform
 

Constructor & Destructor Documentation

◆ SvgImage() [1/6]

SvgImage ( std::string const &  href)

Definition at line 49 of file image.cpp.

◆ SvgImage() [2/6]

SvgImage ( std::string const &  href,
SvgPoint const &  position 
)

Definition at line 55 of file image.cpp.

◆ SvgImage() [3/6]

SvgImage ( std::string const &  href,
SvgPoint const &  position,
SvgSize const &  size 
)

Definition at line 63 of file image.cpp.

◆ SvgImage() [4/6]

SvgImage ( std::string const &  href,
double  x,
double  y,
double  w,
double  h 
)

Definition at line 73 of file image.cpp.

◆ ~SvgImage()

~SvgImage ( )
default

◆ SvgImage() [5/6]

SvgImage ( SvgImage const &  )
default

◆ SvgImage() [6/6]

SvgImage ( SvgImage &&  )
default

Member Function Documentation

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 87 of file image.cpp.

◆ operator=() [1/2]

SvgImage& operator= ( SvgImage const &  )
default

◆ operator=() [2/2]

SvgImage& operator= ( SvgImage &&  )
default

◆ write()

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

Definition at line 92 of file image.cpp.

Member Typedef Documentation

◆ self_type

Definition at line 55 of file image.hpp.

Member Data Documentation

◆ href

std::string href

Definition at line 108 of file image.hpp.

◆ id

std::string id

Definition at line 106 of file image.hpp.

◆ position

SvgPoint position

Definition at line 110 of file image.hpp.

◆ size

SvgSize size

Definition at line 111 of file image.hpp.

◆ transform

SvgTransform transform

Definition at line 113 of file image.hpp.


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