| 98 } |
98 } |
| 99 |
99 |
| 100 /* --------------------------- UiList --------------------------- */ |
100 /* --------------------------- UiList --------------------------- */ |
| 101 |
101 |
| 102 void uic_ucx_list_init(UiContext *ctx, UiList *list, void *unused) { |
102 void uic_ucx_list_init(UiContext *ctx, UiList *list, void *unused) { |
| 103 list->data = cxArrayListCreate(ctx->mp->allocator, NULL, CX_STORE_POINTERS, 32); |
103 list->data = cxArrayListCreate(ctx->mp->allocator, CX_STORE_POINTERS, 32); |
| 104 list->first = ui_list_first; |
104 list->first = ui_list_first; |
| 105 list->next = ui_list_next; |
105 list->next = ui_list_next; |
| 106 list->get = ui_list_get; |
106 list->get = ui_list_get; |
| 107 list->count = ui_list_count; |
107 list->count = ui_list_count; |
| 108 } |
108 } |
| 215 info->ctx = ctx; |
215 info->ctx = ctx; |
| 216 |
216 |
| 217 va_list ap; |
217 va_list ap; |
| 218 va_start(ap, ctx); |
218 va_start(ap, ctx); |
| 219 |
219 |
| 220 CxList *cols = cxArrayListCreate(cxDefaultAllocator, NULL, sizeof(UiColumn), 32); |
220 CxList *cols = cxArrayListCreate(cxDefaultAllocator, sizeof(UiColumn), 32); |
| 221 int type; |
221 int type; |
| 222 while((type = va_arg(ap, int)) != -1) { |
222 while((type = va_arg(ap, int)) != -1) { |
| 223 char *name = va_arg(ap, char*); |
223 char *name = va_arg(ap, char*); |
| 224 |
224 |
| 225 UiColumn column; |
225 UiColumn column; |