Ovis_Layer_Parent_Get()
Abstract
Returns the parent of an Ovis layer.
Syntax
Ovis_Layer_Parent_Get (layer_ptr)
| Argument | Type | Description |
|---|---|---|
layer_ptr |
OvisT_Layer * |
Ovis layer |
Return Type
OvisT_Layer *
Pointer to the parent layer
Header
ovis_layer.h
Details
This function accesses the layer hierarchy and returns the parent of the Ovis layer.
Example
OvisT_Layer * parent, * child;
/* …child created elsewhere */
parent = Ovis_Layer_Parent_Get (child);
Errors
- Layer is NIL.
Reference
- Use the function
Ovis_Layer_Child_Layer_Count()to get the number of child layers of a layer. - Use the function
Ovis_Layer_Child_Layer_Nth()to get one child layer of a layer.