ui/wpf/UIwrapper/UIwrapper/toolkit.h

Sun, 25 Jan 2015 15:01:04 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 25 Jan 2015 15:01:04 +0100
changeset 81
5eb765a7a793
parent 78
135920fe441b
child 82
0cdb8089a29f
permissions
-rw-r--r--

added menus (WPF)

// UIwrapper.h

#pragma once

using namespace System;
using namespace System::Runtime::InteropServices;
using namespace System::Threading;
using namespace System::Windows;
using namespace System::Windows::Controls;

#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();
};

mercurial