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 467 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 470 of file class_drawpanel.h.

References EDA_DRAW_PANEL::CrossHairOff().

470  :
471  m_panel( aPanel ),
472  m_dc( aDC )
473  {
474  if( aPanel && aDC )
475  aPanel->CrossHairOff( aDC );
476  }
EDA_DRAW_PANEL * m_panel
void CrossHairOff(wxDC *DC)
Definition: draw_panel.cpp:253
EDA_CROSS_HAIR_MANAGER::~EDA_CROSS_HAIR_MANAGER ( )
inline

Definition at line 478 of file class_drawpanel.h.

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

479  {
480  if( m_panel && m_dc )
482  }
EDA_DRAW_PANEL * m_panel
void CrossHairOn(wxDC *DC)
Definition: draw_panel.cpp:260

Member Data Documentation

wxDC* EDA_CROSS_HAIR_MANAGER::m_dc
private

Definition at line 486 of file class_drawpanel.h.

Referenced by ~EDA_CROSS_HAIR_MANAGER().

EDA_DRAW_PANEL* EDA_CROSS_HAIR_MANAGER::m_panel
private

Definition at line 485 of file class_drawpanel.h.

Referenced by ~EDA_CROSS_HAIR_MANAGER().


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