KiCad PCB EDA Suite
WINDOW_THAWER Struct Reference

#include <dialog_shim.h>

Public Member Functions

 WINDOW_THAWER (wxWindow *aWindow)
 
 ~WINDOW_THAWER ()
 

Protected Attributes

wxWindow * m_window
 
int m_freezeCount
 

Detailed Description

Definition at line 35 of file dialog_shim.h.

Constructor & Destructor Documentation

◆ WINDOW_THAWER()

WINDOW_THAWER::WINDOW_THAWER ( wxWindow *  aWindow)
inline

Definition at line 37 of file dialog_shim.h.

38  {
39  m_window = aWindow;
40  m_freezeCount = 0;
41 
42  while( m_window->IsFrozen() )
43  {
44  m_window->Thaw();
45  m_freezeCount++;
46  }
47  }
wxWindow * m_window
Definition: dialog_shim.h:59

References m_freezeCount, and m_window.

◆ ~WINDOW_THAWER()

WINDOW_THAWER::~WINDOW_THAWER ( )
inline

Definition at line 49 of file dialog_shim.h.

50  {
51  while( m_freezeCount > 0 )
52  {
53  m_window->Freeze();
54  m_freezeCount--;
55  }
56  }
wxWindow * m_window
Definition: dialog_shim.h:59

References m_freezeCount, and m_window.

Member Data Documentation

◆ m_freezeCount

int WINDOW_THAWER::m_freezeCount
protected

Definition at line 60 of file dialog_shim.h.

Referenced by WINDOW_THAWER(), and ~WINDOW_THAWER().

◆ m_window

wxWindow* WINDOW_THAWER::m_window
protected

Definition at line 59 of file dialog_shim.h.

Referenced by WINDOW_THAWER(), and ~WINDOW_THAWER().


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