Carbon


Region

Header: Quickdraw.h

typedef MacRegion Region;

You can use a region, which is a data structure of type Region, to define an arbitrary area or set of areas on the QuickDraw coordinate plane. For example, when scrolling through a window, your application must initialize an update region and pass its handle to the function ScrollRect.

The data structure for a region consists of two fixed-length fields followed by a variable-length field.The maximum size of a region is 32 KB when using basic QuickDraw, 64 KB when using Color QuickDraw. The simplest region is a rectangle. In this case, the rgnBBox field defines the entire region, and there’s no optional region data. For rectangular regions (or empty regions), the rgnSize field contains 10.

Region data is stored in a proprietary format.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)