| ![[Previous]](image-lib/prev.gif) | ![[Contents]](image-lib/contents.gif) | ![[Index]](image-lib/keyword_index.gif) | ![[Next]](image-lib/next.gif) | 
Regular callback structure
typedef struct Pt_callback {
    int (*event_f)( PtWidget_t *, void *, 
                    PtCallbackInfo_t * );
    void *data;
    } PtCallback_t;
The PtCallback_t structure lets you specify a widget's callbacks when you call PtCreateWidget() or PtAddCallbacks().
This structure contains at least:
A callback function takes the following arguments:
|  | A PhAB callback takes as its second argument a pointer to an ApInfo_t structure. For more information, see the Photon Library Reference. | 
Callback functions should return Pt_CONTINUE unless the description of the widget's callback resource gives you a reason to return something else.
Photon
PtBalloonCallback_t, PtCallbackInfo_t, PtHotkeyCallback_t, PtRawCallback_t
ApInfo_t, PtAddCallbacks(), PtCreateWidget() in the Photon Library Reference
"Manipulating callbacks in your code" in the Creating Widgets in Application Code chapter of the Photon Programmer's Guide.
| ![[Previous]](image-lib/prev.gif) | ![[Contents]](image-lib/contents.gif) | ![[Index]](image-lib/keyword_index.gif) | ![[Next]](image-lib/next.gif) |