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/ptsetareafromcanvas.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/ptsetareafromcanvas.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/ptsetareafromcanvas.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/ptsetareafromcanvas.html on line 8

PtSetAreaFromCanvas()

Calculate an area based on the canvas and borders of a widget

Synopsis:

PhArea_t * PtSetAreaFromCanvas(
               PtWidget_t *widget,
               PhRect_t const *canvas_rect,
               PhArea_t *area);

Library:

ph

Description:

This function sets the PhArea_t structure pointed to by area to an area that produces a widget canvas of canvas_rect, given the attributes, borders, etc. of widget.


Note: The area argument must be provided and have its own storage. This function doesn't allocate any memory.

Returns:

The same pointer as the area argument, or NULL if an error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhArea_t, PhAreaToRect(), PhRect_t, PhRectToArea()


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/ptsetareafromcanvas.html on line 108

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/ptsetareafromcanvas.html on line 108