ui/gtk/list.h

changeset 110
c00e968d018b
parent 109
c3dfcb8f0be7
child 112
c3f2f16fa4b8
equal deleted inserted replaced
109:c3dfcb8f0be7 110:c00e968d018b
38 extern "C" { 38 extern "C" {
39 #endif 39 #endif
40 40
41 typedef struct UiColData UiColData; 41 typedef struct UiColData UiColData;
42 42
43 #if GTK_CHECK_VERSION(4, 10, 0)
44 typedef struct UiRowItems {
45 int bound;
46 GtkListItem *items[];
47 } UiRowItems;
48 #endif
49
43 typedef struct UiListView { 50 typedef struct UiListView {
44 UiObject *obj; 51 UiObject *obj;
45 GtkWidget *widget; 52 GtkWidget *widget;
46 UiVar *var; 53 UiVar *var;
47 UiModel *model; 54 UiModel *model;
48 ui_getvaluefunc2 getvalue; 55 ui_getvaluefunc2 getvalue;
49 void *getvaluedata; 56 void *getvaluedata;
57 ui_getstylefunc getstyle;
58 void *getstyledata;
50 char **elements; 59 char **elements;
51 size_t nelm; 60 size_t nelm;
52 #if GTK_CHECK_VERSION(4, 10, 0) 61 int current_row;
62 UiTextStyle row_style;
63 UiBool apply_row_style;
64 #if GTK_CHECK_VERSION(4, 10, 0)
65 CxMap *bound_rows;
53 GListStore *liststore; 66 GListStore *liststore;
54 GtkSelectionModel *selectionmodel; 67 GtkSelectionModel *selectionmodel;
55 UiColData *columns; 68 UiColData *columns;
69 int numcolumns;
70 PangoAttrList *current_row_attributes;
71 #else
72 int style_offset;
56 #endif 73 #endif
57 ui_callback onactivate; 74 ui_callback onactivate;
58 void *onactivatedata; 75 void *onactivatedata;
59 ui_callback onselection; 76 ui_callback onselection;
60 void *onselectiondata; 77 void *onselectiondata;
62 void *ondragstartdata; 79 void *ondragstartdata;
63 ui_callback ondragcomplete; 80 ui_callback ondragcomplete;
64 void *ondragcompletedata; 81 void *ondragcompletedata;
65 ui_callback ondrop; 82 ui_callback ondrop;
66 void *ondropdata; 83 void *ondropdata;
84 ui_list_savefunc onsave;
85 void *onsavedata;
67 UiListSelection selection; 86 UiListSelection selection;
68 87
69 } UiListView; 88 } UiListView;
70 89
71 struct UiColData { 90 struct UiColData {

mercurial