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/lib_ref/pt/ptcalccanvas.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/lib_ref/pt/ptcalccanvas.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/lib_ref/pt/ptcalccanvas.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/lib_ref/pt/ptcalccanvas.html on line 8

PtCalcCanvas()

Calculate the drawable canvas for a widget

Synopsis:

PhRect_t *PtCalcCanvas( PtWidget_t *widget,
                        PhRect_t *canvas_rect);

Library:

ph

Description:

This function determines the canvas rectangle for the specified widget and caches it in the widget's internal memory. This canvas rectangle describes the area inside the widget's border and any margins.

If canvas_rect isn't NULL, PtCalcCanvas() copies the canvas rectangle into the PhRect_t structure it points to.

Returns:

A pointer to the PhRect_t structure that defines the canvas. If canvas_rect is non-NULL, this is the same pointer as canvas_rect.


Caution: If you pass NULL for canvas_rect, PtCalcCanvas() returns a pointer into the widget's internal memory. Don't modify the contents of the structure or free the memory.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhRect_t, PtWidgetExtent()


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/lib_ref/pt/ptcalccanvas.html on line 110

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/lib_ref/pt/ptcalccanvas.html on line 110