<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRectFillList",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSRectFillList"
  },
  "title" : "NSRectFillList"
}
-->

# NSRectFillList

Fills the rectangles in the passed list with the current fill color.

```
extern void NSRectFillList(const NSRect *rects, NSInteger count);
```

## Parameters

`rects`

A pointer to an array of <doc://com.apple.documentation/documentation/Foundation/NSRect> structures representing the rectangles to fill.

`count`

The number of rectangles in `rects`.

## Discussion

Fills the specified rectangles with the current fill color using the compositing mode `NSCompositeCopy`.

For more information, see [`NSCompositingOperation`](/documentation/AppKit/NSCompositingOperation).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)