1 /* 2 * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef __GDAUI_GRID__ 22 #define __GDAUI_GRID__ 23 24 #include <gtk/gtk.h> 25 26 G_BEGIN_DECLS 27 28 #define GDAUI_TYPE_GRID (gdaui_grid_get_type()) 29 #define GDAUI_GRID(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gdaui_grid_get_type(), GdauiGrid) 30 #define GDAUI_GRID_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gdaui_grid_get_type (), GdauiGridClass) 31 #define GDAUI_IS_GRID(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gdaui_grid_get_type ()) 32 #define GDAUI_IS_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GDAUI_TYPE_GRID)) 33 34 typedef struct _GdauiGrid GdauiGrid; 35 typedef struct _GdauiGridClass GdauiGridClass; 36 typedef struct _GdauiGridPriv GdauiGridPriv; 37 38 /* struct for the object's data */ 39 struct _GdauiGrid 40 { 41 GtkBox object; 42 43 GdauiGridPriv *priv; 44 }; 45 46 /* struct for the object's class */ 47 struct _GdauiGridClass 48 { 49 GtkBoxClass parent_class; 50 }; 51 52 /** 53 * SECTION:gdaui-grid 54 * @short_description: Grid widget to manipulate data in a #GdaDataModel, with decorations 55 * @title: GdauiGrid 56 * @stability: Stable 57 * @Image: 58 * @see_also: The #GdauiRawGrid widget which is used by the #GdaGrid widget. 59 */ 60 61 GType gdaui_grid_get_type (void) G_GNUC_CONST; 62 63 GtkWidget *gdaui_grid_new (GdaDataModel *model); 64 void gdaui_grid_set_sample_size (GdauiGrid *grid, gint sample_size); 65 66 G_END_DECLS 67 68 #endif 69 70 71 72