X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheet-row-iface.h;h=3917b0319a8cac52edaff5ff77ea929666c737c4;hb=0e9db36b34555b194714aa3f2af19e51907e8426;hp=8575620a9bc55721e484adcbe9c493d7f467bb07;hpb=1ba9ab71de8a6528beaf22de3ee6d2eb697eb61d;p=pspp-builds.git diff --git a/lib/gtksheet/gsheet-row-iface.h b/lib/gtksheet/gsheet-row-iface.h index 8575620a..3917b031 100644 --- a/lib/gtksheet/gsheet-row-iface.h +++ b/lib/gtksheet/gsheet-row-iface.h @@ -1,4 +1,4 @@ -/* GSheetRow --- an abstract model of the row geometry of a +/* GSheetRow --- an abstract model of the row geometry of a * GSheet widget. * Copyright (C) 2006 Free Software Foundation * @@ -37,7 +37,7 @@ G_BEGIN_DECLS -typedef struct _GSheetRow GSheetRow; +typedef struct _GSheetRow GSheetRow; typedef struct _GSheetRowIface GSheetRowIface; struct _GSheetRowIface @@ -50,36 +50,38 @@ struct _GSheetRowIface gint row, gint n_rows); /* Virtual Table */ - gint (* get_height) (const GSheetRow *grow, gint row, const GtkSheet *); - void (* set_height) (GSheetRow *grow, gint row, gint height, - const GtkSheet *); + gint (* get_height) (const GSheetRow *grow, gint row, gpointer); + void (* set_height) (GSheetRow *grow, gint row, gint height, + gpointer); - gboolean (* get_visibility) (const GSheetRow *grow, gint row, - const GtkSheet *); + gboolean (* get_visibility) (const GSheetRow *grow, gint row, + gpointer); - gboolean (* get_sensitivity) (const GSheetRow *grow, gint row, - const GtkSheet *); + gboolean (* get_sensitivity) (const GSheetRow *grow, gint row, + gpointer); - const GtkSheetButton * (* get_button) (const GSheetRow *grow, gint row, - const GtkSheet *); + const GtkSheetButton * (* get_button) (const GSheetRow *grow, gint row, + gpointer); - gint (* get_row_count) (const GSheetRow *geo, const GtkSheet *); + gint (* get_row_count) (const GSheetRow *geo, gpointer); - GtkStateType (*get_button_state)(const GSheetRow *geo, gint row, - const GtkSheet *); + GtkStateType (*get_button_state)(const GSheetRow *geo, gint row, + gpointer); - gchar * (*get_button_label)(const GSheetRow *geo, gint row, - const GtkSheet *); + gchar * (*get_button_label)(const GSheetRow *geo, gint row, + gpointer); - gboolean (*get_button_visibility)(const GSheetRow *geo, - gint row, const GtkSheet *); + gchar * (*get_subtitle) (const GSheetRow *geo, gint row); - const GtkSheetChild * (*get_button_child)(const GSheetRow *geo, - gint row, const GtkSheet *); + gboolean (*get_button_visibility)(const GSheetRow *geo, + gint row, gpointer); - guint (*top_ypixel)(const GSheetRow *geo, gint row, const GtkSheet *); - gint (*pixel_to_row)(const GSheetRow *geo, guint pixel, const GtkSheet *); + const GtkSheetChild * (*get_button_child)(const GSheetRow *geo, + gint row, gpointer); + + guint (*top_ypixel)(const GSheetRow *geo, gint row, gpointer); + gint (*pixel_to_row)(const GSheetRow *geo, guint pixel, gpointer); }; @@ -87,39 +89,42 @@ GType g_sheet_row_get_type (void) G_GNUC_CONST; gint g_sheet_row_get_height (const GSheetRow *grow, - gint row, const GtkSheet *sheet); + gint row, gpointer); void g_sheet_row_set_height (GSheetRow *grow, - gint row, gint size, const GtkSheet *sheet); + gint row, gint size, gpointer); gboolean g_sheet_row_get_visibility(const GSheetRow *grow, - gint row, const GtkSheet *sheet); + gint row, gpointer); gboolean g_sheet_row_get_sensitivity(const GSheetRow *grow, - gint row, const GtkSheet *sheet); + gint row, gpointer); GtkSheetButton *g_sheet_row_get_button(const GSheetRow *grow, - gint row, const GtkSheet *sheet); + gint row, gpointer); -gint g_sheet_row_get_row_count(const GSheetRow *geo, const GtkSheet *sheet); +gint g_sheet_row_get_row_count(const GSheetRow *geo, gpointer); /* Return the top pixel of row ROW */ -gint g_sheet_row_start_pixel(const GSheetRow *geo, gint row, - const GtkSheet *sheet); +gint g_sheet_row_start_pixel(const GSheetRow *geo, gint row, + gpointer); /* Return the row contained by pixel PIXEL */ -gint g_sheet_row_pixel_to_row(const GSheetRow *geo, gint pixel, - const GtkSheet *sheet); +gint g_sheet_row_pixel_to_row(const GSheetRow *geo, gint pixel, + gpointer); -void g_sheet_row_rows_deleted(GSheetRow *geo, +void g_sheet_row_rows_deleted(GSheetRow *geo, gint first, gint n_rows); +gchar *g_sheet_row_get_subtitle (const GSheetRow *row_geo, gint row); + + G_END_DECLS #endif /* __G_SHEET_ROW_IFACE_H__ */