webapi: github.com/gowebapi/webapi/html/canvas Index | Files

package canvas

import "github.com/gowebapi/webapi/html/canvas"

Package canvas contains HTML canvas related types.

Source: HTML Standard (https://html.spec.whatwg.org/)

Index

Package Files

canvas.go doc.go

type CanvasDirection Uses

type CanvasDirection int

enum: CanvasDirection

const (
    LtrCanvasDirection CanvasDirection = iota
    RtlCanvasDirection
    InheritCanvasDirection
)

func CanvasDirectionFromJS Uses

func CanvasDirectionFromJS(value js.Value) CanvasDirection

CanvasDirectionFromJS is converting a javascript value into a CanvasDirection enum value.

func (*CanvasDirection) JSValue Uses

func (this *CanvasDirection) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasDirection) Value Uses

func (this CanvasDirection) Value() string

Value is converting this into javascript defined string value

type CanvasFillRule Uses

type CanvasFillRule int

enum: CanvasFillRule

const (
    NonzeroCanvasFillRule CanvasFillRule = iota
    EvenoddCanvasFillRule
)

func CanvasFillRuleFromJS Uses

func CanvasFillRuleFromJS(value js.Value) CanvasFillRule

CanvasFillRuleFromJS is converting a javascript value into a CanvasFillRule enum value.

func (*CanvasFillRule) JSValue Uses

func (this *CanvasFillRule) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasFillRule) Value Uses

func (this CanvasFillRule) Value() string

Value is converting this into javascript defined string value

type CanvasGradient Uses

type CanvasGradient struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CanvasGradient

func CanvasGradientFromJS Uses

func CanvasGradientFromJS(value js.Wrapper) *CanvasGradient

CanvasGradientFromJS is casting a js.Wrapper into CanvasGradient.

func (*CanvasGradient) AddColorStop Uses

func (_this *CanvasGradient) AddColorStop(offset float64, color string)

func (*CanvasGradient) JSValue Uses

func (_this *CanvasGradient) JSValue() js.Value

type CanvasLineCap Uses

type CanvasLineCap int

enum: CanvasLineCap

const (
    ButtCanvasLineCap CanvasLineCap = iota
    RoundCanvasLineCap
    SquareCanvasLineCap
)

func CanvasLineCapFromJS Uses

func CanvasLineCapFromJS(value js.Value) CanvasLineCap

CanvasLineCapFromJS is converting a javascript value into a CanvasLineCap enum value.

func (*CanvasLineCap) JSValue Uses

func (this *CanvasLineCap) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasLineCap) Value Uses

func (this CanvasLineCap) Value() string

Value is converting this into javascript defined string value

type CanvasLineJoin Uses

type CanvasLineJoin int

enum: CanvasLineJoin

const (
    RoundCanvasLineJoin CanvasLineJoin = iota
    BevelCanvasLineJoin
    MiterCanvasLineJoin
)

func CanvasLineJoinFromJS Uses

func CanvasLineJoinFromJS(value js.Value) CanvasLineJoin

CanvasLineJoinFromJS is converting a javascript value into a CanvasLineJoin enum value.

func (*CanvasLineJoin) JSValue Uses

func (this *CanvasLineJoin) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasLineJoin) Value Uses

func (this CanvasLineJoin) Value() string

Value is converting this into javascript defined string value

type CanvasPattern Uses

type CanvasPattern struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CanvasPattern

func CanvasPatternFromJS Uses

func CanvasPatternFromJS(value js.Wrapper) *CanvasPattern

CanvasPatternFromJS is casting a js.Wrapper into CanvasPattern.

func (*CanvasPattern) JSValue Uses

func (_this *CanvasPattern) JSValue() js.Value

func (*CanvasPattern) SetTransform Uses

func (_this *CanvasPattern) SetTransform(transform *geometry.DOMMatrix2DInit)

type CanvasRenderingContext2D Uses

type CanvasRenderingContext2D struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: CanvasRenderingContext2D

func CanvasRenderingContext2DFromJS Uses

func CanvasRenderingContext2DFromJS(value js.Wrapper) *CanvasRenderingContext2D

CanvasRenderingContext2DFromJS is casting a js.Wrapper into CanvasRenderingContext2D.

func (*CanvasRenderingContext2D) Arc Uses

func (_this *CanvasRenderingContext2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*CanvasRenderingContext2D) ArcTo Uses

func (_this *CanvasRenderingContext2D) ArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

func (*CanvasRenderingContext2D) BeginPath Uses

func (_this *CanvasRenderingContext2D) BeginPath()

func (*CanvasRenderingContext2D) BezierCurveTo Uses

func (_this *CanvasRenderingContext2D) BezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

func (*CanvasRenderingContext2D) Canvas Uses

func (_this *CanvasRenderingContext2D) Canvas() *HTMLCanvasElement

Canvas returning attribute 'canvas' with type HTMLCanvasElement (idl: HTMLCanvasElement).

func (*CanvasRenderingContext2D) ClearRect Uses

func (_this *CanvasRenderingContext2D) ClearRect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) Clip Uses

func (_this *CanvasRenderingContext2D) Clip(fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) Clip2 Uses

func (_this *CanvasRenderingContext2D) Clip2(path *Path2D, fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) ClosePath Uses

func (_this *CanvasRenderingContext2D) ClosePath()

func (*CanvasRenderingContext2D) CreateImageData Uses

func (_this *CanvasRenderingContext2D) CreateImageData(sw int, sh int) (_result *ImageData)

func (*CanvasRenderingContext2D) CreateImageData2 Uses

func (_this *CanvasRenderingContext2D) CreateImageData2(imagedata *ImageData) (_result *ImageData)

func (*CanvasRenderingContext2D) CreateLinearGradient Uses

func (_this *CanvasRenderingContext2D) CreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (_result *CanvasGradient)

func (*CanvasRenderingContext2D) CreatePattern Uses

func (_this *CanvasRenderingContext2D) CreatePattern(image *Union, repetition string) (_result *CanvasPattern)

func (*CanvasRenderingContext2D) CreateRadialGradient Uses

func (_this *CanvasRenderingContext2D) CreateRadialGradient(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) (_result *CanvasGradient)

func (*CanvasRenderingContext2D) Direction Uses

func (_this *CanvasRenderingContext2D) Direction() CanvasDirection

Direction returning attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*CanvasRenderingContext2D) DrawFocusIfNeeded Uses

func (_this *CanvasRenderingContext2D) DrawFocusIfNeeded(element *dom.Element)

func (*CanvasRenderingContext2D) DrawFocusIfNeeded2 Uses

