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 34 of file dialog_shim.h.

Constructor & Destructor Documentation

◆ WINDOW_THAWER()

WINDOW_THAWER::WINDOW_THAWER ( wxWindow *  aWindow)
inline

Definition at line 36 of file dialog_shim.h.

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

References m_freezeCount, and m_window.

◆ ~WINDOW_THAWER()

WINDOW_THAWER::~WINDOW_THAWER ( )
inline

Definition at line 48 of file dialog_shim.h.

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

References m_freezeCount, and m_window.

Member Data Documentation

◆ m_freezeCount

int WINDOW_THAWER::m_freezeCount
protected

Definition at line 59 of file dialog_shim.h.

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

◆ m_window

wxWindow* WINDOW_THAWER::m_window
protected

Definition at line 58 of file dialog_shim.h.

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


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