KiCad PCB EDA Suite
KIGFX::VIEW_OVERLAY::COMMAND_SET_COLOR Struct Reference
Inheritance diagram for KIGFX::VIEW_OVERLAY::COMMAND_SET_COLOR:
KIGFX::VIEW_OVERLAY::COMMAND

Public Member Functions

 COMMAND_SET_COLOR (bool aIsStroke, const COLOR4D &aColor)
 
virtual void Execute (VIEW *aView) const override
 

Public Attributes

bool m_isStroke
 
COLOR4D m_color
 

Detailed Description

Definition at line 125 of file view_overlay.cpp.

Constructor & Destructor Documentation

KIGFX::VIEW_OVERLAY::COMMAND_SET_COLOR::COMMAND_SET_COLOR ( bool  aIsStroke,
const COLOR4D aColor 
)
inline

Definition at line 127 of file view_overlay.cpp.

127  :
128  m_isStroke( aIsStroke ),
129  m_color( aColor ) {}

Member Function Documentation

virtual void KIGFX::VIEW_OVERLAY::COMMAND_SET_COLOR::Execute ( VIEW aView) const
inlineoverridevirtual

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 131 of file view_overlay.cpp.

References KIGFX::VIEW::GetGAL(), KIGFX::GAL::SetFillColor(), and KIGFX::GAL::SetStrokeColor().

132  {
133  if( m_isStroke )
134  aView->GetGAL()->SetStrokeColor( m_color );
135  else
136  aView->GetGAL()->SetFillColor( m_color );
137  }

Member Data Documentation

COLOR4D KIGFX::VIEW_OVERLAY::COMMAND_SET_COLOR::m_color

Definition at line 140 of file view_overlay.cpp.

bool KIGFX::VIEW_OVERLAY::COMMAND_SET_COLOR::m_isStroke

Definition at line 139 of file view_overlay.cpp.


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