nsgenbind
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CanvasRenderingContext2D Interface Reference

import <html.idl;

Public Member Functions

void commit ()
 
void save ()
 
void restore ()
 
void scale (unrestricted double x, unrestricted double y)
 
void rotate (unrestricted double angle)
 
void translate (unrestricted double x, unrestricted double y)
 
void transform (unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f)
 
void setTransform (unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f)
 
void resetTransform ()
 
 attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle
 
 attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle
 
CanvasGradient createLinearGradient (double x0, double y0, double x1, double y1)
 
CanvasGradient createRadialGradient (double x0, double y0, double r0, double x1, double y1, double r1)
 
CanvasPattern createPattern (CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition)
 
void clearRect (unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h)
 
void fillRect (unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h)
 
void strokeRect (unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h)
 
void beginPath ()
 
void fill (optional CanvasFillRule fillRule="nonzero")
 
void fill (Path2D path, optional CanvasFillRule fillRule="nonzero")
 
void stroke ()
 
void stroke (Path2D path)
 
void drawFocusIfNeeded (Element element)
 
void drawFocusIfNeeded (Path2D path, Element element)
 
void scrollPathIntoView ()
 
void scrollPathIntoView (Path2D path)
 
void clip (optional CanvasFillRule fillRule="nonzero")
 
void clip (Path2D path, optional CanvasFillRule fillRule="nonzero")
 
void resetClip ()
 
boolean isPointInPath (unrestricted double x, unrestricted double y, optional CanvasFillRule fillRule="nonzero")
 
boolean isPointInPath (Path2D path, unrestricted double x, unrestricted double y, optional CanvasFillRule fillRule="nonzero")
 
boolean isPointInStroke (unrestricted double x, unrestricted double y)
 
boolean isPointInStroke (Path2D path, unrestricted double x, unrestricted double y)
 
void fillText (DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth)
 
void strokeText (DOMString text, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth)
 
TextMetrics measureText (DOMString text)
 
void drawImage (CanvasImageSource image, unrestricted double dx, unrestricted double dy)
 
void drawImage (CanvasImageSource image, unrestricted double dx, unrestricted double dy, unrestricted double dw, unrestricted double dh)
 
void drawImage (CanvasImageSource image, unrestricted double sx, unrestricted double sy, unrestricted double sw, unrestricted double sh, unrestricted double dx, unrestricted double dy, unrestricted double dw, unrestricted double dh)
 
void addHitRegion (optional HitRegionOptions options)
 
void removeHitRegion (DOMString id)
 
void clearHitRegions ()
 
ImageData createImageData (double sw, double sh)
 
ImageData createImageData (ImageData imagedata)
 
ImageData getImageData (double sx, double sy, double sw, double sh)
 
void putImageData (ImageData imagedata, double dx, double dy)
 
void putImageData (ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight)
 

Public Attributes

readonly attribute HTMLCanvasElement canvas
 
attribute unsigned long width
 
attribute unsigned long height
 
attribute SVGMatrix currentTransform
 
attribute unrestricted double globalAlpha
 
attribute DOMString globalCompositeOperation
 
attribute boolean imageSmoothingEnabled
 
attribute unrestricted double shadowOffsetX
 
attribute unrestricted double shadowOffsetY
 
attribute unrestricted double shadowBlur
 
attribute DOMString shadowColor
 

Detailed Description

Definition at line 1145 of file html.idl.

Member Function Documentation

◆ addHitRegion()

void CanvasRenderingContext2D::addHitRegion ( optional HitRegionOptions  options)

◆ attribute() [1/2]

CanvasRenderingContext2D::attribute ( DOMString or CanvasGradient or  CanvasPattern)

◆ attribute() [2/2]

CanvasRenderingContext2D::attribute ( DOMString or CanvasGradient or  CanvasPattern)

◆ beginPath()

void CanvasRenderingContext2D::beginPath ( )

◆ clearHitRegions()

void CanvasRenderingContext2D::clearHitRegions ( )

◆ clearRect()

