Class type Dom.canvasRenderingContext2D


class type canvasRenderingContext2D = object .. end

method _get_canvas : canvas
method save : unit
method restore : unit
method scale : float -> float -> unit
method rotate : float -> unit
method translate : float -> float -> unit
method transform : float -> float -> float -> float -> float -> float -> unit
method setTransform : float -> float -> float -> float -> float -> float -> unit
method _get_globalAlpha : float
method _set_globalAlpha : float -> unit
method _get_globalCompositeOperation : string
method _set_globalCompositeOperation : string -> unit
method _get_strokeStyle : string
method _set_strokeStyle : string -> unit
method _get_strokeStyle_canvasGradient_ : canvasGradient
method _set_strokeStyle_canvasGradient_ : canvasGradient -> unit
method _get_strokeStyle_canvasPattern_ : canvasPattern
method _set_strokeStyle_canvasPattern_ : canvasPattern -> unit
method _get_fillStyle : string
method _set_fillStyle : string -> unit
method _get_fillStyle_canvasGradient_ : canvasGradient
method _set_fillStyle_canvasGradient_ : canvasGradient -> unit
method _get_fillStyle_canvasPattern_ : canvasPattern
method _set_fillStyle_canvasPattern_ : canvasPattern -> unit
method createLinearGradient : float -> float -> float -> float -> canvasGradient
method createRadialGradient : float -> float -> float -> float -> float -> float -> canvasGradient
method createPattern : image -> string -> canvasPattern
method createPattern_canvas_ : canvas -> string -> canvasPattern
method _get_lineWidth : float
method _set_lineWidth : float -> unit
method _get_lineCap : string
method _set_lineCap : string -> unit
method _get_miterLimit : float
method _set_miterLimit : float -> unit
method _get_shadowOffsetX : float
method _set_shadowOffsetX : float -> unit
method _get_shadowOffsetY : float
method _set_shadowOffsetY : float -> unit
method _get_shadowBlur : float
method _set_shadowBlur : float -> unit
method _get_shadowColor : string
method _set_shadowColor : string -> unit
method clearRect : float -> float -> float -> float -> unit
method fillRect : float -> float -> float -> float -> unit
method strokeRect : float -> float -> float -> float -> unit
method beginPath : unit
method closePath : unit
method moveTo : float -> float -> unit
method lineTo : float -> float -> unit
method quadraticCurveTo : float -> float -> float -> float -> unit
method bezierCurveTo : float -> float -> float -> float -> float -> float -> unit
method arcTo : float -> float -> float -> float -> float -> unit
method rect : float -> float -> float -> float -> unit
method arc : float -> float -> float -> float -> float -> bool -> unit
method fill : unit
method stroke : unit
method clip : unit
method isPointInPath : float -> float -> bool
method _get_font : string
method _set_font : string -> unit
method _get_textAlign : string
method _set_textAlign : string -> unit
method _get_textBaseline : string
method _set_textBaseline : string -> unit
method fillText : string -> float -> float -> unit
method fillText_maxWidth_ : string -> float -> float -> float -> unit
method strokeText : string -> float -> float -> unit
method strokeText_maxWidth_ : string -> float -> float -> float -> unit
method measureText : string -> textMetrics
method drawImage : image -> float -> float -> unit
method drawImage_5_ : image -> float -> float -> float -> float -> unit
method drawImage_9_ : image ->
float -> float -> float -> float -> float -> float -> float -> float -> unit
method drawImage_canvas_ : canvas -> float -> float -> unit
method drawImage_canvas5_ : canvas -> float -> float -> float -> float -> unit
method drawImage_canvas9_ : canvas ->
float -> float -> float -> float -> float -> float -> float -> float -> unit
method createImageData : float -> float -> imageData
method getImageData : float -> float -> float -> float -> imageData
method putImageData : imageData -> float -> float -> unit
method putImageData_7_ : imageData -> float -> float -> float -> float -> float -> float -> unit