A library for working with phylogenetic and population genetic data.
v0.32.0
SvgFill Struct Reference

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

Detailed Description

Definition at line 131 of file attributes.hpp.

Public Member Functions

 SvgFill (Color color)
 
 SvgFill (std::string gradient_id)
 
 SvgFill (SvgFill &&)=default
 
 SvgFill (SvgFill const &)=default
 
 SvgFill (Type type=Type::kColor)
 
 ~SvgFill ()=default
 
SvgFilloperator= (SvgFill &&)=default
 
SvgFilloperator= (SvgFill const &)=default
 
void write (std::ostream &out) const
 

Public Types

enum  Rule { kNone, kNonZero, kEvenOdd }
 
using self_type = SvgFill
 
enum  Type { kColor, kGradient, kNone, kOmit }
 

Public Attributes

Color color
 
std::string gradient_id
 
Rule rule
 
Type type
 

Constructor & Destructor Documentation

◆ SvgFill() [1/5]

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

Definition at line 144 of file attributes.cpp.

◆ SvgFill() [2/5]

SvgFill ( Color  color)
explicit

Definition at line 150 of file attributes.cpp.

◆ SvgFill() [3/5]

SvgFill ( std::string  gradient_id)
explicit

Definition at line 156 of file attributes.cpp.

◆ ~SvgFill()

~SvgFill ( )
default

◆ SvgFill() [4/5]

SvgFill ( SvgFill const &  )
default

◆ SvgFill() [5/5]

SvgFill ( SvgFill &&  )
default

Member Function Documentation

◆ operator=() [1/2]

SvgFill& operator= ( SvgFill &&  )
default

◆ operator=() [2/2]

SvgFill& operator= ( SvgFill const &  )
default

◆ write()

void write ( std::ostream &  out) const

Definition at line 166 of file attributes.cpp.

Member Typedef Documentation

◆ self_type

using self_type = SvgFill

Definition at line 139 of file attributes.hpp.

Member Enumeration Documentation

◆ Rule

enum Rule
strong
Enumerator
kNone 
kNonZero 
kEvenOdd 

Definition at line 149 of file attributes.hpp.

◆ Type

enum Type
strong
Enumerator
kColor 
kGradient 
kNone 
kOmit 

Definition at line 141 of file attributes.hpp.

Member Data Documentation

◆ color

Color color

Definition at line 186 of file attributes.hpp.

◆ gradient_id

std::string gradient_id

Definition at line 184 of file attributes.hpp.

◆ rule

Rule rule

Definition at line 187 of file attributes.hpp.

◆ type

Type type

Definition at line 182 of file attributes.hpp.


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