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

PtCalcRegion()

Determine whether or not a widget needs a region

Synopsis:

int PtCalcRegion( unsigned int *fields,
                  PtWidget_t *widget,
                  PhRegion_t *region,
                  PhRect_t *rect );

Arguments:

fields
A bitmap that specifies which fields of the PhRegion_t structure pointed to by region the function should fill in. For more information, see PhRegionOpen() in the Photon Library Reference.
widget
A pointer to the widget you want to test.
region
A pointer to a PhRegion_t structure in which the function stores information about the region.
rect
A pointer to a PhRect_t structure that defines the rectangle for the region.

Description:

This function determines whether or not the given widget needs a region and stores information about the region in the PhRegion_t structure pointed to by region.

Returns:

0
The widget doesn't need a region.
1
The widget needs a region.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhRect_t, PhRegion_t, PhRegionOpen() 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/ptcalcregion.html on line 130

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/ptcalcregion.html on line 130