CGContextKanvas

class CGContextKanvas(unmanagedContext: <Error class: unknown class>, width: Double, height: Double)

It is the calling code's responsibility to ensure that unmanagedContext outlives this object.

Constructors

Link copied to clipboard
constructor(ptr: CPointerVarOf<<Error class: unknown class>>, width: Double, height: Double)

When calling from Swift, use &yourCgContext.

constructor(unmanagedContext: <Error class: unknown class>, width: Double, height: Double)

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

Properties

Link copied to clipboard
open val height: Float
Link copied to clipboard
open val width: Float

Functions

Link copied to clipboard
open fun drawArc(left: Float, top: Float, right: Float, bottom: Float, startAngle: Float, sweepAngle: Float, paint: <Error class: unknown class>)
Link copied to clipboard
open fun drawCircle(centerX: Float, centerY: Float, radius: Float, paint: <Error class: unknown class>)
Link copied to clipboard
open fun drawColor(color: <Error class: unknown class>)
Link copied to clipboard
open fun drawLine(startX: Float, startY: Float, endX: Float, endY: Float, paint: <Error class: unknown class>)
Link copied to clipboard
open fun drawOval(left: Float, top: Float, right: Float, bottom: Float, paint: <Error class: unknown class>)
Link copied to clipboard
open fun drawPath(path: <Error class: unknown class>, paint: <Error class: unknown class>)
Link copied to clipboard
open fun drawRect(left: Float, top: Float, right: Float, bottom: Float, paint: <Error class: unknown class>)
Link copied to clipboard
open fun drawText(text: CharSequence, x: Float, y: Float, paint: <Error class: unknown class>)
Link copied to clipboard
open fun pop()
Link copied to clipboard
open fun pushClip(clip: <Error class: unknown class>)
Link copied to clipboard
open fun pushTransform(transform: <Error class: unknown class>)