app: add gimp_tool_polygon_is_closed()

(cherry picked from commit f84f1d89dc)
This commit is contained in:
Ell
2019-04-25 04:24:58 -04:00
parent 7d4ea79a98
commit c161b0cccb
2 changed files with 13 additions and 0 deletions

View File

@ -1432,6 +1432,18 @@ gimp_tool_polygon_new (GimpDisplayShell *shell)
NULL);
}
gboolean
gimp_tool_polygon_is_closed (GimpToolPolygon *polygon)
{
GimpToolPolygonPrivate *private;
g_return_val_if_fail (GIMP_IS_TOOL_POLYGON (polygon), FALSE);
private = polygon->private;
return private->polygon_closed;
}
void
gimp_tool_polygon_get_points (GimpToolPolygon *polygon,
const GimpVector2 **points,