app: add gimp_tool_polygon_is_closed()
(cherry picked from commit f84f1d89dc
)
This commit is contained in:
@ -1432,6 +1432,18 @@ gimp_tool_polygon_new (GimpDisplayShell *shell)
|
|||||||
NULL);
|
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
|
void
|
||||||
gimp_tool_polygon_get_points (GimpToolPolygon *polygon,
|
gimp_tool_polygon_get_points (GimpToolPolygon *polygon,
|
||||||
const GimpVector2 **points,
|
const GimpVector2 **points,
|
||||||
|
@ -54,6 +54,7 @@ GType gimp_tool_polygon_get_type (void) G_GNUC_CONST;
|
|||||||
|
|
||||||
GimpToolWidget * gimp_tool_polygon_new (GimpDisplayShell *shell);
|
GimpToolWidget * gimp_tool_polygon_new (GimpDisplayShell *shell);
|
||||||
|
|
||||||
|
gboolean gimp_tool_polygon_is_closed (GimpToolPolygon *polygon);
|
||||||
void gimp_tool_polygon_get_points (GimpToolPolygon *polygon,
|
void gimp_tool_polygon_get_points (GimpToolPolygon *polygon,
|
||||||
const GimpVector2 **points,
|
const GimpVector2 **points,
|
||||||
gint *n_points);
|
gint *n_points);
|
||||||
|
Reference in New Issue
Block a user