diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-11 04:44:25 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-11 04:44:25 +0800 |
commit | 484c8193e1ae11a967e002b132dd04fa8b4e460d (patch) | |
tree | 7f7dca2ac352b4c8ab0cc5b1b372bc356158fef4 /widgets/table/e-cell.h | |
parent | d74fe8f60dfecbe1ceaae89f8dad3679907d5738 (diff) | |
download | gsoc2013-evolution-484c8193e1ae11a967e002b132dd04fa8b4e460d.tar.gz gsoc2013-evolution-484c8193e1ae11a967e002b132dd04fa8b4e460d.tar.zst gsoc2013-evolution-484c8193e1ae11a967e002b132dd04fa8b4e460d.zip |
Implement these functions as pass through to the child cell.
2001-10-10 Christopher James Lahey <clahey@ximian.com>
* e-cell-popup.c (ecp_get_bg_color), e-cell-tree.c
(ect_get_bg_color): Implement these functions as pass through to
the child cell.
* e-cell-text.c, e-cell-text.h (ect_get_bg_color): Implemented
this using a bg_color_column which can be set through the argument
of the same string.
* e-cell.c, e-cell.h (e_cell_get_bg_color): Added this function to
allow background color to change by cell.
* e-table-item.c (eti_get_cell_background_color): Call
e_cell_get_bg_color to allow background color to change by cell.
svn path=/trunk/; revision=13566
Diffstat (limited to 'widgets/table/e-cell.h')
-rw-r--r-- | widgets/table/e-cell.h | 104 |
1 files changed, 78 insertions, 26 deletions
diff --git a/widgets/table/e-cell.h b/widgets/table/e-cell.h index b9927114bb..1d89544440 100644 --- a/widgets/table/e-cell.h +++ b/widgets/table/e-cell.h @@ -79,34 +79,86 @@ typedef struct { int model_col, int view_col, int row, gdouble width); int (*max_width) (ECellView *ecell_view, int model_col, int view_col); void (*show_tooltip) (ECellView *ecell_view, int model_col, int view_col, int row, int col_width, ETableTooltip *tooltip); + gchar *(*get_bg_color) (ECellView *ecell_view, int row); } ECellClass; -GtkType e_cell_get_type (void); -ECellView *e_cell_new_view (ECell *ecell, ETableModel *table_model, void *e_table_item_view); -void e_cell_kill_view (ECellView *ecell_view); - -gint e_cell_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row, ECellFlags flags, ECellActions *actions); - -void e_cell_realize (ECellView *ecell_view); -void e_cell_unrealize (ECellView *ecell_view); - -void e_cell_draw (ECellView *ecell_view, GdkDrawable *drawable, - 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, - double width, double height); -gdouble e_cell_print_height (ECellView *ecell_view, GnomePrintContext *context, - int model_col, int view_col, int row, gdouble width); -int e_cell_max_width (ECellView *ecell_view, int model_col, int view_col); -void e_cell_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row, int col_width, ETableTooltip *tooltip); -void e_cell_focus (ECellView *ecell_view, int model_col, int view_col, int row, - int x1, int y1, int x2, int y2); -void e_cell_unfocus (ECellView *ecell_view); -int e_cell_height (ECellView *ecell_view, int model_col, int view_col, int row); - -void *e_cell_enter_edit (ECellView *ecell_view, int model_col, int view_col, int row); -void e_cell_leave_edit (ECellView *ecell_view, int model_col, int view_col, int row, void *edit_context); + +GtkType e_cell_get_type (void); + +/* View creation methods. */ +ECellView *e_cell_new_view (ECell *ecell, + ETableModel *table_model, + void *e_table_item_view); +void e_cell_kill_view (ECellView *ecell_view); + +/* Cell View methods. */ +gint e_cell_event (ECellView *ecell_view, + GdkEvent *event, + int model_col, + int view_col, + int row, + ECellFlags flags, + ECellActions *actions); +void e_cell_realize (ECellView *ecell_view); +void e_cell_unrealize (ECellView *ecell_view); +void e_cell_draw (ECellView *ecell_view, + GdkDrawable *drawable, + 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, + double width, + double height); +gdouble e_cell_print_height (ECellView *ecell_view, + GnomePrintContext *context, + int model_col, + int view_col, + int row, + gdouble width); +int e_cell_max_width (ECellView *ecell_view, + int model_col, + int view_col); +void e_cell_show_tooltip (ECellView *ecell_view, + int model_col, + int view_col, + int row, + int col_width, + ETableTooltip *tooltip); +gchar *e_cell_get_bg_color (ECellView *ecell_view, + int row); + +void e_cell_focus (ECellView *ecell_view, + int model_col, + int view_col, + int row, + int x1, + int y1, + int x2, + int y2); +void e_cell_unfocus (ECellView *ecell_view); +int e_cell_height (ECellView *ecell_view, + int model_col, + int view_col, + int row); + +void *e_cell_enter_edit (ECellView *ecell_view, + int model_col, + int view_col, + int row); +void e_cell_leave_edit (ECellView *ecell_view, + int model_col, + int view_col, + int row, + void *edit_context); END_GNOME_DECLS |