ui/gtk/list.h

branch
newapi
changeset 394
bedd499b640d
parent 360
681b930abe84
child 411
3e91b7aff6a1
--- a/ui/gtk/list.h	Tue Nov 26 15:53:57 2024 +0100
+++ b/ui/gtk/list.h	Wed Nov 27 13:28:21 2024 +0100
@@ -41,6 +41,13 @@
     GtkWidget   *widget;
     UiVar       *var;
     UiModel     *model;
+    ui_callback ondragstart;
+    void        *ondragstartdata;
+    ui_callback ondragcomplete;
+    void        *ondragcompletedata;
+    ui_callback ondrop;
+    void        *ondropdata;
+    
 } UiListView;
 
 typedef struct UiTreeEventData {
@@ -78,6 +85,9 @@
         UiTreeEventData *event);
 int ui_tree_path_list_index(GtkTreePath *path);
 
+void ui_listview_add_dnd(UiListView *listview, UiListArgs *args);
+void ui_listview_enable_drop(UiListView *listview, UiListArgs *args);
+
 UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata);
 GtkWidget* ui_create_combobox(UiObject *obj, UiModel *model, UiVar *var, ui_callback f, void *udata);
 void ui_combobox_change_event(GtkComboBox *widget, UiEventData *e);

mercurial