KiCad PCB EDA Suite
Loading...
Searching...
No Matches
STROKE_PARAMS Class Reference

Simple container to manage line stroke parameters. More...

#include <stroke_params.h>

Public Member Functions

 STROKE_PARAMS (int aWidth=0, LINE_STYLE aLineStyle=LINE_STYLE::DEFAULT, const KIGFX::COLOR4D &aColor=KIGFX::COLOR4D::UNSPECIFIED)
 
int GetWidth () const
 
void SetWidth (int aWidth)
 
LINE_STYLE GetLineStyle () const
 
void SetLineStyle (LINE_STYLE aLineStyle)
 
KIGFX::COLOR4D GetColor () const
 
void SetColor (const KIGFX::COLOR4D &aColor)
 
bool operator!= (const STROKE_PARAMS &aOther) const
 
void Format (OUTPUTFORMATTER *out, const EDA_IU_SCALE &aIuScale) const
 
void GetMsgPanelInfo (UNITS_PROVIDER *aUnitsProvider, std::vector< MSG_PANEL_ITEM > &aList, bool aIncludeStyle=true, bool aIncludeWidth=true)
 

Static Public Member Functions

static wxString GetLineStyleToken (LINE_STYLE aStyle)
 
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)
 

Private Attributes

int m_width
 
LINE_STYLE m_lineStyle
 
KIGFX::COLOR4D m_color
 

Detailed Description

Simple container to manage line stroke parameters.

Definition at line 93 of file stroke_params.h.

Constructor & Destructor Documentation

◆ STROKE_PARAMS()

STROKE_PARAMS::STROKE_PARAMS ( int aWidth = 0,
LINE_STYLE aLineStyle = LINE_STYLE::DEFAULT,
const KIGFX::COLOR4D & aColor = KIGFX::COLOR4D::UNSPECIFIED )
inline

Definition at line 96 of file stroke_params.h.

References DEFAULT, m_color, m_lineStyle, m_width, and KIGFX::COLOR4D::UNSPECIFIED.

Referenced by operator!=().

Member Function Documentation

◆ Format()

◆ GetColor()

◆ GetLineStyle()

◆ GetLineStyleToken()

wxString STROKE_PARAMS::GetLineStyleToken ( LINE_STYLE aStyle)
static

Definition at line 237 of file stroke_params.cpp.

References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, and SOLID.

Referenced by Format(), and SCH_IO_KICAD_LEGACY::saveLine().

◆ GetMsgPanelInfo()

void STROKE_PARAMS::GetMsgPanelInfo ( UNITS_PROVIDER * aUnitsProvider,
std::vector< MSG_PANEL_ITEM > & aList,
bool aIncludeStyle = true,
bool aIncludeWidth = true )

◆ GetWidth()

◆ operator!=()

bool STROKE_PARAMS::operator!= ( const STROKE_PARAMS & aOther) const
inline

Definition at line 113 of file stroke_params.h.

References m_color, m_lineStyle, m_width, and STROKE_PARAMS().

◆ SetColor()

◆ SetLineStyle()

◆ SetWidth()

◆ Stroke()

Member Data Documentation

◆ m_color

KIGFX::COLOR4D STROKE_PARAMS::m_color
private

Definition at line 137 of file stroke_params.h.

Referenced by GetColor(), operator!=(), SetColor(), and STROKE_PARAMS().

◆ m_lineStyle

LINE_STYLE STROKE_PARAMS::m_lineStyle
private

Definition at line 136 of file stroke_params.h.

Referenced by GetLineStyle(), operator!=(), SetLineStyle(), and STROKE_PARAMS().

◆ m_width

int STROKE_PARAMS::m_width
private

Definition at line 135 of file stroke_params.h.

Referenced by GetWidth(), operator!=(), SetWidth(), and STROKE_PARAMS().


The documentation for this class was generated from the following files: