app: add gimp_canvas_polygon_new_from_coords()

and use it from gimp_draw_tool_draw_strokes().
This commit is contained in:
Michael Natterer
2010-09-23 00:40:32 +02:00
parent eeeea7c69b
commit 7c82f3dc09
3 changed files with 46 additions and 5 deletions

View File

@ -47,11 +47,14 @@ struct _GimpCanvasPolygonClass
};
GType gimp_canvas_polygon_get_type (void) G_GNUC_CONST;
GType gimp_canvas_polygon_get_type (void) G_GNUC_CONST;
GimpCanvasItem * gimp_canvas_polygon_new (const GimpVector2 *points,
gint n_points,
gboolean filled);
GimpCanvasItem * gimp_canvas_polygon_new (const GimpVector2 *points,
gint n_points,
gboolean filled);
GimpCanvasItem * gimp_canvas_polygon_new_from_coords (const GimpCoords *points,
gint n_points,
gboolean filled);
#endif /* __GIMP_CANVAS_POLYGON_H__ */