ui/wpf/UIwrapper/UIwrapper/container.cpp

changeset 101
1c943d43fa81
parent 88
04c81be1c5a0
child 135
b9dc9cdfa23a
equal deleted inserted replaced
100:d276306d801f 101:1c943d43fa81
19 gcroot<UI::BoxContainer^> *container = new gcroot<UI::BoxContainer^>(); 19 gcroot<UI::BoxContainer^> *container = new gcroot<UI::BoxContainer^>();
20 *container = hbox; 20 *container = hbox;
21 return container; 21 return container;
22 } 22 }
23 23
24 UI_EXPORT void* __stdcall UIgrid(gcroot<UI::Container^> *parent, int margin, int columnspacing, int rowspacing) {
25 UI::GridContainer ^grid = UI::GridContainer::CreateGridContainer(*parent, margin, columnspacing, rowspacing);
26 gcroot<UI::GridContainer^> *container = new gcroot<UI::GridContainer^>();
27 *container = grid;
28 return container;
29 }
30
24 31
25 32
26 /* ------------------- layout functions ------------------- */ 33 /* ------------------- layout functions ------------------- */
27 34
28 UI_EXPORT void __stdcall UIlayout_fill(gcroot<UI::Container^> *container, int fill) { 35 UI_EXPORT void __stdcall UIlayout_fill(gcroot<UI::Container^> *container, int fill) {
29 UI::Container ^ct = *container; 36 UI::Container ^ct = *container;
30 ct->Layout->Fill = fill != 0; 37 ct->Layout->Fill = fill != 0;
31 } 38 }
39
40 UI_EXPORT void __stdcall UIlayout_hexpand(gcroot<UI::Container^> *container, int expand) {
41 UI::Container ^ct = *container;
42 ct->Layout->Hexpand = expand != 0;
43 }
44
45 UI_EXPORT void __stdcall UIlayout_vexpand(gcroot<UI::Container^> *container, int expand) {
46 UI::Container ^ct = *container;
47 ct->Layout->Vexpand = expand != 0;
48 }
49
50 UI_EXPORT void __stdcall UIlayout_newline(gcroot<UI::Container^> *container) {
51 UI::Container ^ct = *container;
52 ct->Layout->NewLine = true;
53 }
54

mercurial