1 #ifndef _BASICPROPERTIES_H_
2 #define _BASICPROPERTIES_H_
10 enum class Style : char {
20 void setColor(std::string_view color);
22 std::string_view getColor()
const;
24 void setLineWidth(
int width);
26 const int &getLineWidth()
const;
28 void setLineStyle(Style style);
30 const Style &getLineStyle()
const;
40 inline void LineProperties::setColor(std::string_view color) { _color = color; }
42 inline std::string_view LineProperties::getColor()
const {
return (_color); }
44 inline void LineProperties::setLineStyle(LineProperties::Style style) {
48 inline const LineProperties::Style &LineProperties::getLineStyle()
const {
52 inline void LineProperties::setLineWidth(
int width) { _linewidth = width; }
54 inline const int &LineProperties::getLineWidth()
const {
return (_linewidth); }
Definition: LineProperties.h:7