ui/ui/tree.h

changeset 778
85b6cef7fcba
parent 777
622efebfab37
child 779
b84cbe57e0bd
--- a/ui/ui/tree.h	Sun Sep 28 20:09:08 2025 +0200
+++ b/ui/ui/tree.h	Mon Sep 29 20:16:07 2025 +0200
@@ -55,6 +55,13 @@
     UI_STRING_EDITABLE
 } UiModelType;
 
+typedef union UiCellValue {
+    const char *string;
+    int64_t i;
+} UiCellValue;
+
+typedef UiBool (*ui_list_savefunc)(UiList *list, int row, int col, UiCellValue value, void *userdata);
+
 struct UiModel {
     /*
      * number of columns
@@ -135,6 +142,8 @@
     void* ondropdata;
     UiBool multiselection;
     UiMenuBuilder *contextmenu;
+    ui_list_savefunc onsave;
+    void *onsavedata;
     
     const int *groups;
 };

mercurial