ui/ui/tree.h

changeset 26
40d6af793c1a
parent 13
5a8762fcfecc
equal deleted inserted replaced
25:915131bc3233 26:40d6af793c1a
35 extern "C" { 35 extern "C" {
36 #endif 36 #endif
37 37
38 typedef struct UiModel UiModel; 38 typedef struct UiModel UiModel;
39 typedef struct UiListCallbacks UiListCallbacks; 39 typedef struct UiListCallbacks UiListCallbacks;
40 typedef struct UiListSelection UiListSelection;
41 typedef struct UiListDnd UiListDnd; 40 typedef struct UiListDnd UiListDnd;
42 41
43 typedef struct UiListArgs UiListArgs; 42 typedef struct UiListArgs UiListArgs;
44 43
45 typedef enum UiModelType { 44 typedef enum UiModelType {
93 * userdata for all callbacks 92 * userdata for all callbacks
94 */ 93 */
95 void *userdata; 94 void *userdata;
96 }; 95 };
97 96
98 struct UiListSelection {
99 /*
100 * number of selected items
101 */
102 int count;
103
104 /*
105 * indices of selected rows
106 */
107 int *rows;
108 };
109
110 struct UiListDnd { 97 struct UiListDnd {
111 UiListSelection selection; 98 UiListSelection selection;
112 UiDnD *dnd; 99 UiDnD *dnd;
113 }; 100 };
114 101
148 UIEXPORT UIWIDGET ui_listview_create(UiObject* obj, UiListArgs args); 135 UIEXPORT UIWIDGET ui_listview_create(UiObject* obj, UiListArgs args);
149 UIEXPORT UIWIDGET ui_table_create(UiObject* obj, UiListArgs args); 136 UIEXPORT UIWIDGET ui_table_create(UiObject* obj, UiListArgs args);
150 UIEXPORT UIWIDGET ui_combobox_create(UiObject* obj, UiListArgs args); 137 UIEXPORT UIWIDGET ui_combobox_create(UiObject* obj, UiListArgs args);
151 UIEXPORT UIWIDGET ui_breadcrumbbar_create(UiObject* obj, UiListArgs args); 138 UIEXPORT UIWIDGET ui_breadcrumbbar_create(UiObject* obj, UiListArgs args);
152 139
153 140 void ui_table_dragsource_deprecated(UIWIDGET tablewidget, int actions, char *target0, ...);
154 void ui_table_dragsource(UIWIDGET tablewidget, int actions, char *target0, ...); 141 void ui_table_dragsource_a_deprecated(UIWIDGET tablewidget, int actions, char **targets, int nelm);
155 void ui_table_dragsource_a(UIWIDGET tablewidget, int actions, char **targets, int nelm); 142 void ui_table_dragdest_deprecated(UIWIDGET tablewidget, int actions, char *target0, ...);
156 void ui_table_dragdest(UIWIDGET tablewidget, int actions, char *target0, ...); 143 void ui_table_dragdest_a_deprecated(UIWIDGET tablewidget, int actions, char **targets, int nelm);
157 void ui_table_dragdest_a(UIWIDGET tablewidget, int actions, char **targets, int nelm);
158 144
159 145
160 #ifdef __cplusplus 146 #ifdef __cplusplus
161 } 147 }
162 #endif 148 #endif

mercurial