PtInflateBalloon()

Create a balloon widget

Synopsis:

PtWidget_t *PtInflateBalloon( PtWidget_t *win, 
                              PtWidget_t *me, 
                              int position, 
                              char const *string,  
                              char const *font,  
                              PgColor_t fill,
                              PgColor_t text_color );

Library:

ph

Description:

This function creates a label widget as a child of win. The widget is placed according to position, relative to me. The string is rendered inside the label widget using a text color of text_color, and the font specified in font (which you should create by calling PfGenerateFontName()). The widget itself is filled with the color specified in fill.

Valid values for position include:

Returns:

A pointer to the newly created balloon widget, or NULL if win isn't a disjoint widget (e.g. PtWindow, PtRegion, etc.) or me is NULL.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PfGenerateFontName(), PgColor_t