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

PtBalloonCallback_t

Balloon callback structure

Synopsis:

typedef struct Pt_balloon_callback {
    PtWidget_t *widget;
    void (*event_f)( PtWidget_t *wgt, 
                     void *data, 
                     PtCallbackInfo_t *cbinfo);
    } PtBalloonCallback_t;

Description:

The PtBalloonCallback_t structure lets you attach a balloon callback to a widget's container. The container invokes the specified function whenever a balloon action is warranted. This structure contains at least:

widget
A pointer to the widget the callback is being attached to.
event_f
A pointer to an inflate/deflate function that's called whenever a balloon action is required for widget. The arguments passed to this function are:
wgt
A pointer to the widget whose balloon is being affected.
data
NULL.
cbinfo
In the cbinfo structure, the reason member is Pt_CB_BALLOONS, and the reason_subtype member is one of the following:
  • Pt_INFLATE_BALLOON-- make the balloon visible.
  • Pt_POP_BALLOON-- remove the balloon.

Classification:

Photon

See also:

PtCallbackInfo_t, PtContainer