1 /* GtkSheet widget for Gtk+.
2 * Copyright (C) 2006 Free Software Foundation
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef __G_SHEET_HETERO_COLUMN_H__
20 #define __G_SHEET_HETERO_COLUMN_H__
22 #include <glib-object.h>
28 #endif /* __cplusplus */
31 #define G_TYPE_SHEET_HETERO_COLUMN (g_sheet_hetero_column_get_type ())
33 #define G_SHEET_HETERO_COLUMN(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, G_TYPE_SHEET_HETERO_COLUMN, GSheetHeteroColumn )
34 #define G_SHEET_HETERO_COLUMN_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, g_sheet_hetero_column_get_type (), GSheetHeteroColumnClass)
35 #define G_IS_SHEET_HETERO_COLUMN(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, G_TYPE_SHEET_HETERO_COLUMN)
38 struct GSheetHeteroColumnUnit
40 GtkSheetButton button;
43 gboolean is_sensitive;
48 struct _GSheetHeteroColumn{
54 struct GSheetHeteroColumnUnit *col;
58 struct _GSheetHeteroColumnClass
60 GObjectClass parent_class;
66 /* create a new column */
67 GObject * g_sheet_hetero_column_new (gint default_width, gint n_columns);
69 GType g_sheet_hetero_column_get_type (void);
72 typedef struct _GSheetHeteroColumn GSheetHeteroColumn;
73 typedef struct _GSheetHeteroColumnClass GSheetHeteroColumnClass;
76 void g_sheet_hetero_column_set_button_label(GSheetHeteroColumn *geo,
77 gint i, const gchar *label);
79 void g_sheet_hetero_column_set_width(GSheetHeteroColumn *geo,
84 #endif /* __cplusplus */
86 #endif /* __G_SHEET_HETERO_COLUMN_H__ */