webapi: github.com/gowebapi/webapi/css/paint Index | Files

package paint

import "github.com/gowebapi/webapi/css/paint"

Package paint is to define a custom CSS <image> in code, which will respond to style and size changes.

Index

Package Files

doc.go paint.go

type PaintRenderingContext2D Uses

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

class: PaintRenderingContext2D

func PaintRenderingContext2DFromJS Uses

func PaintRenderingContext2DFromJS(value js.Wrapper) *PaintRenderingContext2D

PaintRenderingContext2DFromJS is casting a js.Wrapper into PaintRenderingContext2D.

func (*PaintRenderingContext2D) Arc Uses

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

func (*PaintRenderingContext2D) ArcTo Uses

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

func (*PaintRenderingContext2D) BeginPath Uses

func (_this *PaintRenderingContext2D) BeginPath()

func (*PaintRenderingContext2D) BezierCurveTo Uses

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

func (*PaintRenderingContext2D) ClearRect Uses

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

func (*PaintRenderingContext2D) Clip Uses

func (_this *PaintRenderingContext2D) Clip(fillRule *canvas.CanvasFillRule)

func (*PaintRenderingContext2D) Clip2 Uses

func (_this *PaintRenderingContext2D) Clip2(path *canvas.Path2D, fillRule *canvas.CanvasFillRule)

func (*PaintRenderingContext2D) ClosePath Uses

func (_this *PaintRenderingContext2D) ClosePath()

func (*PaintRenderingContext2D) CreateLinearGradient Uses

func (_this *PaintRenderingContext2D) CreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (_result *canvas.CanvasGradient)

func (*PaintRenderingContext2D) CreatePattern Uses

func (_this *PaintRenderingContext2D) CreatePattern(image *Union, repetition string) (_result *canvas.CanvasPattern)

func (*PaintRenderingContext2D) CreateRadialGradient Uses

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

func (*PaintRenderingContext2D) DrawImage Uses

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

func (*PaintRenderingContext2D) DrawImage2 Uses

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

func (*PaintRenderingContext2D) DrawImage3 Uses

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

func (*PaintRenderingContext2D) Ellipse Uses

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

func (*PaintRenderingContext2D) Fill Uses

func (_this *PaintRenderingContext2D) Fill(fillRule *canvas.CanvasFillRule)

func (*PaintRenderingContext2D) Fill2 Uses

func (_this *PaintRenderingContext2D) Fill2(path *canvas.Path2D, fillRule *canvas.CanvasFillRule)

func (*PaintRenderingContext2D) FillRect Uses

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

func (*PaintRenderingContext2D) FillStyle Uses

func (_this *PaintRenderingContext2D) FillStyle() *Union

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

func (*PaintRenderingContext2D) GetLineDash Uses

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

func (*PaintRenderingContext2D) GetTransform Uses

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

func (*PaintRenderingContext2D) GlobalAlpha Uses

func (_this *PaintRenderingContext2D) GlobalAlpha() float64

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

func (*PaintRenderingContext2D) GlobalCompositeOperation Uses

func (_this *PaintRenderingContext2D) GlobalCompositeOperation() string

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

func (*PaintRenderingContext2D) ImageSmoothingEnabled Uses

func (_this *PaintRenderingContext2D) ImageSmoothingEnabled() bool

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

func (*PaintRenderingContext2D) ImageSmoothingQuality Uses

func (_this *PaintRenderingContext2D) ImageSmoothingQuality() canvas.ImageSmoothingQuality

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

func (*PaintRenderingContext2D) IsPointInPath Uses

func (_this *PaintRenderingContext2D) IsPointInPath(x float64, y float64, fillRule *canvas.CanvasFillRule) (_result bool)

func (*PaintRenderingContext2D) IsPointInPath2 Uses

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

func (*PaintRenderingContext2D) IsPointInStroke Uses

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

func (*PaintRenderingContext2D) IsPointInStroke2 Uses

func (_this *PaintRenderingContext2D) IsPointInStroke2(path *canvas.Path2D, x float64, y float64) (_result bool)

func (*PaintRenderingContext2D) JSValue Uses

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

func (*PaintRenderingContext2D) LineCap Uses

func (_this *PaintRenderingContext2D) LineCap() canvas.CanvasLineCap

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

func (*PaintRenderingContext2D) LineDashOffset Uses

func (_this *PaintRenderingContext2D) LineDashOffset() float64

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

func (*PaintRenderingContext2D) LineJoin Uses

func (_this *PaintRenderingContext2D) LineJoin() canvas.CanvasLineJoin

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

func (*PaintRenderingContext2D) LineTo Uses

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

func (*PaintRenderingContext2D) LineWidth Uses

func (_this *PaintRenderingContext2D) LineWidth() float64

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

func (*PaintRenderingContext2D) MiterLimit Uses

func (_this *PaintRenderingContext2D) MiterLimit() float64

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

func (*PaintRenderingContext2D) MoveTo Uses

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

func (*PaintRenderingContext2D) QuadraticCurveTo Uses

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

func (*PaintRenderingContext2D) Rect Uses

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

func (*PaintRenderingContext2D) ResetTransform Uses

func (_this *PaintRenderingContext2D) ResetTransform()

func (*PaintRenderingContext2D) Restore Uses

func (_this *PaintRenderingContext2D) Restore()

func (*PaintRenderingContext2D) Rotate Uses

func (_this *PaintRenderingContext2D) Rotate(angle float64)

func (*PaintRenderingContext2D) Save Uses

func (_this *PaintRenderingContext2D) Save()

func (*PaintRenderingContext2D) Scale Uses

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

