A toolkit for working with phylogenetic data.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( SvgPoint const &  position,
SvgSize const &  size,
SvgStroke const &  stroke = SvgStroke(),
SvgFill const &  fill = SvgFill() 

Definition at line 100 of file shapes.cpp.

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 ( SvgRect const &  )
SvgRect ( SvgRect &&  )

Member Function Documentation

SvgBox bounding_box ( ) const

Definition at line 127 of file shapes.cpp.

SvgRect& operator= ( SvgRect const &  )
SvgRect& operator= ( SvgRect &&  )
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

using self_type = SvgRect

Definition at line 118 of file shapes.hpp.

Member Data Documentation

SvgFill fill

Definition at line 168 of file shapes.hpp.

std::string id

Definition at line 162 of file shapes.hpp.

SvgPoint position

Definition at line 164 of file shapes.hpp.

double rx

Definition at line 170 of file shapes.hpp.

double ry

Definition at line 171 of file shapes.hpp.

SvgSize size

Definition at line 165 of file shapes.hpp.

SvgStroke stroke

Definition at line 167 of file shapes.hpp.

SvgTransform transform

Definition at line 173 of file shapes.hpp.

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