void CanvasRenderingContext2D::clearRect ( unrestricted double  x,
unrestricted double  y,
unrestricted double  w,
unrestricted double  h 
)

◆ clip() [1/2]

void CanvasRenderingContext2D::clip ( optional CanvasFillRule  fillRule = "nonzero")

◆ clip() [2/2]

void CanvasRenderingContext2D::clip ( Path2D  path,
optional CanvasFillRule  fillRule = "nonzero" 
)

◆ commit()

void CanvasRenderingContext2D::commit ( )

◆ createImageData() [1/2]

ImageData CanvasRenderingContext2D::createImageData ( double  sw,
double  sh 
)

◆ createImageData() [2/2]

ImageData CanvasRenderingContext2D::createImageData ( ImageData  imagedata)

◆ createLinearGradient()

CanvasGradient CanvasRenderingContext2D::createLinearGradient ( double  x0,
double  y0,
double  x1,
double  y1 
)

◆ createPattern()

CanvasPattern CanvasRenderingContext2D::createPattern ( CanvasImageSource  image,
[TreatNullAs=EmptyString] DOMString  repetition 
)

◆ createRadialGradient()

CanvasGradient CanvasRenderingContext2D::createRadialGradient ( double  x0,
double  y0,
double  r0,
double  x1,
double  y1,
double  r1 
)

◆ drawFocusIfNeeded() [1/2]

void CanvasRenderingContext2D::drawFocusIfNeeded ( Element  element)

◆ drawFocusIfNeeded() [2/2]

void CanvasRenderingContext2D::drawFocusIfNeeded ( Path2D  path,
Element  element 
)

◆ drawImage() [1/3]

void CanvasRenderingContext2D::drawImage ( CanvasImageSource  image,
unrestricted double  dx,
unrestricted double  dy 
)

◆ drawImage() [2/3]

void CanvasRenderingContext2D::drawImage ( CanvasImageSource  image,
unrestricted double  dx,
unrestricted double  dy,
unrestricted double  dw,
unrestricted double  dh 
)

◆ drawImage() [3/3]

void CanvasRenderingContext2D::drawImage ( CanvasImageSource  image,
unrestricted double  sx,
unrestricted double  sy,
unrestricted double  sw,
unrestricted double  sh,
unrestricted double  dx,
unrestricted double  dy,
unrestricted double  dw,
unrestricted double  dh 
)

◆ fill() [1/2]

void CanvasRenderingContext2D::fill ( optional CanvasFillRule  fillRule = "nonzero")

◆ fill() [2/2]

void CanvasRenderingContext2D::fill ( Path2D  path,
optional CanvasFillRule  fillRule = "nonzero" 
)

◆ fillRect()

void CanvasRenderingContext2D::fillRect ( unrestricted double  x,
unrestricted double  y,
unrestricted double  w,
unrestricted double  h 
)

◆ fillText()

void CanvasRenderingContext2D::fillText ( DOMString  text,
unrestricted double  x,
unrestricted double  y,
optional unrestricted double  maxWidth 
)

◆ getImageData()

ImageData CanvasRenderingContext2D::getImageData ( double  sx,
double  sy,
double  sw,
double  sh 
)

◆ isPointInPath() [1/2]

boolean CanvasRenderingContext2D::isPointInPath ( Path2D  path,
unrestricted double  x,
unrestricted double  y,
optional CanvasFillRule  fillRule = "nonzero" 
)

◆ isPointInPath() [2/2]

boolean CanvasRenderingContext2D::isPointInPath ( unrestricted double  x,
unrestricted double  y,
optional CanvasFillRule  fillRule = "nonzero" 
)

◆ isPointInStroke() [1/2]

boolean CanvasRenderingContext2D::isPointInStroke ( Path2D  path,
unrestricted double  x,
unrestricted double  y 
)

◆ isPointInStroke() [2/2]

boolean CanvasRenderingContext2D::isPointInStroke ( unrestricted double  x,
unrestricted double  y 
)

◆ measureText()

TextMetrics CanvasRenderingContext2D::measureText ( DOMString  text)

