ui/gtk/list.h

changeset 90
f501f0efc9a8
parent 60
ee4e4742391e
child 100
d2bd73d28ff1
--- a/ui/gtk/list.h	Tue Nov 26 11:38:10 2024 +0100
+++ b/ui/gtk/list.h	Wed Nov 27 13:27:30 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