region_t

Declaration

typedef struct {
rect_t rect;
span_t *spans;
} region_t

Prototype In

mgraph.h

Description

Structure representing a complex region. Complex regions are used to represent non-rectangular areas as unions of smaller rectangles (the smallest being a single pixel). You can use complex regions to build complex clipping regions for user interface library development (such as the SciTech MegaVision Library which makes extensive use of the MGL's region management functions).

Members

rect | Bounding rectangle for the region. If the spans field below is NULL, then the region is a simple region and is composed of only a single rectangle. Note however that you can have a simple region that consists of only single rectangle in the span structure (usually after complex region arithmetic). You can use the MGL_isSimpleRegion function to determine if the region contains only a single rectangle.
spans | Pointer to the internal region span structure.

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com