CanvasDrawPath

external interface CanvasDrawPath (source)

Platform and version requirements: JS

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

stroke

abstract fun stroke()
abstract fun stroke(path: Path2D)

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Inheritors

CanvasRenderingContext2D

abstract external class CanvasRenderingContext2D : 
    CanvasState,
    CanvasTransform,
    CanvasCompositing,
    CanvasImageSmoothing,
    CanvasFillStrokeStyles,
    CanvasShadowStyles,
    CanvasFilters,
    CanvasRect,
    CanvasDrawPath,
    CanvasUserInterface,
    CanvasText,
    CanvasDrawImage,
    CanvasHitRegion,
    CanvasImageData,
    CanvasPathDrawingStyles,
    CanvasTextDrawingStyles,
    CanvasPath,
    RenderingContext

Exposes the JavaScript CanvasRenderingContext2D to Kotlin