X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0468a58a4b32a075ded69e2a7d0e9746e283cfbe..50de831a51782467b8092757bd4375ab9ed717fc:/tests/testprec.h diff --git a/tests/testprec.h b/tests/testprec.h index 84edfc45eb..3342bb01a8 100644 --- a/tests/testprec.h +++ b/tests/testprec.h @@ -27,3 +27,12 @@ class TestAssertFailure { }; #define WX_ASSERT_FAILS_WITH_ASSERT(cond) CPPUNIT_ASSERT(!(cond)) #endif +// these functions can be used to hook into wxApp event processing and are +// currently used by the events propagation test +class WXDLLIMPEXP_FWD_BASE wxEvent; + +typedef int (*FilterEventFunc)(wxEvent&); +typedef bool (*ProcessEventFunc)(wxEvent&); + +extern void SetFilterEventFunc(FilterEventFunc func); +extern void SetProcessEventFunc(ProcessEventFunc func);