GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnucash-grid.h
1 /********************************************************************\
2  * This program is free software; you can redistribute it and/or *
3  * modify it under the terms of the GNU General Public License as *
4  * published by the Free Software Foundation; either version 2 of *
5  * the License, or (at your option) any later version. *
6  * *
7  * This program is distributed in the hope that it will be useful, *
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
10  * GNU General Public License for more details. *
11  * *
12  * You should have received a copy of the GNU General Public License*
13  * along with this program; if not, contact: *
14  * *
15  * Free Software Foundation Voice: +1-617-542-5942 *
16  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
17  * Boston, MA 02110-1301, USA [email protected] *
18  * *
19 \********************************************************************/
20 
21 #ifndef GNUCASH_GRID_H
22 #define GNUCASH_GRID_H
23 
24 #include "table-allgui.h"
25 #include "gnucash-sheet.h"
26 
27 
28 #define GNUCASH_TYPE_GRID (gnucash_grid_get_type ())
29 #define GNUCASH_GRID(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNUCASH_TYPE_GRID, GnucashGrid))
30 #define GNUCASH_GRID_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNUCASH_TYPE_GRID, GnucashGridClass))
31 #define GNUCASH_IS_GRID(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNUCASH_TYPE_GRID))
32 
33 typedef struct _GnucashGrid GnucashGrid;
34 typedef struct _GnucashGridClass GnucashGridClass;
35 
36 
37 GType gnucash_grid_get_type (void);
38 GtkWidget *gnucash_grid_new (GnucashSheet *sheet);
39 
40 gboolean gnucash_grid_find_loc_by_pixel (GnucashGrid *grid, gint x, gint y,
41  VirtualLocation *vcell_loc);
42 
43 void gnucash_draw_hatching (GdkDrawable *drawable, GdkGC *gc,
44  int x, int y, int width, int height);
45 
46 #endif /* GNUCASH_GRID_H */
47 
48 
Declarations for the Table object.