aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table-col.h
blob: 215df07797295faa7c6b08f0627d7a1acffdf1d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _E_TABLE_COL_H_
#define _E_TABLE_COL_H_

typedef struct _ETableCol ETableCol;

/*
 * Rendering function for the column header
 */
typedef struct ERenderContext ERenderContext;

typedef void (*ETableColRenderFn)(ERenderContext *ctxt);

/*
 * Information about a single column
 */
struct _ETableCol {
    char              *id;
    short              width;
    short              min_width;
    short              x;
    ETableColRenderFn  render;
    GCompareFunc       compare;
    void              *render_data;
    unsigned int       selected:1;
    unsigned int       resizeable:1;
};

ETableCol *e_table_col_new (const char *id, int width, int min_width,
                ETableColRenderFn render, void *render_data,
                GCompareFunc compare, gboolean resizable);
    

#endif /* _E_TABLE_COL_H_ */