Functions | |
GR_REGION_ID | GrNewRegion (void) |
Creates a new region structure. | |
void | GrDestroyRegion (GR_REGION_ID region) |
Destroys a region structure. | |
void | GrUnionRectWithRegion (GR_REGION_ID region, GR_RECT *rect) |
Makes a union of the specified region and the specified rectangle. | |
void | GrUnionRegion (GR_REGION_ID dst_rgn, GR_REGION_ID src_rgn1, GR_REGION_ID src_rgn2) |
Makes a union of two regions. | |
void | GrSubtractRegion (GR_REGION_ID dst_rgn, GR_REGION_ID src_rgn1, GR_REGION_ID src_rgn2) |
Subtracts the second source region from the first source region and places the result in the specified destination region. | |
void | GrXorRegion (GR_REGION_ID dst_rgn, GR_REGION_ID src_rgn1, GR_REGION_ID src_rgn2) |
Performs a logical exclusive OR operation on the specified source regions and places the result in the destination region. | |
void | GrIntersectRegion (GR_REGION_ID dst_rgn, GR_REGION_ID src_rgn1, GR_REGION_ID src_rgn2) |
Calculates the intersection of the two specified source regions and places the result in the specified destination region. | |
void | GrSetGCRegion (GR_GC_ID gc, GR_REGION_ID region) |
Sets the clip mask of the specified graphics context to the specified region. | |
GR_BOOL | GrPointInRegion (GR_REGION_ID region, GR_COORD x, GR_COORD y) |
Tests whether the specified point is within the specified region, and then returns either True or False depending on the result. | |
int | GrRectInRegion (GR_REGION_ID region, GR_COORD x, GR_COORD y, GR_COORD w, GR_COORD h) |
Tests whether the specified rectangle is contained within the specified region. | |
GR_BOOL | GrEmptyRegion (GR_REGION_ID region) |
Determines whether the specified region is empty. | |
GR_BOOL | GrEqualRegion (GR_REGION_ID rgn1, GR_REGION_ID rgn2) |
Determines whether the specified regions are identical, and returns GR_TRUE if it is, or GR_FALSE otherwise. | |
void | GrOffsetRegion (GR_REGION_ID region, GR_SIZE dx, GR_SIZE dy) |
Offsets the specified region by the specified distance. | |
int | GrGetRegionBox (GR_REGION_ID region, GR_RECT *rect) |
Fills in the specified rectangle structure with a bounding box that would completely enclose the specified region, and also returns the type of the specified region. | |
GR_REGION_ID | GrNewPolygonRegion (int mode, GR_COUNT count, GR_POINT *points) |
Creates a new region structure, fills it with the region described by the specified polygon, and returns the ID used to refer to it. | |
GR_REGION_ID | GrNewBitmapRegion (GR_BITMAP *bitmap, GR_SIZE width, GR_SIZE height) |
Creates a new region structure, fills it with the region described by the specified polygon, and returns the ID used to refer to it. |
|
Destroys a region structure.
|
|
Determines whether the specified region is empty.
|
|
Determines whether the specified regions are identical, and returns GR_TRUE if it is, or GR_FALSE otherwise.
|
|
Fills in the specified rectangle structure with a bounding box that would completely enclose the specified region, and also returns the type of the specified region.
|
|
Calculates the intersection of the two specified source regions and places the result in the specified destination region. The destination region will contain only the parts of the source regions which overlap each other.
|
|
Creates a new region structure, fills it with the region described by the specified polygon, and returns the ID used to refer to it. 1 bits in the bitmap specify areas inside the region and 0 bits specify areas outside it.
|
|
Creates a new region structure, fills it with the region described by the specified polygon, and returns the ID used to refer to it.
|
|
Creates a new region structure. The structure is initialised with a set of default parameters.
|
|
Offsets the specified region by the specified distance.
|
|
Tests whether the specified point is within the specified region, and then returns either True or False depending on the result.
|
|
Tests whether the specified rectangle is contained within the specified region. Returns GR_RECT_OUT if it is not inside it at all, GR_RECT_ALLIN if it is completely contained within the region, or GR_RECT_PARTIN if it is partially contained within the region.
|
|
Sets the clip mask of the specified graphics context to the specified region. Subsequent drawing operations using this graphics context will not draw outside the specified region. The region ID can be set to 0 to remove the clipping region from the specified graphics context.
|
|
Subtracts the second source region from the first source region and places the result in the specified destination region.
|
|
Makes a union of the specified region and the specified rectangle. Places the result back in the source region.
|
|
Makes a union of two regions. Places the result in the specified destination region.
|
|
Performs a logical exclusive OR operation on the specified source regions and places the result in the destination region. The destination region will contain only the parts of the source regions which do not overlap.
|