Commit 9c3a2b50 authored by Michael Natterer's avatar Michael Natterer 😴

app: add gimp_canvas_corner_set() which sets everything except the anchor

parent f3c999c8
......@@ -445,3 +445,28 @@ gimp_canvas_corner_new (GimpDisplayShell *shell,
"outside", outside,
NULL);
}
void
gimp_canvas_corner_set (GimpCanvasItem *corner,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
gint corner_width,
gint corner_height,
gboolean outside)
{
g_return_if_fail (GIMP_IS_CANVAS_CORNER (corner));
gimp_canvas_item_begin_change (corner);
g_object_set (corner,
"x", x,
"y", y,
"width", width,
"height", height,
"corner-width", corner_width,
"corner-height", corner_height,
"outside", outside,
NULL);
gimp_canvas_item_end_change (corner);
}
......@@ -59,5 +59,14 @@ GimpCanvasItem * gimp_canvas_corner_new (GimpDisplayShell *shell,
gint corner_height,
gboolean outside);
void gimp_canvas_corner_set (GimpCanvasItem *corner,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
gint corner_width,
gint corner_height,
gboolean outside);
#endif /* __GIMP_CANVAS_CORNER_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment