Ovis_Decoration_Parent_Layer_Count()
摘要
返回承载该 Ovis 装饰的图层数量。
语法
Ovis_Decoration_Parent_Layer_Count (dec_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
dec_ptr |
OvisT_Decoration * |
Ovis 装饰 |
返回类型
unsigned int
父图层数量
头文件
ovis_decoration.h
详情
该函数返回该装饰所关联的图层数量。
示例
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 */
}
错误
- 装饰为 NIL。
参考
- 使用 Ovis_Decoration_Parent_Layer_Nth() 函数获取与该装饰关联的第 n 个图层。