--- a/ui/ui/tree.h Thu Oct 19 21:19:19 2023 +0200 +++ b/ui/ui/tree.h Fri Oct 20 16:34:33 2023 +0200 @@ -38,6 +38,7 @@ typedef struct UiModel UiModel; typedef struct UiListCallbacks UiListCallbacks; typedef struct UiListSelection UiListSelection; +typedef struct UiListDnd UiListDnd; typedef struct UiListArgs UiListArgs; typedef struct UiPathBarArgs UiPathBarArgs; @@ -74,12 +75,6 @@ * TODO: return */ void*(*getvalue)(void*, int); - - UiBool(*candrop)(UiEvent*, UiSelection*, UiList*, int); - void(*drop)(UiEvent*, UiSelection*, UiList*, int); - UiBool(*candrag)(UiEvent*, UiList*, int); - void(*data_get)(UiEvent*, UiSelection*, UiList*, int); - void(*data_delete)(UiEvent*, UiList*, int); }; struct UiListCallbacks { @@ -111,9 +106,9 @@ int *rows; }; -struct UiTableDndEvent { +struct UiListDnd { UiListSelection selection; - void* dnd; + UiDnD *dnd; }; struct UiListArgs { @@ -138,8 +133,6 @@ ui_callback ondrop; void* ondropsdata; UiBool multiselection; - UiBool enabledrag; - UiBool enabledrop; }; struct UiPathBarArgs {