Top | ![]() |
![]() |
![]() |
![]() |
GskRenderNodeIter *
gsk_render_node_iter_new (void
);
Allocates a new GskRenderNodeIter.
Since: 3.90
void
gsk_render_node_iter_free (GskRenderNodeIter *iter
);
Frees the resources allocated by gsk_render_node_iter_new()
.
Since: 3.90
void gsk_render_node_iter_init (GskRenderNodeIter *iter
,GskRenderNode *node
);
Initializes a GskRenderNodeIter for iterating over the
children of node
.
It's safe to call this function multiple times on the same GskRenderNodeIter instance.
Since: 3.90
gboolean
gsk_render_node_iter_is_valid (GskRenderNodeIter *iter
);
Checks whether a GskRenderNodeIter is associated to a GskRenderNode, or whether the associated node was modified while iterating.
Since: 3.90
gboolean gsk_render_node_iter_prev (GskRenderNodeIter *iter
,GskRenderNode **child
);
Advances the iter
and retrieves the previous child of the root
GskRenderNode used to initialize the GskRenderNodeIter.
If the iterator could advance, this function returns TRUE
and sets the
child
argument with the child GskRenderNode.
If the iterator could not advance, this function returns FALSE
and the
contents of the child
argument are undefined.
Since: 3.90
gboolean gsk_render_node_iter_next (GskRenderNodeIter *iter
,GskRenderNode **child
);
Advances the iter
and retrieves the next child of the root GskRenderNode
used to initialize the GskRenderNodeIter.
If the iterator could advance, this function returns TRUE
and sets the
child
argument with the child GskRenderNode.
If the iterator could not advance, this function returns FALSE
and the
contents of the child
argument are undefined.
Since: 3.90
void
gsk_render_node_iter_remove (GskRenderNodeIter *iter
);
Removes the child GskRenderNode currently being visited by the iterator.
Calling this function on an invalid GskRenderNodeIter results in undefined behavior.
Since: 3.90