GrGetRegionBox()

Name

GrGetRegionBox() -- Get a region's bounding rectangle

Synopsis

int GrGetRegionBox ( GR_REGION_ID region , GR_RECT * rect );

Description

This function retrieves athe specified regions bounding rectangle. The returned rectangle will enclose all of the region. The function also returns the region's type.

Parameters

TypeNameDescription
GR_REGION_IDregionThe ID of the region.
GR_RECT*rectA caller supplied rectangle to receive the regions bounding rectangle.

Returns

The region type, can be one of the following: MWREGION_ERROR, MWREGION_NULL, MWREGION_SIMPLE or MWREGION_COMPLEX.

See Also

GrNewRegion(), GrDestroyRegion(),