| 234 |
234 |
| 235 int* ui_list_selection_get_rows(UiListSelection *sel) { |
235 int* ui_list_selection_get_rows(UiListSelection *sel) { |
| 236 return sel->rows; |
236 return sel->rows; |
| 237 } |
237 } |
| 238 |
238 |
| |
239 UIEXPORT void ui_list_set_selected_indices(UiList *list, int *indices, int num) { |
| |
240 UiListSelection sel; |
| |
241 sel.rows = indices; |
| |
242 sel.count = num; |
| |
243 if(list->setselection) { |
| |
244 list->setselection(list, sel); |
| |
245 } |
| |
246 } |
| |
247 |
| 239 void ui_list_selection_free(UiListSelection *sel) { |
248 void ui_list_selection_free(UiListSelection *sel) { |
| 240 ui_listselection_free(*sel); |
249 ui_listselection_free(*sel); |
| 241 free(sel); |
250 free(sel); |
| 242 } |
251 } |
| 243 |
252 |