ui/ui/tree.h

branch
newapi
changeset 224
88bc21b19213
parent 223
8d7ca1b320e2
child 225
097f45f9c1fa
--- 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 {

mercurial