Ovis_Decoration_Destroy_Proc_Set()
摘要
为 Ovis 装饰物附加一个销毁过程。
语法
Ovis_Decoration_Destroy_Proc_Set (dec_ptr, destroy_proc)
| 参数 | 类型 | 说明 |
|---|---|---|
dec_ptr |
OvisT_Decoration * |
要附加销毁过程的装饰物。 |
destroy_proc |
OvisT_Decoration_State_Destroy_Proc |
要附加的销毁过程。 |
返回类型
OvisT_Decoration_State_Destroy_Proc
之前的 destroy_proc,若没有则为 PRGC_NIL。
头文件
ovis_decoration.h
详情
此函数为 Ovis 装饰物附加用户定义的 destroy_proc。destroy_proc 的原型见 OvisT_Decoration_State_Destroy_Proc。
示例
static void new_destroy_proc (OvisT_Decoration * dec_ptr, void * user_state_ptr)
{
…
}
OvisT_2D_Text * text;
OvisT_Decoration_State_Destroy_Proc old_proc;
/* … text created at some point with an initial position */
old_proc = Ovis_Decoration_Destroy_Proc_Set (text, new_destroy_proc);
错误
- 装饰物为 NIL。
参考
- 使用函数
Ovis_Decoration_State_Set()指定装饰物的状态。 - 使用函数
Ovis_Decoration_Destroy()销毁装饰物。