ui/gtk/list.h

changeset 749
0f052f6f532c
parent 745
a4ee36ff7147
child 772
fa8afa19b8b6
equal deleted inserted replaced
748:6c1fc70cd1c8 749:0f052f6f532c
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;
50 ui_getstylefunc getstyle; 57 ui_getstylefunc getstyle;
51 void *getstyledata; 58 void *getstyledata;
52 char **elements; 59 char **elements;
53 size_t nelm; 60 size_t nelm;
54 int current_row; 61 int current_row;
55 UiTextStyle row_style; 62 UiTextStyle row_style;
56 UiBool apply_row_style; 63 UiBool apply_row_style;
57 #if GTK_CHECK_VERSION(4, 10, 0) 64 #if GTK_CHECK_VERSION(4, 10, 0)
65 CxMap *bound_rows;
58 GListStore *liststore; 66 GListStore *liststore;
59 GtkSelectionModel *selectionmodel; 67 GtkSelectionModel *selectionmodel;
60 UiColData *columns; 68 UiColData *columns;
69 int numcolumns;
61 PangoAttrList *default_attributes; // TODO: remove 70 PangoAttrList *default_attributes; // TODO: remove
62 PangoAttrList *current_row_attributes; 71 PangoAttrList *current_row_attributes;
63 #else 72 #else
64 int style_offset; 73 int style_offset;
65 #endif 74 #endif

mercurial