Added more gtk-documentation.
authorAndrea Zagli <azagli@libero.it>
Tue, 28 Jul 2009 08:31:23 +0000 (10:31 +0200)
committerAndrea Zagli <azagli@libero.it>
Tue, 28 Jul 2009 08:31:23 +0000 (10:31 +0200)
Changed algorithm for zoom to max (now seems to work).

39 files changed:
.gitignore
docs/reference/libgtkgis-decl-list.txt [new file with mode: 0644]
docs/reference/libgtkgis-decl.txt [new file with mode: 0644]
docs/reference/libgtkgis-overrides.txt [new file with mode: 0644]
docs/reference/libgtkgis-sections.txt [new file with mode: 0644]
docs/reference/libgtkgis-undeclared.txt [new file with mode: 0644]
docs/reference/libgtkgis-undocumented.txt [new file with mode: 0644]
docs/reference/libgtkgis-unused.txt [new file with mode: 0644]
docs/reference/libgtkgis.args [new file with mode: 0644]
docs/reference/libgtkgis.hierarchy [new file with mode: 0644]
docs/reference/libgtkgis.interfaces [new file with mode: 0644]
docs/reference/libgtkgis.prerequisites [new file with mode: 0644]
docs/reference/libgtkgis.signals [new file with mode: 0644]
docs/reference/libgtkgis.types [new file with mode: 0644]
docs/reference/tmpl/commons.sgml
docs/reference/tmpl/geometry.sgml
docs/reference/tmpl/geometryline.sgml
docs/reference/tmpl/geometrypoint.sgml
docs/reference/tmpl/geometrypolygon.sgml
docs/reference/tmpl/geometryraster.sgml
docs/reference/tmpl/gtkgis.sgml
docs/reference/tmpl/layer.sgml
docs/reference/tmpl/layersgroup.sgml
docs/reference/tmpl/layersource.sgml
docs/reference/tmpl/layersourcepostgis.sgml
docs/reference/tmpl/layersourceraster.sgml
docs/reference/tmpl/layersourceshp.sgml
docs/reference/tmpl/libgtkgis.sgml
libgtkgis.pc.in
src/geometry.c
src/geometryline.c
src/geometrypoint.c
src/geometrypolygon.c
src/geometryraster.c
src/gtkgis.c
src/gtkgis.h
src/layer.c
src/layersource.c
tests/from_xml.c

index df1ab9d542e850a977aefa221e7a70960c14ffda..c92b0fcb033363811050c3a251e5c056915d9c0a 100644 (file)
@@ -1,6 +1,7 @@
 *.l[oa]
 *.[oa]
 *~
+*.bak
 
 Makefile
 Makefile.in
