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