diff -r 40be5c189e2e -r 5eb765a7a793 ui/wpf/UIwrapper/UIwrapper/toolkit.h --- a/ui/wpf/UIwrapper/UIwrapper/toolkit.h Sat Jan 24 19:17:35 2015 +0100 +++ b/ui/wpf/UIwrapper/UIwrapper/toolkit.h Sun Jan 25 15:01:04 2015 +0100 @@ -10,4 +10,19 @@ #define UI_EXPORT extern "C" __declspec(dllexport) +extern "C" typedef void(*UIcallback)(void*, void*); + void* ObjectToPtr(Object ^obj); + +public ref class EventWrapper { + UIcallback callback = NULL; + void *userdata = NULL; + Action ^action; + +public: + EventWrapper(UIcallback callback, void *userdata); + + Action^ GetAction(); + + void Callback(); +};