|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
import"CanvasRenderingContext2D.idl";
Public Member Functions | |
| void | save () |
| void | restore () |
| void | commit () |
| void | scale (unrestricted float sx, unrestricted float sy) |
| void | rotate (unrestricted float angle) |
| void | translate (unrestricted float tx, unrestricted float ty) |
| void | transform (unrestricted float m11, unrestricted float m12, unrestricted float m21, unrestricted float m22, unrestricted float dx, unrestricted float dy) |
| void | setTransform (unrestricted float m11, unrestricted float m12, unrestricted float m21, unrestricted float m22, unrestricted float dx, unrestricted float dy) |
| void | resetTransform () |
| void | setLineDash (sequence< unrestricted float > dash) |
| sequence< unrestricted float > | getLineDash () |
| void | clearRect (unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height) |
| void | fillRect (unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height) |
| void | beginPath () |
| void | fill (DOMPath path, optional CanvasWindingRule winding="nonzero") |
| void | stroke (DOMPath path) |
| void | clip (DOMPath path, optional CanvasWindingRule winding="nonzero") |
| void | fill (optional CanvasWindingRule winding="nonzero") |
| void | stroke () |
| void | clip (optional CanvasWindingRule winding="nonzero") |
| boolean | isPointInPath (DOMPath path, unrestricted float x, unrestricted float y, optional CanvasWindingRule winding="nonzero") |
| boolean | isPointInStroke (DOMPath path, unrestricted float x, unrestricted float y) |
| boolean | isPointInPath (unrestricted float x, unrestricted float y, optional CanvasWindingRule winding="nonzero") |
| boolean | isPointInStroke (unrestricted float x, unrestricted float y) |
| TextMetrics | measureText (DOMString text) |
| void | setAlpha (optional unrestricted float alpha=NaN) |
| void | setCompositeOperation (optional DOMString compositeOperation="undefined") |
| void | setLineWidth (optional unrestricted float width=NaN) |
| void | setLineCap (optional DOMString cap="undefined") |
| void | setLineJoin (optional DOMString join="undefined") |
| void | setMiterLimit (optional unrestricted float limit=NaN) |
| void | clearShadow () |
| void | fillText (DOMString text, unrestricted float x, unrestricted float y, optional unrestricted float maxWidth) |
| void | strokeText (DOMString text, unrestricted float x, unrestricted float y, optional unrestricted float maxWidth) |
| void | setStrokeColor (DOMString color, optional unrestricted float alpha) |
| void | setStrokeColor (unrestricted float grayLevel, optional float alpha=1) |
| void | setStrokeColor (unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a) |
| void | setStrokeColor (unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a) |
| void | setFillColor (DOMString color, optional unrestricted float alpha) |
| void | setFillColor (unrestricted float grayLevel, optional unrestricted float alpha=1) |
| void | setFillColor (unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a) |
| void | setFillColor (unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a) |
| void | strokeRect (unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height) |
| void | drawImage (CanvasImageSource image, unrestricted float x, unrestricted float y) |
| void | drawImage (CanvasImageSource image, unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height) |
| void | drawImage (CanvasImageSource image, unrestricted float sx, unrestricted float sy, unrestricted float sw, unrestricted float sh, unrestricted float dx, unrestricted float dy, unrestricted float dw, unrestricted float dh) |
| void | drawImageFromRect (HTMLImageElement image, optional unrestricted float sx=0, optional unrestricted float sy=0, optional unrestricted float sw=0, optional unrestricted float sh=0, optional unrestricted float dx=0, optional unrestricted float dy=0, optional unrestricted float dw=0, optional unrestricted float dh=0, optional DOMString compositeOperation="") |
| void | setShadow (unrestricted float width, unrestricted float height, unrestricted float blur, optional DOMString color, optional unrestricted float alpha) |
| void | setShadow (unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float grayLevel, optional unrestricted float alpha=1) |
| void | setShadow (unrestricted float width, unrestricted float height, unrestricted float blur, unrestricted float r, unrestricted float g, unrestricted float b, unrestricted float a) |
| void | setShadow (float width, unrestricted float height, unrestricted float blur, unrestricted float c, unrestricted float m, unrestricted float y, unrestricted float k, unrestricted float a) |
| void | putImageData (ImageData imagedata, float dx, float dy) |
| void | putImageData (ImageData imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight) |
| void | webkitPutImageDataHD (ImageData imagedata, float dx, float dy) |
| void | webkitPutImageDataHD (ImageData imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight) |
| ImageData | createImageData (ImageData? imagedata) |
| ImageData | createImageData (float sw, float sh) |
| attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle | |
| attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle | |
| CanvasGradient | createLinearGradient (float x0, float y0, float x1, float y1) |
| CanvasGradient | createRadialGradient (float x0, float y0, float r0, float x1, float y1, float r1) |
| CanvasPattern | createPattern (CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition) |
| ImageData | getImageData (float sx, float sy, float sw, float sh) |
| ImageData | webkitGetImageDataHD (float sx, float sy, float sw, float sh) |
| void | drawFocusIfNeeded (Element element) |
| void | drawFocusIfNeeded (DOMPath path, Element element) |
Public Attributes | |
| readonly attribute HTMLCanvasElement | canvas |
| attribute unrestricted float | globalAlpha |
| attribute DOMString | globalCompositeOperation |
| attribute unrestricted float | lineWidth |
| attribute DOMString | lineCap |
| attribute DOMString | lineJoin |
| attribute unrestricted float | miterLimit |
| attribute unrestricted float | shadowOffsetX |
| attribute unrestricted float | shadowOffsetY |
| attribute unrestricted float | shadowBlur |
| attribute DOMString | shadowColor |
| attribute unrestricted float | lineDashOffset |
| attribute sequence< unrestricted float > | webkitLineDash |
| attribute unrestricted float | webkitLineDashOffset |
| attribute DOMString | font |
| attribute DOMString | textAlign |
| attribute DOMString | textBaseline |
| attribute DOMString | direction |
| readonly attribute float | webkitBackingStorePixelRatio |
| attribute boolean | imageSmoothingEnabled |
| attribute boolean | webkitImageSmoothingEnabled |
| attribute ImageSmoothingQuality | imageSmoothingQuality |
| CanvasRenderingContext2D::attribute | ( | DOMString or CanvasGradient or | CanvasPattern | ) |
| CanvasRenderingContext2D::attribute | ( | DOMString or CanvasGradient or | CanvasPattern | ) |
| void CanvasRenderingContext2D::beginPath | ( | ) |
| void CanvasRenderingContext2D::clearRect | ( | unrestricted float | x, |
| unrestricted float | y, | ||
| unrestricted float | width, | ||
| unrestricted float | height | ||
| ) |
| void CanvasRenderingContext2D::clearShadow | ( | ) |
| void CanvasRenderingContext2D::clip | ( | DOMPath | path, |
| optional CanvasWindingRule | winding = "nonzero" |
||
| ) |
| void CanvasRenderingContext2D::clip | ( | optional CanvasWindingRule | winding = "nonzero" | ) |
| void CanvasRenderingContext2D::commit | ( | ) |
| ImageData CanvasRenderingContext2D::createImageData | ( | float | sw, |
| float | sh | ||
| ) |
| CanvasGradient CanvasRenderingContext2D::createLinearGradient | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1 | ||
| ) |
| CanvasPattern CanvasRenderingContext2D::createPattern | ( | CanvasImageSource | image, |
| [TreatNullAs=EmptyString] DOMString | repetition | ||
| ) |
| CanvasGradient CanvasRenderingContext2D::createRadialGradient | ( | float | x0, |
| float | y0, | ||
| float | r0, | ||
| float | x1, | ||
| float | y1, | ||
| float | r1 | ||
| ) |
| void CanvasRenderingContext2D::drawImage | ( | CanvasImageSource | image, |
| unrestricted float | x, | ||
| unrestricted float | y | ||
| ) |
| void CanvasRenderingContext2D::drawImage | ( | CanvasImageSource | image, |
| unrestricted float | x, | ||
| unrestricted float | y, | ||
| unrestricted float | width, | ||
| unrestricted float | height | ||
| ) |
| void CanvasRenderingContext2D::drawImage | ( | CanvasImageSource | image, |
| unrestricted float | sx, | ||
| unrestricted float | sy, | ||
| unrestricted float | sw, | ||
| unrestricted float | sh, | ||
| unrestricted float | dx, | ||
| unrestricted float | dy, | ||
| unrestricted float | dw, | ||
| unrestricted float | dh | ||
| ) |
| void CanvasRenderingContext2D::drawImageFromRect | ( | HTMLImageElement | image, |
| optional unrestricted float | sx = 0, |
||
| optional unrestricted float | sy = 0, |
||
| optional unrestricted float | sw = 0, |
||
| optional unrestricted float | sh = 0, |
||
| optional unrestricted float | dx = 0, |
||
| optional unrestricted float | dy = 0, |
||
| optional unrestricted float | dw = 0, |
||
| optional unrestricted float | dh = 0, |
||
| optional DOMString | compositeOperation = "" |
||
| ) |
| void CanvasRenderingContext2D::fill | ( | DOMPath | path, |
| optional CanvasWindingRule | winding = "nonzero" |
||
| ) |
| void CanvasRenderingContext2D::fill | ( | optional CanvasWindingRule | winding = "nonzero" | ) |
| void CanvasRenderingContext2D::fillRect | ( | unrestricted float | x, |
| unrestricted float | y, | ||
| unrestricted float | width, | ||
| unrestricted float | height | ||
| ) |
| void CanvasRenderingContext2D::fillText | ( | DOMString | text, |
| unrestricted float | x, | ||
| unrestricted float | y, | ||
| optional unrestricted float | maxWidth | ||
| ) |
| ImageData CanvasRenderingContext2D::getImageData | ( | float | sx, |
| float | sy, | ||
| float | sw, | ||
| float | sh | ||
| ) |
| sequence<unrestricted float> CanvasRenderingContext2D::getLineDash | ( | ) |
| boolean CanvasRenderingContext2D::isPointInPath | ( | DOMPath | path, |
| unrestricted float | x, | ||
| unrestricted float | y, | ||
| optional CanvasWindingRule | winding = "nonzero" |
||
| ) |
| boolean CanvasRenderingContext2D::isPointInPath | ( | unrestricted float | x, |
| unrestricted float | y, | ||
| optional CanvasWindingRule | winding = "nonzero" |
||
| ) |
| boolean CanvasRenderingContext2D::isPointInStroke | ( | DOMPath | path, |
| unrestricted float | x, | ||
| unrestricted float | y | ||
| ) |
| boolean CanvasRenderingContext2D::isPointInStroke | ( | unrestricted float | x, |
| unrestricted float | y | ||
| ) |
| TextMetrics CanvasRenderingContext2D::measureText | ( | DOMString | text | ) |
| void CanvasRenderingContext2D::putImageData | ( | ImageData | imagedata, |
| float | dx, | ||
| float | dy, | ||
| float | dirtyX, | ||
| float | dirtyY, | ||
| float | dirtyWidth, | ||
| float | dirtyHeight | ||
| ) |
| void CanvasRenderingContext2D::resetTransform | ( | ) |
| void CanvasRenderingContext2D::restore | ( | ) |
| void CanvasRenderingContext2D::rotate | ( | unrestricted float | angle | ) |
| void CanvasRenderingContext2D::save | ( | ) |
| void CanvasRenderingContext2D::scale | ( | unrestricted float | sx, |
| unrestricted float | sy | ||
| ) |
| void CanvasRenderingContext2D::setCompositeOperation | ( | optional DOMString | compositeOperation = "undefined" | ) |
| void CanvasRenderingContext2D::setFillColor | ( | unrestricted float | grayLevel, |
| optional unrestricted float | alpha = 1 |
||
| ) |
| void CanvasRenderingContext2D::setFillColor | ( | unrestricted float | r, |
| unrestricted float | g, | ||
| unrestricted float | b, | ||
| unrestricted float | a | ||
| ) |
| void CanvasRenderingContext2D::setFillColor | ( | unrestricted float | c, |
| unrestricted float | m, | ||
| unrestricted float | y, | ||
| unrestricted float | k, | ||
| unrestricted float | a | ||
| ) |
| void CanvasRenderingContext2D::setShadow | ( | unrestricted float | width, |
| unrestricted float | height, | ||
| unrestricted float | blur, | ||
| optional DOMString | color, | ||
| optional unrestricted float | alpha | ||
| ) |
| void CanvasRenderingContext2D::setShadow | ( | unrestricted float | width, |
| unrestricted float | height, | ||
| unrestricted float | blur, | ||
| unrestricted float | grayLevel, | ||
| optional unrestricted float | alpha = 1 |
||
| ) |
| void CanvasRenderingContext2D::setShadow | ( | unrestricted float | width, |
| unrestricted float | height, | ||
| unrestricted float | blur, | ||
| unrestricted float | r, | ||
| unrestricted float | g, | ||
| unrestricted float | b, | ||
| unrestricted float | a | ||
| ) |
| void CanvasRenderingContext2D::setShadow | ( | float | width, |
| unrestricted float | height, | ||
| unrestricted float | blur, | ||
| unrestricted float | c, | ||
| unrestricted float | m, | ||
| unrestricted float | y, | ||
| unrestricted float | k, | ||
| unrestricted float | a | ||
| ) |
| void CanvasRenderingContext2D::setStrokeColor | ( | DOMString | color, |
| optional unrestricted float | alpha | ||
| ) |
| void CanvasRenderingContext2D::setStrokeColor | ( | unrestricted float | grayLevel, |
| optional float | alpha = 1 |
||
| ) |
| void CanvasRenderingContext2D::setStrokeColor | ( | unrestricted float | r, |
| unrestricted float | g, | ||
| unrestricted float | b, | ||
| unrestricted float | a | ||
| ) |
| void CanvasRenderingContext2D::setStrokeColor | ( | unrestricted float | c, |
| unrestricted float | m, | ||
| unrestricted float | y, | ||
| unrestricted float | k, | ||
| unrestricted float | a | ||
| ) |
| void CanvasRenderingContext2D::setTransform | ( | unrestricted float | m11, |
| unrestricted float | m12, | ||
| unrestricted float | m21, | ||
| unrestricted float | m22, | ||
| unrestricted float | dx, | ||
| unrestricted float | dy | ||
| ) |
| void CanvasRenderingContext2D::stroke | ( | ) |
| void CanvasRenderingContext2D::strokeRect | ( | unrestricted float | x, |
| unrestricted float | y, | ||
| unrestricted float | width, | ||
| unrestricted float | height | ||
| ) |
| void CanvasRenderingContext2D::strokeText | ( | DOMString | text, |
| unrestricted float | x, | ||
| unrestricted float | y, | ||
| optional unrestricted float | maxWidth | ||
| ) |
| void CanvasRenderingContext2D::transform | ( | unrestricted float | m11, |
| unrestricted float | m12, | ||
| unrestricted float | m21, | ||
| unrestricted float | m22, | ||
| unrestricted float | dx, | ||
| unrestricted float | dy | ||
| ) |
| void CanvasRenderingContext2D::translate | ( | unrestricted float | tx, |
| unrestricted float | ty | ||
| ) |
| ImageData CanvasRenderingContext2D::webkitGetImageDataHD | ( | float | sx, |
| float | sy, | ||
| float | sw, | ||
| float | sh | ||
| ) |
| void CanvasRenderingContext2D::webkitPutImageDataHD | ( | ImageData | imagedata, |
| float | dx, | ||
| float | dy, | ||
| float | dirtyX, | ||
| float | dirtyY, | ||
| float | dirtyWidth, | ||
| float | dirtyHeight | ||
| ) |
| readonly attribute HTMLCanvasElement CanvasRenderingContext2D::canvas |
| attribute DOMString CanvasRenderingContext2D::direction |
| attribute DOMString CanvasRenderingContext2D::font |
| attribute unrestricted float CanvasRenderingContext2D::globalAlpha |
| attribute DOMString CanvasRenderingContext2D::globalCompositeOperation |
| attribute ImageSmoothingQuality CanvasRenderingContext2D::imageSmoothingQuality |
| attribute DOMString CanvasRenderingContext2D::lineCap |
| attribute unrestricted float CanvasRenderingContext2D::lineDashOffset |
| attribute DOMString CanvasRenderingContext2D::lineJoin |
| attribute unrestricted float CanvasRenderingContext2D::lineWidth |
| attribute unrestricted float CanvasRenderingContext2D::miterLimit |
| attribute unrestricted float CanvasRenderingContext2D::shadowBlur |
| attribute DOMString CanvasRenderingContext2D::shadowColor |
| attribute unrestricted float CanvasRenderingContext2D::shadowOffsetX |
| attribute unrestricted float CanvasRenderingContext2D::shadowOffsetY |
| attribute DOMString CanvasRenderingContext2D::textAlign |
| attribute DOMString CanvasRenderingContext2D::textBaseline |
| attribute unrestricted float CanvasRenderingContext2D::webkitLineDashOffset |
1.8.13