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

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

Detailed Description

Definition at line 110 of file shapes.hpp.

Public Member Functions

 SvgRect (SvgPoint const &position, SvgSize const &size, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 
 SvgRect (double x, double y, double w, double h, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
 
 SvgRect (SvgRect const &)=default
 
 SvgRect (SvgRect &&)=default
 
 ~SvgRect ()=default
 
SvgBox bounding_box () const
 
SvgRectoperator= (SvgRect const &)=default
 
SvgRectoperator= (SvgRect &&)=default
 
void write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
 

Public Types

using self_type = SvgRect
 

Public Attributes

SvgFill fill
 
std::string id
 
SvgPoint position
 
double rx
 
double ry
 
SvgSize size
 
SvgStroke stroke
 
SvgTransform transform
 

Constructor & Destructor Documentation

◆ SvgRect() [1/4]

SvgRect ( SvgPoint const &  position,
SvgSize const &  size,
SvgStroke const &  stroke = SvgStroke(),
SvgFill const &  fill = SvgFill() 
)

Definition at line 100 of file shapes.cpp.

◆ SvgRect() [2/4]

SvgRect ( double  x,
double  y,
double  w,
double  h,
SvgStroke const &  stroke = SvgStroke(),
SvgFill const &  fill = SvgFill() 
)

Definition at line 114 of file shapes.cpp.

◆ ~SvgRect()

~SvgRect ( )
default

◆ SvgRect() [3/4]

SvgRect ( SvgRect const &  )
default

◆ SvgRect() [4/4]

SvgRect ( SvgRect &&  )
default

Member Function Documentation

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 127 of file shapes.cpp.

◆ operator=() [1/2]

SvgRect& operator= ( SvgRect const &  )
default

◆ operator=() [2/2]

SvgRect& operator= ( SvgRect &&  )
default

◆ write()

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

Definition at line 132 of file shapes.cpp.

Member Typedef Documentation

◆ self_type

using self_type = SvgRect

Definition at line 118 of file shapes.hpp.

Member Data Documentation

◆ fill

SvgFill fill

Definition at line 168 of file shapes.hpp.

◆ id

std::string id

Definition at line 162 of file shapes.hpp.

◆ position

SvgPoint position

Definition at line 164 of file shapes.hpp.

◆ rx

double rx

Definition at line 170 of file shapes.hpp.

◆ ry

double ry

Definition at line 171 of file shapes.hpp.

◆ size

SvgSize size

Definition at line 165 of file shapes.hpp.

◆ stroke

SvgStroke stroke

Definition at line 167 of file shapes.hpp.

◆ transform

SvgTransform transform

Definition at line 173 of file shapes.hpp.


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