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

Public Member Functions

 COMMAND_RECTANGLE (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 61 of file view_overlay.cpp.

Constructor & Destructor Documentation

◆ COMMAND_RECTANGLE()

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

Definition at line 63 of file view_overlay.cpp.

63  :
64  m_p0( aP0 ),
65  m_p1( aP1 )
66  { }

Member Function Documentation

◆ Execute()

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 68 of file view_overlay.cpp.

69  {
70  aView->GetGAL()->DrawRectangle( m_p0, m_p1 );
71  }

References KIGFX::GAL::DrawRectangle(), KIGFX::VIEW::GetGAL(), m_p0, and m_p1.

Member Data Documentation

◆ m_p0

VECTOR2D KIGFX::VIEW_OVERLAY::COMMAND_RECTANGLE::m_p0

Definition at line 73 of file view_overlay.cpp.

Referenced by Execute().

◆ m_p1

VECTOR2D KIGFX::VIEW_OVERLAY::COMMAND_RECTANGLE::m_p1

Definition at line 74 of file view_overlay.cpp.

Referenced by Execute().


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