CanvasDrawPath
interface CanvasDrawPath
Functions
beginPath
abstract fun beginPath()
clip
abstract fun clip(
fillRule: CanvasFillRule = definedExternally)
abstract fun clip(
path: Path2D,
fillRule: CanvasFillRule = definedExternally)
fill
abstract fun fill(
fillRule: CanvasFillRule = definedExternally)
abstract fun fill(
path: Path2D,
fillRule: CanvasFillRule = definedExternally)
isPointInPath
abstract fun isPointInPath(
x: Double,
y: Double,
fillRule: CanvasFillRule = definedExternally
): Boolean
abstract fun isPointInPath(
path: Path2D,
x: Double,
y: Double,
fillRule: CanvasFillRule = definedExternally
): Boolean
isPointInStroke
abstract fun isPointInStroke(x: Double, y: Double): Boolean
abstract fun isPointInStroke(
path: Path2D,
x: Double,
y: Double
): Boolean
resetClip
abstract fun resetClip()
Inheritors
CanvasRenderingContext2D
Exposes the JavaScript CanvasRenderingContext2D to Kotlin
abstract class CanvasRenderingContext2D :
CanvasState,
CanvasTransform,
CanvasCompositing,
CanvasImageSmoothing,
CanvasFillStrokeStyles,
CanvasShadowStyles,
CanvasFilters,
CanvasRect,
CanvasDrawPath,
CanvasUserInterface,
CanvasText,
CanvasDrawImage,
CanvasHitRegion,
CanvasImageData,
CanvasPathDrawingStyles,
CanvasTextDrawingStyles,
CanvasPath,
RenderingContext