StdRect
GrafVerb gVerb ; frame, paint, erase, invert, or fill
Rect *theRect ; rectangle to draw, in local coordinates This is Quickdraw's default low-level routine for drawing rectangles. The
rectangle is framed, painted, erased, inverted, or filled, depending upon the
grafVerb parameter.
gVerb is a GrafVerb enumerated-integer data type specifying the operation
to perform; it must be one of:
frame 0 draw the outline using current pen parameters
paint 1 fill with thePort->pnPat
erase 2 fill with thePort->bkPat
invert 3 toggle all bits enclosed by the object
fill 4 fill with thePort->fillPat
theRect is the address of an 8-byte Rect structure, expressed in local coordinates, which defines the coordinates of the rectangle.
Notes: Use StdRect only if your application intercepts the Quickdraw bottleneck All grafVerbs are performed using values taken from the current grafPort.
Output is clipped to portBits.bounds, portRect, visRgn, and clipRgn. This function does not affect the pen position.
If a region is currently open and being formed (see OpenRgn), and gVerb=frame, StdRect adds the rectangle's interior to the region's incorporates the rectangle into its definition.