PtRemoveCallback()

Remove a single callback entry from a callback list

Synopsis:

void PtRemoveCallback( PtWidget_t *widget,
                       unsigned long callback_type,
                       PtCallbackF_t *callback,
                       void *data );

Library:

ph

Description:

This function removes the first callback entry that matches callback and data. It removes the entry from the callback_type callback list that belongs to widget.


Note: Some types of callback resources have special routines that you should use instead of this one:
Pt_CB_FILTER
PtRemoveFilterCallback() or PtRemoveFilterCallbacks()
Pt_CB_HOTKEY
PtRemoveHotkeyHandler()
Pt_CB_RAW
PtRemoveEventHandler() or PtRemoveEventHandlers()

The callback argument points to a function that takes this form:

int (*callback)( PtWidget_t *, void *, 
               PtCallbackInfo_t *)

Examples:

See PtAddCallback().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtAddCallback(), PtAddCallbacks(), PtRemoveCallbacks(), PtRemoveEventHandler(), PtRemoveEventHandlers(), PtRemoveFilterCallback(), PtRemoveFilterCallbacks(), PtRemoveHotkeyHandler()

PtCallbackInfo_t in the Photon Widget Reference

Callbacks in the Managing Widgets in Application Code chapter of the Photon Programmer's Guide