G_BEGIN_DECLS
-
-typedef enum
-{
- GTK_SHEET_FOREGROUND,
- GTK_SHEET_BACKGROUND,
- GTK_SHEET_FONT,
- GTK_SHEET_JUSTIFICATION,
- GTK_SHEET_BORDER,
- GTK_SHEET_BORDER_COLOR,
- GTK_SHEET_IS_EDITABLE,
- GTK_SHEET_IS_VISIBLE
-} GtkSheetAttrType;
-
/* sheet->state */
-
enum
{
GTK_SHEET_NORMAL,
#define GTK_IS_SHEET(obj) GTK_CHECK_TYPE (obj, gtk_sheet_get_type ())
-
-
typedef struct _GtkSheetClass GtkSheetClass;
typedef struct _GtkSheetCellAttr GtkSheetCellAttr;
typedef struct _GtkSheetCell GtkSheetCell;
/* selected range */
GtkSheetRange range;
- /*the scrolling window and it's height and width to
+ /* the scrolling window and its height and width to
* make things a little speedier */
GdkWindow *sheet_window;
- guint sheet_window_width;
- guint sheet_window_height;
-
- /* sheet backing pixmap */
- GdkPixmap *pixmap;
/* border shadow style */
GtkShadowType shadow_type;
gint row, gint column,
gint *new_row, gint *new_column);
- gboolean (*deactivate) (GtkSheet *sheet,
- gint row, gint column);
-
gboolean (*activate) (GtkSheet *sheet,
gint row, gint column);
/* obvious */
void gtk_sheet_unselect_range (GtkSheet *sheet);
-/* set active cell where the entry will be displayed
- * returns FALSE if current cell can't be deactivated or
- * requested cell can't be activated */
-gboolean gtk_sheet_set_active_cell (GtkSheet *sheet,
- gint row, gint column);
+/* set active cell where the entry will be displayed */
+void gtk_sheet_set_active_cell (GtkSheet *sheet,
+ gint row, gint column);
/* Sets *ROW and *COLUMN to be the coordinates of the active cell.
ROW and/or COLUMN may be null if the caller is not interested in their
/* get cell contents */
gchar *gtk_sheet_cell_get_text (const GtkSheet *sheet, gint row, gint col);
-/* clear cell contents */
-void gtk_sheet_cell_clear (GtkSheet *sheet, gint row, gint col);
-
-/* clear range contents. If range==NULL the whole sheet will be cleared */
-void gtk_sheet_range_clear (GtkSheet *sheet,
- const GtkSheetRange *range);
-
/* get cell attributes of the given cell */
/* TRUE means that the cell is currently allocated */
gint row, gint col,
GtkSheetCellAttr *attributes);
-void gtk_sheet_set_model (GtkSheet *sheet,
+void gtk_sheet_set_model (GtkSheet *sheet,
GSheetModel *model);
GSheetModel * gtk_sheet_get_model (const GtkSheet *sheet);