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。

参考

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com