diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-25 03:06:54 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-25 03:06:54 +0800 |
commit | 695baf618d363f760ec81d109c6e6185e510b1e7 (patch) | |
tree | 40d7700b26e6041ac8c8ef7e40cc15fe25ba43c0 /widgets/table/e-cell.h | |
parent | 483c3d3ffc0addb346611c0a544f214784e349b1 (diff) | |
download | gsoc2013-evolution-695baf618d363f760ec81d109c6e6185e510b1e7.tar.gz gsoc2013-evolution-695baf618d363f760ec81d109c6e6185e510b1e7.tar.zst gsoc2013-evolution-695baf618d363f760ec81d109c6e6185e510b1e7.zip |
Added infrastructure for setting the justification of columns. Still need
2000-08-24 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-cell.c,
e-cell.h, e-table-col.c, e-table-col.h, e-table-item.c: Added
infrastructure for setting the justification of columns. Still
need to change the cells to support it and need to add user
interface to change the justification.
svn path=/trunk/; revision=5010
Diffstat (limited to 'widgets/table/e-cell.h')
-rw-r--r-- | widgets/table/e-cell.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/widgets/table/e-cell.h b/widgets/table/e-cell.h index 40b257f264..3b12aab1e3 100644 --- a/widgets/table/e-cell.h +++ b/widgets/table/e-cell.h @@ -14,6 +14,20 @@ typedef struct _ECell ECell; typedef struct _ECellView ECellView; +typedef enum _ECellFlags ECellFlags; + +enum _ECellFlags { + E_CELL_SELECTED = 1 << 0, + + E_CELL_JUSTIFICATION = 3 << 1, + E_CELL_JUSTIFY_CENTER = 0 << 1, + E_CELL_JUSTIFY_LEFT = 1 << 1, + E_CELL_JUSTIFY_RIGHT = 2 << 1, + E_CELL_JUSTIFY_FILL = 3 << 1, + + E_CELL_ALIGN_LEFT = 1 << 1, + E_CELL_ALIGN_RIGHT = 1 << 2, +}; struct _ECell { GtkObject object; @@ -41,7 +55,7 @@ typedef struct { void (*draw) (ECellView *ecell_view, GdkDrawable *drawable, int model_col, int view_col, int row, - gboolean selected, int x1, int y1, int x2, int y2); + ECellFlags flags, int x1, int y1, int x2, int y2); gint (*event) (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row); void (*focus) (ECellView *ecell_view, int model_col, int view_col, int row, int x1, int y1, int x2, int y2); @@ -67,7 +81,7 @@ void e_cell_realize (ECellView *ecell_view); void e_cell_unrealize (ECellView *ecell_view); void e_cell_draw (ECellView *ecell_view, GdkDrawable *dr, - int model_col, int view_col, int row, gboolean selected, + int model_col, int view_col, int row, ECellFlags flags, int x1, int y1, int x2, int y2); void e_cell_print (ECellView *ecell_view, GnomePrintContext *context, int model_col, int view_col, int row, |