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
46 StyleProperties(const std::string& param1, const std::string& param2 = "", const std::string& param3 = "", const std::string& param4 = "");
47
57 StyleProperties(const Color& stroke_color, const std::string& param1 = "", const std::string& param2 = "", const std::string& param3 = "", const std::string& param4 = "");
58
68 StyleProperties(std::initializer_list<Color> colors, const std::string& param1 = "", const std::string& param2 = "", const std::string& param3 = "", const std::string& param4 = "");
69
74
79
84
85 };
86}
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.
StyleProperties(std::initializer_list< Color > colors, const std::string &param1="", const std::string &param2="", const std::string &param3="", const std::string &param4="")
Constructor from a stroke and eventually a fill color, and three optional parameters.
static StyleProperties inside()
Predefined "inside" style, dark gray edge and green fill.
static StyleProperties outside()
Predefined "outside" style, dark gray edge and light blue fill.
StyleProperties(const std::string &param1, const std::string &param2="", const std::string &param3="", const std::string &param4="")
Constructor with only optionnal parameters.
StyleProperties()
Default constructor.
StyleProperties(const Color &stroke_color, const std::string &param1="", const std::string &param2="", const std::string &param3="", const std::string &param4="")
Constructor from a stroke color, and three optional parameters.
static StyleProperties boundary()
Predefined "boundary" style, dark gray edge and yellow fill.