NSRectFillListWithColorsUsingOperation
Fills the rectangles in a list using the specified colors and compositing operation.
Declaration
extern void NSRectFillListWithColorsUsingOperation(const NSRect *rects, NSColor * const*colors, NSInteger num, NSCompositingOperation op);Parameters
- rects:
A pointer to an array of Nsrect structures representing the rectangles to fill.
- colors:
A pointer to an array of Nscolor objects. The number of color objects in this parameter must equal the number of rectangles in the
rectsparameter. - num:
The number of rectangles in the
rectsparameter. - op:
The compositing operation to use when filling the rectangles.
Discussion
Takes a list of num rectangles and a matching list of color values. The first rectangle is filled with the first color, the second rectangle with the second color, and so on. There must be an equal number of rectangles and color values. Each fill operation is performed using the compositing operation op. The rectangles should not overlap; the order in which they are filled cannot be guaranteed. This function alters the current color of the current graphics state, setting it unpredictably to one of the values passed in colors.
For more information, see NSCompositingOperation.