[Previous] [Contents] [Index] [Next]

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 );

Description:

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

The fields argument specifies which fields of the structure pointed to by region the function should fill in. For more information about the fields, see PhRegionOpen() in the Photon Library Reference.

The rectangle for the region is stored in the structure pointed to by rect.

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:

PhRegionOpen()


[Previous] [Contents] [Index] [Next]