Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTPathExtensions.m File Reference
+ Include dependency graph for CPTPathExtensions.m:

Functions

__nonnull CGPathRef CPTCreateRoundedRectPath (CGRect rect, CGFloat cornerRadius)
 Creates a rectangular path with rounded corners. More...
 
void CPTAddRoundedRectPath (__nonnull CGContextRef context, CGRect rect, CGFloat cornerRadius)
 Adds a rectangular path with rounded corners to a graphics context. More...
 

Function Documentation

◆ CPTAddRoundedRectPath()

void CPTAddRoundedRectPath ( __nonnull CGContextRef  context,
CGRect  rect,
CGFloat  cornerRadius 
)

Adds a rectangular path with rounded corners to a graphics context.

Parameters
contextThe graphics context.
rectThe bounding rectangle for the path.
cornerRadiusThe radius of the rounded corners.

◆ CPTCreateRoundedRectPath()

__nonnull CGPathRef CPTCreateRoundedRectPath ( CGRect  rect,
CGFloat  cornerRadius 
)

Creates a rectangular path with rounded corners.

Parameters
rectThe bounding rectangle for the path.
cornerRadiusThe radius of the rounded corners.
Returns
The new path. Caller is responsible for releasing this.