Supported Browsers Home   
GA_rect Previous   
GA_regionFuncs Next   
Type Definitions Up   

GA_region

Declaration

typedef struct {
    GA_rect rect;
    GA_span *spans;
    } GA_region

Prototype In

snap/graphics.h

Description

Fundamental type definition 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.

If the Spans field for the region 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 GA_IsSimpleRegion macro to determine if the region contains only a single rectangle.

Members

Rect

Bounding rectangle for the region

spans

Pointer to the internal region span structure.

 

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