X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fgsheet-row-iface.h;h=921f3699782e02c4663a8890fce51a38cff896dd;hb=5ee84736663824fe12474b78dace867e42893a14;hp=a6a62b2702c85152cf1d1a4b5cad1f0b961865ba;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp-builds.git diff --git a/lib/gtksheet/gsheet-row-iface.h b/lib/gtksheet/gsheet-row-iface.h index a6a62b27..921f3699 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 @@ -47,39 +47,34 @@ struct _GSheetRowIface /* Signals */ void (* rows_changed) (GSheetRow *geo, - gint row, gint n_rows); + glong row, glong 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, glong row); + void (* set_height) (GSheetRow *grow, glong row, gint height); - gboolean (* get_visibility) (const GSheetRow *grow, gint row, - const GtkSheet *); + gboolean (* get_visibility) (const GSheetRow *grow, glong row); - gboolean (* get_sensitivity) (const GSheetRow *grow, gint row, - const GtkSheet *); + gboolean (* get_sensitivity) (const GSheetRow *grow, glong row); - const GtkSheetButton * (* get_button) (const GSheetRow *grow, gint row, - const GtkSheet *); + const GtkSheetButton * (* get_button) (const GSheetRow *grow, glong row); - gint (* get_row_count) (const GSheetRow *geo, const GtkSheet *); + glong (* get_row_count) (const GSheetRow *geo); + GtkStateType (*get_button_state) (const GSheetRow *geo, glong row); - GtkStateType (*get_button_state)(const GSheetRow *geo, gint row, - const GtkSheet *); + gchar * (*get_button_label) (const GSheetRow *geo, glong row); - const gchar * (*get_button_label)(const GSheetRow *geo, gint row, - const GtkSheet *); + gchar * (*get_subtitle) (const GSheetRow *geo, glong row); - gboolean (*get_button_visibility)(const GSheetRow *geo, - gint row, const GtkSheet *); + gboolean (*get_button_visibility) (const GSheetRow *geo, + glong row); - const GtkSheetChild * (*get_button_child)(const GSheetRow *geo, - gint row, const GtkSheet *); + const GtkSheetChild * (*get_button_child) (const GSheetRow *geo, + glong row); - guint (*top_ypixel)(const GSheetRow *geo, gint row, const GtkSheet *); - gint (*pixel_to_row)(const GSheetRow *geo, guint pixel, const GtkSheet *); + guint (*top_ypixel) (const GSheetRow *geo, glong row); + glong (*pixel_to_row) (const GSheetRow *geo, guint pixel); }; @@ -87,37 +82,39 @@ GType g_sheet_row_get_type (void) G_GNUC_CONST; gint g_sheet_row_get_height (const GSheetRow *grow, - gint row, const GtkSheet *sheet); + glong row); void g_sheet_row_set_height (GSheetRow *grow, - gint row, gint size, const GtkSheet *sheet); + glong row, gint size); -gboolean g_sheet_row_get_visibility(const GSheetRow *grow, - gint row, const GtkSheet *sheet); +gboolean g_sheet_row_get_visibility (const GSheetRow *grow, + glong row); -gboolean g_sheet_row_get_sensitivity(const GSheetRow *grow, - gint row, const GtkSheet *sheet); +gboolean g_sheet_row_get_sensitivity (const GSheetRow *grow, + glong row); -const GtkSheetButton *g_sheet_row_get_button(const GSheetRow *grow, - gint row, const GtkSheet *sheet); +GtkSheetButton *g_sheet_row_get_button (const GSheetRow *grow, + glong row); -gint g_sheet_row_get_row_count(const GSheetRow *geo, const GtkSheet *sheet); +glong g_sheet_row_get_row_count (const GSheetRow *geo); /* 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, glong row); + /* Return the row contained by pixel PIXEL */ -gint g_sheet_row_pixel_to_row(const GSheetRow *geo, gint pixel, - const GtkSheet *sheet); +glong g_sheet_row_pixel_to_row (const GSheetRow *geo, gint pixel); + + +void g_sheet_row_rows_deleted (GSheetRow *geo, + glong first, glong n_rows); -void g_sheet_row_rows_deleted(GSheetRow *geo, - gint first, gint n_rows); +gchar *g_sheet_row_get_subtitle (const GSheetRow *row_geo, glong row); G_END_DECLS