X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fdcd5d5ab5629906a44a76acb6d7ca623347812..6d4b1e2759abc6da2cc163d81b63a457b2bef0b0:/tests/testableframe.h diff --git a/tests/testableframe.h b/tests/testableframe.h index 29e03658f7..f3b87be0f9 100644 --- a/tests/testableframe.h +++ b/tests/testableframe.h @@ -18,13 +18,12 @@ public: void OnEvent(wxEvent& evt); - //wxEVT_ANY get the count for all events or a type can be specified - int GetEventCount(wxEventType type = wxEVT_ANY); +private: + friend class EventCounter; - //Used to clear an event count, after disconnecting a counter for example + int GetEventCount(wxEventType type); void ClearEventCount(wxEventType type); -private: wxLongToLongHashMap m_count; }; @@ -34,6 +33,9 @@ public: EventCounter(wxWindow* win, wxEventType type); ~EventCounter(); + int GetCount() { return m_frame->GetEventCount(m_type); } + void Clear() { m_frame->ClearEventCount(m_type); } + private: wxEventType m_type; wxTestableFrame* m_frame;