[gegl] Introspectable gegl_node_get_bounding_box
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Introspectable gegl_node_get_bounding_box
- Date: Fri, 7 Jun 2013 05:51:02 +0000 (UTC)
commit bb3b8f225d7b56247bed62ea1e7f7ced0a747a85
Author: Daniel Sabo <DanielSabo gmail com>
Date: Wed Jun 5 22:50:51 2013 -0700
Introspectable gegl_node_get_bounding_box
gegl/gegl-introspection-support.c | 11 +++++++++++
gegl/gegl-introspection-support.h | 14 ++++++++++++++
gegl/gegl.h | 2 +-
3 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-introspection-support.c b/gegl/gegl-introspection-support.c
index 77a0125..1a4c6a7 100644
--- a/gegl/gegl-introspection-support.c
+++ b/gegl/gegl-introspection-support.c
@@ -34,6 +34,17 @@
#include "graph/gegl-node.h"
#include "gegl-introspection-support.h"
+GeglRectangle *
+gegl_node_introspectable_get_bounding_box (GeglNode *node)
+{
+ GeglRectangle bbox = gegl_node_get_bounding_box (node);
+ GeglRectangle *result = g_new (GeglRectangle, 1);
+
+ *result = bbox;
+
+ return result;
+}
+
GValue *
gegl_node_introspectable_get_property (GeglNode *node,
const gchar *property_name)
diff --git a/gegl/gegl-introspection-support.h b/gegl/gegl-introspection-support.h
index 9dba300..9558a86 100644
--- a/gegl/gegl-introspection-support.h
+++ b/gegl/gegl-introspection-support.h
@@ -29,6 +29,20 @@
#include <gegl-types.h>
+ /**
+ * gegl_node_introspectable_get_bounding_box:
+ * @node: a #GeglNode
+ *
+ * Returns the position and dimensions of a rectangle spanning the area
+ * defined by a node.
+ *
+ * Rename to: gegl_node_get_bounding_box
+ *
+ * Return value: (transfer full): pointer a #GeglRectangle
+ */
+GeglRectangle *
+gegl_node_introspectable_get_bounding_box (GeglNode *node);
+
/**
* gegl_node_introspectable_get_property:
* @node: the node to get a property from
diff --git a/gegl/gegl.h b/gegl/gegl.h
index 3b3d5cf..4c6025a 100644
--- a/gegl/gegl.h
+++ b/gegl/gegl.h
@@ -562,7 +562,7 @@ GParamSpec * gegl_node_find_property (GeglNode *node,
/**
- * gegl_node_get_bounding_box:
+ * gegl_node_get_bounding_box: (skip)
* @node: a #GeglNode
*
* Returns the position and dimensions of a rectangle spanning the area
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]