CGContextKanvas

constructor(ptr: CPointerVarOf<CGContextRef>, width: Double, height: Double)

When calling from Swift, use &yourCgContext.


constructor(unmanagedContext: CGContextRef, width: Double, height: Double)

When calling from Swift, pass Unmanaged.passUnretained/passRetained(yourCgContext)