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; |
40 typedef struct UiListSelection UiListSelection; |
|
41 typedef struct UiListDnd UiListDnd; |
41 |
42 |
42 typedef struct UiListArgs UiListArgs; |
43 typedef struct UiListArgs UiListArgs; |
43 typedef struct UiPathBarArgs UiPathBarArgs; |
44 typedef struct UiPathBarArgs UiPathBarArgs; |
44 |
45 |
45 typedef enum UiModelType { |
46 typedef enum UiModelType { |
72 * first argument is the pointer returned by UiList->get or UiTree->get |
73 * first argument is the pointer returned by UiList->get or UiTree->get |
73 * second argument is the column index |
74 * second argument is the column index |
74 * TODO: return |
75 * TODO: return |
75 */ |
76 */ |
76 void*(*getvalue)(void*, int); |
77 void*(*getvalue)(void*, int); |
77 |
|
78 UiBool(*candrop)(UiEvent*, UiSelection*, UiList*, int); |
|
79 void(*drop)(UiEvent*, UiSelection*, UiList*, int); |
|
80 UiBool(*candrag)(UiEvent*, UiList*, int); |
|
81 void(*data_get)(UiEvent*, UiSelection*, UiList*, int); |
|
82 void(*data_delete)(UiEvent*, UiList*, int); |
|
83 }; |
78 }; |
84 |
79 |
85 struct UiListCallbacks { |
80 struct UiListCallbacks { |
86 /* |
81 /* |
87 * selection callback |
82 * selection callback |