X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fobjects%2Fgis-tile.h;fp=src%2Fobjects%2Fgis-tile.h;h=c1e3ea77d999cbb155eacf4266545273ee970e24;hp=698c0c42952d518e413bae1a397fa004fe6cc697;hb=7d7d6ae0531a85361ce0d8b997d988b653282847;hpb=7636b76f01f9e0c4ba4088c3cba4fdfa33058e58 diff --git a/src/objects/gis-tile.h b/src/objects/gis-tile.h index 698c0c4..c1e3ea7 100644 --- a/src/objects/gis-tile.h +++ b/src/objects/gis-tile.h @@ -22,12 +22,15 @@ #include #include "gis-object.h" -#define GIS_TYPE_TILE (gis_tile_get_type()) +#define GIS_TYPE_TILE (gis_tile_get_type()) +#define GIS_TILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GIS_TYPE_TILE, GisTile)) +#define GIS_IS_TILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GIS_TYPE_TILE)) +#define GIS_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIS_TYPE_TILE, GisTileClass)) +#define GIS_IS_TILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIS_TYPE_TILE)) +#define GIS_TILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIS_TYPE_TILE, GisTileClass)) -GOBJECT_HEAD( - GIS, TILE, - Gis, Tile, - gis, tile); +typedef struct _GisTile GisTile; +typedef struct _GisTileClass GisTileClass; struct _GisTile { GisObject parent_instance; @@ -68,6 +71,8 @@ typedef void (*GisTileFreeFunc)(GisTile *tile, gpointer user_data); /* Path to string table, keep in sync with tile->children */ extern gchar *gis_tile_path_table[2][2]; +GType gis_tile_get_type(void); + /* Allocate a new Tile */ GisTile *gis_tile_new(GisTile *parent, gdouble n, gdouble s, gdouble e, gdouble w);