KiCad PCB EDA Suite
EDA_CROSS_HAIR_MANAGER Class Reference

Class EDA_CROSS_HAIR_MANAGER is used to hide the cross hair and restore it when the class goes out of scope. More...

#include <class_drawpanel.h>

Public Member Functions

 EDA_CROSS_HAIR_MANAGER (EDA_DRAW_PANEL *aPanel, wxDC *aDC)
 
 ~EDA_CROSS_HAIR_MANAGER ()
 

Private Attributes

EDA_DRAW_PANELm_panel
 
wxDC * m_dc
 

Detailed Description

Class EDA_CROSS_HAIR_MANAGER is used to hide the cross hair and restore it when the class goes out of scope.

Definition at line 483 of file legacy_wx/class_drawpanel.h.

Constructor & Destructor Documentation

◆ EDA_CROSS_HAIR_MANAGER()

EDA_CROSS_HAIR_MANAGER::EDA_CROSS_HAIR_MANAGER ( EDA_DRAW_PANEL aPanel,
wxDC *  aDC 
)
inline

Definition at line 486 of file legacy_wx/class_drawpanel.h.

486  :
487  m_panel( aPanel ),
488  m_dc( aDC )
489  {
490  if( aPanel && aDC )
491  aPanel->CrossHairOff( aDC );
492  }
virtual void CrossHairOff(wxDC *DC=nullptr)

References EDA_DRAW_PANEL::CrossHairOff().

◆ ~EDA_CROSS_HAIR_MANAGER()

EDA_CROSS_HAIR_MANAGER::~EDA_CROSS_HAIR_MANAGER ( )
inline

Definition at line 494 of file legacy_wx/class_drawpanel.h.

495  {
496  if( m_panel && m_dc )
498  }
virtual void CrossHairOn(wxDC *DC=nullptr)

References EDA_DRAW_PANEL::CrossHairOn(), m_dc, and m_panel.

Member Data Documentation

◆ m_dc

wxDC* EDA_CROSS_HAIR_MANAGER::m_dc
private

Definition at line 502 of file legacy_wx/class_drawpanel.h.

Referenced by ~EDA_CROSS_HAIR_MANAGER().

◆ m_panel

EDA_DRAW_PANEL* EDA_CROSS_HAIR_MANAGER::m_panel
private

Definition at line 501 of file legacy_wx/class_drawpanel.h.

Referenced by ~EDA_CROSS_HAIR_MANAGER().


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