X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=lib%2Fgtksheet%2Fgsheetmodel.h;h=97db2d1b85101b676cf773464889dddd6eea6d81;hb=126058e908535d8b69a3e9d9d38c757a7fa970b3;hp=39ab173f3593a3e4582b0e71ab0e7a4f7a858da0;hpb=1ce1429567835f83a712a8a76ab80db64360d742;p=pspp diff --git a/lib/gtksheet/gsheetmodel.h b/lib/gtksheet/gsheetmodel.h index 39ab173f35..97db2d1b85 100644 --- a/lib/gtksheet/gsheetmodel.h +++ b/lib/gtksheet/gsheetmodel.h @@ -20,7 +20,7 @@ #define __G_SHEET_MODEL_H__ -/* This file provides an abstract interface or the data displayed by the +/* This file provides an abstract interface or the data displayed by the GtkSheet widget */ #include @@ -37,11 +37,11 @@ G_BEGIN_DECLS typedef enum { - GTK_SHEET_LEFT_BORDER = 1 << 0, - GTK_SHEET_RIGHT_BORDER = 1 << 1, - GTK_SHEET_TOP_BORDER = 1 << 2, - GTK_SHEET_BOTTOM_BORDER = 1 << 3 -} GtkSheetBorderType ; + GTK_SHEET_LEFT_BORDER = 1 << 0, + GTK_SHEET_RIGHT_BORDER = 1 << 1, + GTK_SHEET_TOP_BORDER = 1 << 2, + GTK_SHEET_BOTTOM_BORDER = 1 << 3 +} GtkSheetBorderType ; typedef struct _GSheetModel GSheetModel; /* Dummy typedef */ @@ -75,7 +75,7 @@ struct _GSheetModelIface /* Signals */ void (* range_changed) (GSheetModel *sheet_model, - gint row0, gint col0, + gint row0, gint col0, gint rowi, gint coli); void (* rows_inserted) (GSheetModel *sheet_model, @@ -95,31 +95,31 @@ struct _GSheetModelIface /* Virtual Table */ - gchar * (* get_string) (const GSheetModel *sheet_model, + gchar * (* get_string) (const GSheetModel *sheet_model, gint row, gint column); - gboolean (* set_string) (GSheetModel *sheet_model, + gboolean (* set_string) (GSheetModel *sheet_model, const gchar *s, gint row, gint column); - gboolean (* clear_datum) (GSheetModel *sheet_model, + gboolean (* clear_datum) (GSheetModel *sheet_model, gint row, gint column); gboolean (* is_visible) (const GSheetModel *sheet_model, gint row, gint column); gboolean (* is_editable) (const GSheetModel *sheet_model, gint row, gint column); - const GdkColor * (* get_foreground) (const GSheetModel *sheet_model, + const GdkColor * (* get_foreground) (const GSheetModel *sheet_model, gint row, gint column); - const GdkColor * (* get_background) (const GSheetModel *sheet_model, + const GdkColor * (* get_background) (const GSheetModel *sheet_model, gint row, gint column); - const GtkJustification * (* get_justification) (const GSheetModel *sheet_model, + const GtkJustification * (* get_justification) (const GSheetModel *sheet_model, gint row, gint column); - const PangoFontDescription * (* get_font_desc) (const GSheetModel *sheet_model, + const PangoFontDescription * (* get_font_desc) (const GSheetModel *sheet_model, gint row, gint column); - const GtkSheetCellBorder * (* get_cell_border) (const GSheetModel *sheet_model, + const GtkSheetCellBorder * (* get_cell_border) (const GSheetModel *sheet_model, gint row, gint column); @@ -134,14 +134,14 @@ struct _GSheetModelIface GType g_sheet_model_get_type (void) G_GNUC_CONST; -inline gchar * g_sheet_model_get_string (const GSheetModel *sheet_model, +inline gchar * g_sheet_model_get_string (const GSheetModel *sheet_model, gint row, gint column); -inline gboolean g_sheet_model_set_string (GSheetModel *sheet_model, - const gchar *s, +inline gboolean g_sheet_model_set_string (GSheetModel *sheet_model, + const gchar *s, gint row, gint column); -inline gboolean g_sheet_model_datum_clear (GSheetModel *sheet_model, +inline gboolean g_sheet_model_datum_clear (GSheetModel *sheet_model, gint row, gint column); @@ -162,28 +162,28 @@ inline void g_sheet_model_columns_deleted (GSheetModel *sheet_model, gint column, gint n_columns); -inline gboolean g_sheet_model_is_editable (const GSheetModel *model, +inline gboolean g_sheet_model_is_editable (const GSheetModel *model, gint row, gint column); -inline gboolean g_sheet_model_is_visible +inline gboolean g_sheet_model_is_visible (const GSheetModel *model, gint row, gint column); -inline const GdkColor *g_sheet_model_get_foreground +inline const GdkColor *g_sheet_model_get_foreground (const GSheetModel *model, gint row, gint column); -inline const GdkColor *g_sheet_model_get_background +inline const GdkColor *g_sheet_model_get_background (const GSheetModel *model, gint row, gint column); -inline const GtkJustification *g_sheet_model_get_justification +inline const GtkJustification *g_sheet_model_get_justification (const GSheetModel *model, gint row, gint column); inline const PangoFontDescription *g_sheet_model_get_font_desc (const GSheetModel *model, gint row, gint column); -inline const GtkSheetCellBorder * g_sheet_model_get_cell_border +inline const GtkSheetCellBorder * g_sheet_model_get_cell_border (const GSheetModel *model, gint row, gint column); inline gboolean g_sheet_model_free_strings (const GSheetModel *sheet_model);