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

PtRawCallback_t

Event handler structure

Synopsis:

typedef struct Pt_raw_callback {
    unsigned long   event_mask;
    int             (*event_f)( PtWidget_t *, void *, 
                                PtCallbackInfo_t * );
    void            *data;
    } PtRawCallback_t;

Description:

The PtRawCallback_t structure lets you specify event handlers for various widgets. You use this structure when setting the Pt_CB_RAW resource of any widget (see PtWidget) or calling PtAddEventHandler().

This structure contains at least the following members:

event_mask
Which events will trigger the function specified in event_f. See PhEvent_t in the Photon Library Reference.
event_f
Pointer to the callback function.
data
Data that's passed as the second parameter to the callback function when that function is invoked.

Classification:

Photon

See also:

PtBalloonCallback_t, PtCallback_t, PtCallbackInfo_t, Pt_CB_RAW (PtWidget), PtHotkeyCallback_t


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