Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgenlistdrawbackground.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgenlistdrawbackground.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgenlistdrawbackground.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgenlistdrawbackground.html on line 8

PtGenListDrawBackground()

Draw the background of a list

Synopsis:

void PtGenListDrawBackground(
         PtWidget_t *list,
         PtGenListItem_t const *items,
         unsigned nitems,
         PhRect_t const *where,
         int lmarg,
         int rmarg,
         int tmarg,
         int bmarg );

Arguments:

list
The widget pointer.
items
A pointer to the PtGenListItem_t structure for the first item that needs to be redrawn.
nitems
The number of items the function should look at.
where
A pointer to a PhRect_t structure (see the Photon Library Reference) that defines the extent of the items.
lmarg, rmarg, tmarg, bmarg
These arguments define additional “margins” on the left, right, top, and bottom — by setting them to a positive value, you can shorten the selection bar.

Description:

This function can be used by a child class of PtGenList for drawing the background. If the Pt_GEN_LIST_SHOW_DAMAGED bit is set in list->gflags, the function draws only the background for damaged items.

To determine the color it uses to draw the background, PtGenListDrawBackground() calls the List Attributes method for the list widget.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtGenList, PtGenListItem_t

PhRect_t in the Photon Library Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgenlistdrawbackground.html on line 134

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptgenlistdrawbackground.html on line 134