Instance Method

appendBezierPathWithRoundedRect:xRadius:yRadius:

Appends a rounded rectangular path to the receiver’s path.

Declaration

- (void)appendBezierPathWithRoundedRect:(NSRect)rect xRadius:(CGFloat)xRadius yRadius:(CGFloat)yRadius;

Parameters

rect

The rectangle that defines the basic shape of the path.

xRadius

The radius of each corner oval along the x-axis. Values larger than half the rectangle’s width are clamped to half the width.

yRadius

The radius of each corner oval along the y-axis. Values larger than half the rectangle’s height are clamped to half the height.

Discussion

The path is constructed in a counter-clockwise direction, starting at the top-left corner of the rectangle. If either one of the radius parameters contains the value 0.0, the returned path is a plain rectangle without rounded corners.

See Also

Appending Common Shapes to a Path

- appendBezierPath:

Appends the contents of the specified path object to the receiver’s path.

- appendBezierPathWithPoints:count:

Appends a series of line segments to the receiver’s path.

- appendBezierPathWithOvalInRect:

Appends an oval path to the receiver, inscribing the oval in the specified rectangle.

- appendBezierPathWithArcFromPoint:toPoint:radius:

Appends an arc to the receiver’s path.

- appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:

Appends an arc of a circle to the receiver’s path.

- appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:clockwise:

Appends an arc of a circle to the receiver’s path.

- appendBezierPathWithGlyph:inFont:

Appends an outline of the specified glyph to the receiver’s path.

Deprecated
- appendBezierPathWithGlyphs:count:inFont:

Appends the outlines of the specified glyphs to the receiver’s path.

Deprecated
- appendBezierPathWithPackedGlyphs:

Appends an array of packed glyphs to the receiver’s path.

Deprecated
- appendBezierPathWithRect:

Appends a rectangular path to the receiver’s path.