Added a tooltip like feature to display variables' labels when the mouse hovers
[pspp-builds.git] / lib / gtksheet / gsheet-column-iface.h
index 430814abc3768304a292fd3e8b0abec1662d53b1..6526cdffbfa7a589e46205e0a74211e5e285fb29 100644 (file)
@@ -1,4 +1,4 @@
-/* GSheetColumn --- an abstract model of the column geometry of a 
+/* GSheetColumn --- an abstract model of the column geometry of a
  * GSheet widget.
  * Copyright (C) 2006 Free Software Foundation
  *
@@ -35,7 +35,7 @@ G_BEGIN_DECLS
 #define G_SHEET_COLUMN_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_SHEET_COLUMN, GSheetColumnIface))
 
 
-typedef struct _GSheetColumn        GSheetColumn; 
+typedef struct _GSheetColumn        GSheetColumn;
 typedef struct _GSheetColumnIface   GSheetColumnIface;
 struct _GSheetColumnIface
 {
@@ -47,37 +47,39 @@ struct _GSheetColumnIface
                                      gint col, gint n_columns);
 
   /* Virtual Table */
-  gint (* get_width) (const GSheetColumn *gcolumn, gint col, gpointer data);
-  void (* set_width) (GSheetColumn *gcolumn, gint col, gint width, gpointer data);
+  gint (* get_width) (const GSheetColumn *gcolumn, gint col);
+  void (* set_width) (GSheetColumn *gcolumn, gint col, gint width);
 
-  gboolean (* get_visibility) (const GSheetColumn *gcolumn, gint col, gpointer data);
-  gboolean (* get_sensitivity) (const GSheetColumn *gcolumn, gint col, gpointer data);
-  const GtkSheetButton * (* get_button) (const GSheetColumn *gcolumn, gint col, gpointer data);
-  GtkJustification (* get_justification) (const GSheetColumn *gcolumn, gint col, gpointer data);
+  gboolean (* get_visibility) (const GSheetColumn *gcolumn, gint col);
+  gboolean (* get_sensitivity) (const GSheetColumn *gcolumn, gint col);
+  const GtkSheetButton * (* get_button) (const GSheetColumn *gcolumn, gint col);
+  GtkJustification (* get_justification) (const GSheetColumn *gcolumn, gint col);
 
   gint  (*get_left_text_column) (const GSheetColumn *gcolumn,
-                                gint col, gpointer data);
+                                gint col);
 
   gint  (*get_right_text_column) (const GSheetColumn *gcolumn,
-                                 gint col, gpointer data);
+                                 gint col);
 
   void (* set_left_text_column) (const GSheetColumn *gcolumn,
-                                gint col, gint i, gpointer data);
+                                gint col, gint i);
 
   void (* set_right_text_column) (const GSheetColumn *gcolumn,
-                                 gint col, gint i, gpointer data);
+                                 gint col, gint i);
 
-  gint  (* get_column_count) (const GSheetColumn *geo, gpointer data);
+  gint  (* get_column_count) (const GSheetColumn *geo);
 
 
-  GtkStateType  (*get_button_state)(const GSheetColumn *geo, gint col, gpointer data);
-  gchar * (*get_button_label)(const GSheetColumn *geo, gint col, gpointer data);
-  gboolean      (*get_button_visibility)(const GSheetColumn *geo, 
-                                       gint col, gpointer data);
-  const GtkSheetChild * (*get_button_child)(const GSheetColumn *geo, 
-                                          gint col, gpointer data);
-  GtkJustification * (*get_button_justification)(const GSheetColumn *geo, 
-                                               gint col, gpointer data);
+  GtkStateType  (*get_button_state)(const GSheetColumn *geo, gint col);
+  gchar * (*get_button_label)(const GSheetColumn *geo, gint col);
+  gchar * (*get_subtitle)(const GSheetColumn *geo, gint col);
+
+  gboolean      (*get_button_visibility)(const GSheetColumn *geo,
+                                       gint col);
+  const GtkSheetChild * (*get_button_child)(const GSheetColumn *geo,
+                                          gint col);
+  GtkJustification * (*get_button_justification)(const GSheetColumn *geo,
+                                               gint col);
 };
 
 
@@ -85,45 +87,47 @@ inline GType g_sheet_column_get_type   (void) G_GNUC_CONST;
 
 
 inline gint  g_sheet_column_get_width (const GSheetColumn *gcolumn,
-                                      gint col, gpointer data);
+                                      gint col);
 
 
 inline void  g_sheet_column_set_width (GSheetColumn *gcolumn,
-                                      gint col, gint size, gpointer data);
+                                      gint col, gint size);
 
 
 inline gboolean  g_sheet_column_get_visibility(const GSheetColumn *gcolumn,
-                                           gint col, gpointer data);
+                                           gint col);
 
 inline gboolean  g_sheet_column_get_sensitivity(const GSheetColumn *gcolumn,
-                                            gint col, gpointer data);
+                                            gint col);
 
 
 inline GtkSheetButton *g_sheet_column_get_button(const GSheetColumn *gcolumn,
-                                            gint col, gpointer data);
+                                            gint col);
+
+gchar *g_sheet_column_get_subtitle (const GSheetColumn *, gint);
 
-inline GtkJustification g_sheet_column_get_justification(const GSheetColumn *gcolumn, gint col, gpointer data);
+inline GtkJustification g_sheet_column_get_justification(const GSheetColumn *gcolumn, gint col);
 
 
 inline gint  g_sheet_column_get_left_text_column (const GSheetColumn *gcolumn,
-                                       gint col, gpointer data);
+                                       gint col);
 
 inline gint  g_sheet_column_get_right_text_column (const GSheetColumn *gcolumn,
-                                       gint col, gpointer data);
+                                       gint col);
 
 inline void g_sheet_column_set_left_text_column (const GSheetColumn *gcolumn,
-                                       gint col, gint i, gpointer data);
+                                       gint col, gint i);
 
 
 inline void g_sheet_column_set_right_text_column (const GSheetColumn *gcolumn,
-                                       gint col, gint i, gpointer data);
+                                       gint col, gint i);
 
 
-inline gint  g_sheet_column_get_column_count(const GSheetColumn *geo, gpointer data);
+inline gint  g_sheet_column_get_column_count(const GSheetColumn *geo);
 
-inline gint  g_sheet_column_start_pixel(const GSheetColumn *geo, gint col, gpointer data);
+inline gint  g_sheet_column_start_pixel(const GSheetColumn *geo, gint col);
 
-inline void g_sheet_column_columns_changed(GSheetColumn *geo, 
+inline void g_sheet_column_columns_changed(GSheetColumn *geo,
                                           gint first, gint n_columns);
 
 G_END_DECLS