Function

NSRectFill

Fills the passed rectangle with the current color.

Declaration

void NSRectFill(NSRect rect);

Parameters

aRect

The bounding rectangle (in the current coordinate system) in which to draw.

Discussion

Fills aRect with the current color using the compositing mode NSCompositeCopy, which fills with the current color by copying the RGBA values. Use NSRectFillUsingOperation to fill specifying a compositing mode.

For a list of compositing operations and how you use them, see Cocoa Drawing Guide.

See Also

Drawing Rectangles

NSFrameRect

Draw a bordered rectangle.

NSFrameRectWithWidth

Draw a bordered rectangle.

NSFrameRectWithWidthUsingOperation

Draw a bordered rectangle using the specified compositing operation.

NSEraseRect

Erases the specified rect by filling it with white.

NSRectFillList

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

NSRectFillListUsingOperation

Fills the rectangles in a list using the current fill color and specified compositing operation.

NSRectFillListWithColors

Fills the rectangles in the passed list with the passed list of colors.

NSRectFillListWithColorsUsingOperation

Fills the rectangles in a list using the specified colors and compositing operation.

NSRectFillListWithGrays

Fills the rectangles in the passed list with the passed list of grays.

NSRectFillUsingOperation

Fills a rectangle using the current fill color and the specified compositing operation.

NSDrawTiledRects

Draws rectangles with borders.

NSDrawGroove

Draws a gray-filled rectangle with a groove border.

NSHighlightRect

Highlights the specified rect by filling it with white.

Deprecated