Ovis_Decoration_Parent_Layer_Nth()
摘要
返回承载该 Ovis 装饰的第 N 个图层。
语法
Ovis_Decoration_Parent_Layer_Nth (dec_ptr, parent_index)
| 参数 | 类型 | 说明 |
|---|---|---|
dec_ptr |
OvisT_Decoration * |
Ovis 装饰 |
parent_index |
unsigned int |
图层索引 |
返回类型
OvisT_Layer *
父图层
头文件
ovis_decoration.h
详情
该函数返回指向承载 Ovis 装饰对象的第 n 个图层的指针。
示例
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_Count() 函数获取父图层数量。