codac 2.0.0
Loading...
Searching...
No Matches
codac2_StyleProperties.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include <string>
13#include <set>
15#include "codac2_Color.h"
16
17namespace codac2
18{
19
27 {
28 Color stroke_color = Color::black();
29 Color fill_color = Color::none();
30
37
45 StyleProperties(const std::string& param1, const std::string& param2 = "", const std::string& param3 = "");
46
55 StyleProperties(const Color& stroke_color, const std::string& param1 = "", const std::string& param2 = "", const std::string& param3 = "");
56
65 StyleProperties(std::initializer_list<Color> colors, const std::string& param1 = "", const std::string& param2 = "", const std::string& param3 = "");
66
71
76
81
82 };
83}
Definition codac2_OctaSym.h:21
Color structure, in RGBA or HSVA format.
Definition codac2_Color.h:44
static Color none()
Empty color (transparent white)
Definition codac2_Color.h:155
StylePropertiesBase()
Default constructor.
static StyleProperties inside()
Predefined "inside" style, dark gray edge and green fill.
StyleProperties(const std::string &param1, const std::string &param2="", const std::string &param3="")
Constructor with only optionnal parameters.
static StyleProperties outside()
Predefined "outside" style, dark gray edge and light blue fill.
StyleProperties(std::initializer_list< Color > colors, const std::string &param1="", const std::string &param2="", const std::string &param3="")
Constructor from a stroke and eventually a fill color, and three optional parameters.
StyleProperties()
Default constructor.
StyleProperties(const Color &stroke_color, const std::string &param1="", const std::string &param2="", const std::string &param3="")
Constructor from a stroke color, and three optional parameters.
static StyleProperties boundary()
Predefined "boundary" style, dark gray edge and yellow fill.