[Previous] [Contents] [Index] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtInvokeCallbackType()

Invoke a callback list of a specific type

Synopsis:

int PtInvokeCallbackType( PtWidget_t *widget,
                          long type,
                          PtCallbackInfo_t *cbinfo );

Arguments:

widget
The widget pointer to pass to the callbacks as the first argument.
type
The type of callback list to invoke, for example Pt_CB_ARM.
cbinfo
A pointer to a PtCallbackInfo_t structure (see the Photon Widget Reference) that's passed to each callback in the list as the third argument.

Description:

This function invokes a callback list of type for a widget. It's a convenience function that you can use instead of PtGetCallbackList() and PtInvokeCallbackList().

Returns:

A return status from the callback list:

If the returned status is Pt_END, have your function consume the event (i.e. return Pt_END).

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGetCallbackList() and PtInvokeCallbackList()

PtCallbackInfo_t in the Photon Widget Reference


[Previous] [Contents] [Index] [Next]