Ovis_Decoration_Parent_Layer_Count()
Abstract
Returns the number of layers that hold the Ovis decoration.
Syntax
Ovis_Decoration_Parent_Layer_Count (dec_ptr)
| Argument | Type | Description |
|---|---|---|
dec_ptr |
OvisT_Decoration * |
Ovis decoration |
Return Type
unsigned int
The number of parent layers
Header
ovis_decoration.h
Details
This function returns the number of layers to which the decoration is associated.
Example
OvisT_2D_Line * line;
unsigned int count, i;
OvisT_Layer * layer;
/* …line created elsewhere */
count = Ovis_Decoration_Parent_Layer_Count (line);
for (i = 0; i < count; i++)
{
layer = Ovis_Decoration_Parent_Layer_Nth (line, i);
/* … do something with layer */
}
Errors
- Decoration is NIL.
Reference
- Use the function Ovis_Decoration_Parent_Layer_Nth() to get the n-th layer associated with the decoration.