KiCad PCB EDA Suite
STROKE_PARAMS Class Reference

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

#include <sch_item.h>

Public Member Functions

 STROKE_PARAMS (int aWidth=Mils2iu(DEFAULT_LINE_WIDTH_MILS), PLOT_DASH_TYPE aPlotStyle=PLOT_DASH_TYPE::DEFAULT, const COLOR4D &aColor=COLOR4D::UNSPECIFIED)
 
int GetWidth () const
 
void SetWidth (int aWidth)
 
PLOT_DASH_TYPE GetPlotStyle () const
 
void SetPlotStyle (PLOT_DASH_TYPE aPlotStyle)
 
COLOR4D GetColor () const
 
void SetColor (const COLOR4D &aColor)
 
bool operator!= (const STROKE_PARAMS &aOther)
 

Private Attributes

int m_width
 
PLOT_DASH_TYPE m_plotstyle
 
COLOR4D m_color
 

Detailed Description

Simple container to manage line stroke parameters.

Definition at line 151 of file sch_item.h.

Constructor & Destructor Documentation

◆ STROKE_PARAMS()

STROKE_PARAMS::STROKE_PARAMS ( int  aWidth = Mils2iu( DEFAULT_LINE_WIDTH_MILS ),
PLOT_DASH_TYPE  aPlotStyle = PLOT_DASH_TYPE::DEFAULT,
const COLOR4D aColor = COLOR4D::UNSPECIFIED 
)
inline

Definition at line 154 of file sch_item.h.

156  :
157  m_width( aWidth ),
158  m_plotstyle( aPlotStyle ),
159  m_color( aColor )
160  {
161  }
COLOR4D m_color
Definition: sch_item.h:182
PLOT_DASH_TYPE m_plotstyle
Definition: sch_item.h:181

Member Function Documentation

◆ GetColor()

◆ GetPlotStyle()

◆ GetWidth()

◆ operator!=()

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

Definition at line 172 of file sch_item.h.

173  {
174  return m_width != aOther.m_width
175  || m_plotstyle != aOther.m_plotstyle
176  || m_color != aOther.m_color;
177  }
COLOR4D m_color
Definition: sch_item.h:182
PLOT_DASH_TYPE m_plotstyle
Definition: sch_item.h:181

References m_color, m_plotstyle, and m_width.

◆ SetColor()

◆ SetPlotStyle()

◆ SetWidth()

Member Data Documentation

◆ m_color

COLOR4D STROKE_PARAMS::m_color
private

Definition at line 182 of file sch_item.h.

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

◆ m_plotstyle

PLOT_DASH_TYPE STROKE_PARAMS::m_plotstyle
private

Definition at line 181 of file sch_item.h.

Referenced by GetPlotStyle(), operator!=(), and SetPlotStyle().

◆ m_width

int STROKE_PARAMS::m_width
private

Definition at line 180 of file sch_item.h.

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


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