|
1 |
|
2 |
|
3 #include "stdafx.h" |
|
4 #include <stdio.h> |
|
5 |
|
6 #include "container.h" |
|
7 |
|
8 #using "UIcore.dll" |
|
9 |
|
10 UI_EXPORT void* __stdcall UIvbox(gcroot<UI::Container^> *parent) { |
|
11 UI::BoxContainer ^vbox = UI::BoxContainer::CreateBoxContainer(*parent, UI::BoxOrientation::VERTICAL); |
|
12 gcroot<UI::BoxContainer^> *container = new gcroot<UI::BoxContainer^>(); |
|
13 *container = vbox; |
|
14 return container; |
|
15 } |
|
16 |
|
17 UI_EXPORT void* __stdcall UIhbox(gcroot<UI::Container^> *parent) { |
|
18 UI::BoxContainer ^hbox = UI::BoxContainer::CreateBoxContainer(*parent, UI::BoxOrientation::HORIZONTAL); |
|
19 gcroot<UI::BoxContainer^> *container = new gcroot<UI::BoxContainer^>(); |
|
20 *container = hbox; |
|
21 return container; |
|
22 } |