func (_this *CanvasRenderingContext2D) DrawFocusIfNeeded2(path *Path2D, element *dom.Element)

func (*CanvasRenderingContext2D) DrawImage Uses

func (_this *CanvasRenderingContext2D) DrawImage(image *Union, dx float64, dy float64)

func (*CanvasRenderingContext2D) DrawImage2 Uses

func (_this *CanvasRenderingContext2D) DrawImage2(image *Union, dx float64, dy float64, dw float64, dh float64)

func (*CanvasRenderingContext2D) DrawImage3 Uses

func (_this *CanvasRenderingContext2D) DrawImage3(image *Union, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64)

func (*CanvasRenderingContext2D) Ellipse Uses

func (_this *CanvasRenderingContext2D) Ellipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*CanvasRenderingContext2D) Fill Uses

func (_this *CanvasRenderingContext2D) Fill(fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) Fill2 Uses

func (_this *CanvasRenderingContext2D) Fill2(path *Path2D, fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) FillRect Uses

func (_this *CanvasRenderingContext2D) FillRect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) FillStyle Uses

func (_this *CanvasRenderingContext2D) FillStyle() *Union

FillStyle returning attribute 'fillStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) FillText Uses

func (_this *CanvasRenderingContext2D) FillText(text string, x float64, y float64, maxWidth *float64)

func (*CanvasRenderingContext2D) Filter Uses

func (_this *CanvasRenderingContext2D) Filter() string

Filter returning attribute 'filter' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) Font Uses

func (_this *CanvasRenderingContext2D) Font() string

Font returning attribute 'font' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) GetContextAttributes Uses

func (_this *CanvasRenderingContext2D) GetContextAttributes() (_result *CanvasRenderingContext2DSettings)

func (*CanvasRenderingContext2D) GetImageData Uses

func (_this *CanvasRenderingContext2D) GetImageData(sx int, sy int, sw int, sh int) (_result *ImageData)

func (*CanvasRenderingContext2D) GetLineDash Uses

func (_this *CanvasRenderingContext2D) GetLineDash() (_result []float64)

func (*CanvasRenderingContext2D) GetTransform Uses

func (_this *CanvasRenderingContext2D) GetTransform() (_result *geometry.DOMMatrix)

func (*CanvasRenderingContext2D) GlobalAlpha Uses

func (_this *CanvasRenderingContext2D) GlobalAlpha() float64

GlobalAlpha returning attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) GlobalCompositeOperation Uses

func (_this *CanvasRenderingContext2D) GlobalCompositeOperation() string

GlobalCompositeOperation returning attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) ImageSmoothingEnabled Uses

func (_this *CanvasRenderingContext2D) ImageSmoothingEnabled() bool

ImageSmoothingEnabled returning attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*CanvasRenderingContext2D) ImageSmoothingQuality Uses

func (_this *CanvasRenderingContext2D) ImageSmoothingQuality() ImageSmoothingQuality

ImageSmoothingQuality returning attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*CanvasRenderingContext2D) IsPointInPath Uses

func (_this *CanvasRenderingContext2D) IsPointInPath(x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*CanvasRenderingContext2D) IsPointInPath2 Uses

func (_this *CanvasRenderingContext2D) IsPointInPath2(path *Path2D, x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*CanvasRenderingContext2D) IsPointInStroke Uses

func (_this *CanvasRenderingContext2D) IsPointInStroke(x float64, y float64) (_result bool)

func (*CanvasRenderingContext2D) IsPointInStroke2 Uses

func (_this *CanvasRenderingContext2D) IsPointInStroke2(path *Path2D, x float64, y float64) (_result bool)

func (*CanvasRenderingContext2D) JSValue Uses

func (_this *CanvasRenderingContext2D) JSValue() js.Value

func (*CanvasRenderingContext2D) LineCap Uses

func (_this *CanvasRenderingContext2D) LineCap() CanvasLineCap

LineCap returning attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*CanvasRenderingContext2D) LineDashOffset Uses

func (_this *CanvasRenderingContext2D) LineDashOffset() float64

LineDashOffset returning attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) LineJoin Uses

func (_this *CanvasRenderingContext2D) LineJoin() CanvasLineJoin

LineJoin returning attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*CanvasRenderingContext2D) LineTo Uses

func (_this *CanvasRenderingContext2D) LineTo(x float64, y float64)

func (*CanvasRenderingContext2D) LineWidth Uses

func (_this *CanvasRenderingContext2D) LineWidth() float64

LineWidth returning attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) MeasureText Uses

func (_this *CanvasRenderingContext2D) MeasureText(text string) (_result *TextMetrics)

func (*CanvasRenderingContext2D) MiterLimit Uses

func (_this *CanvasRenderingContext2D) MiterLimit() float64

MiterLimit returning attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) MoveTo Uses

func (_this *CanvasRenderingContext2D) MoveTo(x float64, y float64)

func (*CanvasRenderingContext2D) PutImageData Uses

func (_this *CanvasRenderingContext2D) PutImageData(imagedata *ImageData, dx int, dy int)

func (*CanvasRenderingContext2D) PutImageData2 Uses

func (_this *CanvasRenderingContext2D) PutImageData2(imagedata *ImageData, dx int, dy int, dirtyX int, dirtyY int, dirtyWidth int, dirtyHeight int)

func (*CanvasRenderingContext2D) QuadraticCurveTo Uses

func (_this *CanvasRenderingContext2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64)

func (*CanvasRenderingContext2D) Rect Uses

func (_this *CanvasRenderingContext2D) Rect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) ResetTransform Uses

func (_this *CanvasRenderingContext2D) ResetTransform()

func (*CanvasRenderingContext2D) Restore Uses

func (_this *CanvasRenderingContext2D) Restore()

func (*CanvasRenderingContext2D) Rotate Uses

func (_this *CanvasRenderingContext2D) Rotate(angle float64)

func (*CanvasRenderingContext2D) Save Uses

func (_this *CanvasRenderingContext2D) Save()

func (*CanvasRenderingContext2D) Scale Uses

func (_this *CanvasRenderingContext2D) Scale(x float64, y float64)

func (*CanvasRenderingContext2D) ScrollPathIntoView Uses

func (_this *CanvasRenderingContext2D) ScrollPathIntoView()

func (*CanvasRenderingContext2D) ScrollPathIntoView2 Uses

func (_this *CanvasRenderingContext2D) ScrollPathIntoView2(path *Path2D)

func (*CanvasRenderingContext2D) SetDirection Uses

func (_this *CanvasRenderingContext2D) SetDirection(value CanvasDirection)

SetDirection setting attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*CanvasRenderingContext2D) SetFillStyle Uses

func (_this *CanvasRenderingContext2D) SetFillStyle(value *Union)

SetFillStyle setting attribute 'fillStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) SetFilter Uses

func (_this *CanvasRenderingContext2D) SetFilter(value string)

SetFilter setting attribute 'filter' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetFont Uses

func (_this *CanvasRenderingContext2D) SetFont(value string)

SetFont setting attribute 'font' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetGlobalAlpha Uses

func (_this *CanvasRenderingContext2D) SetGlobalAlpha(value float64)

SetGlobalAlpha setting attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetGlobalCompositeOperation Uses

func (_this *CanvasRenderingContext2D) SetGlobalCompositeOperation(value string)

SetGlobalCompositeOperation setting attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetImageSmoothingEnabled Uses

func (_this *CanvasRenderingContext2D) SetImageSmoothingEnabled(value bool)

SetImageSmoothingEnabled setting attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*CanvasRenderingContext2D) SetImageSmoothingQuality Uses

func (_this *CanvasRenderingContext2D) SetImageSmoothingQuality(value ImageSmoothingQuality)

SetImageSmoothingQuality setting attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*CanvasRenderingContext2D) SetLineCap Uses

func (_this *CanvasRenderingContext2D) SetLineCap(value CanvasLineCap)

SetLineCap setting attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*CanvasRenderingContext2D) SetLineDash Uses

func (_this *CanvasRenderingContext2D) SetLineDash(segments []float64)

func (*CanvasRenderingContext2D) SetLineDashOffset Uses

func (_this *CanvasRenderingContext2D) SetLineDashOffset(value float64)

SetLineDashOffset setting attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetLineJoin Uses

func (_this *CanvasRenderingContext2D) SetLineJoin(value CanvasLineJoin)

SetLineJoin setting attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*CanvasRenderingContext2D) SetLineWidth Uses

func (_this *CanvasRenderingContext2D) SetLineWidth(value float64)

SetLineWidth setting attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetMiterLimit Uses

func (_this *CanvasRenderingContext2D) SetMiterLimit(value float64)

SetMiterLimit setting attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetShadowBlur Uses

func (_this *CanvasRenderingContext2D) SetShadowBlur(value float64)

SetShadowBlur setting attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetShadowColor Uses

func (_this *CanvasRenderingContext2D) SetShadowColor(value string)

SetShadowColor setting attribute 'shadowColor' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetShadowOffsetX Uses

func (_this *CanvasRenderingContext2D) SetShadowOffsetX(value float64)

SetShadowOffsetX setting attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetShadowOffsetY Uses

func (_this *CanvasRenderingContext2D) SetShadowOffsetY(value float64)

SetShadowOffsetY setting attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetStrokeStyle Uses

func (_this *CanvasRenderingContext2D) SetStrokeStyle(value *Union)

SetStrokeStyle setting attribute 'strokeStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) SetTextAlign Uses

func (_this *CanvasRenderingContext2D) SetTextAlign(value CanvasTextAlign)

SetTextAlign setting attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*CanvasRenderingContext2D) SetTextBaseline Uses

func (_this *CanvasRenderingContext2D) SetTextBaseline(value CanvasTextBaseline)

SetTextBaseline setting attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*CanvasRenderingContext2D) SetTransform Uses

func (_this *CanvasRenderingContext2D) SetTransform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*CanvasRenderingContext2D) SetTransform2 Uses

func (_this *CanvasRenderingContext2D) SetTransform2(transform *geometry.DOMMatrix2DInit)

func (*CanvasRenderingContext2D) ShadowBlur Uses

func (_this *CanvasRenderingContext2D) ShadowBlur() float64

ShadowBlur returning attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) ShadowColor Uses

func (_this *CanvasRenderingContext2D) ShadowColor() string

ShadowColor returning attribute 'shadowColor' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) ShadowOffsetX Uses

func (_this *CanvasRenderingContext2D) ShadowOffsetX() float64

ShadowOffsetX returning attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) ShadowOffsetY Uses

func (_this *CanvasRenderingContext2D) ShadowOffsetY() float64

ShadowOffsetY returning attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) Stroke Uses

func (_this *CanvasRenderingContext2D) Stroke()

func (*CanvasRenderingContext2D) Stroke2 Uses

func (_this *CanvasRenderingContext2D) Stroke2(path *Path2D)

func (*CanvasRenderingContext2D) StrokeRect Uses

func (_this *CanvasRenderingContext2D) StrokeRect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) StrokeStyle Uses

func (_this *CanvasRenderingContext2D) StrokeStyle() *Union

StrokeStyle returning attribute 'strokeStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) StrokeText Uses

func (_this *CanvasRenderingContext2D) StrokeText(text string, x float64, y float64, maxWidth *float64)

func (*CanvasRenderingContext2D) TextAlign Uses

func (_this *CanvasRenderingContext2D) TextAlign() CanvasTextAlign

TextAlign returning attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*CanvasRenderingContext2D) TextBaseline Uses

func (_this *CanvasRenderingContext2D) TextBaseline() CanvasTextBaseline

TextBaseline returning attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*CanvasRenderingContext2D) Transform Uses

func (_this *CanvasRenderingContext2D) Transform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*CanvasRenderingContext2D) Translate Uses

func (_this *CanvasRenderingContext2D) Translate(x float64, y float64)

type CanvasRenderingContext2DSettings Uses

type CanvasRenderingContext2DSettings struct {
    Alpha bool
}

dictionary: CanvasRenderingContext2DSettings

func CanvasRenderingContext2DSettingsFromJS Uses

func CanvasRenderingContext2DSettingsFromJS(value js.Wrapper) *CanvasRenderingContext2DSettings

CanvasRenderingContext2DSettingsFromJS is allocating a new CanvasRenderingContext2DSettings object and copy all values from input javascript object

func (*CanvasRenderingContext2DSettings) JSValue Uses

func (_this *CanvasRenderingContext2DSettings) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CanvasTextAlign Uses

type CanvasTextAlign int

enum: CanvasTextAlign

const (
    StartCanvasTextAlign CanvasTextAlign = iota
    EndCanvasTextAlign
    LeftCanvasTextAlign
    RightCanvasTextAlign
    CenterCanvasTextAlign
)

func CanvasTextAlignFromJS Uses

func CanvasTextAlignFromJS(value js.Value) CanvasTextAlign

CanvasTextAlignFromJS is converting a javascript value into a CanvasTextAlign enum value.

func (*CanvasTextAlign) JSValue Uses

func (this *CanvasTextAlign) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasTextAlign) Value Uses

func (this CanvasTextAlign) Value() string

Value is converting this into javascript defined string value

type CanvasTextBaseline Uses

type CanvasTextBaseline int

enum: CanvasTextBaseline

const (
    TopCanvasTextBaseline CanvasTextBaseline = iota
    HangingCanvasTextBaseline
    MiddleCanvasTextBaseline
    AlphabeticCanvasTextBaseline
    IdeographicCanvasTextBaseline
    BottomCanvasTextBaseline
)

func CanvasTextBaselineFromJS Uses

func CanvasTextBaselineFromJS(value js.Value) CanvasTextBaseline

CanvasTextBaselineFromJS is converting a javascript value into a CanvasTextBaseline enum value.

func (*CanvasTextBaseline) JSValue Uses

func (this *CanvasTextBaseline) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasTextBaseline) Value Uses

func (this CanvasTextBaseline) Value() string

Value is converting this into javascript defined string value

type ColorSpaceConversion Uses

type ColorSpaceConversion int

enum: ColorSpaceConversion

const (
    NoneColorSpaceConversion ColorSpaceConversion = iota
    DefaultColorSpaceConversion
)

func ColorSpaceConversionFromJS Uses

func ColorSpaceConversionFromJS(value js.Value) ColorSpaceConversion

ColorSpaceConversionFromJS is converting a javascript value into a ColorSpaceConversion enum value.

func (*ColorSpaceConversion) JSValue Uses

func (this *ColorSpaceConversion) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ColorSpaceConversion) Value Uses

func (this ColorSpaceConversion) Value() string

Value is converting this into javascript defined string value

type HTMLCanvasElement Uses

type HTMLCanvasElement struct {
    html.HTMLElement
}

class: HTMLCanvasElement

func HTMLCanvasElementFromJS Uses

func HTMLCanvasElementFromJS(value js.Wrapper) *HTMLCanvasElement

HTMLCanvasElementFromJS is casting a js.Wrapper into HTMLCanvasElement.

func (*HTMLCanvasElement) CaptureStream Uses

func (_this *HTMLCanvasElement) CaptureStream(frameRequestRate *float64) (_result *local.MediaStream)

func (*HTMLCanvasElement) GetContext Uses

func (_this *HTMLCanvasElement) GetContext(contextId string, options interface{}) (_result *Union)

func (*HTMLCanvasElement) Height Uses

func (_this *HTMLCanvasElement) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*HTMLCanvasElement) SetHeight Uses

func (_this *HTMLCanvasElement) SetHeight(value uint)

SetHeight setting attribute 'height' with type uint (idl: unsigned long).

func (*HTMLCanvasElement) SetWidth Uses

func (_this *HTMLCanvasElement) SetWidth(value uint)

SetWidth setting attribute 'width' with type uint (idl: unsigned long).

func (*HTMLCanvasElement) ToBlob Uses

func (_this *HTMLCanvasElement) ToBlob(callback *file.BlobCallback, _type *string, quality interface{})

func (*HTMLCanvasElement) ToDataURL Uses

func (_this *HTMLCanvasElement) ToDataURL(_type *string, quality interface{}) (_result string)

func (*HTMLCanvasElement) TransferControlToOffscreen Uses

func (_this *HTMLCanvasElement) TransferControlToOffscreen() (_result *OffscreenCanvas)

func (*HTMLCanvasElement) Width Uses

func (_this *HTMLCanvasElement) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type ImageBitmap Uses

type ImageBitmap struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: ImageBitmap

func ImageBitmapFromJS Uses

func ImageBitmapFromJS(value js.Wrapper) *ImageBitmap

ImageBitmapFromJS is casting a js.Wrapper into ImageBitmap.

func (*ImageBitmap) Close Uses

func (_this *ImageBitmap) Close()

func (*ImageBitmap) Height Uses

func (_this *ImageBitmap) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*ImageBitmap) JSValue Uses

func (_this *ImageBitmap) JSValue() js.Value

func (*ImageBitmap) Width Uses

func (_this *ImageBitmap) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type ImageBitmapOptions Uses

type ImageBitmapOptions struct {
    ImageOrientation     ImageOrientation
    PremultiplyAlpha     PremultiplyAlpha
    ColorSpaceConversion ColorSpaceConversion
    ResizeWidth          uint
    ResizeHeight         uint
    ResizeQuality        ResizeQuality
}

dictionary: ImageBitmapOptions

func ImageBitmapOptionsFromJS Uses

func ImageBitmapOptionsFromJS(value js.Wrapper) *ImageBitmapOptions

ImageBitmapOptionsFromJS is allocating a new ImageBitmapOptions object and copy all values from input javascript object

func (*ImageBitmapOptions) JSValue Uses

func (_this *ImageBitmapOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ImageBitmapRenderingContext Uses

type ImageBitmapRenderingContext struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: ImageBitmapRenderingContext

func ImageBitmapRenderingContextFromJS Uses

func ImageBitmapRenderingContextFromJS(value js.Wrapper) *ImageBitmapRenderingContext

ImageBitmapRenderingContextFromJS is casting a js.Wrapper into ImageBitmapRenderingContext.

func (*ImageBitmapRenderingContext) Canvas Uses

func (_this *ImageBitmapRenderingContext) Canvas() *HTMLCanvasElement

Canvas returning attribute 'canvas' with type HTMLCanvasElement (idl: HTMLCanvasElement).

func (*ImageBitmapRenderingContext) JSValue Uses

func (_this *ImageBitmapRenderingContext) JSValue() js.Value

func (*ImageBitmapRenderingContext) TransferFromImageBitmap Uses

func (_this *ImageBitmapRenderingContext) TransferFromImageBitmap(bitmap *ImageBitmap)

type ImageData Uses

type ImageData struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: ImageData

func ImageDataFromJS Uses

func ImageDataFromJS(value js.Wrapper) *ImageData

ImageDataFromJS is casting a js.Wrapper into ImageData.

func NewImageData Uses

func NewImageData(data *patch.Uint8ClampedArray, sw uint, sh *uint) (_result *ImageData)

func (*ImageData) Data Uses

func (_this *ImageData) Data() *patch.Uint8ClampedArray

Data returning attribute 'data' with type patch.Uint8ClampedArray (idl: Uint8ClampedArray).

func (*ImageData) Height Uses

func (_this *ImageData) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*ImageData) JSValue Uses

func (_this *ImageData) JSValue() js.Value

func (*ImageData) Width Uses

func (_this *ImageData) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type ImageOrientation Uses

type ImageOrientation int

enum: ImageOrientation

const (
    NoneImageOrientation ImageOrientation = iota
    FlipYImageOrientation
)

func ImageOrientationFromJS Uses

func ImageOrientationFromJS(value js.Value) ImageOrientation

ImageOrientationFromJS is converting a javascript value into a ImageOrientation enum value.

func (*ImageOrientation) JSValue Uses

func (this *ImageOrientation) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ImageOrientation) Value Uses

func (this ImageOrientation) Value() string

Value is converting this into javascript defined string value

type ImageSmoothingQuality Uses

type ImageSmoothingQuality int

enum: ImageSmoothingQuality

const (
    LowImageSmoothingQuality ImageSmoothingQuality = iota
    MediumImageSmoothingQuality
    HighImageSmoothingQuality
)

func ImageSmoothingQualityFromJS Uses

func ImageSmoothingQualityFromJS(value js.Value) ImageSmoothingQuality

ImageSmoothingQualityFromJS is converting a javascript value into a ImageSmoothingQuality enum value.

func (*ImageSmoothingQuality) JSValue Uses

func (this *ImageSmoothingQuality) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ImageSmoothingQuality) Value Uses

func (this ImageSmoothingQuality) Value() string

Value is converting this into javascript defined string value

type OffscreenCanvas Uses

type OffscreenCanvas struct {
    domcore.EventTarget
}

class: OffscreenCanvas

func NewOffscreenCanvas Uses

func NewOffscreenCanvas(width int, height int) (_result *OffscreenCanvas)

func OffscreenCanvasFromJS Uses

func OffscreenCanvasFromJS(value js.Wrapper) *OffscreenCanvas

OffscreenCanvasFromJS is casting a js.Wrapper into OffscreenCanvas.

func (*OffscreenCanvas) ConvertToBlob Uses

func (_this *OffscreenCanvas) ConvertToBlob(options *html.ImageEncodeOptions) (_result *file.PromiseBlob)

func (*OffscreenCanvas) GetContext Uses

func (_this *OffscreenCanvas) GetContext(contextId html.OffscreenRenderingContextId, options interface{}) (_result *Union)

func (*OffscreenCanvas) Height Uses

func (_this *OffscreenCanvas) Height() int

Height returning attribute 'height' with type int (idl: unsigned long long).

func (*OffscreenCanvas) SetHeight Uses

func (_this *OffscreenCanvas) SetHeight(value int)

SetHeight setting attribute 'height' with type int (idl: unsigned long long).

func (*OffscreenCanvas) SetWidth Uses

func (_this *OffscreenCanvas) SetWidth(value int)

SetWidth setting attribute 'width' with type int (idl: unsigned long long).

func (*OffscreenCanvas) TransferToImageBitmap Uses

func (_this *OffscreenCanvas) TransferToImageBitmap() (_result *ImageBitmap)

func (*OffscreenCanvas) Width Uses

func (_this *OffscreenCanvas) Width() int

Width returning attribute 'width' with type int (idl: unsigned long long).

type OffscreenCanvasRenderingContext2D Uses

type OffscreenCanvasRenderingContext2D struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: OffscreenCanvasRenderingContext2D

func OffscreenCanvasRenderingContext2DFromJS Uses

func OffscreenCanvasRenderingContext2DFromJS(value js.Wrapper) *OffscreenCanvasRenderingContext2D

OffscreenCanvasRenderingContext2DFromJS is casting a js.Wrapper into OffscreenCanvasRenderingContext2D.

func (*OffscreenCanvasRenderingContext2D) Arc Uses

func (_this *OffscreenCanvasRenderingContext2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*OffscreenCanvasRenderingContext2D) ArcTo Uses

func (_this *OffscreenCanvasRenderingContext2D) ArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

func (*OffscreenCanvasRenderingContext2D) BeginPath Uses

func (_this *OffscreenCanvasRenderingContext2D) BeginPath()

func (*OffscreenCanvasRenderingContext2D) BezierCurveTo Uses

func (_this *OffscreenCanvasRenderingContext2D) BezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) Canvas Uses

func (_this *OffscreenCanvasRenderingContext2D) Canvas() *OffscreenCanvas

Canvas returning attribute 'canvas' with type OffscreenCanvas (idl: OffscreenCanvas).

func (*OffscreenCanvasRenderingContext2D) ClearRect Uses

func (_this *OffscreenCanvasRenderingContext2D) ClearRect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) Clip Uses

func (_this *OffscreenCanvasRenderingContext2D) Clip(fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) Clip2 Uses

func (_this *OffscreenCanvasRenderingContext2D) Clip2(path *Path2D, fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) ClosePath Uses

func (_this *OffscreenCanvasRenderingContext2D) ClosePath()

func (*OffscreenCanvasRenderingContext2D) Commit Uses

func (_this *OffscreenCanvasRenderingContext2D) Commit()

func (*OffscreenCanvasRenderingContext2D) CreateImageData Uses

func (_this *OffscreenCanvasRenderingContext2D) CreateImageData(sw int, sh int) (_result *ImageData)

func (*OffscreenCanvasRenderingContext2D) CreateImageData2 Uses

func (_this *OffscreenCanvasRenderingContext2D) CreateImageData2(imagedata *ImageData) (_result *ImageData)

func (*OffscreenCanvasRenderingContext2D) CreateLinearGradient Uses

func (_this *OffscreenCanvasRenderingContext2D) CreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (_result *CanvasGradient)

func (*OffscreenCanvasRenderingContext2D) CreatePattern Uses

func (_this *OffscreenCanvasRenderingContext2D) CreatePattern(image *Union, repetition string) (_result *CanvasPattern)

func (*OffscreenCanvasRenderingContext2D) CreateRadialGradient Uses

func (_this *OffscreenCanvasRenderingContext2D) CreateRadialGradient(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) (_result *CanvasGradient)

func (*OffscreenCanvasRenderingContext2D) Direction Uses

func (_this *OffscreenCanvasRenderingContext2D) Direction() CanvasDirection

Direction returning attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*OffscreenCanvasRenderingContext2D) DrawImage Uses

func (_this *OffscreenCanvasRenderingContext2D) DrawImage(image *Union, dx float64, dy float64)

func (*OffscreenCanvasRenderingContext2D) DrawImage2 Uses

func (_this *OffscreenCanvasRenderingContext2D) DrawImage2(image *Union, dx float64, dy float64, dw float64, dh float64)

func (*OffscreenCanvasRenderingContext2D) DrawImage3 Uses

func (_this *OffscreenCanvasRenderingContext2D) DrawImage3(image *Union, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64)

func (*OffscreenCanvasRenderingContext2D) Ellipse Uses

func (_this *OffscreenCanvasRenderingContext2D) Ellipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*OffscreenCanvasRenderingContext2D) Fill Uses

func (_this *OffscreenCanvasRenderingContext2D) Fill(fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) Fill2 Uses

func (_this *OffscreenCanvasRenderingContext2D) Fill2(path *Path2D, fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) FillRect Uses

func (_this *OffscreenCanvasRenderingContext2D) FillRect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) FillStyle Uses

func (_this *OffscreenCanvasRenderingContext2D) FillStyle() *Union

FillStyle returning attribute 'fillStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) FillText Uses

func (_this *OffscreenCanvasRenderingContext2D) FillText(text string, x float64, y float64, maxWidth *float64)

func (*OffscreenCanvasRenderingContext2D) Filter Uses

func (_this *OffscreenCanvasRenderingContext2D) Filter() string

Filter returning attribute 'filter' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) Font Uses

func (_this *OffscreenCanvasRenderingContext2D) Font() string

Font returning attribute 'font' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) GetImageData Uses

func (_this *OffscreenCanvasRenderingContext2D) GetImageData(sx int, sy int, sw int, sh int) (_result *ImageData)

func (*OffscreenCanvasRenderingContext2D) GetLineDash Uses

func (_this *OffscreenCanvasRenderingContext2D) GetLineDash() (_result []float64)

func (*OffscreenCanvasRenderingContext2D) GetTransform Uses

func (_this *OffscreenCanvasRenderingContext2D) GetTransform() (_result *geometry.DOMMatrix)

func (*OffscreenCanvasRenderingContext2D) GlobalAlpha Uses

func (_this *OffscreenCanvasRenderingContext2D) GlobalAlpha() float64

GlobalAlpha returning attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) GlobalCompositeOperation Uses

func (_this *OffscreenCanvasRenderingContext2D) GlobalCompositeOperation() string

GlobalCompositeOperation returning attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) ImageSmoothingEnabled Uses

func (_this *OffscreenCanvasRenderingContext2D) ImageSmoothingEnabled() bool

ImageSmoothingEnabled returning attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*OffscreenCanvasRenderingContext2D) ImageSmoothingQuality Uses

func (_this *OffscreenCanvasRenderingContext2D) ImageSmoothingQuality() ImageSmoothingQuality

ImageSmoothingQuality returning attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*OffscreenCanvasRenderingContext2D) IsPointInPath Uses

func (_this *OffscreenCanvasRenderingContext2D) IsPointInPath(x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*OffscreenCanvasRenderingContext2D) IsPointInPath2 Uses

func (_this *OffscreenCanvasRenderingContext2D) IsPointInPath2(path *Path2D, x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*OffscreenCanvasRenderingContext2D) IsPointInStroke Uses

func (_this *OffscreenCanvasRenderingContext2D) IsPointInStroke(x float64, y float64) (_result bool)

func (*OffscreenCanvasRenderingContext2D) IsPointInStroke2 Uses

func (_this *OffscreenCanvasRenderingContext2D) IsPointInStroke2(path *Path2D, x float64, y float64) (_result bool)

func (*OffscreenCanvasRenderingContext2D) JSValue Uses

func (_this *OffscreenCanvasRenderingContext2D) JSValue() js.Value

func (*OffscreenCanvasRenderingContext2D) LineCap Uses

func (_this *OffscreenCanvasRenderingContext2D) LineCap() CanvasLineCap

LineCap returning attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*OffscreenCanvasRenderingContext2D) LineDashOffset Uses

func (_this *OffscreenCanvasRenderingContext2D) LineDashOffset() float64

LineDashOffset returning attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) LineJoin Uses

func (_this *OffscreenCanvasRenderingContext2D) LineJoin() CanvasLineJoin

LineJoin returning attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*OffscreenCanvasRenderingContext2D) LineTo Uses

func (_this *OffscreenCanvasRenderingContext2D) LineTo(x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) LineWidth Uses

func (_this *OffscreenCanvasRenderingContext2D) LineWidth() float64

LineWidth returning attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) MeasureText Uses

func (_this *OffscreenCanvasRenderingContext2D) MeasureText(text string) (_result *TextMetrics)

func (*OffscreenCanvasRenderingContext2D) MiterLimit Uses

func (_this *OffscreenCanvasRenderingContext2D) MiterLimit() float64

MiterLimit returning attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) MoveTo Uses

func (_this *OffscreenCanvasRenderingContext2D) MoveTo(x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) PutImageData Uses

func (_this *OffscreenCanvasRenderingContext2D) PutImageData(imagedata *ImageData, dx int, dy int)

func (*OffscreenCanvasRenderingContext2D) PutImageData2 Uses

func (_this *OffscreenCanvasRenderingContext2D) PutImageData2(imagedata *ImageData, dx int, dy int, dirtyX int, dirtyY int, dirtyWidth int, dirtyHeight int)

func (*OffscreenCanvasRenderingContext2D) QuadraticCurveTo Uses

func (_this *OffscreenCanvasRenderingContext2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) Rect Uses

func (_this *OffscreenCanvasRenderingContext2D) Rect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) ResetTransform Uses

func (_this *OffscreenCanvasRenderingContext2D) ResetTransform()

func (*OffscreenCanvasRenderingContext2D) Restore Uses

func (_this *OffscreenCanvasRenderingContext2D) Restore()

func (*OffscreenCanvasRenderingContext2D) Rotate Uses

func (_this *OffscreenCanvasRenderingContext2D) Rotate(angle float64)

func (*OffscreenCanvasRenderingContext2D) Save Uses

func (_this *OffscreenCanvasRenderingContext2D) Save()

func (*OffscreenCanvasRenderingContext2D) Scale Uses

func (_this *OffscreenCanvasRenderingContext2D) Scale(x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) SetDirection Uses

func (_this *OffscreenCanvasRenderingContext2D) SetDirection(value CanvasDirection)

SetDirection setting attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*OffscreenCanvasRenderingContext2D) SetFillStyle Uses

func (_this *OffscreenCanvasRenderingContext2D) SetFillStyle(value *Union)

SetFillStyle setting attribute 'fillStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) SetFilter Uses

func (_this *OffscreenCanvasRenderingContext2D) SetFilter(value string)

SetFilter setting attribute 'filter' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetFont Uses

func (_this *OffscreenCanvasRenderingContext2D) SetFont(value string)

SetFont setting attribute 'font' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetGlobalAlpha Uses

func (_this *OffscreenCanvasRenderingContext2D) SetGlobalAlpha(value float64)

SetGlobalAlpha setting attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetGlobalCompositeOperation Uses

func (_this *OffscreenCanvasRenderingContext2D) SetGlobalCompositeOperation(value string)

