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 class_drawpanel.h.

Constructor & Destructor Documentation

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

Definition at line 486 of file class_drawpanel.h.

References EDA_DRAW_PANEL::CrossHairOff().

486  :
487  m_panel( aPanel ),
488  m_dc( aDC )
489  {
490  if( aPanel && aDC )
491  aPanel->CrossHairOff( aDC );
492  }
EDA_DRAW_PANEL * m_panel
void CrossHairOff(wxDC *DC)
Definition: draw_panel.cpp:266
EDA_CROSS_HAIR_MANAGER::~EDA_CROSS_HAIR_MANAGER ( )
inline

Definition at line 494 of file class_drawpanel.h.

495  {
496  if( m_panel && m_dc )
498  }
EDA_DRAW_PANEL * m_panel
void CrossHairOn(wxDC *DC)
Definition: draw_panel.cpp:273

Member Data Documentation

wxDC* EDA_CROSS_HAIR_MANAGER::m_dc
private

Definition at line 502 of file class_drawpanel.h.

EDA_DRAW_PANEL* EDA_CROSS_HAIR_MANAGER::m_panel
private

Definition at line 501 of file class_drawpanel.h.


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