Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
pgl::CanvasStyle Struct Reference

SVG style captured for each inserted element. More...

#include <canvas.hpp>

Public Member Functions

void apply (const CanvasCommand &command)
 Applies one style command in place.

Public Attributes

std::string stroke = "black"
std::string fill = "none"
std::string fillOpacity = "1"
std::string strokeOpacity = "1"
std::string strokeWidth = "2"
std::string pointRadius = "3"

Detailed Description

SVG style captured for each inserted element.

Member Function Documentation

◆ apply()

void pgl::CanvasStyle::apply ( const CanvasCommand & command)
inline

Applies one style command in place.

Parameters
commandCommand to apply.

Member Data Documentation

◆ fill

std::string pgl::CanvasStyle::fill = "none"

◆ fillOpacity

std::string pgl::CanvasStyle::fillOpacity = "1"

◆ pointRadius

std::string pgl::CanvasStyle::pointRadius = "3"

◆ stroke

std::string pgl::CanvasStyle::stroke = "black"

◆ strokeOpacity

std::string pgl::CanvasStyle::strokeOpacity = "1"

◆ strokeWidth

std::string pgl::CanvasStyle::strokeWidth = "2"