A library for working with phylogenetic and population genetic data.
v0.27.0
SvgStroke Struct Reference

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

Detailed Description

Definition at line 49 of file attributes.hpp.

Public Member Functions

 SvgStroke (Color color, double width=1.0)
 
 SvgStroke (std::string gradient_id)
 
 SvgStroke (SvgStroke &&)=default
 
 SvgStroke (SvgStroke const &)=default
 
 SvgStroke (Type type=Type::kColor)
 
 ~SvgStroke ()=default
 
SvgStrokeoperator= (SvgStroke &&)=default
 
SvgStrokeoperator= (SvgStroke const &)=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() [1/5]

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

Definition at line 50 of file attributes.cpp.

◆ SvgStroke() [2/5]

SvgStroke ( Color  color,
double  width = 1.0 
)
explicit

Definition at line 62 of file attributes.cpp.

◆ SvgStroke() [3/5]

SvgStroke ( std::string  gradient_id)
explicit

Definition at line 69 of file attributes.cpp.

◆ ~SvgStroke()

~SvgStroke ( )
default

◆ SvgStroke() [4/5]

SvgStroke ( SvgStroke const &  )
default

◆ SvgStroke() [5/5]

SvgStroke ( SvgStroke &&  )
default

Member Function Documentation

◆ operator=() [1/2]

SvgStroke& operator= ( SvgStroke &&  )
default

◆ operator=() [2/2]

SvgStroke& operator= ( SvgStroke const &  )
default

◆ write()

void write ( std::ostream &  out) const

Definition at line 79 of file attributes.cpp.

Member Typedef Documentation

◆ self_type

Definition at line 57 of file attributes.hpp.

Member Enumeration Documentation

◆ LineCap

enum LineCap
strong
Enumerator
kOmit 
kButt 
kSquare 
kRound 

Definition at line 67 of file attributes.hpp.

◆ LineJoin

enum LineJoin
strong
Enumerator
kOmit 
kMiter 
kRound 
kBevel 

Definition at line 75 of file attributes.hpp.

◆ Type

enum Type
strong
Enumerator
kColor 
kGradient 
kNone 
kOmit 

Definition at line 59 of file attributes.hpp.

Member Data Documentation

◆ color

Color color

Definition at line 113 of file attributes.hpp.

◆ dash_array

std::vector< double > dash_array

Definition at line 122 of file attributes.hpp.

◆ dash_offset

double dash_offset

Definition at line 123 of file attributes.hpp.

◆ gradient_id

std::string gradient_id

Definition at line 111 of file attributes.hpp.

◆ line_cap

LineCap line_cap

Definition at line 118 of file attributes.hpp.

◆ line_join

LineJoin line_join

Definition at line 119 of file attributes.hpp.

◆ miterlimit

double miterlimit

Definition at line 120 of file attributes.hpp.

◆ type

Type type

Definition at line 109 of file attributes.hpp.

◆ width

double width

Definition at line 115 of file attributes.hpp.

◆ width_unit

std::string width_unit

Definition at line 116 of file attributes.hpp.


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