func (*PaintRenderingContext2D) SetFillStyle Uses

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

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

func (*PaintRenderingContext2D) SetGlobalAlpha Uses

func (_this *PaintRenderingContext2D) SetGlobalAlpha(value float64)

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

func (*PaintRenderingContext2D) SetGlobalCompositeOperation Uses

func (_this *PaintRenderingContext2D) SetGlobalCompositeOperation(value string)

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

func (*PaintRenderingContext2D) SetImageSmoothingEnabled Uses

func (_this *PaintRenderingContext2D) SetImageSmoothingEnabled(value bool)

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

func (*PaintRenderingContext2D) SetImageSmoothingQuality Uses

func (_this *PaintRenderingContext2D) SetImageSmoothingQuality(value canvas.ImageSmoothingQuality)

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

func (*PaintRenderingContext2D) SetLineCap Uses

func (_this *PaintRenderingContext2D) SetLineCap(value canvas.CanvasLineCap)

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

func (*PaintRenderingContext2D) SetLineDash Uses

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

func (*PaintRenderingContext2D) SetLineDashOffset Uses

func (_this *PaintRenderingContext2D) SetLineDashOffset(value float64)

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

func (*PaintRenderingContext2D) SetLineJoin Uses

func (_this *PaintRenderingContext2D) SetLineJoin(value canvas.CanvasLineJoin)

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

func (*PaintRenderingContext2D) SetLineWidth Uses

func (_this *PaintRenderingContext2D) SetLineWidth(value float64)

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

func (*PaintRenderingContext2D) SetMiterLimit Uses

func (_this *PaintRenderingContext2D) SetMiterLimit(value float64)

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

func (*PaintRenderingContext2D) SetShadowBlur Uses

func (_this *PaintRenderingContext2D) SetShadowBlur(value float64)

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

func (*PaintRenderingContext2D) SetShadowColor Uses

func (_this *PaintRenderingContext2D) SetShadowColor(value string)

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

func (*PaintRenderingContext2D) SetShadowOffsetX Uses

func (_this *PaintRenderingContext2D) SetShadowOffsetX(value float64)

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

func (*PaintRenderingContext2D) SetShadowOffsetY Uses

func (_this *PaintRenderingContext2D) SetShadowOffsetY(value float64)

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

func (*PaintRenderingContext2D) SetStrokeStyle Uses

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

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

func (*PaintRenderingContext2D) SetTransform Uses

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

func (*PaintRenderingContext2D) SetTransform2 Uses

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

func (*PaintRenderingContext2D) ShadowBlur Uses

func (_this *PaintRenderingContext2D) ShadowBlur() float64

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

func (*PaintRenderingContext2D) ShadowColor Uses

func (_this *PaintRenderingContext2D) ShadowColor() string

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

func (*PaintRenderingContext2D) ShadowOffsetX Uses

func (_this *PaintRenderingContext2D) ShadowOffsetX() float64

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

func (*PaintRenderingContext2D) ShadowOffsetY Uses

func (_this *PaintRenderingContext2D) ShadowOffsetY() float64

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

func (*PaintRenderingContext2D) Stroke Uses

func (_this *PaintRenderingContext2D) Stroke()

func (*PaintRenderingContext2D) Stroke2 Uses

func (_this *PaintRenderingContext2D) Stroke2(path *canvas.Path2D)

func (*PaintRenderingContext2D) StrokeRect Uses

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

func (*PaintRenderingContext2D) StrokeStyle Uses

func (_this *PaintRenderingContext2D) StrokeStyle() *Union

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

func (*PaintRenderingContext2D) Transform Uses

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

func (*PaintRenderingContext2D) Translate Uses

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

type PaintRenderingContext2DSettings Uses

type PaintRenderingContext2DSettings struct {
    Alpha bool
}

dictionary: PaintRenderingContext2DSettings

func PaintRenderingContext2DSettingsFromJS Uses

func PaintRenderingContext2DSettingsFromJS(value js.Wrapper) *PaintRenderingContext2DSettings

PaintRenderingContext2DSettingsFromJS is allocating a new PaintRenderingContext2DSettings object and copy all values from input javascript object

func (*PaintRenderingContext2DSettings) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaintSize Uses

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

class: PaintSize

func PaintSizeFromJS Uses

func PaintSizeFromJS(value js.Wrapper) *PaintSize

PaintSizeFromJS is casting a js.Wrapper into PaintSize.

func (*PaintSize) Height Uses

func (_this *PaintSize) Height() float64

Height returning attribute 'height' with type float64 (idl: double).

func (*PaintSize) JSValue Uses

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

func (*PaintSize) Width Uses

func (_this *PaintSize) Width() float64

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

type PaintWorkletGlobalScope Uses

type PaintWorkletGlobalScope struct {
    worklets.WorkletGlobalScope
}

class: PaintWorkletGlobalScope

func PaintWorkletGlobalScopeFromJS Uses

func PaintWorkletGlobalScopeFromJS(value js.Wrapper) *PaintWorkletGlobalScope

PaintWorkletGlobalScopeFromJS is casting a js.Wrapper into PaintWorkletGlobalScope.

func (*PaintWorkletGlobalScope) DevicePixelRatio Uses

func (_this *PaintWorkletGlobalScope) DevicePixelRatio() float64

DevicePixelRatio returning attribute 'devicePixelRatio' with type float64 (idl: unrestricted double).

func (*PaintWorkletGlobalScope) RegisterPaint Uses

func (_this *PaintWorkletGlobalScope) RegisterPaint(name string, paintCtor *webidl.VoidFunction)

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 paint imports 6 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.