| 59 #define UI_LABEL_ARGS(buf, args) \ |
59 #define UI_LABEL_ARGS(buf, args) \ |
| 60 if(args->label) ui_argstr_add_str(buf, "label", args->label); \ |
60 if(args->label) ui_argstr_add_str(buf, "label", args->label); \ |
| 61 if(args->icon) ui_argstr_add_str(buf, "icon", args->icon); \ |
61 if(args->icon) ui_argstr_add_str(buf, "icon", args->icon); \ |
| 62 if(args->tooltip) ui_argstr_add_str(buf, "tooltip", args->tooltip) |
62 if(args->tooltip) ui_argstr_add_str(buf, "tooltip", args->tooltip) |
| 63 |
63 |
| |
64 #define UI_SPACING_ARGS(buf, args) \ |
| |
65 if(args->spacing != 0) ui_argstr_add_int(buf, "spacing", args->spacing); \ |
| |
66 if(args->columnspacing != 0) ui_argstr_add_int(buf, "columnspacing", args->columnspacing); \ |
| |
67 if(args->rowspacing != 0) ui_argstr_add_int(buf, "rowspacing", args->rowspacing) |
| 64 |
68 |
| 65 #ifdef __cplusplus |
69 #ifdef __cplusplus |
| 66 } |
70 } |
| 67 #endif |
71 #endif |
| 68 |
72 |