X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63e819f2981585279fe8a06629f69b7002eee9dc..be4da8f0315e36de2322cd312c7184f55c0333f5:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 4de9cac013..e04df54707 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1185,7 +1185,7 @@ public: g_isPainting++; } - ~wxPaintEvent() + virtual ~wxPaintEvent() { g_isPainting--; } @@ -2398,7 +2398,6 @@ public: // add an event to be processed later void AddPendingEvent(wxEvent& event); - // process all pending events void ProcessPendingEvents(); #if wxUSE_THREADS @@ -2458,6 +2457,11 @@ public: void SetClientData( void *data ) { DoSetClientData(data); } void *GetClientData() const { return DoGetClientData(); } + // reentrance guard + void AllowReentrance( bool allow = true ) { m_reentranceAllowed = allow; } + bool IsReentranceAllowed() { return m_reentranceAllowed; } + bool IsEventHandlingInProgress() { return m_eventHandlingInProgress; } + // check if the given event table entry matches this event and call the // handler if it does // @@ -2527,6 +2531,9 @@ protected: # endif #endif + bool m_reentranceAllowed; // Reentrance is allowed for this handler? + bool m_eventHandlingInProgress; // Eventhandling is in progress? + // Is event handler enabled? bool m_enabled;