NSFrameRectWithWidthUsingOperation
Draws a bordered rectangle using the specified compositing operation.
Declaration
extern void NSFrameRectWithWidthUsingOperation(NSRect rect, CGFloat frameWidth, NSCompositingOperation op);Parameters
- rect:
The bounding rectangle (in the current coordinate system) in which to draw.
- frameWidth:
The width of the frame, specified in points.
- op:
The compositing operation to use when drawing the frame.
Discussion
Draws a frame around the inside of aRect in the current color, using the compositing operation op. The width is equal to frameWidth in the current coordinate system. Since the frame is drawn inside the rectangle, it will be visible even if drawing is clipped to the rectangle.
Because this function does not draw directly on the line, but rather inside it, it uses the current fill color (not stroke color) when drawing.
For more information, see NSCompositingOperation.