gobj_walk_gobj_childs_tree()
#
Traverses the child objects of a given hgobj
in a specified order and applies a callback function to each child.
Prototype
int gobj_walk_gobj_childs_tree(
hgobj gobj,
walk_type_t walk_type,
cb_walking_t cb_walking,
void *user_data,
void *user_data2
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The parent |
|
|
Specifies the traversal order, such as |
|
|
A callback function that is applied to each child |
|
|
User-defined data passed to the callback function. |
|
|
Additional user-defined data passed to the callback function. |
Return Value
Returns 0 on success or a negative value if an error occurs.
Notes
The callback function should return 0 to continue traversal, a negative value to stop traversal, or a positive value to skip the current branch when using WALK_TOP2BOTTOM
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples