CanvasRenderingContext2D

Undocumented in source.
@safe nothrow
struct CanvasRenderingContext2D {}

Constructors

this
this(Handle h)
Undocumented in source.

Alias This

handle

Members

Functions

addHitRegion
void addHitRegion(HitRegionOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
addHitRegion
void addHitRegion()
Undocumented in source. Be warned that the author may not have intended to support it.
arc
void arc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise)
Undocumented in source. Be warned that the author may not have intended to support it.
arc
void arc(double x, double y, double radius, double startAngle, double endAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
arcTo
void arcTo(double x1, double y1, double x2, double y2, double radius)
Undocumented in source. Be warned that the author may not have intended to support it.
beginPath
void beginPath()
Undocumented in source. Be warned that the author may not have intended to support it.
bezierCurveTo
void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
canvas
auto canvas()
Undocumented in source. Be warned that the author may not have intended to support it.
clearHitRegions
void clearHitRegions()
Undocumented in source. Be warned that the author may not have intended to support it.
clearRect
void clearRect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip(CanvasWindingRule winding)
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip()
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip(Path2D path, CanvasWindingRule winding)
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
closePath
void closePath()
Undocumented in source. Be warned that the author may not have intended to support it.
createImageData
auto createImageData(double sw, double sh)
Undocumented in source. Be warned that the author may not have intended to support it.
createImageData
auto createImageData(ImageData imagedata)
Undocumented in source. Be warned that the author may not have intended to support it.
createLinearGradient
auto createLinearGradient(double x0, double y0, double x1, double y1)
Undocumented in source. Be warned that the author may not have intended to support it.
createPattern
auto createPattern(CanvasImageSource image, string repetition)
Undocumented in source. Be warned that the author may not have intended to support it.
createRadialGradient
auto createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
Undocumented in source. Be warned that the author may not have intended to support it.
demote
void demote()
Undocumented in source. Be warned that the author may not have intended to support it.
drawFocusIfNeeded
void drawFocusIfNeeded(Element element)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(CanvasImageSource image, double dx, double dy)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(CanvasImageSource image, double dx, double dy, double dw, double dh)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(CanvasImageSource image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh)
Undocumented in source. Be warned that the author may not have intended to support it.
drawWindow
void drawWindow(Window window, double x, double y, double w, double h, string bgColor, uint flags)
Undocumented in source. Be warned that the author may not have intended to support it.
drawWindow
void drawWindow(Window window, double x, double y, double w, double h, string bgColor)
Undocumented in source. Be warned that the author may not have intended to support it.
ellipse
void ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, bool anticlockwise)
Undocumented in source. Be warned that the author may not have intended to support it.
ellipse
void ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(CanvasWindingRule winding)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill()
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(Path2D path, CanvasWindingRule winding)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
fillStyle
void fillStyle(SumType!(string, CanvasGradient, CanvasPattern) fillStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
fillStyle
auto fillStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
fillText
void fillText(string text, double x, double y, double maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
fillText
void fillText(string text, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
filter
void filter(string filter)
Undocumented in source. Be warned that the author may not have intended to support it.
filter
string filter()
Undocumented in source. Be warned that the author may not have intended to support it.
font
void font(string font)
Undocumented in source. Be warned that the author may not have intended to support it.
font
string font()
Undocumented in source. Be warned that the author may not have intended to support it.
getImageData
auto getImageData(double sx, double sy, double sw, double sh)
Undocumented in source. Be warned that the author may not have intended to support it.
getLineDash
auto getLineDash()
Undocumented in source. Be warned that the author may not have intended to support it.
globalAlpha
void globalAlpha(double globalAlpha)
Undocumented in source. Be warned that the author may not have intended to support it.
globalAlpha
double globalAlpha()
Undocumented in source. Be warned that the author may not have intended to support it.
globalCompositeOperation
void globalCompositeOperation(string globalCompositeOperation)
Undocumented in source. Be warned that the author may not have intended to support it.
globalCompositeOperation
string globalCompositeOperation()
Undocumented in source. Be warned that the author may not have intended to support it.
imageSmoothingEnabled
void imageSmoothingEnabled(bool imageSmoothingEnabled)
Undocumented in source. Be warned that the author may not have intended to support it.
imageSmoothingEnabled
bool imageSmoothingEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
bool isPointInPath(double x, double y, CanvasWindingRule winding)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
bool isPointInPath(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
bool isPointInPath(Path2D path, double x, double y, CanvasWindingRule winding)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
bool isPointInPath(Path2D path, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInStroke
bool isPointInStroke(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInStroke
bool isPointInStroke(Path2D path, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
lineCap
void lineCap(string lineCap)
Undocumented in source. Be warned that the author may not have intended to support it.
lineCap
string lineCap()
Undocumented in source. Be warned that the author may not have intended to support it.
lineDashOffset
void lineDashOffset(double lineDashOffset)
Undocumented in source. Be warned that the author may not have intended to support it.
lineDashOffset
double lineDashOffset()
Undocumented in source. Be warned that the author may not have intended to support it.
lineJoin
void lineJoin(string lineJoin)
Undocumented in source. Be warned that the author may not have intended to support it.
lineJoin
string lineJoin()
Undocumented in source. Be warned that the author may not have intended to support it.
lineTo
void lineTo(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
lineWidth
void lineWidth(double lineWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
lineWidth
double lineWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
measureText
auto measureText(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
miterLimit
void miterLimit(double miterLimit)
Undocumented in source. Be warned that the author may not have intended to support it.
miterLimit
double miterLimit()
Undocumented in source. Be warned that the author may not have intended to support it.
moveTo
void moveTo(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
mozCurrentTransform
void mozCurrentTransform(JsObject mozCurrentTransform)
Undocumented in source. Be warned that the author may not have intended to support it.
mozCurrentTransform
auto mozCurrentTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
mozCurrentTransformInverse
void mozCurrentTransformInverse(JsObject mozCurrentTransformInverse)
Undocumented in source. Be warned that the author may not have intended to support it.
mozCurrentTransformInverse
auto mozCurrentTransformInverse()
Undocumented in source. Be warned that the author may not have intended to support it.
mozImageSmoothingEnabled
void mozImageSmoothingEnabled(bool mozImageSmoothingEnabled)
Undocumented in source. Be warned that the author may not have intended to support it.
mozImageSmoothingEnabled
bool mozImageSmoothingEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
mozTextStyle
void mozTextStyle(string mozTextStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
mozTextStyle
string mozTextStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
putImageData
void putImageData(ImageData imagedata, double dx, double dy)
Undocumented in source. Be warned that the author may not have intended to support it.
putImageData
void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
quadraticCurveTo
void quadraticCurveTo(double cpx, double cpy, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
rect
void rect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
removeHitRegion
void removeHitRegion(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
resetTransform
void resetTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
restore
void restore()
Undocumented in source. Be warned that the author may not have intended to support it.
rotate
void rotate(double angle)
Undocumented in source. Be warned that the author may not have intended to support it.
save
void save()
Undocumented in source. Be warned that the author may not have intended to support it.
scale
void scale(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
setLineDash
void setLineDash(Sequence!(double) segments)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransform
void setTransform(double a, double b, double c, double d, double e, double f)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowBlur
void shadowBlur(double shadowBlur)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowBlur
double shadowBlur()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowColor
void shadowColor(string shadowColor)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowColor
string shadowColor()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetX
void shadowOffsetX(double shadowOffsetX)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetX
double shadowOffsetX()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetY
void shadowOffsetY(double shadowOffsetY)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetY
double shadowOffsetY()
Undocumented in source. Be warned that the author may not have intended to support it.
stroke
void stroke()
Undocumented in source. Be warned that the author may not have intended to support it.
stroke
void stroke(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeRect
void strokeRect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeStyle
void strokeStyle(SumType!(string, CanvasGradient, CanvasPattern) strokeStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeStyle
auto strokeStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
strokeText
void strokeText(string text, double x, double y, double maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeText
void strokeText(string text, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
textAlign
void textAlign(string textAlign)
Undocumented in source. Be warned that the author may not have intended to support it.
textAlign
string textAlign()
Undocumented in source. Be warned that the author may not have intended to support it.
textBaseline
void textBaseline(string textBaseline)
Undocumented in source. Be warned that the author may not have intended to support it.
textBaseline
string textBaseline()
Undocumented in source. Be warned that the author may not have intended to support it.
transform
void transform(double a, double b, double c, double d, double e, double f)
Undocumented in source. Be warned that the author may not have intended to support it.
translate
void translate(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

DRAWWINDOW_ASYNC_DECODE_IMAGES
enum uint DRAWWINDOW_ASYNC_DECODE_IMAGES;
Undocumented in source.
DRAWWINDOW_DO_NOT_FLUSH
enum uint DRAWWINDOW_DO_NOT_FLUSH;
Undocumented in source.
DRAWWINDOW_DRAW_CARET
enum uint DRAWWINDOW_DRAW_CARET;
Undocumented in source.
DRAWWINDOW_DRAW_VIEW
enum uint DRAWWINDOW_DRAW_VIEW;
Undocumented in source.
DRAWWINDOW_USE_WIDGET_LAYERS
enum uint DRAWWINDOW_USE_WIDGET_LAYERS;
Undocumented in source.
handle
JsHandle handle;
Undocumented in source.

Meta