]> Pileus Git - grits/blobdiff - src/objects/grits-poly.h
Add support for Mercator projections in tiles
[grits] / src / objects / grits-poly.h
index 4368df9a5006a69419143db3996df5c7fc3df8f5..449286981e2715c2ec3a531133dc80968a00e6c0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2010-2011 Andy Spencer <andy753421@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -38,7 +38,9 @@ struct _GritsPoly {
        GritsObject  parent_instance;
        gdouble   (**points)[3];
        gdouble      color[4];
-       guint        list;
+       gdouble      border[4];
+       gdouble      width;
+       guint        list[2];
 };
 
 struct _GritsPolyClass {
@@ -49,4 +51,7 @@ GType grits_poly_get_type(void);
 
 GritsPoly *grits_poly_new(gdouble (**points)[3]);
 
+GritsPoly *grits_poly_parse(const gchar *str,
+               const gchar *poly_sep, const gchar *point_sep, const gchar *coord_sep);
+
 #endif