26#ifndef BOARD_SHAPE_WITH_STYLE_H
27#define BOARD_SHAPE_WITH_STYLE_H
71 const std::string &
name()
const;
113 inline bool filled()
const;
116 static const std::string _name;
117 static bool _lineWidthScaling;
134 : _style{penColor, fillColor, lineWidth, lineStyle, lineCap, lineJoin}
227 if (_lineWidthScaling) {
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
Structure representing an RGB triple.
Definition Color.h:43
static const Color Null
Definition Color.h:155
LineStyle
Definition Style.h:47
LineCap
Definition Style.h:35
LineJoin
Definition Style.h:41
Abstract structure for a 2D shape.
Definition ShapeWithStyle.h:38
ShapeWithStyle & setStyle(const Style &)
Definition ShapeWithStyle.h:209
Style _style
Definition ShapeWithStyle.h:122
ShapeWithStyle & setLineCap(LineCap)
Definition ShapeWithStyle.h:192
ShapeWithStyle & setLineWidth(double)
Definition ShapeWithStyle.h:170
const Color & penColor() const
Definition ShapeWithStyle.h:143
ShapeWithStyle & setLineJoin(LineJoin)
Definition ShapeWithStyle.h:203
bool filled() const
Definition ShapeWithStyle.h:220
LineJoin lineJoin() const
Definition ShapeWithStyle.h:198
ShapeWithStyle & setLineStyle(LineStyle)
Definition ShapeWithStyle.h:181
ShapeWithStyle & setPenColor(const Color &)
Definition ShapeWithStyle.h:148
Style style() const
Definition ShapeWithStyle.h:215
const std::string & name() const
Definition ShapeWithStyle.cpp:37
void updateLineWidth(double s)
Definition ShapeWithStyle.h:225
ShapeWithStyle & operator=(const ShapeWithStyle &other)
Definition ShapeWithStyle.cpp:47
ShapeWithStyle(Color penColor, Color fillColor, double lineWidth, LineStyle style, const LineCap cap, const LineJoin join)
Definition ShapeWithStyle.h:133
static void setLineWidthScaling(bool)
Definition ShapeWithStyle.cpp:42
double lineWidth() const
Definition ShapeWithStyle.h:165
ShapeWithStyle & setFillColor(const Color &)
Definition ShapeWithStyle.h:159
LineCap lineCap() const
Definition ShapeWithStyle.h:187
const Color & fillColor() const
Definition ShapeWithStyle.h:154
LineStyle lineStyle() const
Definition ShapeWithStyle.h:176
~ShapeWithStyle()
Definition ShapeWithStyle.cpp:35
Abstract structure for a 2D shape.
Definition Shape.h:64
LineJoin lineJoin
Definition Style.h:75
Color fillColor
Definition Style.h:71
LineStyle lineStyle
Definition Style.h:73
Color penColor
Definition Style.h:70
double lineWidth
Definition Style.h:72
LineCap lineCap
Definition Style.h:74