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 78 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 81 of file stroke_params.h.

Member Function Documentation

◆ Format()

◆ GetColor()

◆ GetLineStyle()

◆ GetLineStyleToken()

wxString STROKE_PARAMS::GetLineStyleToken ( LINE_STYLE  aStyle)
static

Definition at line 236 of file stroke_params.cpp.

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 98 of file stroke_params.h.

References m_color, m_lineStyle, and m_width.

◆ SetColor()

◆ SetLineStyle()

◆ SetWidth()

◆ Stroke()

Member Data Documentation

◆ m_color

KIGFX::COLOR4D STROKE_PARAMS::m_color
private

Definition at line 121 of file stroke_params.h.

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

◆ m_lineStyle

LINE_STYLE STROKE_PARAMS::m_lineStyle
private

Definition at line 120 of file stroke_params.h.

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

◆ m_width

int STROKE_PARAMS::m_width
private

Definition at line 119 of file stroke_params.h.

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


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