typedef struct _GtkSheetClass GtkSheetClass;
typedef struct _GtkSheetCellAttr GtkSheetCellAttr;
typedef struct _GtkSheetCell GtkSheetCell;
+typedef struct _GtkSheetHoverTitle GtkSheetHoverTitle;
struct _GtkSheetCellAttr
gint col;
};
+struct _GtkSheetHoverTitle
+{
+ GtkWidget *window;
+ GtkWidget *label;
+ gint row, column;
+};
struct _GtkSheet{
GtkContainer container;
gboolean rows_resizable;
gboolean columns_resizable;
- /* Displayed range */
- GtkSheetRange view;
-
/* active cell */
GtkSheetCell active_cell;
GtkWidget *sheet_entry;
/* expanding selection */
GtkSheetCell selection_cell;
- /* timer for automatic scroll during selection */
- gint32 timer;
/* timer for flashing clipped range */
gint32 clip_timer;
gint interval;
/* clipped range */
GtkSheetRange clip_range;
+
+ /* Used for the subtitle (popups) */
+ gint motion_events;
+ GtkSheetHoverTitle *hover_window;
};
struct _GtkSheetClass
void
gtk_sheet_get_visible_range (GtkSheet *sheet,
GtkSheetRange *range);
+
+void
+gtk_sheet_get_selected_range (GtkSheet *sheet,
+ GtkSheetRange *range);
+
void
gtk_sheet_set_selection_mode (GtkSheet *sheet, gint mode);
* 1.0 being bottom or right; if row or column is negative then there
* is no change */
void
-gtk_sheet_moveto (GtkSheet * sheet,
+gtk_sheet_moveto (GtkSheet *sheet,
gint row,
gint column,
gfloat row_align,
gboolean
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
+ values */
void
gtk_sheet_get_active_cell (GtkSheet *sheet,
gint *row, gint *column);