SetGlobalCompositeOperation setting attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetImageSmoothingEnabled Uses

func (_this *OffscreenCanvasRenderingContext2D) SetImageSmoothingEnabled(value bool)

SetImageSmoothingEnabled setting attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*OffscreenCanvasRenderingContext2D) SetImageSmoothingQuality Uses

func (_this *OffscreenCanvasRenderingContext2D) SetImageSmoothingQuality(value ImageSmoothingQuality)

SetImageSmoothingQuality setting attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*OffscreenCanvasRenderingContext2D) SetLineCap Uses

func (_this *OffscreenCanvasRenderingContext2D) SetLineCap(value CanvasLineCap)

SetLineCap setting attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*OffscreenCanvasRenderingContext2D) SetLineDash Uses

func (_this *OffscreenCanvasRenderingContext2D) SetLineDash(segments []float64)

func (*OffscreenCanvasRenderingContext2D) SetLineDashOffset Uses

func (_this *OffscreenCanvasRenderingContext2D) SetLineDashOffset(value float64)

SetLineDashOffset setting attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetLineJoin Uses

func (_this *OffscreenCanvasRenderingContext2D) SetLineJoin(value CanvasLineJoin)

SetLineJoin setting attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*OffscreenCanvasRenderingContext2D) SetLineWidth Uses

func (_this *OffscreenCanvasRenderingContext2D) SetLineWidth(value float64)

SetLineWidth setting attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetMiterLimit Uses

func (_this *OffscreenCanvasRenderingContext2D) SetMiterLimit(value float64)

SetMiterLimit setting attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetShadowBlur Uses

func (_this *OffscreenCanvasRenderingContext2D) SetShadowBlur(value float64)

SetShadowBlur setting attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetShadowColor Uses

func (_this *OffscreenCanvasRenderingContext2D) SetShadowColor(value string)

SetShadowColor setting attribute 'shadowColor' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetShadowOffsetX Uses

func (_this *OffscreenCanvasRenderingContext2D) SetShadowOffsetX(value float64)

SetShadowOffsetX setting attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetShadowOffsetY Uses

func (_this *OffscreenCanvasRenderingContext2D) SetShadowOffsetY(value float64)

SetShadowOffsetY setting attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetStrokeStyle Uses

func (_this *OffscreenCanvasRenderingContext2D) SetStrokeStyle(value *Union)

SetStrokeStyle setting attribute 'strokeStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) SetTextAlign Uses

func (_this *OffscreenCanvasRenderingContext2D) SetTextAlign(value CanvasTextAlign)

SetTextAlign setting attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*OffscreenCanvasRenderingContext2D) SetTextBaseline Uses

func (_this *OffscreenCanvasRenderingContext2D) SetTextBaseline(value CanvasTextBaseline)

SetTextBaseline setting attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*OffscreenCanvasRenderingContext2D) SetTransform Uses

func (_this *OffscreenCanvasRenderingContext2D) SetTransform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*OffscreenCanvasRenderingContext2D) SetTransform2 Uses

func (_this *OffscreenCanvasRenderingContext2D) SetTransform2(transform *geometry.DOMMatrix2DInit)

func (*OffscreenCanvasRenderingContext2D) ShadowBlur Uses

func (_this *OffscreenCanvasRenderingContext2D) ShadowBlur() float64

ShadowBlur returning attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) ShadowColor Uses

func (_this *OffscreenCanvasRenderingContext2D) ShadowColor() string

ShadowColor returning attribute 'shadowColor' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) ShadowOffsetX Uses

func (_this *OffscreenCanvasRenderingContext2D) ShadowOffsetX() float64

ShadowOffsetX returning attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) ShadowOffsetY Uses

func (_this *OffscreenCanvasRenderingContext2D) ShadowOffsetY() float64

ShadowOffsetY returning attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) Stroke Uses

func (_this *OffscreenCanvasRenderingContext2D) Stroke()

func (*OffscreenCanvasRenderingContext2D) Stroke2 Uses

func (_this *OffscreenCanvasRenderingContext2D) Stroke2(path *Path2D)

func (*OffscreenCanvasRenderingContext2D) StrokeRect Uses

func (_this *OffscreenCanvasRenderingContext2D) StrokeRect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) StrokeStyle Uses

func (_this *OffscreenCanvasRenderingContext2D) StrokeStyle() *Union

StrokeStyle returning attribute 'strokeStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) StrokeText Uses

func (_this *OffscreenCanvasRenderingContext2D) StrokeText(text string, x float64, y float64, maxWidth *float64)

func (*OffscreenCanvasRenderingContext2D) TextAlign Uses

func (_this *OffscreenCanvasRenderingContext2D) TextAlign() CanvasTextAlign

TextAlign returning attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*OffscreenCanvasRenderingContext2D) TextBaseline Uses

func (_this *OffscreenCanvasRenderingContext2D) TextBaseline() CanvasTextBaseline

TextBaseline returning attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*OffscreenCanvasRenderingContext2D) Transform Uses

func (_this *OffscreenCanvasRenderingContext2D) Transform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*OffscreenCanvasRenderingContext2D) Translate Uses

func (_this *OffscreenCanvasRenderingContext2D) Translate(x float64, y float64)

type Path2D Uses

type Path2D struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Path2D

func NewPath2D Uses

func NewPath2D(path *Union) (_result *Path2D)

func Path2DFromJS Uses

func Path2DFromJS(value js.Wrapper) *Path2D

Path2DFromJS is casting a js.Wrapper into Path2D.

func (*Path2D) AddPath Uses

func (_this *Path2D) AddPath(path *Path2D, transform *geometry.DOMMatrix2DInit)

func (*Path2D) Arc Uses

func (_this *Path2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*Path2D) ArcTo Uses

func (_this *Path2D) ArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

func (*Path2D) BezierCurveTo Uses

func (_this *Path2D) BezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

func (*Path2D) ClosePath Uses

func (_this *Path2D) ClosePath()

func (*Path2D) Ellipse Uses

func (_this *Path2D) Ellipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*Path2D) JSValue Uses

func (_this *Path2D) JSValue() js.Value

func (*Path2D) LineTo Uses

func (_this *Path2D) LineTo(x float64, y float64)

func (*Path2D) MoveTo Uses

func (_this *Path2D) MoveTo(x float64, y float64)

func (*Path2D) QuadraticCurveTo Uses

func (_this *Path2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64)

func (*Path2D) Rect Uses

func (_this *Path2D) Rect(x float64, y float64, w float64, h float64)

type PremultiplyAlpha Uses

type PremultiplyAlpha int

enum: PremultiplyAlpha

