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

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

Detailed Description

Definition at line 49 of file attributes.hpp.

Public Member Functions

 SvgStroke (Type type=Type::kColor)
 
 SvgStroke (Color color, double width=1.0)
 
 SvgStroke (std::string gradient_id)
 
 SvgStroke (SvgStroke const &)=default
 
 SvgStroke (SvgStroke &&)=default
 
 ~SvgStroke ()=default
 
SvgStrokeoperator= (SvgStroke const &)=default
 
SvgStrokeoperator= (SvgStroke &&)=default
 
void write (std::ostream &out) const
 

Public Types

enum  LineCap { kOmit, kButt, kSquare, kRound }
 
enum  LineJoin { kOmit, kMiter, kRound, kBevel }
 
using self_type = SvgStroke
 
enum  Type { kColor, kGradient, kNone, kOmit }
 

Public Attributes

Color color
 
std::vector< double > dash_array
 
double dash_offset
 
std::string gradient_id
 
LineCap line_cap
 
LineJoin line_join
 
double miterlimit
 
Type type
 
double width
 
std::string width_unit
 

Constructor & Destructor Documentation

SvgStroke ( SvgStroke::Type  type = Type::kColor)
explicit

Definition at line 50 of file attributes.cpp.

SvgStroke ( Color  color,
double  width = 1.0 
)
explicit

Definition at line 62 of file attributes.cpp.

SvgStroke ( std::string  gradient_id)
explicit

Definition at line 69 of file attributes.cpp.

~SvgStroke ( )
default
SvgStroke ( SvgStroke const &  )
default
SvgStroke ( SvgStroke &&  )
default

Member Function Documentation

SvgStroke& operator= ( SvgStroke const &  )
default
SvgStroke& operator= ( SvgStroke &&  )
default
void write ( std::ostream &  out) const

Definition at line 79 of file attributes.cpp.

Member Typedef Documentation

Definition at line 57 of file attributes.hpp.

Member Enumeration Documentation

enum LineCap
strong
Enumerator
kOmit 
kButt 
kSquare 
kRound 

Definition at line 67 of file attributes.hpp.

enum LineJoin
strong
Enumerator
kOmit 
kMiter 
kRound 
kBevel 

Definition at line 75 of file attributes.hpp.

enum Type
strong
Enumerator
kColor 
kGradient 
kNone 
kOmit 

Definition at line 59 of file attributes.hpp.

Member Data Documentation

Color color

Definition at line 113 of file attributes.hpp.

std::vector< double > dash_array

Definition at line 122 of file attributes.hpp.

double dash_offset

Definition at line 123 of file attributes.hpp.

std::string gradient_id

Definition at line 111 of file attributes.hpp.

LineCap line_cap

Definition at line 118 of file attributes.hpp.

LineJoin line_join

Definition at line 119 of file attributes.hpp.

double miterlimit

Definition at line 120 of file attributes.hpp.

Type type

Definition at line 109 of file attributes.hpp.

double width

Definition at line 115 of file attributes.hpp.

std::string width_unit

Definition at line 116 of file attributes.hpp.


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