aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell.h
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-11-25 16:02:13 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-25 16:02:13 +0800
commit385ccbd512c4c43305dee900f86d0f51f94b1200 (patch)
tree81920b9b2281f21a55ccd417895d0bd3a271cff7 /widgets/table/e-cell.h
parent858500c40a2bf4485e75e1a056d0310b92625929 (diff)
downloadgsoc2013-evolution-385ccbd512c4c43305dee900f86d0f51f94b1200.tar.gz
gsoc2013-evolution-385ccbd512c4c43305dee900f86d0f51f94b1200.tar.zst
gsoc2013-evolution-385ccbd512c4c43305dee900f86d0f51f94b1200.zip
Realize cells.
1999-11-25 Miguel de Icaza <miguel@gnu.org> * e-table-header-item.c (ethi_realize): Realize cells. * e-table-item.c (eti_header_dim_changed): redraw before and after. * e-table-header-item.c (ethi_event): Add continuous resizing. 1999-11-24 Miguel de Icaza <miguel@gnu.org> * e-table-subset.h, e-table-subset.c: New files, used to implement subset tables. * e-table-sorted.h, e-table-sorted.c: Now they derive from e-table-subset. * e-cell.c, e-cell.h: realize method now return per view instance data. svn path=/trunk/; revision=1434
Diffstat (limited to 'widgets/table/e-cell.h')
-rw-r--r--widgets/table/e-cell.h38
1 files changed, 31 insertions, 7 deletions
diff --git a/widgets/table/e-cell.h b/widgets/table/e-cell.h
index 8395d3e290..0cafe0fff4 100644
--- a/widgets/table/e-cell.h
+++ b/widgets/table/e-cell.h
@@ -2,6 +2,7 @@
#define _E_CELL_H_
#include <libgnomeui/gnome-canvas.h>
+#include "e-table-model.h"
#define E_CELL_TYPE (e_cell_get_type ())
#define E_CELL(o) (GTK_CHECK_CAST ((o), E_CELL_TYPE, ECell))
@@ -9,19 +10,42 @@
#define E_IS_CELL(o) (GTK_CHECK_TYPE ((o), E_CELL_TYPE))
#define E_IS_CELL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_TYPE))
-typedef struct {
+typedef struct _ECell ECell;
+typedef struct _ECellView ECellView;
+
+struct _ECell {
GtkObject object;
-} ECell;
+
+ ETableModel *table_model;
+};
+
+struct _ECellView {
+ ECell *ecell;
+ gint focus_x1, focus_y1, focus_x2, focus_y2;
+ gint focus_col, focus_row;
+};
+
+#define E_CELL_IS_FOCUSED(ecell_view) (ecell_view->focus_x1 != -1)
typedef struct {
GtkObjectClass parent_class;
- void (*realize) (ECell *, GnomeCanvas *canvas);
- void (*unrealize) (ECell *);
- void (*draw) (ECell *ecell, int x1, int y1, int x2, int y2);
- gint (*event) (ECell *ecell, GdkEvent *event);
+ ECellView *(*realize) (ECell *, GnomeCanvas *canvas);
+ void (*unrealize) (ECellView *);
+ void (*draw) (ECellView *ecell_view, GdkDrawable *drawable,
+ int col, int row, int x1, int y1, int x2, int y2);
+ gint (*event) (ECellView *ecell_view, GdkEvent *event, int col, int row);
+ void (*focus) (ECellView *ecell, int col, int row, int x1, int y1, int x2, int y2);
+ void (*unfocus) (ECellView *ecell);
} ECellClass;
-GtkType e_cell_get_type (void);
+GtkType e_cell_get_type (void);
+void e_cell_event (ECellView *ecell_view, GdkEvent *event, int col, int row);
+ECellView *e_cell_realize (ECell *ecell, GnomeCanvas *canvas);
+void e_cell_unrealize (ECellView *ecell);
+void e_cell_draw (ECellView *ecell, GdkDrawable *dr,
+ int col, int row, int x1, int y1, int x2, int y2);
+void e_cell_focus (ECellView *ecell, int col, int row, int x1, int y1, int x2, int y2);
+void e_cell_unfocus (ECellView *ecell);
#endif /* _E_CELL_H_ */