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;
70extern const std::map<LINE_STYLE, struct LINE_STYLE_DESC>
lineTypeNames;
73#define DEFAULT_STYLE _( "Default" )
74#define INDETERMINATE_STYLE _( "Leave unchanged" )
110 bool aIncludeStyle =
true,
bool aIncludeWidth =
true );
118 const std::function<
void(
const VECTOR2I& a,
const VECTOR2I& b )>& aStroker );
131 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 SetLineStyle(LINE_STYLE aLineStyle)
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
void GetMsgPanelInfo(UNITS_PROVIDER *aUnitsProvider, std::vector< MSG_PANEL_ITEM > &aList, bool aIncludeStyle=true, bool aIncludeWidth=true)
STROKE_PARAMS(int aWidth=0, LINE_STYLE aLineStyle=LINE_STYLE::DEFAULT, const KIGFX::COLOR4D &aColor=KIGFX::COLOR4D::UNSPECIFIED)
LINE_STYLE GetLineStyle() const
bool operator!=(const STROKE_PARAMS &aOther) const
KIGFX::COLOR4D GetColor() const
void Format(OUTPUTFORMATTER *out, const EDA_IU_SCALE &aIuScale, int nestLevel) const
static void Stroke(const SHAPE *aShape, LINE_STYLE aLineStyle, int aWidth, const KIGFX::RENDER_SETTINGS *aRenderSettings, const std::function< void(const VECTOR2I &a, const VECTOR2I &b)> &aStroker)
static wxString GetLineStyleToken(LINE_STYLE aStyle)
The Cairo implementation of the graphics abstraction layer.
const std::map< LINE_STYLE, struct LINE_STYLE_DESC > lineTypeNames
LINE_STYLE
Dashed line types.