9#ifndef GP_WIDGET_TABLE_H
10#define GP_WIDGET_TABLE_H
12enum gp_widget_table_row_op {
21typedef struct gp_widget_table_cell {
23 gp_widget_tattr tattr;
24} gp_widget_table_cell;
49 int (*seek_row)(gp_widget *self,
int op,
unsigned int pos);
50 int (*get_cell)(gp_widget *self, gp_widget_table_cell *cell,
unsigned int col_idx);
51 void (*sort)(gp_widget *self,
int desc,
unsigned int col_idx);
76 unsigned int col_fill;
84 unsigned int min_size;
87typedef struct gp_widget_table {
89 unsigned int min_rows;
96 unsigned int selected_row;
97 unsigned int sorted_by_col;
104 unsigned int start_row;
105 unsigned int last_rows;
114 unsigned long row_idx;
125enum gp_widget_table_event_type {
127 GP_WIDGET_TABLE_TRIGGER,
129 GP_WIDGET_TABLE_SELECT,
132gp_widget *gp_widget_table_new(
unsigned int cols,
unsigned int min_rows,
136void gp_widget_table_sort_by(gp_widget *self,
int desc,
unsigned int col);
141void gp_widget_table_refresh(gp_widget *self);
149void gp_widget_table_off_set(gp_widget *self,
unsigned int off);
157void gp_widget_table_sel_set(gp_widget *self,
unsigned int row);