test_generic();
test_zoom();
test_event();
+ test_polygons();
return 0;
}
}
+#
+# Test the polygons
+#
+sub test_polygons {
+ my $view = Champlain::View->new();
+ isa_ok($view, 'Champlain::View');
+
+ my $line = Champlain::Polygon->new();
+ my $triangle = Champlain::Polygon->new();
+ my $square = Champlain::Polygon->new();
+
+ # Note these can't be tested as the API provides no way for querying the polygons
+ $view->add_polygon($line);
+ $view->add_polygon($triangle);
+ $view->add_polygon($square);
+
+ $view->remove_polygon($line);
+ $view->remove_polygon($square);
+}
+
+
#
# Test ensure_visible().
#
gboolean
champlain_view_get_zoom_on_double_click (ChamplainView *view)
+
+
+void
+champlain_view_add_polygon (ChamplainView *view, ChamplainPolygon *polygon)
+
+
+void
+champlain_view_remove_polygon (ChamplainView *view, ChamplainPolygon *polygon)