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

Public Member Functions

 COMMAND_SET_WIDTH (double aWidth)
 
virtual void Execute (VIEW *aView) const override
 

Public Attributes

double m_width
 

Detailed Description

Definition at line 144 of file view_overlay.cpp.

Constructor & Destructor Documentation

KIGFX::VIEW_OVERLAY::COMMAND_SET_WIDTH::COMMAND_SET_WIDTH ( double  aWidth)
inline

Definition at line 146 of file view_overlay.cpp.

146  :
147  m_width( aWidth ) {}

Member Function Documentation

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 149 of file view_overlay.cpp.

References KIGFX::VIEW::GetGAL(), and KIGFX::GAL::SetLineWidth().

150  {
151  aView->GetGAL()->SetLineWidth( m_width );
152  }

Member Data Documentation

double KIGFX::VIEW_OVERLAY::COMMAND_SET_WIDTH::m_width

Definition at line 154 of file view_overlay.cpp.


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