ui/gtk/list.h

changeset 110
c00e968d018b
parent 109
c3dfcb8f0be7
child 112
c3f2f16fa4b8
--- a/ui/gtk/list.h	Sun Aug 24 15:24:16 2025 +0200
+++ b/ui/gtk/list.h	Sat Oct 04 14:52:59 2025 +0200
@@ -40,6 +40,13 @@
     
 typedef struct UiColData UiColData;
 
+#if GTK_CHECK_VERSION(4, 10, 0)
+typedef struct UiRowItems {
+    int bound;
+    GtkListItem *items[];
+} UiRowItems;
+#endif
+
 typedef struct UiListView {
     UiObject          *obj;
     GtkWidget         *widget;
@@ -47,12 +54,22 @@
     UiModel           *model;
     ui_getvaluefunc2  getvalue;
     void              *getvaluedata;
+    ui_getstylefunc   getstyle;
+    void              *getstyledata;
     char              **elements;
     size_t            nelm;
+    int               current_row;
+    UiTextStyle       row_style;
+    UiBool            apply_row_style;
 #if GTK_CHECK_VERSION(4, 10, 0)
+    CxMap             *bound_rows;
     GListStore        *liststore;
     GtkSelectionModel *selectionmodel;
     UiColData         *columns;
+    int               numcolumns;
+    PangoAttrList     *current_row_attributes;
+#else
+    int               style_offset;
 #endif
     ui_callback       onactivate;
     void              *onactivatedata;
@@ -64,6 +81,8 @@
     void              *ondragcompletedata;
     ui_callback       ondrop;
     void              *ondropdata;
+    ui_list_savefunc  onsave;
+    void              *onsavedata;
     UiListSelection   selection;
     
 } UiListView;

mercurial