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 254 of file view_overlay.cpp.

Constructor & Destructor Documentation

◆ COMMAND_SET_WIDTH()

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

Definition at line 256 of file view_overlay.cpp.

256  :
257  m_width( aWidth ) {}

Member Function Documentation

◆ Execute()

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 259 of file view_overlay.cpp.

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

260  {
261  aView->GetGAL()->SetLineWidth( m_width );
262  }

Member Data Documentation

◆ m_width

double KIGFX::VIEW_OVERLAY::COMMAND_SET_WIDTH::m_width

Definition at line 264 of file view_overlay.cpp.

Referenced by Execute().


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