[gegl/soc-2011-warp] GeglPath: add some doc



commit 5bbc32b44f462f1b23365e01fcf0961bd55a4b3d
Author: Michael Murà <batolettre gmail com>
Date:   Tue Jun 28 19:28:18 2011 +0200

    GeglPath: add some doc

 gegl/property-types/gegl-path.c |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index 1ee4875..719eedc 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -108,7 +108,7 @@ static const gchar *    parse_float_pair              (const gchar      *p,
                                                        gdouble          *y);
 static void             gegl_path_emit_changed        (GeglPath         *self,
                                                        const GeglRectangle *bounds);
-static void             ensure_flattened              (GeglPath         *vector);
+static void             ensure_flattened              (GeglPath         *path);
 static GeglPathList *   ensure_tail                   (GeglPathPrivate  *priv);
 
 static GeglPathList *   flatten_copy                  (GeglMatrix3      *matrix,
@@ -1074,8 +1074,16 @@ gegl_path_emit_changed (GeglPath            *self,
                  bounds, NULL);
 }
 
+
+/**
+ * ensure_flattened:
+ * @path: a #GeglPath
+ *
+ * Check if the polyline version of the curse is computed and up to date,
+ * and compute it if needed.
+ */
 static void
-ensure_flattened (GeglPath *vector)
+ensure_flattened (GeglPath *path)
 {
   GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (vector);
   gint i;
@@ -1107,6 +1115,12 @@ ensure_flattened (GeglPath *vector)
   priv->calc_clean = FALSE;
 }
 
+/**
+ * ensure_tail:
+ * @priv: the private struct of a GeglPath
+ *
+ * Ensure that priv->tail point to the last element of the path list
+ */
 static GeglPathList *
 ensure_tail (GeglPathPrivate *priv)
 {
@@ -1132,6 +1146,7 @@ ensure_tail (GeglPathPrivate *priv)
   priv->tail = tail;
   return tail;
 }
+
 /***** Flattener *****/
 static GeglPathList *
 flatten_nop (GeglMatrix3  *matrix,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]