Function panda_sys::object_child_foreach [−][src]
pub unsafe extern "C" fn object_child_foreach(
obj: *mut Object,
fn_: Option<unsafe extern "C" fn(child: *mut Object, opaque: *mut c_void) -> c_int>,
opaque: *mut c_void
) -> c_int
Expand description
object_child_foreach: @obj: the object whose children will be navigated @fn: the iterator function to be called @opaque: an opaque value that will be passed to the iterator
Call @fn passing each child of @obj and @opaque to it, until @fn returns non-zero.
It is forbidden to add or remove children from @obj from the @fn callback.
Returns: The last value returned by @fn, or 0 if there is no child.