32 #include "toolkit.h" |
32 #include "toolkit.h" |
33 |
33 |
34 #ifdef __cplusplus |
34 #ifdef __cplusplus |
35 extern "C" { |
35 extern "C" { |
36 #endif |
36 #endif |
37 |
37 |
|
38 #define UI_CTN(obj, ctn) for(ctn;ui_container_finish(obj);ui_container_begin_close(obj)) |
|
39 #define UI_VBOX(obj) for(ui_vbox(obj);ui_container_finish(obj);ui_container_begin_close(obj)) |
|
40 #define UI_HBOX(obj) for(ui_hbox(obj);ui_container_finish(obj);ui_container_begin_close(obj)) |
|
41 #define UI_VBOX_SP(obj, margin, spacing) for(ui_vbox_sp(obj,margin,spacing);ui_container_finish(obj);ui_container_begin_close(obj)) |
|
42 #define UI_HBOX_SP(obj, margin, spacing) for(ui_hbox_sp(obj,margin,spacing);ui_container_finish(obj);ui_container_begin_close(obj)) |
|
43 #define UI_GRID(obj) for(ui_grid(obj);ui_container_finish(obj);ui_container_begin_close(obj)) |
|
44 #define UI_GRID_SP(obj, margin, columnspacing, rowspacing) for(ui_grid_sp(obj,margin,columnspacing,rowspacing);ui_container_finish(obj);ui_container_begin_close(obj)) |
|
45 |
38 void ui_end(UiObject *obj); |
46 void ui_end(UiObject *obj); |
39 |
47 |
40 UIWIDGET ui_vbox(UiObject *obj); |
48 UIWIDGET ui_vbox(UiObject *obj); |
41 UIWIDGET ui_hbox(UiObject *obj); |
49 UIWIDGET ui_hbox(UiObject *obj); |
42 UIWIDGET ui_vbox_sp(UiObject *obj, int margin, int spacing); |
50 UIWIDGET ui_vbox_sp(UiObject *obj, int margin, int spacing); |