23#include "guillaume/components/line.hpp"
42 if (_thickness == thickness) {
45 _thickness = thickness;
57 if (_dashed == dashed) {
72 if (_dashLength == dashLength) {
75 _dashLength = dashLength;
87 if (_gapLength == gapLength) {
90 _gapLength = gapLength;
101 if (_placement == placement) {
104 _placement = placement;
111 if (_hasColor && _color == color) {
const utility::graphic::Color32Bit & getColor(void) const
Get the color given to setColor().
Line & setThickness(float thickness)
Set the thickness of the stroke.
Line(void)
Construct a solid, centered stroke 2 dp thick, with 8 dp dashes and gaps ready for setDashed(),...
float getDashLength(void) const
Get the length of one dash.
Line & setDashed(bool dashed)
Choose between a solid and a dashed stroke.
bool isDashed(void) const
Check whether the stroke is dashed.
float getGapLength(void) const
Get the gap between two dashes.
Line & setPlacement(Placement placement)
Set where the stroke sits across the height of the bound.
Line & setDashLength(float dashLength)
Set the length of one dash. Used only when the stroke is dashed.
Line & setGapLength(float gapLength)
Set the gap between two dashes. Used only when the stroke is dashed.
Placement getPlacement(void) const
Get where the stroke sits across the height of the bound.
Placement
Where the stroke sits across the bound height.
Line & clearColor(void)
Draw the stroke in the entity's components::Color again.
Line & setColor(const utility::graphic::Color32Bit &color)
Give the stroke a color of its own, used in place of the entity's components::Color.
float getThickness(void) const
Get the thickness of the stroke.
bool hasColor(void) const
Check whether the stroke has a color of its own.
void setHasChanged(bool hasChanged)
Raise or lower the changed flag.
State. Every class here is plain data attached to an entity.