Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTPathExtensions.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ CPTAddRoundedRectPath()

CF_IMPLICIT_BRIDGING_DISABLED 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()

CF_IMPLICIT_BRIDGING_ENABLED __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.