137 void* ui_list_get(UiList *list, int i) { |
137 void* ui_list_get(UiList *list, int i) { |
138 return cxListAt(list->data, i); |
138 return cxListAt(list->data, i); |
139 } |
139 } |
140 |
140 |
141 int ui_list_count(UiList *list) { |
141 int ui_list_count(UiList *list) { |
142 return ((CxList*)list->data)->size; |
142 return cxListSize(list->data); |
143 } |
143 } |
144 |
144 |
145 void ui_list_append(UiList *list, void *data) { |
145 void ui_list_append(UiList *list, void *data) { |
146 cxListAdd(list->data, data); |
146 cxListAdd(list->data, data); |
147 } |
147 } |
190 cxListAdd(cols, &column); |
190 cxListAdd(cols, &column); |
191 } |
191 } |
192 |
192 |
193 va_end(ap); |
193 va_end(ap); |
194 |
194 |
195 size_t len = cols->size; |
195 size_t len = cxListSize(cols); |
196 info->columns = len; |
196 info->columns = len; |
197 info->types = ui_calloc(ctx, len, sizeof(UiModelType)); |
197 info->types = ui_calloc(ctx, len, sizeof(UiModelType)); |
198 info->titles = ui_calloc(ctx, len, sizeof(char*)); |
198 info->titles = ui_calloc(ctx, len, sizeof(char*)); |
199 |
199 |
200 int i = 0; |
200 int i = 0; |