ui/wpf/UIwrapper/UIwrapper/container.cpp

changeset 84
a56c2baa9429
child 85
91f45354d1e2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/wpf/UIwrapper/UIwrapper/container.cpp	Sun Feb 01 10:35:07 2015 +0100
@@ -0,0 +1,22 @@
+
+
+#include "stdafx.h"
+#include <stdio.h>
+
+#include "container.h"
+
+#using "UIcore.dll"
+
+UI_EXPORT void* __stdcall UIvbox(gcroot<UI::Container^> *parent) {
+	UI::BoxContainer ^vbox = UI::BoxContainer::CreateBoxContainer(*parent, UI::BoxOrientation::VERTICAL);
+	gcroot<UI::BoxContainer^> *container = new gcroot<UI::BoxContainer^>();
+	*container = vbox;
+	return container;
+}
+
+UI_EXPORT void* __stdcall UIhbox(gcroot<UI::Container^> *parent) {
+	UI::BoxContainer ^hbox = UI::BoxContainer::CreateBoxContainer(*parent, UI::BoxOrientation::HORIZONTAL);
+	gcroot<UI::BoxContainer^> *container = new gcroot<UI::BoxContainer^>();
+	*container = hbox;
+	return container;
+}

mercurial