[librsvg: 4/9] rsvg-private.h: Declare node children iter functions
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/9] rsvg-private.h: Declare node children iter functions
- Date: Thu, 15 Mar 2018 20:53:01 +0000 (UTC)
commit 5dfbca24e31205d98ee51417e85b9a5d049da00c
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Thu Mar 15 21:29:42 2018 +0300
rsvg-private.h: Declare node children iter functions
librsvg/rsvg-private.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/librsvg/rsvg-private.h b/librsvg/rsvg-private.h
index a3c981b9..af6ac13f 100644
--- a/librsvg/rsvg-private.h
+++ b/librsvg/rsvg-private.h
@@ -408,6 +408,26 @@ void rsvg_node_draw (RsvgNode *node, RsvgDrawingCtx *draw, int dominate);
G_GNUC_INTERNAL
void rsvg_node_set_attribute_parse_error (RsvgNode *node, const char *attr_name, const char *description);
+typedef struct RsvgNodeChildrenIter *RsvgNodeChildrenIter;
+
+/* Implemented in rust/src/node.rs */
+G_GNUC_INTERNAL
+RsvgNodeChildrenIter *rsvg_node_children_iter_begin (RsvgNode *node);
+
+/* Implemented in rust/src/node.rs */
+G_GNUC_INTERNAL
+gboolean rsvg_node_children_iter_next (RsvgNodeChildrenIter *iter,
+ RsvgNode **out_child);
+
+/* Implemented in rust/src/node.rs */
+G_GNUC_INTERNAL
+gboolean rsvg_node_children_iter_next_back (RsvgNodeChildrenIter *iter,
+ RsvgNode **out_child);
+
+/* Implemented in rust/src/node.rs */
+G_GNUC_INTERNAL
+void rsvg_node_children_iter_end (RsvgNodeChildrenIter *iter);
+
/* Used to iterate among a node's children with rsvg_node_foreach_child().
* If this caller-supplied function returns FALSE, iteration will stop.
* Otherwise, iteration will continue to the next child node.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]