aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table-col.h
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-11-12 16:41:20 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-12 16:41:20 +0800
commit43fd06f8ec06257cbd135b03c5e203dfcd134fd4 (patch)
tree2053caff6b2865f07df3fd1c7793024e79686fae /widgets/e-table-col.h
parent15b4b77c8ae5dabda4e3c4eb30e4345d5effdfb1 (diff)
downloadgsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.tar
gsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.tar.gz
gsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.tar.bz2
gsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.tar.lz
gsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.tar.xz
gsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.tar.zst
gsoc2013-evolution-43fd06f8ec06257cbd135b03c5e203dfcd134fd4.zip
More table work
svn path=/trunk/; revision=1383
Diffstat (limited to 'widgets/e-table-col.h')
-rw-r--r--widgets/e-table-col.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/widgets/e-table-col.h b/widgets/e-table-col.h
new file mode 100644
index 0000000000..215df07797
--- /dev/null
+++ b/widgets/e-table-col.h
@@ -0,0 +1,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_ */