const (
    NonePremultiplyAlpha PremultiplyAlpha = iota
    PremultiplyPremultiplyAlpha
    DefaultPremultiplyAlpha
)

func PremultiplyAlphaFromJS Uses

func PremultiplyAlphaFromJS(value js.Value) PremultiplyAlpha

PremultiplyAlphaFromJS is converting a javascript value into a PremultiplyAlpha enum value.

func (*PremultiplyAlpha) JSValue Uses

func (this *PremultiplyAlpha) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PremultiplyAlpha) Value Uses

func (this PremultiplyAlpha) Value() string

Value is converting this into javascript defined string value

type PromiseImageBitmap Uses

type PromiseImageBitmap struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseImageBitmapFromJS Uses

func PromiseImageBitmapFromJS(value js.Wrapper) *PromiseImageBitmap

PromiseImageBitmapFromJS is casting a js.Wrapper into PromiseImageBitmap.

func (*PromiseImageBitmap) Catch Uses

func (_this *PromiseImageBitmap) Catch(onRejected *PromiseImageBitmapOnRejected) (_result *PromiseImageBitmap)

func (*PromiseImageBitmap) Finally Uses

func (_this *PromiseImageBitmap) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseImageBitmap)

func (*PromiseImageBitmap) JSValue Uses

func (_this *PromiseImageBitmap) JSValue() js.Value

func (*PromiseImageBitmap) Then Uses

func (_this *PromiseImageBitmap) Then(onFulfilled *PromiseImageBitmapOnFulfilled, onRejected *PromiseImageBitmapOnRejected) (_result *PromiseImageBitmap)

type PromiseImageBitmapOnFulfilled Uses

type PromiseImageBitmapOnFulfilled js.Func

PromiseImageBitmapOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseImageBitmapOnFulfilledToJS Uses

func PromiseImageBitmapOnFulfilledToJS(callback PromiseImageBitmapOnFulfilledFunc) *PromiseImageBitmapOnFulfilled

type PromiseImageBitmapOnFulfilledFunc Uses

type PromiseImageBitmapOnFulfilledFunc func(value *ImageBitmap)

callback: PromiseTemplateOnFulfilled

func PromiseImageBitmapOnFulfilledFromJS Uses

func PromiseImageBitmapOnFulfilledFromJS(_value js.Value) PromiseImageBitmapOnFulfilledFunc

type PromiseImageBitmapOnRejected Uses

type PromiseImageBitmapOnRejected js.Func

PromiseImageBitmapOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseImageBitmapOnRejectedToJS Uses

func PromiseImageBitmapOnRejectedToJS(callback PromiseImageBitmapOnRejectedFunc) *PromiseImageBitmapOnRejected

type PromiseImageBitmapOnRejectedFunc Uses

type PromiseImageBitmapOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseImageBitmapOnRejectedFromJS Uses

func PromiseImageBitmapOnRejectedFromJS(_value js.Value) PromiseImageBitmapOnRejectedFunc

type ResizeQuality Uses

type ResizeQuality int

enum: ResizeQuality

const (
    PixelatedResizeQuality ResizeQuality = iota
    LowResizeQuality
    MediumResizeQuality
    HighResizeQuality
)

func ResizeQualityFromJS Uses

func ResizeQualityFromJS(value js.Value) ResizeQuality

ResizeQualityFromJS is converting a javascript value into a ResizeQuality enum value.

func (*ResizeQuality) JSValue Uses

func (this *ResizeQuality) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ResizeQuality) Value Uses

func (this ResizeQuality) Value() string

Value is converting this into javascript defined string value

type TextMetrics Uses

type TextMetrics struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: TextMetrics

func TextMetricsFromJS Uses

func TextMetricsFromJS(value js.Wrapper) *TextMetrics

TextMetricsFromJS is casting a js.Wrapper into TextMetrics.

func (*TextMetrics) ActualBoundingBoxAscent Uses

func (_this *TextMetrics) ActualBoundingBoxAscent() float64

ActualBoundingBoxAscent returning attribute 'actualBoundingBoxAscent' with type float64 (idl: double).

func (*TextMetrics) ActualBoundingBoxDescent Uses

func (_this *TextMetrics) ActualBoundingBoxDescent() float64

ActualBoundingBoxDescent returning attribute 'actualBoundingBoxDescent' with type float64 (idl: double).

func (*TextMetrics) ActualBoundingBoxLeft Uses

func (_this *TextMetrics) ActualBoundingBoxLeft() float64

ActualBoundingBoxLeft returning attribute 'actualBoundingBoxLeft' with type float64 (idl: double).

func (*TextMetrics) ActualBoundingBoxRight Uses

func (_this *TextMetrics) ActualBoundingBoxRight() float64

ActualBoundingBoxRight returning attribute 'actualBoundingBoxRight' with type float64 (idl: double).

func (*TextMetrics) AlphabeticBaseline Uses

func (_this *TextMetrics) AlphabeticBaseline() float64

AlphabeticBaseline returning attribute 'alphabeticBaseline' with type float64 (idl: double).

func (*TextMetrics) EmHeightAscent Uses

func (_this *TextMetrics) EmHeightAscent() float64

EmHeightAscent returning attribute 'emHeightAscent' with type float64 (idl: double).

func (*TextMetrics) EmHeightDescent Uses

func (_this *TextMetrics) EmHeightDescent() float64

EmHeightDescent returning attribute 'emHeightDescent' with type float64 (idl: double).

func (*TextMetrics) FontBoundingBoxAscent Uses

func (_this *TextMetrics) FontBoundingBoxAscent() float64

FontBoundingBoxAscent returning attribute 'fontBoundingBoxAscent' with type float64 (idl: double).

func (*TextMetrics) FontBoundingBoxDescent Uses

func (_this *TextMetrics) FontBoundingBoxDescent() float64

FontBoundingBoxDescent returning attribute 'fontBoundingBoxDescent' with type float64 (idl: double).

func (*TextMetrics) HangingBaseline Uses

func (_this *TextMetrics) HangingBaseline() float64

HangingBaseline returning attribute 'hangingBaseline' with type float64 (idl: double).

func (*TextMetrics) IdeographicBaseline Uses

func (_this *TextMetrics) IdeographicBaseline() float64

IdeographicBaseline returning attribute 'ideographicBaseline' with type float64 (idl: double).

func (*TextMetrics) JSValue Uses

func (_this *TextMetrics) JSValue() js.Value

func (*TextMetrics) Width Uses

func (_this *TextMetrics) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package canvas imports 10 packages (graph) and is imported by 6 packages. Updated 2019-09-16. Refresh now. Tools for package owners.