[gegl] gegl: Add gegl_rectangle_dump() for debugging purposes
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Add gegl_rectangle_dump() for debugging purposes
- Date: Tue, 2 Jun 2009 16:34:50 -0400 (EDT)
commit ec67736766fb81fbe06855d261358514714faa73
Author: Martin Nordholts <martinn src gnome org>
Date: Tue Jun 2 22:25:38 2009 +0200
gegl: Add gegl_rectangle_dump() for debugging purposes
---
gegl/gegl-utils.c | 10 ++++++++++
gegl/gegl-utils.h | 7 +++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/gegl/gegl-utils.c b/gegl/gegl-utils.c
index 1328856..af29f27 100644
--- a/gegl/gegl-utils.c
+++ b/gegl/gegl-utils.c
@@ -191,6 +191,16 @@ gegl_rectangle_is_infinite_plane (const GeglRectangle *rectangle)
rectangle->height == G_MAXINT);
}
+void
+gegl_rectangle_dump (const GeglRectangle *rectangle)
+{
+ g_print ("%d, %d, %dÃ?%d\n",
+ rectangle->x,
+ rectangle->y,
+ rectangle->width,
+ rectangle->height);
+}
+
GType
gegl_rectangle_get_type (void)
{
diff --git a/gegl/gegl-utils.h b/gegl/gegl-utils.h
index 5c48adb..8608b16 100644
--- a/gegl/gegl-utils.h
+++ b/gegl/gegl-utils.h
@@ -155,6 +155,13 @@ GeglRectangle gegl_rectangle_infinite_plane (void);
*/
gboolean gegl_rectangle_is_infinite_plane (const GeglRectangle *rectangle);
+/**
+ * gegl_rectangle_dump:
+ * @rectangle: A GeglRectangle.
+ *
+ * For debugging purposes, not stable API.
+ */
+void gegl_rectangle_dump (const GeglRectangle *rectangle);
/***
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]