diff --git a/docs/reference/libgtkgis-decl-list.txt b/docs/reference/libgtkgis-decl-list.txt
new file mode 100644 (file)
index 0000000..35fd1d9
--- /dev/null
@@ -0,0 +1,230 @@
+<SECTION>
+<FILE>geometrypoint</FILE>
+TYPE_GTK_GIS_GEOMETRY_POINT
+GTK_GIS_GEOMETRY_POINT
+GTK_GIS_GEOMETRY_POINT_CLASS
+IS_GTK_GIS_GEOMETRY_POINT
+IS_GTK_GIS_GEOMETRY_POINT_CLASS
+GTK_GIS_GEOMETRY_POINT_GET_CLASS
+<TITLE>GtkGisGeometryPoint</TITLE>
+GtkGisGeometryPoint
+gtk_gis_geometry_point_get_type
+gtk_gis_geometry_point_new
+gtk_gis_geometry_get_point
+gtk_gis_geometry_point_get_x
+gtk_gis_geometry_point_get_y
+</SECTION>
+
+<SECTION>
+<FILE>layersourceshp</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE_SHP
+GTK_GIS_LAYER_SOURCE_SHP
+GTK_GIS_LAYER_SOURCE_SHP_CLASS
+IS_GTK_GIS_LAYER_SOURCE_SHP
+IS_GTK_GIS_LAYER_SOURCE_SHP_CLASS
+GTK_GIS_LAYER_SOURCE_SHP_GET_CLASS
+<TITLE>GtkGisLayerSourceShp</TITLE>
+GtkGisLayerSourceShp
+gtk_gis_layer_source_shp_get_type
+gtk_gis_layer_source_shp_new
+gtk_gis_layer_source_shp_new_from_xml
+gtk_gis_layer_source_shp_get_filename
+</SECTION>
+
+<SECTION>
+<FILE>geometrypolygon</FILE>
+TYPE_GTK_GIS_GEOMETRY_POLYGON
+GTK_GIS_GEOMETRY_POLYGON
+GTK_GIS_GEOMETRY_POLYGON_CLASS
+IS_GTK_GIS_GEOMETRY_POLYGON
+IS_GTK_GIS_GEOMETRY_POLYGON_CLASS
+GTK_GIS_GEOMETRY_POLYGON_GET_CLASS
+<TITLE>GtkGisGeometryPolygon</TITLE>
+GtkGisGeometryPolygon
+gtk_gis_geometry_polygon_get_type
+gtk_gis_geometry_polygon_new
+gtk_gis_geometry_polygon_new_from_line
+gtk_gis_geometry_polygon_new_from_list
+gtk_gis_geometry_polygon_add_line
+gtk_gis_geometry_polygon_add_line_from_list
+gtk_gis_geometry_polygon_remove_line
+</SECTION>
+
+<SECTION>
+<FILE>gtkgis</FILE>
+TYPE_GTK_GIS
+GTK_GIS
+GTK_GIS_CLASS
+IS_GTK_GIS
+IS_GTK_GIS_CLASS
+GTK_GIS_GET_CLASS
+<TITLE>GtkGis</TITLE>
+GtkGis
+gtk_gis_get_type
+gtk_gis_new
+gtk_gis_new_from_xml
+gtk_gis_new_from_file
+gtk_gis_get_xml
+gtk_gis_save_to_xml
+gtk_gis_add_group
+gtk_gis_remove_group
+gtk_gis_add_layer
+gtk_gis_remove_layer
+gtk_gis_get_layer_by_name
+gtk_gis_draw
+gtk_gis_get_scale
+gtk_gis_set_scale
+gtk_gis_zoom_to_max
+gtk_gis_zoom_to_layer
+gtk_gis_get_legend
+</SECTION>
+
+<SECTION>
+<FILE>layersgroup</FILE>
+TYPE_GTK_GIS_LAYERS_GROUP
+GTK_GIS_LAYERS_GROUP
+GTK_GIS_LAYERS_GROUP_CLASS
+IS_GTK_GIS_LAYERS_GROUP
+IS_GTK_GIS_LAYERS_GROUP_CLASS
+GTK_GIS_LAYERS_GROUP_GET_CLASS
+<TITLE>GtkGisLayersGroup</TITLE>
+GtkGisLayersGroup
+gtk_gis_layers_group_get_type
+gtk_gis_layers_group_new
+gtk_gis_layers_group_add_layer
+gtk_gis_layers_group_remove_layer
+gtk_gis_layers_group_get_name
+gtk_gis_layers_group_set_name
+</SECTION>
+
+<SECTION>
+<FILE>layer</FILE>
+TYPE_GTK_GIS_LAYER
+GTK_GIS_LAYER
+GTK_GIS_LAYER_CLASS
+IS_GTK_GIS_LAYER
+IS_GTK_GIS_LAYER_CLASS
+GTK_GIS_LAYER_GET_CLASS
+<TITLE>GtkGisLayer</TITLE>
+GtkGisLayer
+gtk_gis_layer_get_type
+gtk_gis_layer_new
+gtk_gis_layer_new_from_source
+gtk_gis_layer_get_xml
+gtk_gis_layer_get_name
+gtk_gis_layer_get_source
+gtk_gis_layer_fill_from_source
+gtk_gis_layer_save
+gtk_gis_layer_add_geometry
+gtk_gis_layer_remove_geometry
+gtk_gis_layer_get_extent
+gtk_gis_layer_get_editable
+gtk_gis_layer_set_editable
+gtk_gis_layer_draw
+</SECTION>
+
+<SECTION>
+<FILE>libgtkgis</FILE>
+</SECTION>
+
+<SECTION>
+<FILE>geometryline</FILE>
+TYPE_GTK_GIS_GEOMETRY_LINE
+GTK_GIS_GEOMETRY_LINE
+GTK_GIS_GEOMETRY_LINE_CLASS
+IS_GTK_GIS_GEOMETRY_LINE
+IS_GTK_GIS_GEOMETRY_LINE_CLASS
+GTK_GIS_GEOMETRY_LINE_GET_CLASS
+<TITLE>GtkGisGeometryLine</TITLE>
+GtkGisGeometryLine
+gtk_gis_geometry_line_get_type
+gtk_gis_geometry_line_new
+gtk_gis_geometry_line_new_from_list
+gtk_gis_geometry_line_add_point
+gtk_gis_geometry_line_add_point_from_coordinates
+</SECTION>
+
+<SECTION>
+<FILE>geometry</FILE>
+TYPE_GTK_GIS_GEOMETRY
+GTK_GIS_GEOMETRY
+GTK_GIS_GEOMETRY_CLASS
+IS_GTK_GIS_GEOMETRY
+IS_GTK_GIS_GEOMETRY_CLASS
+GTK_GIS_GEOMETRY_GET_CLASS
+<TITLE>GtkGisGeometry</TITLE>
+GtkGisGeometry
+gtk_gis_geometry_get_type
+gtk_gis_geometry_get_editable
+gtk_gis_geometry_set_editable
+gtk_gis_geometry_draw
+</SECTION>
+
+<SECTION>
+<FILE>layersourcepostgis</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS
+GTK_GIS_LAYER_SOURCE_POSTGIS
+GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS
+IS_GTK_GIS_LAYER_SOURCE_POSTGIS
+IS_GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS
+GTK_GIS_LAYER_SOURCE_POSTGIS_GET_CLASS
+<TITLE>GtkGisLayerSourcePostgis</TITLE>
+GtkGisLayerSourcePostgis
+gtk_gis_layer_source_postgis_get_type
+gtk_gis_layer_source_postgis_new
+gtk_gis_layer_source_postgis_new_from_xml
+</SECTION>
+
+<SECTION>
+<FILE>layersourceraster</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE_RASTER
+GTK_GIS_LAYER_SOURCE_RASTER
+GTK_GIS_LAYER_SOURCE_RASTER_CLASS
+IS_GTK_GIS_LAYER_SOURCE_RASTER
+IS_GTK_GIS_LAYER_SOURCE_RASTER_CLASS
+GTK_GIS_LAYER_SOURCE_RASTER_GET_CLASS
+<TITLE>GtkGisLayerSourceRaster</TITLE>
+GtkGisLayerSourceRaster
+gtk_gis_layer_source_raster_get_type
+gtk_gis_layer_source_raster_new
+gtk_gis_layer_source_raster_new_from_xml
+gtk_gis_layer_source_raster_get_filename
+</SECTION>
+
+<SECTION>
+<FILE>layersource</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE
+GTK_GIS_LAYER_SOURCE
+GTK_GIS_LAYER_SOURCE_CLASS
+IS_GTK_GIS_LAYER_SOURCE
+IS_GTK_GIS_LAYER_SOURCE_CLASS
+GTK_GIS_LAYER_SOURCE_GET_CLASS
+<TITLE>GtkGisLayerSource</TITLE>
+GtkGisLayerSource
+gtk_gis_layer_source_get_type
+gtk_gis_layer_source_get_xml
+gtk_gis_layer_source_get_geometries
+gtk_gis_layer_source_get_layer_geometry_type
+gtk_gis_layer_source_get_layer_extent
+gtk_gis_layer_source_set_max_extent
+</SECTION>
+
+<SECTION>
+<FILE>commons</FILE>
+GtkGisLayerGeometryType
+</SECTION>
+
+<SECTION>
+<FILE>geometryraster</FILE>
+TYPE_GTK_GIS_GEOMETRY_RASTER
+GTK_GIS_GEOMETRY_RASTER
+GTK_GIS_GEOMETRY_RASTER_CLASS
+IS_GTK_GIS_GEOMETRY_RASTER
+IS_GTK_GIS_GEOMETRY_RASTER_CLASS
+GTK_GIS_GEOMETRY_RASTER_GET_CLASS
+<TITLE>GtkGisGeometryRaster</TITLE>
+GtkGisGeometryRaster
+gtk_gis_geometry_raster_get_type
+gtk_gis_geometry_raster_new_from_pixbuf
+</SECTION>
+
diff --git a/docs/reference/libgtkgis-decl.txt b/docs/reference/libgtkgis-decl.txt
new file mode 100644 (file)
index 0000000..7405e27
--- /dev/null
@@ -0,0 +1,932 @@
+<MACRO>
+<NAME>TYPE_GTK_GIS_GEOMETRY_POINT</NAME>
+#define TYPE_GTK_GIS_GEOMETRY_POINT                 (gtk_gis_geometry_point_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_POINT</NAME>
+#define GTK_GIS_GEOMETRY_POINT(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_GEOMETRY_POINT, GtkGisGeometryPoint))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_POINT_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_POINT_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_GEOMETRY_POINT, GtkGisGeometryPointClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_POINT</NAME>
+#define IS_GTK_GIS_GEOMETRY_POINT(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_GEOMETRY_POINT))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_POINT_CLASS</NAME>
+#define IS_GTK_GIS_GEOMETRY_POINT_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_GEOMETRY_POINT))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_POINT_GET_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_POINT_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_GEOMETRY_POINT, GtkGisGeometryPointClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisGeometryPoint</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryPointClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryPoint</NAME>
+struct _GtkGisGeometryPoint
+       {
+               GtkGisGeometry parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryPointClass</NAME>
+struct _GtkGisGeometryPointClass
+       {
+               GtkGisGeometryClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_geometry_point_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_point_new</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+GtkGisPoint point
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_get_point</NAME>
+<RETURNS>GtkGisPoint *</RETURNS>
+GtkGisGeometryPoint *point
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_point_get_x</NAME>
+<RETURNS>gdouble </RETURNS>
+GtkGisGeometryPoint *point
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_point_get_y</NAME>
+<RETURNS>gdouble </RETURNS>
+GtkGisGeometryPoint *point
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_LAYER_SOURCE_SHP</NAME>
+#define TYPE_GTK_GIS_LAYER_SOURCE_SHP                 (gtk_gis_layer_source_shp_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_SHP</NAME>
+#define GTK_GIS_LAYER_SOURCE_SHP(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_LAYER_SOURCE_SHP, GtkGisLayerSourceShp))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_SHP_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_SHP_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_LAYER_SOURCE_SHP, GtkGisLayerSourceShpClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_SHP</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_SHP(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_LAYER_SOURCE_SHP))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_SHP_CLASS</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_SHP_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_LAYER_SOURCE_SHP))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_SHP_GET_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_SHP_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_LAYER_SOURCE_SHP, GtkGisLayerSourceShpClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisLayerSourceShp</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceShpClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceShp</NAME>
+struct _GtkGisLayerSourceShp
+       {
+               GtkGisLayerSource parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceShpClass</NAME>
+struct _GtkGisLayerSourceShpClass
+       {
+               GtkGisLayerSourceClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_shp_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_shp_new</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+const gchar *filename
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_shp_new_from_xml</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+xmlNode *xnode
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_shp_get_filename</NAME>
+<RETURNS>gchar *</RETURNS>
+GtkGisLayerSourceShp *source
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_GEOMETRY_POLYGON</NAME>
+#define TYPE_GTK_GIS_GEOMETRY_POLYGON                 (gtk_gis_geometry_polygon_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_POLYGON</NAME>
+#define GTK_GIS_GEOMETRY_POLYGON(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_GEOMETRY_POLYGON, GtkGisGeometryPolygon))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_POLYGON_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_POLYGON_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_GEOMETRY_POLYGON, GtkGisGeometryPolygonClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_POLYGON</NAME>
+#define IS_GTK_GIS_GEOMETRY_POLYGON(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_GEOMETRY_POLYGON))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_POLYGON_CLASS</NAME>
+#define IS_GTK_GIS_GEOMETRY_POLYGON_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_GEOMETRY_POLYGON))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_POLYGON_GET_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_POLYGON_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_GEOMETRY_POLYGON, GtkGisGeometryPolygonClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisGeometryPolygon</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryPolygonClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryPolygon</NAME>
+struct _GtkGisGeometryPolygon
+       {
+               GtkGisGeometry parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryPolygonClass</NAME>
+struct _GtkGisGeometryPolygonClass
+       {
+               GtkGisGeometryClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_new</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_new_from_line</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+GtkGisGeometryLine *line
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_new_from_list</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+GSList *points
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_add_line</NAME>
+<RETURNS>void </RETURNS>
+GtkGisGeometryPolygon *polygon, GtkGisGeometryLine *line
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_add_line_from_list</NAME>
+<RETURNS>void </RETURNS>
+GtkGisGeometryPolygon *polygon, GSList *points
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_polygon_remove_line</NAME>
+<RETURNS>void </RETURNS>
+GtkGisGeometryPolygon *polygon, GtkGisGeometryLine *line
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS</NAME>
+#define TYPE_GTK_GIS                 (gtk_gis_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS</NAME>
+#define GTK_GIS(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS, GtkGis))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_CLASS</NAME>
+#define GTK_GIS_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS, GtkGisClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS</NAME>
+#define IS_GTK_GIS(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_CLASS</NAME>
+#define IS_GTK_GIS_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GET_CLASS</NAME>
+#define GTK_GIS_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS, GtkGisClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGis</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGis</NAME>
+struct _GtkGis
+       {
+               GtkBin parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisClass</NAME>
+struct _GtkGisClass
+       {
+               GtkBinClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_new</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_new_from_xml</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+xmlDoc *xdoc
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_new_from_file</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+const gchar *file_name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_get_xml</NAME>
+<RETURNS>xmlDoc *</RETURNS>
+GtkGis *gtkgis
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_save_to_xml</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, const gchar *file_name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_add_group</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, GtkGisLayersGroup *layers_group
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_remove_group</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, GtkGisLayersGroup *layers_group
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_add_layer</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_remove_layer</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_get_layer_by_name</NAME>
+<RETURNS>GtkGisLayer *</RETURNS>
+GtkGis *gtkgis, const gchar *layer_name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_draw</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_get_scale</NAME>
+<RETURNS>GtkGisScale *</RETURNS>
+GtkGis *gtkgis
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_set_scale</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, GtkGisScale *scale
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_zoom_to_max</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_zoom_to_layer</NAME>
+<RETURNS>void </RETURNS>
+GtkGis *gtkgis, GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_get_legend</NAME>
+<RETURNS>GtkWidget *</RETURNS>
+GtkGis *gtkgis
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_LAYERS_GROUP</NAME>
+#define TYPE_GTK_GIS_LAYERS_GROUP                 (gtk_gis_layers_group_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYERS_GROUP</NAME>
+#define GTK_GIS_LAYERS_GROUP(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_LAYERS_GROUP, GtkGisLayersGroup))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYERS_GROUP_CLASS</NAME>
+#define GTK_GIS_LAYERS_GROUP_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_LAYERS_GROUP, GtkGisLayersGroupClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYERS_GROUP</NAME>
+#define IS_GTK_GIS_LAYERS_GROUP(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_LAYERS_GROUP))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYERS_GROUP_CLASS</NAME>
+#define IS_GTK_GIS_LAYERS_GROUP_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_LAYERS_GROUP))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYERS_GROUP_GET_CLASS</NAME>
+#define GTK_GIS_LAYERS_GROUP_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_LAYERS_GROUP, GtkGisLayersGroupClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisLayersGroup</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayersGroupClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayersGroup</NAME>
+struct _GtkGisLayersGroup
+       {
+               GObject parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayersGroupClass</NAME>
+struct _GtkGisLayersGroupClass
+       {
+               GObjectClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_layers_group_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layers_group_new</NAME>
+<RETURNS>GtkGisLayersGroup *</RETURNS>
+const gchar *name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layers_group_add_layer</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayersGroup *layers_group,GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layers_group_remove_layer</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayersGroup *layers_group,GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layers_group_get_name</NAME>
+<RETURNS>gchar *</RETURNS>
+GtkGisLayersGroup *layers_group
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layers_group_set_name</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayersGroup *layers_group,const gchar *name
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_LAYER</NAME>
+#define TYPE_GTK_GIS_LAYER                 (gtk_gis_layer_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER</NAME>
+#define GTK_GIS_LAYER(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_LAYER, GtkGisLayer))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_CLASS</NAME>
+#define GTK_GIS_LAYER_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_LAYER, GtkGisLayerClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER</NAME>
+#define IS_GTK_GIS_LAYER(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_LAYER))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_CLASS</NAME>
+#define IS_GTK_GIS_LAYER_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_LAYER))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_GET_CLASS</NAME>
+#define GTK_GIS_LAYER_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_LAYER, GtkGisLayerClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisLayer</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayer</NAME>
+struct _GtkGisLayer
+       {
+               GObject parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerClass</NAME>
+struct _GtkGisLayerClass
+       {
+               GObjectClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_layer_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_new</NAME>
+<RETURNS>GtkGisLayer *</RETURNS>
+GtkGisLayerSource *source,const gchar *name,GtkGisLayerGeometryType geometry_type
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_new_from_source</NAME>
+<RETURNS>GtkGisLayer *</RETURNS>
+GtkGisLayerSource *source,const gchar *name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_get_xml</NAME>
+<RETURNS>xmlNode *</RETURNS>
+GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_get_name</NAME>
+<RETURNS>gchar *</RETURNS>
+GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_get_source</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_fill_from_source</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_save</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayer *layer,GtkGisLayerSource *source
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_add_geometry</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayer *layer,GtkGisGeometry *geometry
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_remove_geometry</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayer *layer,GtkGisGeometry *geometry
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_get_extent</NAME>
+<RETURNS>GtkGisLayerExtent *</RETURNS>
+GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_get_editable</NAME>
+<RETURNS>gboolean </RETURNS>
+GtkGisLayer *layer
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_set_editable</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayer *layer,gboolean editable
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_draw</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayer *layer, GooCanvasItem *root, GtkGisScale *scale
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_GEOMETRY_LINE</NAME>
+#define TYPE_GTK_GIS_GEOMETRY_LINE                 (gtk_gis_geometry_line_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_LINE</NAME>
+#define GTK_GIS_GEOMETRY_LINE(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_GEOMETRY_LINE, GtkGisGeometryLine))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_LINE_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_LINE_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_GEOMETRY_LINE, GtkGisGeometryLineClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_LINE</NAME>
+#define IS_GTK_GIS_GEOMETRY_LINE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_GEOMETRY_LINE))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_LINE_CLASS</NAME>
+#define IS_GTK_GIS_GEOMETRY_LINE_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_GEOMETRY_LINE))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_LINE_GET_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_LINE_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_GEOMETRY_LINE, GtkGisGeometryLineClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisGeometryLine</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryLineClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryLine</NAME>
+struct _GtkGisGeometryLine
+       {
+               GtkGisGeometry parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryLineClass</NAME>
+struct _GtkGisGeometryLineClass
+       {
+               GtkGisGeometryClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_geometry_line_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_line_new</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_line_new_from_list</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+GSList *points
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_line_add_point</NAME>
+<RETURNS>void </RETURNS>
+GtkGisGeometryLine *line, GtkGisPoint point
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_line_add_point_from_coordinates</NAME>
+<RETURNS>void </RETURNS>
+GtkGisGeometryLine *line,gdouble x, gdouble y
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_GEOMETRY</NAME>
+#define TYPE_GTK_GIS_GEOMETRY                 (gtk_gis_geometry_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY</NAME>
+#define GTK_GIS_GEOMETRY(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_GEOMETRY, GtkGisGeometry))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_GEOMETRY, GtkGisGeometryClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY</NAME>
+#define IS_GTK_GIS_GEOMETRY(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_GEOMETRY))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_CLASS</NAME>
+#define IS_GTK_GIS_GEOMETRY_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_GEOMETRY))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_GET_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_GEOMETRY, GtkGisGeometryClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisGeometry</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometry</NAME>
+struct _GtkGisGeometry
+       {
+               GObject parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryClass</NAME>
+struct _GtkGisGeometryClass
+       {
+               GObjectClass parent_class;
+
+               GooCanvasItem *(*draw) (GtkGisGeometry *geometry, GtkGisScale *scale);
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_geometry_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_get_editable</NAME>
+<RETURNS>gboolean </RETURNS>
+GtkGisGeometry *geometry
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_set_editable</NAME>
+<RETURNS>void </RETURNS>
+GtkGisGeometry *geometry, gboolean editable
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_draw</NAME>
+<RETURNS>GooCanvasItem *</RETURNS>
+GtkGisGeometry *geometry, GtkGisScale *scale
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS</NAME>
+#define TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS                 (gtk_gis_layer_source_postgis_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_POSTGIS</NAME>
+#define GTK_GIS_LAYER_SOURCE_POSTGIS(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS, GtkGisLayerSourcePostgis))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS, GtkGisLayerSourcePostgisClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_POSTGIS</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_POSTGIS(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_POSTGIS_GET_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_POSTGIS_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS, GtkGisLayerSourcePostgisClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisLayerSourcePostgis</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourcePostgisClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourcePostgis</NAME>
+struct _GtkGisLayerSourcePostgis
+       {
+               GtkGisLayerSource parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourcePostgisClass</NAME>
+struct _GtkGisLayerSourcePostgisClass
+       {
+               GtkGisLayerSourceClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_postgis_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_postgis_new</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+gchar *host,gint port,gchar *username,gchar *password
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_postgis_new_from_xml</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+xmlNode *xnode
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_LAYER_SOURCE_RASTER</NAME>
+#define TYPE_GTK_GIS_LAYER_SOURCE_RASTER                 (gtk_gis_layer_source_raster_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_RASTER</NAME>
+#define GTK_GIS_LAYER_SOURCE_RASTER(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_LAYER_SOURCE_RASTER, GtkGisLayerSourceRaster))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_RASTER_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_RASTER_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_LAYER_SOURCE_RASTER, GtkGisLayerSourceRasterClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_RASTER</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_RASTER(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_LAYER_SOURCE_RASTER))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_RASTER_CLASS</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_RASTER_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_LAYER_SOURCE_RASTER))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_RASTER_GET_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_RASTER_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_LAYER_SOURCE_RASTER, GtkGisLayerSourceRasterClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisLayerSourceRaster</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceRasterClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceRaster</NAME>
+struct _GtkGisLayerSourceRaster
+       {
+               GtkGisLayerSource parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceRasterClass</NAME>
+struct _GtkGisLayerSourceRasterClass
+       {
+               GtkGisLayerSourceClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_raster_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_raster_new</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+const gchar *filename
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_raster_new_from_xml</NAME>
+<RETURNS>GtkGisLayerSource *</RETURNS>
+xmlNode *xnode
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_raster_get_filename</NAME>
+<RETURNS>gchar *</RETURNS>
+GtkGisLayerSourceRaster *source
+</FUNCTION>
+<MACRO>
+<NAME>TYPE_GTK_GIS_LAYER_SOURCE</NAME>
+#define TYPE_GTK_GIS_LAYER_SOURCE                 (gtk_gis_layer_source_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE</NAME>
+#define GTK_GIS_LAYER_SOURCE(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_LAYER_SOURCE, GtkGisLayerSource))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_LAYER_SOURCE, GtkGisLayerSourceClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_LAYER_SOURCE))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_LAYER_SOURCE_CLASS</NAME>
+#define IS_GTK_GIS_LAYER_SOURCE_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_LAYER_SOURCE))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_LAYER_SOURCE_GET_CLASS</NAME>
+#define GTK_GIS_LAYER_SOURCE_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_LAYER_SOURCE, GtkGisLayerSourceClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisLayerSource</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSource</NAME>
+struct _GtkGisLayerSource
+       {
+               GObject parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisLayerSourceClass</NAME>
+struct _GtkGisLayerSourceClass
+       {
+               GObjectClass parent_class;
+
+               xmlNode *(*get_xml) (GtkGisLayerSource *source);
+
+               void (*set_ogr_datasource) (GtkGisLayerSource *source,
+                                           OGRDataSourceH datasource);
+               void (*set_gdal_dataset) (GtkGisLayerSource *source,
+                                         GDALDatasetH hDataset);
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_get_xml</NAME>
+<RETURNS>xmlNode *</RETURNS>
+GtkGisLayerSource *source
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_get_geometries</NAME>
+<RETURNS>GList *</RETURNS>
+GtkGisLayerSource *source,const gchar *name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_get_layer_geometry_type</NAME>
+<RETURNS>GtkGisLayerGeometryType </RETURNS>
+GtkGisLayerSource *source,const gchar *name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_get_layer_extent</NAME>
+<RETURNS>GtkGisLayerExtent *</RETURNS>
+GtkGisLayerSource *source,const gchar *name
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_layer_source_set_max_extent</NAME>
+<RETURNS>void </RETURNS>
+GtkGisLayerSource *source,GtkGisLayerExtent *extent
+</FUNCTION>
+<ENUM>
+<NAME>GtkGisLayerGeometryType</NAME>
+typedef enum
+       {
+               LAYER_GEOMETRY_TYPE_POINT,
+               LAYER_GEOMETRY_TYPE_LINE,
+               LAYER_GEOMETRY_TYPE_POLYGON,
+               LAYER_GEOMETRY_TYPE_RASTER
+       } GtkGisLayerGeometryType;
+</ENUM>
+<MACRO>
+<NAME>TYPE_GTK_GIS_GEOMETRY_RASTER</NAME>
+#define TYPE_GTK_GIS_GEOMETRY_RASTER                 (gtk_gis_geometry_raster_get_type ())
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_RASTER</NAME>
+#define GTK_GIS_GEOMETRY_RASTER(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GTK_GIS_GEOMETRY_RASTER, GtkGisGeometryRaster))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_RASTER_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_RASTER_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GTK_GIS_GEOMETRY_RASTER, GtkGisGeometryRasterClass))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_RASTER</NAME>
+#define IS_GTK_GIS_GEOMETRY_RASTER(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GTK_GIS_GEOMETRY_RASTER))
+</MACRO>
+<MACRO>
+<NAME>IS_GTK_GIS_GEOMETRY_RASTER_CLASS</NAME>
+#define IS_GTK_GIS_GEOMETRY_RASTER_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GTK_GIS_GEOMETRY_RASTER))
+</MACRO>
+<MACRO>
+<NAME>GTK_GIS_GEOMETRY_RASTER_GET_CLASS</NAME>
+#define GTK_GIS_GEOMETRY_RASTER_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GTK_GIS_GEOMETRY_RASTER, GtkGisGeometryRasterClass))
+</MACRO>
+<STRUCT>
+<NAME>GtkGisGeometryRaster</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryRasterClass</NAME>
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryRaster</NAME>
+struct _GtkGisGeometryRaster
+       {
+               GtkGisGeometry parent;
+       };
+</STRUCT>
+<STRUCT>
+<NAME>GtkGisGeometryRasterClass</NAME>
+struct _GtkGisGeometryRasterClass
+       {
+               GtkGisGeometryClass parent_class;
+       };
+</STRUCT>
+<FUNCTION>
+<NAME>gtk_gis_geometry_raster_get_type</NAME>
+<RETURNS>GType </RETURNS>
+void
+</FUNCTION>
+<FUNCTION>
+<NAME>gtk_gis_geometry_raster_new_from_pixbuf</NAME>
+<RETURNS>GtkGisGeometry *</RETURNS>
+GdkPixbuf *pixbuf, gdouble x, gdouble y
+</FUNCTION>
diff --git a/docs/reference/libgtkgis-overrides.txt b/docs/reference/libgtkgis-overrides.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/libgtkgis-sections.txt b/docs/reference/libgtkgis-sections.txt
new file mode 100644 (file)
index 0000000..35fd1d9
--- /dev/null
@@ -0,0 +1,230 @@
+<SECTION>
+<FILE>geometrypoint</FILE>
+TYPE_GTK_GIS_GEOMETRY_POINT
+GTK_GIS_GEOMETRY_POINT
+GTK_GIS_GEOMETRY_POINT_CLASS
+IS_GTK_GIS_GEOMETRY_POINT
+IS_GTK_GIS_GEOMETRY_POINT_CLASS
+GTK_GIS_GEOMETRY_POINT_GET_CLASS
+<TITLE>GtkGisGeometryPoint</TITLE>
+GtkGisGeometryPoint
+gtk_gis_geometry_point_get_type
+gtk_gis_geometry_point_new
+gtk_gis_geometry_get_point
+gtk_gis_geometry_point_get_x
+gtk_gis_geometry_point_get_y
+</SECTION>
+
+<SECTION>
+<FILE>layersourceshp</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE_SHP
+GTK_GIS_LAYER_SOURCE_SHP
+GTK_GIS_LAYER_SOURCE_SHP_CLASS
+IS_GTK_GIS_LAYER_SOURCE_SHP
+IS_GTK_GIS_LAYER_SOURCE_SHP_CLASS
+GTK_GIS_LAYER_SOURCE_SHP_GET_CLASS
+<TITLE>GtkGisLayerSourceShp</TITLE>
+GtkGisLayerSourceShp
+gtk_gis_layer_source_shp_get_type
+gtk_gis_layer_source_shp_new
+gtk_gis_layer_source_shp_new_from_xml
+gtk_gis_layer_source_shp_get_filename
+</SECTION>
+
+<SECTION>
+<FILE>geometrypolygon</FILE>
+TYPE_GTK_GIS_GEOMETRY_POLYGON
+GTK_GIS_GEOMETRY_POLYGON
+GTK_GIS_GEOMETRY_POLYGON_CLASS
+IS_GTK_GIS_GEOMETRY_POLYGON
+IS_GTK_GIS_GEOMETRY_POLYGON_CLASS
+GTK_GIS_GEOMETRY_POLYGON_GET_CLASS
+<TITLE>GtkGisGeometryPolygon</TITLE>
+GtkGisGeometryPolygon
+gtk_gis_geometry_polygon_get_type
+gtk_gis_geometry_polygon_new
+gtk_gis_geometry_polygon_new_from_line
+gtk_gis_geometry_polygon_new_from_list
+gtk_gis_geometry_polygon_add_line
+gtk_gis_geometry_polygon_add_line_from_list
+gtk_gis_geometry_polygon_remove_line
+</SECTION>
+
+<SECTION>
+<FILE>gtkgis</FILE>
+TYPE_GTK_GIS
+GTK_GIS
+GTK_GIS_CLASS
+IS_GTK_GIS
+IS_GTK_GIS_CLASS
+GTK_GIS_GET_CLASS
+<TITLE>GtkGis</TITLE>
+GtkGis
+gtk_gis_get_type
+gtk_gis_new
+gtk_gis_new_from_xml
+gtk_gis_new_from_file
+gtk_gis_get_xml
+gtk_gis_save_to_xml
+gtk_gis_add_group
+gtk_gis_remove_group
+gtk_gis_add_layer
+gtk_gis_remove_layer
+gtk_gis_get_layer_by_name
+gtk_gis_draw
+gtk_gis_get_scale
+gtk_gis_set_scale
+gtk_gis_zoom_to_max
+gtk_gis_zoom_to_layer
+gtk_gis_get_legend
+</SECTION>
+
+<SECTION>
+<FILE>layersgroup</FILE>
+TYPE_GTK_GIS_LAYERS_GROUP
+GTK_GIS_LAYERS_GROUP
+GTK_GIS_LAYERS_GROUP_CLASS
+IS_GTK_GIS_LAYERS_GROUP
+IS_GTK_GIS_LAYERS_GROUP_CLASS
+GTK_GIS_LAYERS_GROUP_GET_CLASS
+<TITLE>GtkGisLayersGroup</TITLE>
+GtkGisLayersGroup
+gtk_gis_layers_group_get_type
+gtk_gis_layers_group_new
+gtk_gis_layers_group_add_layer
+gtk_gis_layers_group_remove_layer
+gtk_gis_layers_group_get_name
+gtk_gis_layers_group_set_name
+</SECTION>
+
+<SECTION>
+<FILE>layer</FILE>
+TYPE_GTK_GIS_LAYER
+GTK_GIS_LAYER
+GTK_GIS_LAYER_CLASS
+IS_GTK_GIS_LAYER
+IS_GTK_GIS_LAYER_CLASS
+GTK_GIS_LAYER_GET_CLASS
+<TITLE>GtkGisLayer</TITLE>
+GtkGisLayer
+gtk_gis_layer_get_type
+gtk_gis_layer_new
+gtk_gis_layer_new_from_source
+gtk_gis_layer_get_xml
+gtk_gis_layer_get_name
+gtk_gis_layer_get_source
+gtk_gis_layer_fill_from_source
+gtk_gis_layer_save
+gtk_gis_layer_add_geometry
+gtk_gis_layer_remove_geometry
+gtk_gis_layer_get_extent
+gtk_gis_layer_get_editable
+gtk_gis_layer_set_editable
+gtk_gis_layer_draw
+</SECTION>
+
+<SECTION>
+<FILE>libgtkgis</FILE>
+</SECTION>
+
+<SECTION>
+<FILE>geometryline</FILE>
+TYPE_GTK_GIS_GEOMETRY_LINE
+GTK_GIS_GEOMETRY_LINE
+GTK_GIS_GEOMETRY_LINE_CLASS
+IS_GTK_GIS_GEOMETRY_LINE
+IS_GTK_GIS_GEOMETRY_LINE_CLASS
+GTK_GIS_GEOMETRY_LINE_GET_CLASS
+<TITLE>GtkGisGeometryLine</TITLE>
+GtkGisGeometryLine
+gtk_gis_geometry_line_get_type
+gtk_gis_geometry_line_new
+gtk_gis_geometry_line_new_from_list
+gtk_gis_geometry_line_add_point
+gtk_gis_geometry_line_add_point_from_coordinates
+</SECTION>
+
+<SECTION>
+<FILE>geometry</FILE>
+TYPE_GTK_GIS_GEOMETRY
+GTK_GIS_GEOMETRY
+GTK_GIS_GEOMETRY_CLASS
+IS_GTK_GIS_GEOMETRY
+IS_GTK_GIS_GEOMETRY_CLASS
+GTK_GIS_GEOMETRY_GET_CLASS
+<TITLE>GtkGisGeometry</TITLE>
+GtkGisGeometry
+gtk_gis_geometry_get_type
+gtk_gis_geometry_get_editable
+gtk_gis_geometry_set_editable
+gtk_gis_geometry_draw
+</SECTION>
+
+<SECTION>
+<FILE>layersourcepostgis</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS
+GTK_GIS_LAYER_SOURCE_POSTGIS
+GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS
+IS_GTK_GIS_LAYER_SOURCE_POSTGIS
+IS_GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS
+GTK_GIS_LAYER_SOURCE_POSTGIS_GET_CLASS
+<TITLE>GtkGisLayerSourcePostgis</TITLE>
+GtkGisLayerSourcePostgis
+gtk_gis_layer_source_postgis_get_type
+gtk_gis_layer_source_postgis_new
+gtk_gis_layer_source_postgis_new_from_xml
+</SECTION>
+
+<SECTION>
+<FILE>layersourceraster</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE_RASTER
+GTK_GIS_LAYER_SOURCE_RASTER
+GTK_GIS_LAYER_SOURCE_RASTER_CLASS
+IS_GTK_GIS_LAYER_SOURCE_RASTER
+IS_GTK_GIS_LAYER_SOURCE_RASTER_CLASS
+GTK_GIS_LAYER_SOURCE_RASTER_GET_CLASS
+<TITLE>GtkGisLayerSourceRaster</TITLE>
+GtkGisLayerSourceRaster
+gtk_gis_layer_source_raster_get_type
+gtk_gis_layer_source_raster_new
+gtk_gis_layer_source_raster_new_from_xml
+gtk_gis_layer_source_raster_get_filename
+</SECTION>
+
+<SECTION>
+<FILE>layersource</FILE>
+TYPE_GTK_GIS_LAYER_SOURCE
+GTK_GIS_LAYER_SOURCE
+GTK_GIS_LAYER_SOURCE_CLASS
+IS_GTK_GIS_LAYER_SOURCE
+IS_GTK_GIS_LAYER_SOURCE_CLASS
+GTK_GIS_LAYER_SOURCE_GET_CLASS
+<TITLE>GtkGisLayerSource</TITLE>
+GtkGisLayerSource
+gtk_gis_layer_source_get_type
+gtk_gis_layer_source_get_xml
+gtk_gis_layer_source_get_geometries
+gtk_gis_layer_source_get_layer_geometry_type
+gtk_gis_layer_source_get_layer_extent
+gtk_gis_layer_source_set_max_extent
+</SECTION>
+
+<SECTION>
+<FILE>commons</FILE>
+GtkGisLayerGeometryType
+</SECTION>
+
+<SECTION>
+<FILE>geometryraster</FILE>
+TYPE_GTK_GIS_GEOMETRY_RASTER
+GTK_GIS_GEOMETRY_RASTER
+GTK_GIS_GEOMETRY_RASTER_CLASS
+IS_GTK_GIS_GEOMETRY_RASTER
+IS_GTK_GIS_GEOMETRY_RASTER_CLASS
+GTK_GIS_GEOMETRY_RASTER_GET_CLASS
+<TITLE>GtkGisGeometryRaster</TITLE>
+GtkGisGeometryRaster
+gtk_gis_geometry_raster_get_type
+gtk_gis_geometry_raster_new_from_pixbuf
+</SECTION>
+
diff --git a/docs/reference/libgtkgis-undeclared.txt b/docs/reference/libgtkgis-undeclared.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/libgtkgis-undocumented.txt b/docs/reference/libgtkgis-undocumented.txt
new file mode 100644 (file)
index 0000000..c6a1297
--- /dev/null
@@ -0,0 +1,184 @@
+11% symbol docs coverage.
+21 symbols documented.
+7 symbols incomplete.
+169 not documented.
+
+
+GTK_GIS
+GTK_GIS_CLASS
+GTK_GIS_GEOMETRY
+GTK_GIS_GEOMETRY_CLASS
+GTK_GIS_GEOMETRY_GET_CLASS
+GTK_GIS_GEOMETRY_LINE
+GTK_GIS_GEOMETRY_LINE_CLASS
+GTK_GIS_GEOMETRY_LINE_GET_CLASS
+GTK_GIS_GEOMETRY_POINT
+GTK_GIS_GEOMETRY_POINT_CLASS
+GTK_GIS_GEOMETRY_POINT_GET_CLASS
+GTK_GIS_GEOMETRY_POLYGON
+GTK_GIS_GEOMETRY_POLYGON_CLASS
+GTK_GIS_GEOMETRY_POLYGON_GET_CLASS
+GTK_GIS_GEOMETRY_RASTER
+GTK_GIS_GEOMETRY_RASTER_CLASS
+GTK_GIS_GEOMETRY_RASTER_GET_CLASS
+GTK_GIS_GET_CLASS
+GTK_GIS_LAYER
+GTK_GIS_LAYERS_GROUP
+GTK_GIS_LAYERS_GROUP_CLASS
+GTK_GIS_LAYERS_GROUP_GET_CLASS
+GTK_GIS_LAYER_CLASS
+GTK_GIS_LAYER_GET_CLASS
+GTK_GIS_LAYER_SOURCE
+GTK_GIS_LAYER_SOURCE_CLASS
+GTK_GIS_LAYER_SOURCE_GET_CLASS
+GTK_GIS_LAYER_SOURCE_POSTGIS
+GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS
+GTK_GIS_LAYER_SOURCE_POSTGIS_GET_CLASS
+GTK_GIS_LAYER_SOURCE_RASTER
+GTK_GIS_LAYER_SOURCE_RASTER_CLASS
+GTK_GIS_LAYER_SOURCE_RASTER_GET_CLASS
+GTK_GIS_LAYER_SOURCE_SHP
+GTK_GIS_LAYER_SOURCE_SHP_CLASS
+GTK_GIS_LAYER_SOURCE_SHP_GET_CLASS
+GtkGis
+GtkGisGeometry
+GtkGisGeometryLine
+GtkGisGeometryPoint
+GtkGisGeometryPolygon
+GtkGisGeometryRaster
+GtkGisLayer
+GtkGisLayerGeometryType
+GtkGisLayerSource
+GtkGisLayerSourcePostgis
+GtkGisLayerSourceRaster
+GtkGisLayerSourceShp
+GtkGisLayersGroup
+IS_GTK_GIS
+IS_GTK_GIS_CLASS
+IS_GTK_GIS_GEOMETRY
+IS_GTK_GIS_GEOMETRY_CLASS
+IS_GTK_GIS_GEOMETRY_LINE
+IS_GTK_GIS_GEOMETRY_LINE_CLASS
+IS_GTK_GIS_GEOMETRY_POINT
+IS_GTK_GIS_GEOMETRY_POINT_CLASS
+IS_GTK_GIS_GEOMETRY_POLYGON
+IS_GTK_GIS_GEOMETRY_POLYGON_CLASS
+IS_GTK_GIS_GEOMETRY_RASTER
+IS_GTK_GIS_GEOMETRY_RASTER_CLASS
+IS_GTK_GIS_LAYER
+IS_GTK_GIS_LAYERS_GROUP
+IS_GTK_GIS_LAYERS_GROUP_CLASS
+IS_GTK_GIS_LAYER_CLASS
+IS_GTK_GIS_LAYER_SOURCE
+IS_GTK_GIS_LAYER_SOURCE_CLASS
+IS_GTK_GIS_LAYER_SOURCE_POSTGIS
+IS_GTK_GIS_LAYER_SOURCE_POSTGIS_CLASS
+IS_GTK_GIS_LAYER_SOURCE_RASTER
+IS_GTK_GIS_LAYER_SOURCE_RASTER_CLASS
+IS_GTK_GIS_LAYER_SOURCE_SHP
+IS_GTK_GIS_LAYER_SOURCE_SHP_CLASS
+TYPE_GTK_GIS
+TYPE_GTK_GIS_GEOMETRY
+TYPE_GTK_GIS_GEOMETRY_LINE
+TYPE_GTK_GIS_GEOMETRY_POINT
+TYPE_GTK_GIS_GEOMETRY_POLYGON
+TYPE_GTK_GIS_GEOMETRY_RASTER
+TYPE_GTK_GIS_LAYER
+TYPE_GTK_GIS_LAYERS_GROUP
+TYPE_GTK_GIS_LAYER_SOURCE
+TYPE_GTK_GIS_LAYER_SOURCE_POSTGIS
+TYPE_GTK_GIS_LAYER_SOURCE_RASTER
+TYPE_GTK_GIS_LAYER_SOURCE_SHP
+gtk_gis_add_group
+gtk_gis_add_layer
+gtk_gis_draw
+gtk_gis_geometry_draw
+gtk_gis_geometry_get_editable
+gtk_gis_geometry_get_point
+gtk_gis_geometry_get_type
+gtk_gis_geometry_line_add_point
+gtk_gis_geometry_line_add_point_from_coordinates
+gtk_gis_geometry_line_get_type
+gtk_gis_geometry_point_get_type
+gtk_gis_geometry_point_get_x
+gtk_gis_geometry_point_get_y
+gtk_gis_geometry_polygon_add_line
+gtk_gis_geometry_polygon_add_line_from_list
+gtk_gis_geometry_polygon_get_type
+gtk_gis_geometry_polygon_remove_line
+gtk_gis_geometry_raster_get_type
+gtk_gis_geometry_raster_new_from_pixbuf (x, y, x, y)
+gtk_gis_geometry_set_editable
+gtk_gis_get_layer_by_name
+gtk_gis_get_legend
+gtk_gis_get_scale
+gtk_gis_get_type
+gtk_gis_get_xml
+gtk_gis_layer_add_geometry
+gtk_gis_layer_draw
+gtk_gis_layer_get_editable
+gtk_gis_layer_get_extent
+gtk_gis_layer_get_name
+gtk_gis_layer_get_source
+gtk_gis_layer_get_type
+gtk_gis_layer_get_xml
+gtk_gis_layer_new (geometrytype, geometry_type)
+gtk_gis_layer_remove_geometry
+gtk_gis_layer_set_editable
+gtk_gis_layer_source_get_geometries (name, name)
+gtk_gis_layer_source_get_layer_extent
+gtk_gis_layer_source_get_layer_geometry_type
+gtk_gis_layer_source_get_type
+gtk_gis_layer_source_get_xml
+gtk_gis_layer_source_postgis_get_type
+gtk_gis_layer_source_postgis_new_from_xml (xnode, xnode)
+gtk_gis_layer_source_raster_get_filename
+gtk_gis_layer_source_raster_get_type
+gtk_gis_layer_source_raster_new_from_xml (xnode, xnode)
+gtk_gis_layer_source_set_max_extent
+gtk_gis_layer_source_shp_get_filename
+gtk_gis_layer_source_shp_get_type
+gtk_gis_layer_source_shp_new_from_xml (xnode, xnode)
+gtk_gis_layers_group_add_layer
+gtk_gis_layers_group_get_name
+gtk_gis_layers_group_get_type
+gtk_gis_layers_group_new (source, name, geometrytype, name)
+gtk_gis_layers_group_remove_layer
+gtk_gis_layers_group_set_name
+gtk_gis_new_from_file
+gtk_gis_new_from_xml
+gtk_gis_remove_group
+gtk_gis_remove_layer
+gtk_gis_save_to_xml
+gtk_gis_set_scale
+gtk_gis_zoom_to_layer
+gtk_gis_zoom_to_max
+
+
+commons:Long_Description
+commons:Short_Description
+geometry:Long_Description
+geometry:Short_Description
+geometryline:Long_Description
+geometryline:Short_Description
+geometrypoint:Long_Description
+geometrypoint:Short_Description
+geometrypolygon:Long_Description
+geometrypolygon:Short_Description
+geometryraster:Short_Description
+gtkgis:Long_Description
+gtkgis:Short_Description
+layer:Long_Description
+layer:Short_Description
+layersgroup:Long_Description
+layersgroup:Short_Description
+layersource:Long_Description
+layersource:Short_Description
+layersourcepostgis:Long_Description
+layersourcepostgis:Short_Description
+layersourceraster:Long_Description
+layersourceraster:Short_Description
+layersourceshp:Long_Description
+layersourceshp:Short_Description
+libgtkgis:Long_Description
+libgtkgis:Short_Description
diff --git a/docs/reference/libgtkgis-unused.txt b/docs/reference/libgtkgis-unused.txt
new file mode 100644 (file)
index 0000000..84968bc
--- /dev/null
@@ -0,0 +1,12 @@
+GtkGisClass
+GtkGisGeometryClass
+GtkGisGeometryLineClass
+GtkGisGeometryPointClass
+GtkGisGeometryPolygonClass
+GtkGisGeometryRasterClass
+GtkGisLayerClass
+GtkGisLayerSourceClass
+GtkGisLayerSourcePostgisClass
+GtkGisLayerSourceRasterClass
+GtkGisLayerSourceShpClass
+GtkGisLayersGroupClass
diff --git a/docs/reference/libgtkgis.args b/docs/reference/libgtkgis.args
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/libgtkgis.hierarchy b/docs/reference/libgtkgis.hierarchy
new file mode 100644 (file)
index 0000000..0e8ff3b
--- /dev/null
@@ -0,0 +1,28 @@
+GObject
+  GtkGisGeometry
+    GtkGisGeometryPoint
+    GtkGisGeometryPolygon
+    GtkGisGeometryLine
+    GtkGisGeometryRaster
+  GtkGisLayerSource
+    GtkGisLayerSourceShp
+    GtkGisLayerSourcePostgis
+    GtkGisLayerSourceRaster
+  GInitiallyUnowned
+    GtkObject
+      GtkWidget
+        GtkContainer
+          GtkBin
+            GtkGis
+  GtkGisLayersGroup
+  GtkGisLayer
+  GtkStyle
+  GdkDrawable
+    GdkWindow
+  GdkDragContext
+  GtkTooltip
+  GdkScreen
+GInterface
+  GTypePlugin
+  AtkImplementorIface
+  GtkBuildable
diff --git a/docs/reference/libgtkgis.interfaces b/docs/reference/libgtkgis.interfaces
new file mode 100644 (file)
index 0000000..149f94b
--- /dev/null
@@ -0,0 +1,4 @@
+GtkWidget AtkImplementorIface GtkBuildable
+GtkContainer AtkImplementorIface GtkBuildable
+GtkBin AtkImplementorIface GtkBuildable
+GtkGis AtkImplementorIface GtkBuildable
diff --git a/docs/reference/libgtkgis.prerequisites b/docs/reference/libgtkgis.prerequisites
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/libgtkgis.signals b/docs/reference/libgtkgis.signals
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/libgtkgis.types b/docs/reference/libgtkgis.types
new file mode 100644 (file)
index 0000000..59b5ef8
--- /dev/null
@@ -0,0 +1,12 @@
+gtk_gis_geometry_point_get_type
+gtk_gis_layer_source_shp_get_type
+gtk_gis_geometry_polygon_get_type
+gtk_gis_get_type
+gtk_gis_layers_group_get_type
+gtk_gis_layer_get_type
+gtk_gis_geometry_line_get_type
+gtk_gis_geometry_get_type
+gtk_gis_layer_source_postgis_get_type
+gtk_gis_layer_source_raster_get_type
+gtk_gis_layer_source_get_type
+gtk_gis_geometry_raster_get_type
index 613aa2bd041af3a75623d2aa4fa950882a9c877e..a0a520d583942520630d1117df5a539553924841 100644 (file)
@@ -9,13 +9,11 @@ commons
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index e7097f6e3840c6dbfb89c1d863ab4e27b2fdb063..e85927146f6c80fed11be5062c002d6178f93815 100644 (file)
@@ -9,13 +9,11 @@ GtkGisGeometry
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index 7fbc79d76b25976295c016729b746777c03cf12a..4d0e081978c16e156e82dff27214f9ded39628bb 100644 (file)
@@ -9,13 +9,11 @@ GtkGisGeometryLine
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index d480c60ee0c655d855885c0fffcd83cbee5edfb0..a91a87623ffdb44cd22a075a02c285cd0368e581 100644 (file)
@@ -9,13 +9,11 @@ GtkGisGeometryPoint
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index b43647844fa5499b053e0a731544e90ca229cf4d..11fceebb94f095dc3b9f9cd1df2f6f43915f94a1 100644 (file)
@@ -9,13 +9,11 @@ GtkGisGeometryPolygon
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index 3fe0dc2242342e44b537dca784738684a4b42fe2..cc09811d04cceade896ad10e02fa880f337c3ac2 100644 (file)
@@ -9,13 +9,11 @@ GtkGisGeometryRaster
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index 7651d682c003ac3ef55d10ac8a610a014655f17c..b164680863f3f060f06a88e60055709ff54aac93 100644 (file)
@@ -9,13 +9,11 @@ GtkGis
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
@@ -122,7 +120,6 @@ GtkGis
 
 @gtkgis: 
 @file_name: 
-@Returns: 
 
 
 <!-- ##### FUNCTION gtk_gis_add_group ##### -->
index c1be24812f73760744d1f225818f42837e385027..41029a76e6a1f8f8229588e6b918d3ffed2a02cd 100644 (file)
@@ -9,13 +9,11 @@ GtkGisLayer
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index a50d6468090402f118b64b4cd19d0e7d7ff1802b..6adaf1414ad538ca606be6e45edbe095d5b20299 100644 (file)
@@ -9,13 +9,11 @@ GtkGisLayersGroup
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index d63f8cc243df72773cf2421ce437c73a591d4688..cf3b90a60a2e363d41f02d914533d12218412592 100644 (file)
@@ -9,13 +9,11 @@ GtkGisLayerSource
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index 2cf23a55eddb32aa45409073dd548210f760d5da..a609a043eacc46187e263ce5dbdf29c97bce5857 100644 (file)
@@ -9,13 +9,11 @@ GtkGisLayerSourcePostgis
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index 15d8b63c0b302b8c877a1a916611144cb430cb9e..58c208ea0e47b09cb06c1c04188e6d14f37e6d1f 100644 (file)
@@ -9,13 +9,11 @@ GtkGisLayerSourceRaster
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index a56c32eb177068f6c210095e6ada685c8f9d0647..862db8ebb6e2fd4079b41a406bf33334d9179ff5 100644 (file)
@@ -9,13 +9,11 @@ GtkGisLayerSourceShp
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index d24f66ab270bc63b6bae51b699c3f43d42be56a1..4370e6683b7e703a623e588c2dd0256a433049ac 100644 (file)
@@ -9,13 +9,11 @@ libgtkgis
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
index 0c4b67f66fb94eb451d4ea9dc3a10d507aa93a57..76457fb27e46bc320c7bbdb56500574d8e2d92d3 100644 (file)
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: @PACKAGE_NAME@
 Description: A Gtk+ widget to embed base GIS functionalities into applications.
 Version: @PACKAGE_VERSION@
-Requires: gtk+-2.0 goocanvas
+Requires: gtk+-2.0 goocanvas libxml-2.0
 Libs: -L${libdir} @GDAL_LIBS@ -lgtkgis
 Cflags: @GDAL_CFLAGS@ -I${includedir}/gtkgis
index 4599eb5eaaeb54e7fe9030a84ad7657215386bc5..b4780244bd9ffce6d9fc6ddaa1883311ead4e295 100644 (file)
@@ -72,7 +72,7 @@ gtk_gis_geometry_init (GtkGisGeometry *gtk_gis_geometry)
 
 /**
  * gtk_gis_geometry_get_editable:
- * @geometry:
+ * @geometry: a #GtkGisGeometry object.
  *
  */
 gboolean
@@ -85,7 +85,7 @@ gtk_gis_geometry_get_editable (GtkGisGeometry *geometry)
 
 /**
  * gtk_gis_geometry_set_editable:
- * @geometry:
+ * @geometry: a #GtkGisGeometry object.
  * @editable:
  *
  */
@@ -99,7 +99,7 @@ gtk_gis_geometry_set_editable (GtkGisGeometry *geometry, gboolean editable)
 
 /**
  * gtk_gis_geometry_draw:
- * @geometry:
+ * @geometry: a #GtkGisGeometry object.
  *
  */
 GooCanvasItem
index ba25a7cea761462b1ca89fdcfa0a24ecc7d2b887..4341a58daab5a545a3699e1a9594bf821fd9a2be 100644 (file)
@@ -95,7 +95,7 @@ GtkGisGeometry
 
 /**
  * gtk_gis_geometry_line_new_from_list:
- * @points:
+ * @points: a #GSList of #GtkGisPoint to add to the line.
  *
  * Creates a new #GtkGisGeometryLine object.
  *
@@ -118,8 +118,8 @@ GtkGisGeometry
 
 /**
  * gtk_gis_geometry_line_add_point:
- * @line:
- * @point:
+ * @line: a #GtkGisGeometryLine object.
+ * @point: a #GtkGisPoint to add to the line.
  */
 void
 gtk_gis_geometry_line_add_point (GtkGisGeometryLine *line, GtkGisPoint point)
@@ -138,7 +138,7 @@ gtk_gis_geometry_line_add_point (GtkGisGeometryLine *line, GtkGisPoint point)
 
 /**
  * gtk_gis_geometry_line_add_point_from_coordinates:
- * @line:
+ * @line: a #GtkGisGeometryLine object.
  * @x:
  * @y:
  *
index fc4f22f728ec69bb836f930bb6bb6a28a5c0c96b..a0c05726c7b51af396ede3f91723232ffa258849 100644 (file)
@@ -76,7 +76,7 @@ gtk_gis_geometry_point_init (GtkGisGeometryPoint *gtk_gis_geometry_point)
 
 /**
  * gtk_gis_geometry_point_new:
- * @point:
+ * @point: a #GtkGisPoint struct.
  *
  * Creates a new #GtkGisGeometryPoint object.
  *
@@ -102,7 +102,7 @@ GtkGisGeometry
 
 /**
  * gtk_gis_geometry_get_point:
- * @point:
+ * @point: a #GtkGisGeometryPoint object.
  *
  * Returns:
  */
@@ -123,7 +123,7 @@ GtkGisPoint
 
 /**
  * gtk_gis_geometry_point_get_x:
- * @point:
+ * @point: a #GtkGisGeometryPoint object.
  *
  */
 gdouble
@@ -136,7 +136,7 @@ gtk_gis_geometry_point_get_x (GtkGisGeometryPoint *point)
 
 /**
  * gtk_gis_geometry_point_get_y:
- * @point:
+ * @point: a #GtkGisGeometryPoint object.
  *
  */
 gdouble
index 1c24709bd053df1eab146ad79fd6ae07ff9f19e5..96e52cf774ef7287e976bbcb01f1a6137842ecaf 100644 (file)
@@ -111,7 +111,7 @@ GtkGisGeometry
 
 /**
  * gtk_gis_geometry_polygon_new_from_list:
- * @points:
+ * @points: a #GSList og #GtkGisPoint to add to the polygon.
  *
  * Creates a new #GtkGisGeometryPolygon object.
  *
@@ -136,8 +136,8 @@ GtkGisGeometry
 
 /**
  * gtk_gis_geometry_polygon_add_line:
- * @polygon:
- * @line:
+ * @polygon: a #GtkGisGeometryPolygon object.
+ * @line: a #GtkGisGeometryLine object to add to the polygon.
  *
  */
 void
@@ -151,7 +151,7 @@ gtk_gis_geometry_polygon_add_line (GtkGisGeometryPolygon *polygon,
 
 /**
  * gtk_gis_geometry_polygon_add_line_from_list:
- * @polygon:
+ * @polygon: a #GtkGisGeometryPolygon object.
  * @points:
  *
  */
@@ -171,8 +171,8 @@ gtk_gis_geometry_polygon_add_line_from_list (GtkGisGeometryPolygon *polygon,
 
 /**
  * gtk_gis_geometry_polygon_remove_line:
- * @polygon:
- * @line:
+ * @polygon: a #GtkGisGeometryPolygon object.
+ * @line: a #GtkGisGeometryLine object to remove from the polygon.
  *
  */
 void
index 0be8dd7fe5b0fe59e5949a2090782ca491015b0e..61dab7ffd7fb89b9826d2750c00f5c2cd2e462a5 100644 (file)
@@ -80,7 +80,7 @@ gtk_gis_geometry_raster_init (GtkGisGeometryRaster *gtk_gis_geometry_raster)
 
 /**
  * gtk_gis_geometry_raster_new_from_pixbuf:
- * @pixbuf:
+ * @pixbuf: a #GdkPixbuf object from which to create the new #GtkGisGeometryRaster object. 
  * @x:
  * @y:
  *
index ac2db1da6d060c987b58a01b048145aeba52309f..186ceac6056b10f04259e0ea7c1dfad01331dab0 100644 (file)
@@ -179,7 +179,7 @@ GtkWidget
 
 /**
  * gtk_gis_new_from_xml:
- * @xdoc:
+ * @xdoc: an #xmlDoc that contains the GtkGis definition.
  *
  * Returns: the newly created #GtkGis object.
  */
@@ -292,7 +292,7 @@ GtkWidget
 
 /**
  * gtk_gis_new_from_file:
- * @file_name:
+ * @file_name: the xml file's name that contains the GtkGis definition.
  *
  * Returns: the newly created #GtkGis object.
  */
@@ -323,8 +323,9 @@ GtkWidget
 
 /**
  * gtk_gis_get_xml:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  *
+ * Returns: the #xmlDoc with the definition of the #GtkGis object.
  */
 xmlDoc
 *gtk_gis_get_xml (GtkGis *gtkgis)
@@ -365,14 +366,15 @@ xmlDoc
 
 /**
  * gtk_gis_save_to_xml:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  * @file_name:
  */
 void
-*gtk_gis_save_to_xml (GtkGis *gtkgis, const gchar *file_name)
+gtk_gis_save_to_xml (GtkGis *gtkgis, const gchar *file_name)
 {
        xmlDoc *xdoc;
 
+       g_return_if_fail (IS_GTK_GIS (gtkgis));
        g_return_if_fail (file_name != NULL);
 
        xdoc = gtk_gis_get_xml (gtkgis);
@@ -385,8 +387,8 @@ void
 
 /**
  * gtk_gis_add_layer:
- * @gtkgis:
- * @layer:
+ * @gtkgis: a #GtkGis object.
+ * @layer: a #GtkGisLayer object to add to the #GtkGis widget.
  */
 void
 gtk_gis_add_layer (GtkGis *gtkgis, GtkGisLayer *layer)
@@ -394,6 +396,8 @@ gtk_gis_add_layer (GtkGis *gtkgis, GtkGisLayer *layer)
        GtkGisPrivate *priv;
        GtkGisLayerExtent *extent;
 
+       g_return_if_fail (IS_GTK_GIS (gtkgis));
+
        priv = GTK_GIS_GET_PRIVATE (gtkgis);
 
        priv->layers = g_slist_append (priv->layers, layer);
@@ -441,20 +445,24 @@ g_fprintf(stderr,"max extent %f %f %f %f\n",priv->extent->min_x,priv->extent->mi
 
 /**
  * gtk_gis_remove_layer:
- * @gtkgis:
- * @layer:
+ * @gtkgis: a #GtkGis object.
+ * @layer: a #GtkGisLayer object to remove from the #GtkGis widget.
  */
 void
 gtk_gis_remove_layer (GtkGis *gtkgis, GtkGisLayer *layer)
 {
-       GtkGisPrivate *priv = GTK_GIS_GET_PRIVATE (gtkgis);
+       GtkGisPrivate *priv;
+
+       g_return_if_fail (IS_GTK_GIS (gtkgis));
+
+       priv = GTK_GIS_GET_PRIVATE (gtkgis);
 
        priv->layers = g_slist_remove (priv->layers, layer);
 }
 
 /**
  * gtk_gis_get_layer_by_name:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  * @layer_name:
  *
  */
@@ -466,7 +474,11 @@ GtkGisLayer
        GtkGisLayer *layer_tmp;
        GSList *cur;
 
-       GtkGisPrivate *priv = GTK_GIS_GET_PRIVATE (gtkgis);
+       GtkGisPrivate *priv;
+
+       g_return_val_if_fail (IS_GTK_GIS (gtkgis), NULL);
+
+       priv = GTK_GIS_GET_PRIVATE (gtkgis);
 
        cur = priv->layers;
        while (cur != NULL)
@@ -486,7 +498,7 @@ GtkGisLayer
 
 /**
  * gtk_gis_draw:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  *
  */
 void
@@ -516,7 +528,7 @@ gtk_gis_draw (GtkGis *gtkgis)
 
 /**
  * gtk_gis_get_scale:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  *
  * Returns: the #GtkGisScale.
  */
@@ -526,6 +538,8 @@ GtkGisScale
        GtkGisPrivate *priv;
        GtkGisScale *scale = NULL;
 
+       g_return_val_if_fail (IS_GTK_GIS (gtkgis), NULL);
+
        priv = GTK_GIS_GET_PRIVATE (gtkgis);
 
        scale = g_malloc0 (sizeof (GtkGisScale));
@@ -538,7 +552,7 @@ GtkGisScale
 
 /**
  * gtk_gis_set_scale:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  * @scale:
  *
  */
@@ -565,7 +579,7 @@ gtk_gis_set_scale (GtkGis *gtkgis, GtkGisScale *scale)
 
 /**
  * gtk_gis_zoom_to_max:
- * @gtkgis:
+ * @gtkgis: a #GtkGis object.
  *
  */
 void
@@ -597,24 +611,56 @@ gtk_gis_zoom_to_max (GtkGis *gtkgis)
                        gdouble extent_width;
                        gdouble extent_height;
 
+                       gdouble ratio;
+
                        gdouble plus;
 
                        extent_width = priv->extent->max_x - priv->extent->min_x;
                        extent_height = priv->extent->max_y - priv->extent->min_y;
 g_fprintf(stderr,"extent_width %f extent_height %f\n",extent_width,extent_height);
 
-                       if (extent_width > extent_height)
+                       ratio = widget_width / widget_height;
+
+                       plus = extent_width / ratio;
+
+                       if (plus > extent_height)
                                {
-                                       plus = (((widget_height * extent_width) / widget_width) - extent_height) / 2;
+                                       plus = (plus - extent_height) / 2;
                                        priv->extent->min_y -= plus;
                                        priv->extent->max_y += plus;
                                }
                        else
                                {
-                                       plus = (((widget_width * extent_height) / widget_height) - extent_width) / 2;
+                                       plus = extent_height * ratio;
+                                       plus = (plus - extent_width) / 2;
                                        priv->extent->min_x -= plus;
                                        priv->extent->max_x += plus;
                                }
+
+                       /*if (extent_width > extent_height)
+                               {
+                                       plus = (((widget_height * extent_width) / widget_width) - extent_height) / 2;
+                                       if (plus < 0) plus *= -1;
+                                       priv->extent->min_y -= plus;
+                                       priv->extent->max_y += plus;
+                               }
+                       else
+                               {
+                                       if (widget_width > widget_height)
+                                               {
+                                                       plus = (((widget_width * extent_height) / widget_height) - extent_width) / 2;
+                                                       if (plus < 0) plus *= -1;
+                                                       priv->extent->min_x -= plus;
+                                                       priv->extent->max_x += plus;
+                                               }
+                                       else
+                                               {
+                                                       plus = (((widget_height * extent_width) / widget_width) - extent_height) / 2;
+                                                       if (plus < 0) plus *= -1;
+                                                       priv->extent->min_y -= plus;
+                                                       priv->extent->max_y += plus;
+                                               }
+                               }*/
 g_fprintf(stderr,"plus %f\n",plus);
 
                        goo_canvas_set_bounds (GOO_CANVAS (priv->canvas),
@@ -637,8 +683,8 @@ g_fprintf(stderr,"scale_x %f scale_y %f scale_xy %f\n",scale->x,scale->y,scale->
 
 /**
  * gtk_gis_zoom_to_layer:
- * @gtkgis:
- * @layer:
+ * @gtkgis: a #GtkGis object.
+ * @layer: a #GtkGisLayer object at which to zoom.
  *
  */
 void
@@ -646,6 +692,8 @@ gtk_gis_zoom_to_layer (GtkGis *gtkgis, GtkGisLayer *layer)
 {
        GtkGisPrivate *priv;
 
+       g_return_if_fail (IS_GTK_GIS (gtkgis));
+
        priv = GTK_GIS_GET_PRIVATE (gtkgis);
 
 }
@@ -767,7 +815,7 @@ gtk_gis_realize (GtkWidget *widget)
                                | GDK_BUTTON_RELEASE_MASK
                                | GDK_POINTER_MOTION_MASK
                                | GDK_POINTER_MOTION_HINT_MASK;
-g_fprintf(stderr,"dentro realize %d %d %d %d\n",attributes.x,attributes.y,attributes.width,attributes.height);
+
        attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
 
        widget->window = gdk_window_new (gtk_widget_get_parent_window (widget),
@@ -905,7 +953,6 @@ gtk_gis_button_press_event (GtkWidget *widget,
 
                        priv->sel_start->x = event->x;
                        priv->sel_start->y = event->y;
-g_fprintf(stderr,"button press %f %f\n",priv->sel_start->x,priv->sel_start->y);
                }
 
        return FALSE;
@@ -949,7 +996,7 @@ gtk_gis_motion_notify_event (GtkWidget *widget,
        gtkgis = GTK_GIS (widget);
 
        priv = GTK_GIS_GET_PRIVATE (gtkgis);
-g_fprintf(stderr,"motion\n");
+
        if (event->is_hint)
                {
                        gdk_window_get_pointer (event->window, &x, &y, &state);
@@ -968,7 +1015,7 @@ g_fprintf(stderr,"motion\n");
                        GtkAllocation new_allocation;
 
                        allocation = priv->canvas->allocation;
-g_fprintf(stderr,"alloc %d %d sel %f %f event %d %d\n",allocation.x,allocation.y,priv->sel_start->x,priv->sel_start->y,x,y);
+
                        new_allocation.x = allocation.x + (x - (gint)priv->sel_start->x);
                        new_allocation.y = allocation.y + (y - (gint)priv->sel_start->y);
 
@@ -990,7 +1037,7 @@ gtk_gis_scroll_event (GtkWidget *widget,
 
        GtkGis *gtkgis;
        GtkGisScale *scale;
-g_fprintf(stderr,"dentro scroll event\n");
+
        g_return_val_if_fail (IS_GTK_GIS (widget), FALSE);
        g_return_val_if_fail (event != NULL, FALSE);
 
@@ -1000,13 +1047,13 @@ g_fprintf(stderr,"dentro scroll event\n");
        scale = gtk_gis_get_scale (gtkgis);
 
        if (event->direction == GDK_SCROLL_UP)
-               {g_fprintf(stderr,"dentro scroll up\n");
+               {
                        scale->x = (scale->x * 120) / 100;
                        scale->y = (scale->y * 120) / 100;
                        scale->xy = (scale->xy * 120) / 100;
                }
        else if (event->direction == GDK_SCROLL_DOWN)
-               {g_fprintf(stderr,"dentro scroll down\n");
+               {
                        scale->x = (scale->x * 80) / 100;
                        scale->y = (scale->y * 80) / 100;
                        scale->xy = (scale->xy * 80) / 100;
index 68cbec024a04bd990158b907bd0108378d253a5e..2626b283a6d532da91ecbf63cbfaa494b53d0f18 100644 (file)
@@ -60,7 +60,7 @@ GtkWidget *gtk_gis_new_from_xml (xmlDoc *xdoc);
 GtkWidget *gtk_gis_new_from_file (const gchar *file_name);
 
 xmlDoc *gtk_gis_get_xml (GtkGis *gtkgis);
-void *gtk_gis_save_to_xml (GtkGis *gtkgis, const gchar *file_name);
+void gtk_gis_save_to_xml (GtkGis *gtkgis, const gchar *file_name);
 
 void gtk_gis_add_group (GtkGis *gtkgis, GtkGisLayersGroup *layers_group);
 void gtk_gis_remove_group (GtkGis *gtkgis, GtkGisLayersGroup *layers_group);
index 00b8e37ba39565b1f1bdcb2117aa7c410c19659d..c967f281884cca428fcf4b5dfe2a22f0e3b4ecfe 100644 (file)
@@ -78,8 +78,8 @@ gtk_gis_layer_init (GtkGisLayer *gtk_gis_layer)
 
 /**
  * gtk_gis_layer_new:
- * @source:
- * @name:
+ * @source: a #GtkGisLayerSource object.
+ * @name: the layer's name to load.
  * @geometrytype:
  *
  * Creates a new empty #GtkGisLayer object.
@@ -109,7 +109,7 @@ GtkGisLayer
 
 /**
  * gtk_gis_layer_new_from_source:
- * @source:
+ * @source: a #GtkGisLayerSource object.
  * @name: the layer's name to load.
  *
  * Creates a new #GtkGisLayer object and load its content from the #GtkGisLayerSource.
@@ -136,7 +136,7 @@ GtkGisLayer
 
 /**
  * gtk_gis_layer_get_xml:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  *
  */
 xmlNode
@@ -168,7 +168,7 @@ xmlNode
 
 /**
  * gtk_gis_layer_get_name:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  *
  * Returns: the #GtkGisLayer's name.
  */
@@ -182,7 +182,7 @@ gchar
 
 /**
  * gtk_gis_layer_get_source:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  *
  * Returns: the #GtkGisLayerSource object associated.
  */
@@ -196,7 +196,7 @@ GtkGisLayerSource
 
 /**
  * gtk_gis_layer_fill_from_source:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  *
  * Loads the #GtkGisLayer's content from the associated #GtkGisLayerSource.
  * Contents loaded before will be lost.
@@ -211,7 +211,7 @@ gtk_gis_layer_fill_from_source (GtkGisLayer *layer)
 
 /**
  * gtk_gis_layer_save:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  * @source: The #GtkGisLayerSource to use. If NULL, it'll use the associated
  * #GtkGisLayerSource.
  *
@@ -225,8 +225,8 @@ gtk_gis_layer_save (GtkGisLayer *layer,
 
 /**
  * gtk_gis_layer_add_geometry:
- * @layer:
- * @geometry:
+ * @layer: a #GtkGisLayer object.
+ * @geometry: a #GtkGisGeometry to add to the layer.
  */
 void
 gtk_gis_layer_add_geometry (GtkGisLayer *layer, GtkGisGeometry *geometry)
@@ -238,8 +238,8 @@ gtk_gis_layer_add_geometry (GtkGisLayer *layer, GtkGisGeometry *geometry)
 
 /**
  * gtk_gis_layer_remove_geometry:
- * @layer:
- * @geometry:
+ * @layer: a #GtkGisLayer object.
+ * @geometry: a #GtkGisGeometry to remove from the layer.
  */
 void
 gtk_gis_layer_remove_geometry (GtkGisLayer *layer, GtkGisGeometry *geometry)
@@ -251,7 +251,7 @@ gtk_gis_layer_remove_geometry (GtkGisLayer *layer, GtkGisGeometry *geometry)
 
 /**
  * gtk_gis_layer_get_extent:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  *
  */
 GtkGisLayerExtent
@@ -268,7 +268,7 @@ GtkGisLayerExtent
 
 /**
  * gtk_gis_layer_get_editable:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  *
  * Returns: whether the layer is editable.
  */
@@ -282,7 +282,7 @@ gtk_gis_layer_get_editable (GtkGisLayer *layer)
 
 /**
  * gtk_gis_layer_set_editable:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  * @editable:
  */
 void
@@ -296,8 +296,9 @@ gtk_gis_layer_set_editable (GtkGisLayer *layer,
 
 /**
  * gtk_gis_layer_draw:
- * @layer:
+ * @layer: a #GtkGisLayer object.
  * @root:
+ * @scale:
  *
  */
 void
index 71c679ce6973f6f2a6e5f059dc662bb7d626a968..42f43c6102258be7b893eb96008755f54f6fa56a 100644 (file)
@@ -89,7 +89,7 @@ gtk_gis_layer_source_init (GtkGisLayerSource *gtk_gis_layer_source)
 
 /**
  * gtk_gis_layer_source_get_xml:
- * @source:
+ * @source: a #GtkGisLayerSource object.
  *
  */
 xmlNode
@@ -114,7 +114,7 @@ xmlNode
 
 /**
  * gtk_gis_layer_source_get_geometries:
- * @source:
+ * @source: a #GtkGisLayerSource object.
  * @name:
  *
  * Loads the #GtkGisLayerSource from the disk.
@@ -143,7 +143,7 @@ GList
 
 /**
  * gtk_gis_layer_source_get_layer_geometry_type:
- * @source:
+ * @source: a #GtkGisLayerSource object.
  * @name:
  *
  * Returns: a #GtkGisLayerGeometryType or -1 on error.
@@ -197,8 +197,8 @@ gtk_gis_layer_source_get_layer_geometry_type (GtkGisLayerSource *source,
 
 /**
  * gtk_gis_layer_source_get_layer_extent:
- * @source:
- * @name:
+ * @source: a #GtkGisLayerSource object.
+ * @name: the layer's name.'
  *
  * Returns:
  */
@@ -253,6 +253,12 @@ GtkGisLayerExtent
        return extent;
 }
 
+/**
+ * gtk_gis_layer_source_set_max_extent:
+ * @source:
+ * @extent:
+ *
+ */
 void
 gtk_gis_layer_source_set_max_extent (GtkGisLayerSource *source,
                                      GtkGisLayerExtent *extent)
index 1b49545885c81de11888104214d904a71ea24709..2182bd0fa6fed1b0c0fe28628dbfb35426112f9d 100644 (file)
@@ -25,10 +25,13 @@ main (int argc, char *argv[])
        gtk_gis_draw (GTK_GIS (gtkgis));
 
        scale = gtk_gis_get_scale (GTK_GIS (gtkgis));
-       scale->x = (scale->x * 80) / 100;
-       scale->y = (scale->y * 80) / 100;
-       scale->xy = (scale->xy * 80) / 100;
-       gtk_gis_set_scale (GTK_GIS (gtkgis), scale);
+       if (scale != NULL)
+               {
+                       scale->x = (scale->x * 80) / 100;
+                       scale->y = (scale->y * 80) / 100;
+                       scale->xy = (scale->xy * 80) / 100;
+                       gtk_gis_set_scale (GTK_GIS (gtkgis), scale);
+               }
 
        gtk_gis_save_to_xml (GTK_GIS (gtkgis), "test_saved.gtkgis");