ui/wpf/UIwrapper/UIwrapper/graphics.h

changeset 0
804d8803eade
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/wpf/UIwrapper/UIwrapper/graphics.h	Wed Dec 09 11:32:01 2020 +0100
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "toolkit.h"
+
+typedef void(*UIdrawfunc)(void *gc, void *event, int width, int height);
+
+public ref class DrawEventWrapper {
+public:
+	UIdrawfunc callback = NULL;
+	void *eventdata = NULL;
+	void *gc;
+	Action<int,int> ^action;
+
+	DrawEventWrapper(void *gc, UIdrawfunc callback, void *eventdata);
+
+	void Callback(int width, int height);
+};

mercurial