Carbon


Polygon

Header: Quickdraw.h

typedef MacPolygon Polygon;

After you use the OpenPoly function to create a polygon, QuickDraw begins collecting the line-drawing information you provide into a MacPolygon structure. The OpenPoly function returns a handle to the newly allocated MacPolygon structure. Thereafter, your application normally refers to your new polygon by this handle, because QuickDraw functions such as FramePoly and PaintPoly expect a handle to a Polygon as their first parameter.

A polygon is defined by a sequence of connected lines. A MacPolygon structure consists of two fixed-length fields followed by a variable-length array of points: the starting point followed by each successive point to which a line is drawn.

Your application typically does not need to create a MacPolygon structure.


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