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

Public Member Functions

 COMMAND_LINE (const VECTOR2D &aP0, const VECTOR2D &aP1)
 
virtual void Execute (VIEW *aView) const override
 

Public Attributes

VECTOR2D m_p0
 
VECTOR2D m_p1
 

Detailed Description

Definition at line 44 of file view_overlay.cpp.

Constructor & Destructor Documentation

KIGFX::VIEW_OVERLAY::COMMAND_LINE::COMMAND_LINE ( const VECTOR2D aP0,
const VECTOR2D aP1 
)
inline

Definition at line 46 of file view_overlay.cpp.

46  :
47  m_p0( aP0 ),
48  m_p1( aP1 ) {}

Member Function Documentation

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 50 of file view_overlay.cpp.

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

51  {
52  aView->GetGAL()->DrawLine( m_p0, m_p1 );
53  }

Member Data Documentation

VECTOR2D KIGFX::VIEW_OVERLAY::COMMAND_LINE::m_p0

Definition at line 55 of file view_overlay.cpp.

VECTOR2D KIGFX::VIEW_OVERLAY::COMMAND_LINE::m_p1

Definition at line 56 of file view_overlay.cpp.


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