ui/wpf/UIwrapper/UIwrapper/toolkit.h

changeset 81
5eb765a7a793
parent 78
135920fe441b
child 82
0cdb8089a29f
equal deleted inserted replaced
80:40be5c189e2e 81:5eb765a7a793
8 using namespace System::Windows; 8 using namespace System::Windows;
9 using namespace System::Windows::Controls; 9 using namespace System::Windows::Controls;
10 10
11 #define UI_EXPORT extern "C" __declspec(dllexport) 11 #define UI_EXPORT extern "C" __declspec(dllexport)
12 12
13 extern "C" typedef void(*UIcallback)(void*, void*);
14
13 void* ObjectToPtr(Object ^obj); 15 void* ObjectToPtr(Object ^obj);
16
17 public ref class EventWrapper {
18 UIcallback callback = NULL;
19 void *userdata = NULL;
20 Action ^action;
21
22 public:
23 EventWrapper(UIcallback callback, void *userdata);
24
25 Action^ GetAction();
26
27 void Callback();
28 };

mercurial