◆ putImageData() [1/2]

void CanvasRenderingContext2D::putImageData ( ImageData  imagedata,
double  dx,
double  dy 
)

◆ putImageData() [2/2]

void CanvasRenderingContext2D::putImageData ( ImageData  imagedata,
double  dx,
double  dy,
double  dirtyX,
double  dirtyY,
double  dirtyWidth,
double  dirtyHeight 
)

◆ removeHitRegion()

void CanvasRenderingContext2D::removeHitRegion ( DOMString  id)

◆ resetClip()

void CanvasRenderingContext2D::resetClip ( )

◆ resetTransform()

void CanvasRenderingContext2D::resetTransform ( )

◆ restore()

void CanvasRenderingContext2D::restore ( )

◆ rotate()

void CanvasRenderingContext2D::rotate ( unrestricted double  angle)

◆ save()

void CanvasRenderingContext2D::save ( )

◆ scale()

void CanvasRenderingContext2D::scale ( unrestricted double  x,
unrestricted double  y 
)

◆ scrollPathIntoView() [1/2]

void CanvasRenderingContext2D::scrollPathIntoView ( )

◆ scrollPathIntoView() [2/2]

void CanvasRenderingContext2D::scrollPathIntoView ( Path2D  path)

◆ setTransform()

void CanvasRenderingContext2D::setTransform ( unrestricted double  a,
unrestricted double  b,
unrestricted double  c,
unrestricted double  d,
unrestricted double  e,
unrestricted double  f 
)

◆ stroke() [1/2]

void CanvasRenderingContext2D::stroke ( )

◆ stroke() [2/2]

void CanvasRenderingContext2D::stroke ( Path2D  path)

◆ strokeRect()

void CanvasRenderingContext2D::strokeRect ( unrestricted double  x,
unrestricted double  y,
unrestricted double  w,
unrestricted double  h 
)

◆ strokeText()

void CanvasRenderingContext2D::strokeText ( DOMString  text,
unrestricted double  x,
unrestricted double  y,
optional unrestricted double  maxWidth 
)

◆ transform()

void CanvasRenderingContext2D::transform ( unrestricted double  a,
unrestricted double  b,
unrestricted double  c,
unrestricted double  d,
unrestricted double  e,
unrestricted double  f 
)

◆ translate()

void CanvasRenderingContext2D::translate ( unrestricted double  x,
unrestricted double  y 
)

Member Data Documentation

◆ canvas

readonly attribute HTMLCanvasElement CanvasRenderingContext2D::canvas

Definition at line 1148 of file html.idl.

◆ currentTransform

attribute SVGMatrix CanvasRenderingContext2D::currentTransform

Definition at line 1162 of file html.idl.

◆ globalAlpha

attribute unrestricted double CanvasRenderingContext2D::globalAlpha

Definition at line 1171 of file html.idl.

◆ globalCompositeOperation

attribute DOMString CanvasRenderingContext2D::globalCompositeOperation

Definition at line 1172 of file html.idl.

◆ height

attribute unsigned long CanvasRenderingContext2D::height

Definition at line 1152 of file html.idl.

◆ imageSmoothingEnabled

attribute boolean CanvasRenderingContext2D::imageSmoothingEnabled

Definition at line 1175 of file html.idl.

◆ shadowBlur

attribute unrestricted double CanvasRenderingContext2D::shadowBlur

Definition at line 1187 of file html.idl.

◆ shadowColor

attribute DOMString CanvasRenderingContext2D::shadowColor

Definition at line 1188 of file html.idl.

◆ shadowOffsetX

attribute unrestricted double CanvasRenderingContext2D::shadowOffsetX

Definition at line 1185 of file html.idl.

◆ shadowOffsetY

attribute unrestricted double CanvasRenderingContext2D::shadowOffsetY

Definition at line 1186 of file html.idl.

◆ width

attribute unsigned long CanvasRenderingContext2D::width

Definition at line 1151 of file html.idl.


The documentation for this interface was generated from the following file: