1 /* 2 * gog-grid.h : 3 * 4 * Copyright (C) 2003-2004 Jody Goldberg (jody@gnome.org) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) version 3. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 19 * USA 20 */ 21 #ifndef GOG_GRID_H 22 #define GOG_GRID_H 23 24 #include <goffice/goffice.h> 25 26 G_BEGIN_DECLS 27 28 typedef enum { 29 GOG_GRID_UNKNOWN = -1, 30 GOG_GRID_XY, 31 GOG_GRID_YZ, 32 GOG_GRID_ZX, 33 GOG_GRID_TYPES 34 } GogGridType; 35 36 #define GOG_TYPE_GRID (gog_grid_get_type ()) 37 #define GOG_GRID(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_TYPE_GRID, GogGrid)) 38 #define GOG_IS_GRID(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_TYPE_GRID)) 39 40 GType gog_grid_get_type (void); 41 42 GogGridType gog_grid_get_gtype (GogGrid const *grid); 43 void gog_grid_set_gtype (GogGrid *grid, GogGridType type); 44 45 G_END_DECLS 46 47 #endif /* GOG_GRID_H */ 48