Ovis_Decoration_Destroy_Proc_Set()

Abstract

Attaches a destroy procedure to an Ovis decoration.

Syntax

Ovis_Decoration_Destroy_Proc_Set (dec_ptr, destroy_proc)
Argument Type Description
dec_ptr OvisT_Decoration * Decoration on which to attach the destroy procedure.
destroy_proc OvisT_Decoration_State_Destroy_Proc Destroy procedure to attach.

Return Type

OvisT_Decoration_State_Destroy_Proc

Previous destroy_proc, or PRGC_NIL if none.

ovis_decoration.h

Details

This function attaches a user-defined destroy_proc to an Ovis decoration. The prototype for destroy_proc is given in OvisT_Decoration_State_Destroy_Proc.

Example

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);

Errors

  • Decoration is NIL.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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