]> Pileus Git - grits/blobdiff - src/objects/grits-poly.h
Improve performance of GritsPoly
[grits] / src / objects / grits-poly.h
index 4368df9a5006a69419143db3996df5c7fc3df8f5..ad7cefb5775343ad59e045aca59339b6de428c6b 100644 (file)
@@ -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