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/wid_build/libs/ptsetextentfromarea.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/wid_build/libs/ptsetextentfromarea.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/wid_build/libs/ptsetextentfromarea.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/wid_build/libs/ptsetextentfromarea.html on line 8

PtSetExtentFromArea()

Calculate the extent of a widget

Synopsis:

PhRect_t * PtSetExtentFromArea( 
              PtWidget_t *widget, 
              PhArea_t const *area, 
              PhRect_t *extent );

Arguments:

widget
A pointer to the widget for which you want to calculate the extent.
area
A pointer to a PhArea_t structure that defines the area that the extent will be based on.
extent
A pointer to a PhRect_t where the function can store the extent.

Description:

This function calculates the extent rectangle of widget and places the result in the structure pointed to by extent. The extent is calculated based on the area, and the widget's borders only (i.e. no anchoring or resize policy is enforced).

Returns:

The same pointer as the extent rectangle.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhArea_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/wid_build/libs/ptsetextentfromarea.html on line 111

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/wid_build/libs/ptsetextentfromarea.html on line 111