]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/testableframe.h
Don't include wxUniversal configurations in MSVC project files.
[wxWidgets.git] / tests / testableframe.h
index 29e03658f748e1b7bbd73578bb9e530bc4c8fd45..f3b87be0f90ab82b846c4cdaa3e8059592ef2a2a 100644 (file)
@@ -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;