Ovis_Layer_Child_Layer_Count()
Abstract
Returns the number of children layers owned by a layer.
Syntax
Ovis_Layer_Child_Layer_Count (layer_ptr)
| Argument | Type | Description |
|---|---|---|
layer_ptr |
OvisT_Layer * |
Layer |
Return Type
unsigned int
Number of child layers
Header
ovis_layer.h
Details
This function returns the number of children layers owned by the layer.
Example
OvisT_Layer * parent, * child;
unsigned int count, i;
/* …parent layer created elsewhere */
count = Ovis_Layer_Child_Layer_Count (parent);
for (i = 0; i < count; i++)
{
child = Ovis_Layer_Child_Layer_Nth (parent, i);
/* … do something with child layer */
}
Errors
- Layer is NIL.
Reference
- Use the function
Ovis_Layer_Child_Layer_Nth()to retrieve the various child layers of a layer.