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 }; |