Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kMsgQueue_SetDropHandler | ( | kMsgQueue | queue,
|  | kMsgQueueDropFx | onDrop,
|  | kPointer | receiver
| ) |  |

Sets the callback used when dropping an item.

If a handler is not set, and the queue contains objects, then dropped objects are passed to kObject_Dispose.

Parameters

  queue | Queue object.
  onDrop | Callback function.
  receiver | Callback context.

Returns
  Operation status.