24#ifndef STROKE_PARAMS_H
25#define STROKE_PARAMS_H
31#include <wx/translation.h>
33#include <stroke_params_lexer.h>
35class STROKE_PARAMS_LEXER;
80#define DEFAULT_STYLE _( "Default" )
81#define INDETERMINATE_STYLE _( "Leave unchanged" )
117 bool aIncludeStyle =
true,
bool aIncludeWidth =
true );
138 STROKE_PARAMS_LEXER( aReader ),
BITMAPS
A list of all bitmap identifiers.
A color representation with 4 components: red, green, blue, alpha.
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
EDA_MSG_PANEL items for displaying messages.
An abstract shape on 2D plane.
int parseInt(const char *aText)
void ParseStroke(STROKE_PARAMS &aStroke)
double parseDouble(const char *aText)
STROKE_PARAMS_PARSER(LINE_READER *aReader, int iuPerMM)
Simple container to manage line stroke parameters.
void SetWidth(int aWidth)
bool operator!=(const STROKE_PARAMS &aOther)
void SetColor(const KIGFX::COLOR4D &aColor)
void GetMsgPanelInfo(UNITS_PROVIDER *aUnitsProvider, std::vector< MSG_PANEL_ITEM > &aList, bool aIncludeStyle=true, bool aIncludeWidth=true)
static void Stroke(const SHAPE *aShape, PLOT_DASH_TYPE aLineStyle, int aWidth, const KIGFX::RENDER_SETTINGS *aRenderSettings, std::function< void(const VECTOR2I &a, const VECTOR2I &b)> aStroker)
STROKE_PARAMS(int aWidth=0, PLOT_DASH_TYPE aPlotStyle=PLOT_DASH_TYPE::DEFAULT, const KIGFX::COLOR4D &aColor=KIGFX::COLOR4D::UNSPECIFIED)
PLOT_DASH_TYPE m_plotstyle
KIGFX::COLOR4D GetColor() const
PLOT_DASH_TYPE GetPlotStyle() const
static wxString GetLineStyleToken(PLOT_DASH_TYPE aStyle)
void Format(OUTPUTFORMATTER *out, const EDA_IU_SCALE &aIuScale, int nestLevel) const
void SetPlotStyle(PLOT_DASH_TYPE aPlotStyle)
The Cairo implementation of the graphics abstraction layer.
PLOT_DASH_TYPE
Dashed line types.
const std::map< PLOT_DASH_TYPE, struct lineTypeStruct > lineTypeNames