geometry

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 13

Documentation

Overview

Package geometry provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOMMatrix

type DOMMatrix struct {
	DOMMatrixReadOnly
}

class: DOMMatrix

func DOMMatrixFromJS

func DOMMatrixFromJS(value js.Value) *DOMMatrix

DOMMatrixFromJS is casting a js.Value into DOMMatrix.

func DOMMatrixFromWrapper

func DOMMatrixFromWrapper(input core.Wrapper) *DOMMatrix

DOMMatrixFromJS is casting from something that holds a js.Value into DOMMatrix.

func FromFloat32Array

func FromFloat32Array(array32 *javascript.Float32Array) (_result *DOMMatrix)

func FromFloat64Array

func FromFloat64Array(array64 *javascript.Float64Array) (_result *DOMMatrix)

func FromMatrix

func FromMatrix(other *DOMMatrixInit) (_result *DOMMatrix)

func NewDOMMatrix

func NewDOMMatrix(init *Union) (_result *DOMMatrix)

func (*DOMMatrix) A

func (_this *DOMMatrix) A() float64

A returning attribute 'a' with type float64 (idl: unrestricted double).

func (*DOMMatrix) B

func (_this *DOMMatrix) B() float64

B returning attribute 'b' with type float64 (idl: unrestricted double).

func (*DOMMatrix) C

func (_this *DOMMatrix) C() float64

C returning attribute 'c' with type float64 (idl: unrestricted double).

func (*DOMMatrix) D

func (_this *DOMMatrix) D() float64

D returning attribute 'd' with type float64 (idl: unrestricted double).

func (*DOMMatrix) E

func (_this *DOMMatrix) E() float64

E returning attribute 'e' with type float64 (idl: unrestricted double).

func (*DOMMatrix) F

func (_this *DOMMatrix) F() float64

F returning attribute 'f' with type float64 (idl: unrestricted double).

func (*DOMMatrix) InvertSelf

func (_this *DOMMatrix) InvertSelf() (_result *DOMMatrix)

func (*DOMMatrix) M11

func (_this *DOMMatrix) M11() float64

M11 returning attribute 'm11' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M12

func (_this *DOMMatrix) M12() float64

M12 returning attribute 'm12' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M13

func (_this *DOMMatrix) M13() float64

M13 returning attribute 'm13' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M14

func (_this *DOMMatrix) M14() float64

M14 returning attribute 'm14' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M21

func (_this *DOMMatrix) M21() float64

M21 returning attribute 'm21' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M22

func (_this *DOMMatrix) M22() float64

M22 returning attribute 'm22' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M23

func (_this *DOMMatrix) M23() float64

M23 returning attribute 'm23' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M24

func (_this *DOMMatrix) M24() float64

M24 returning attribute 'm24' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M31

func (_this *DOMMatrix) M31() float64

M31 returning attribute 'm31' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M32

func (_this *DOMMatrix) M32() float64

M32 returning attribute 'm32' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M33

func (_this *DOMMatrix) M33() float64

M33 returning attribute 'm33' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M34

func (_this *DOMMatrix) M34() float64

M34 returning attribute 'm34' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M41

func (_this *DOMMatrix) M41() float64

M41 returning attribute 'm41' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M42

func (_this *DOMMatrix) M42() float64

M42 returning attribute 'm42' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M43

func (_this *DOMMatrix) M43() float64

M43 returning attribute 'm43' with type float64 (idl: unrestricted double).

func (*DOMMatrix) M44

func (_this *DOMMatrix) M44() float64

M44 returning attribute 'm44' with type float64 (idl: unrestricted double).

func (*DOMMatrix) MultiplySelf

func (_this *DOMMatrix) MultiplySelf(other *DOMMatrixInit) (_result *DOMMatrix)

func (*DOMMatrix) PreMultiplySelf

func (_this *DOMMatrix) PreMultiplySelf(other *DOMMatrixInit) (_result *DOMMatrix)

func (*DOMMatrix) RotateAxisAngleSelf

func (_this *DOMMatrix) RotateAxisAngleSelf(x *float64, y *float64, z *float64, angle *float64) (_result *DOMMatrix)

func (*DOMMatrix) RotateFromVectorSelf

func (_this *DOMMatrix) RotateFromVectorSelf(x *float64, y *float64) (_result *DOMMatrix)

func (*DOMMatrix) RotateSelf

func (_this *DOMMatrix) RotateSelf(rotX *float64, rotY *float64, rotZ *float64) (_result *DOMMatrix)

func (*DOMMatrix) Scale3dSelf

func (_this *DOMMatrix) Scale3dSelf(scale *float64, originX *float64, originY *float64, originZ *float64) (_result *DOMMatrix)

func (*DOMMatrix) ScaleSelf

func (_this *DOMMatrix) ScaleSelf(scaleX *float64, scaleY *float64, scaleZ *float64, originX *float64, originY *float64, originZ *float64) (_result *DOMMatrix)

func (*DOMMatrix) SetA

func (_this *DOMMatrix) SetA(value float64)

SetA setting attribute 'a' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetB

func (_this *DOMMatrix) SetB(value float64)

SetB setting attribute 'b' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetC

func (_this *DOMMatrix) SetC(value float64)

SetC setting attribute 'c' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetD

func (_this *DOMMatrix) SetD(value float64)

SetD setting attribute 'd' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetE

func (_this *DOMMatrix) SetE(value float64)

SetE setting attribute 'e' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetF

func (_this *DOMMatrix) SetF(value float64)

SetF setting attribute 'f' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM11

func (_this *DOMMatrix) SetM11(value float64)

SetM11 setting attribute 'm11' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM12

func (_this *DOMMatrix) SetM12(value float64)

SetM12 setting attribute 'm12' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM13

func (_this *DOMMatrix) SetM13(value float64)

SetM13 setting attribute 'm13' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM14

func (_this *DOMMatrix) SetM14(value float64)

SetM14 setting attribute 'm14' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM21

func (_this *DOMMatrix) SetM21(value float64)

SetM21 setting attribute 'm21' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM22

func (_this *DOMMatrix) SetM22(value float64)

SetM22 setting attribute 'm22' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM23

func (_this *DOMMatrix) SetM23(value float64)

SetM23 setting attribute 'm23' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM24

func (_this *DOMMatrix) SetM24(value float64)

SetM24 setting attribute 'm24' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM31

func (_this *DOMMatrix) SetM31(value float64)

SetM31 setting attribute 'm31' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM32

func (_this *DOMMatrix) SetM32(value float64)

SetM32 setting attribute 'm32' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM33

func (_this *DOMMatrix) SetM33(value float64)

SetM33 setting attribute 'm33' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM34

func (_this *DOMMatrix) SetM34(value float64)

SetM34 setting attribute 'm34' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM41

func (_this *DOMMatrix) SetM41(value float64)

SetM41 setting attribute 'm41' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM42

func (_this *DOMMatrix) SetM42(value float64)

SetM42 setting attribute 'm42' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM43

func (_this *DOMMatrix) SetM43(value float64)

SetM43 setting attribute 'm43' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetM44

func (_this *DOMMatrix) SetM44(value float64)

SetM44 setting attribute 'm44' with type float64 (idl: unrestricted double).

func (*DOMMatrix) SetMatrixValue

func (_this *DOMMatrix) SetMatrixValue(transformList string) (_result *DOMMatrix)

func (*DOMMatrix) SkewXSelf

func (_this *DOMMatrix) SkewXSelf(sx *float64) (_result *DOMMatrix)

func (*DOMMatrix) SkewYSelf

func (_this *DOMMatrix) SkewYSelf(sy *float64) (_result *DOMMatrix)

func (*DOMMatrix) TranslateSelf

func (_this *DOMMatrix) TranslateSelf(tx *float64, ty *float64, tz *float64) (_result *DOMMatrix)

type DOMMatrix2DInit

type DOMMatrix2DInit struct {
	A   float64
	B   float64
	C   float64
	D   float64
	E   float64
	F   float64
	M11 float64
	M12 float64
	M21 float64
	M22 float64
	M41 float64
	M42 float64
}

dictionary: DOMMatrix2DInit

func DOMMatrix2DInitFromJS

func DOMMatrix2DInitFromJS(value js.Value) *DOMMatrix2DInit

DOMMatrix2DInitFromJS is allocating a new DOMMatrix2DInit object and copy all values in the value javascript object.

func (*DOMMatrix2DInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DOMMatrixInit

type DOMMatrixInit struct {
	A    float64
	B    float64
	C    float64
	D    float64
	E    float64
	F    float64
	M11  float64
	M12  float64
	M21  float64
	M22  float64
	M41  float64
	M42  float64
	M13  float64
	M14  float64
	M23  float64
	M24  float64
	M31  float64
	M32  float64
	M33  float64
	M34  float64
	M43  float64
	M44  float64
	Is2D bool
}

dictionary: DOMMatrixInit

func DOMMatrixInitFromJS

func DOMMatrixInitFromJS(value js.Value) *DOMMatrixInit

DOMMatrixInitFromJS is allocating a new DOMMatrixInit object and copy all values in the value javascript object.

func (*DOMMatrixInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DOMMatrixReadOnly

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

class: DOMMatrixReadOnly

func DOMMatrixReadOnlyFromJS

func DOMMatrixReadOnlyFromJS(value js.Value) *DOMMatrixReadOnly

DOMMatrixReadOnlyFromJS is casting a js.Value into DOMMatrixReadOnly.

func DOMMatrixReadOnlyFromWrapper

func DOMMatrixReadOnlyFromWrapper(input core.Wrapper) *DOMMatrixReadOnly

DOMMatrixReadOnlyFromJS is casting from something that holds a js.Value into DOMMatrixReadOnly.

func FromFloat32Array2

func FromFloat32Array2(array32 *javascript.Float32Array) (_result *DOMMatrixReadOnly)

func FromFloat64Array2

func FromFloat64Array2(array64 *javascript.Float64Array) (_result *DOMMatrixReadOnly)

func FromMatrix2

func FromMatrix2(other *DOMMatrixInit) (_result *DOMMatrixReadOnly)

func NewDOMMatrixReadOnly

func NewDOMMatrixReadOnly(init *Union) (_result *DOMMatrixReadOnly)

func (*DOMMatrixReadOnly) A

func (_this *DOMMatrixReadOnly) A() float64

A returning attribute 'a' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) B

func (_this *DOMMatrixReadOnly) B() float64

B returning attribute 'b' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) C

func (_this *DOMMatrixReadOnly) C() float64

C returning attribute 'c' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) D

func (_this *DOMMatrixReadOnly) D() float64

D returning attribute 'd' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) E

func (_this *DOMMatrixReadOnly) E() float64

E returning attribute 'e' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) F

func (_this *DOMMatrixReadOnly) F() float64

F returning attribute 'f' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) FlipX

func (_this *DOMMatrixReadOnly) FlipX() (_result *DOMMatrix)

func (*DOMMatrixReadOnly) FlipY

func (_this *DOMMatrixReadOnly) FlipY() (_result *DOMMatrix)

func (*DOMMatrixReadOnly) Inverse

func (_this *DOMMatrixReadOnly) Inverse() (_result *DOMMatrix)

func (*DOMMatrixReadOnly) Is2D

func (_this *DOMMatrixReadOnly) Is2D() bool

Is2D returning attribute 'is2D' with type bool (idl: boolean).

func (*DOMMatrixReadOnly) IsIdentity

func (_this *DOMMatrixReadOnly) IsIdentity() bool

IsIdentity returning attribute 'isIdentity' with type bool (idl: boolean).

func (*DOMMatrixReadOnly) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*DOMMatrixReadOnly) M11

func (_this *DOMMatrixReadOnly) M11() float64

M11 returning attribute 'm11' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M12

func (_this *DOMMatrixReadOnly) M12() float64

M12 returning attribute 'm12' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M13

func (_this *DOMMatrixReadOnly) M13() float64

M13 returning attribute 'm13' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M14

func (_this *DOMMatrixReadOnly) M14() float64

M14 returning attribute 'm14' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M21

func (_this *DOMMatrixReadOnly) M21() float64

M21 returning attribute 'm21' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M22

func (_this *DOMMatrixReadOnly) M22() float64

M22 returning attribute 'm22' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M23

func (_this *DOMMatrixReadOnly) M23() float64

M23 returning attribute 'm23' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M24

func (_this *DOMMatrixReadOnly) M24() float64

M24 returning attribute 'm24' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M31

func (_this *DOMMatrixReadOnly) M31() float64

M31 returning attribute 'm31' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M32

func (_this *DOMMatrixReadOnly) M32() float64

M32 returning attribute 'm32' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M33

func (_this *DOMMatrixReadOnly) M33() float64

M33 returning attribute 'm33' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M34

func (_this *DOMMatrixReadOnly) M34() float64

M34 returning attribute 'm34' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M41

func (_this *DOMMatrixReadOnly) M41() float64

M41 returning attribute 'm41' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M42

func (_this *DOMMatrixReadOnly) M42() float64

M42 returning attribute 'm42' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M43

func (_this *DOMMatrixReadOnly) M43() float64

M43 returning attribute 'm43' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) M44

func (_this *DOMMatrixReadOnly) M44() float64

M44 returning attribute 'm44' with type float64 (idl: unrestricted double).

func (*DOMMatrixReadOnly) Multiply

func (_this *DOMMatrixReadOnly) Multiply(other *DOMMatrixInit) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) Rotate

func (_this *DOMMatrixReadOnly) Rotate(rotX *float64, rotY *float64, rotZ *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) RotateAxisAngle

func (_this *DOMMatrixReadOnly) RotateAxisAngle(x *float64, y *float64, z *float64, angle *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) RotateFromVector

func (_this *DOMMatrixReadOnly) RotateFromVector(x *float64, y *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) Scale

func (_this *DOMMatrixReadOnly) Scale(scaleX *float64, scaleY *float64, scaleZ *float64, originX *float64, originY *float64, originZ *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) Scale3d

func (_this *DOMMatrixReadOnly) Scale3d(scale *float64, originX *float64, originY *float64, originZ *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) ScaleNonUniform

func (_this *DOMMatrixReadOnly) ScaleNonUniform(scaleX *float64, scaleY *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) SkewX

func (_this *DOMMatrixReadOnly) SkewX(sx *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) SkewY

func (_this *DOMMatrixReadOnly) SkewY(sy *float64) (_result *DOMMatrix)

func (*DOMMatrixReadOnly) ToFloat32Array

func (_this *DOMMatrixReadOnly) ToFloat32Array() (_result *javascript.Float32Array)

func (*DOMMatrixReadOnly) ToFloat64Array

func (_this *DOMMatrixReadOnly) ToFloat64Array() (_result *javascript.Float64Array)

func (*DOMMatrixReadOnly) ToJSON

func (_this *DOMMatrixReadOnly) ToJSON() (_result *javascript.Object)

func (*DOMMatrixReadOnly) ToString

func (_this *DOMMatrixReadOnly) ToString() (_result string)

func (*DOMMatrixReadOnly) TransformPoint

func (_this *DOMMatrixReadOnly) TransformPoint(point *DOMPointInit) (_result *DOMPoint)

func (*DOMMatrixReadOnly) Translate

func (_this *DOMMatrixReadOnly) Translate(tx *float64, ty *float64, tz *float64) (_result *DOMMatrix)

type DOMPoint

type DOMPoint struct {
	DOMPointReadOnly
}

class: DOMPoint

func DOMPointFromJS

func DOMPointFromJS(value js.Value) *DOMPoint

DOMPointFromJS is casting a js.Value into DOMPoint.

func DOMPointFromWrapper

func DOMPointFromWrapper(input core.Wrapper) *DOMPoint

DOMPointFromJS is casting from something that holds a js.Value into DOMPoint.

func FromPoint

func FromPoint(other *DOMPointInit) (_result *DOMPoint)

func NewDOMPoint

func NewDOMPoint(x *float64, y *float64, z *float64, w *float64) (_result *DOMPoint)

func (*DOMPoint) SetW

func (_this *DOMPoint) SetW(value float64)

SetW setting attribute 'w' with type float64 (idl: unrestricted double).

func (*DOMPoint) SetX

func (_this *DOMPoint) SetX(value float64)

SetX setting attribute 'x' with type float64 (idl: unrestricted double).

func (*DOMPoint) SetY

func (_this *DOMPoint) SetY(value float64)

SetY setting attribute 'y' with type float64 (idl: unrestricted double).

func (*DOMPoint) SetZ

func (_this *DOMPoint) SetZ(value float64)

SetZ setting attribute 'z' with type float64 (idl: unrestricted double).

func (*DOMPoint) W

func (_this *DOMPoint) W() float64

W returning attribute 'w' with type float64 (idl: unrestricted double).

func (*DOMPoint) X

func (_this *DOMPoint) X() float64

X returning attribute 'x' with type float64 (idl: unrestricted double).

func (*DOMPoint) Y

func (_this *DOMPoint) Y() float64

Y returning attribute 'y' with type float64 (idl: unrestricted double).

func (*DOMPoint) Z

func (_this *DOMPoint) Z() float64

Z returning attribute 'z' with type float64 (idl: unrestricted double).

type DOMPointInit

type DOMPointInit struct {
	X float64
	Y float64
	Z float64
	W float64
}

dictionary: DOMPointInit

func DOMPointInitFromJS

func DOMPointInitFromJS(value js.Value) *DOMPointInit

DOMPointInitFromJS is allocating a new DOMPointInit object and copy all values in the value javascript object.

func (*DOMPointInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DOMPointReadOnly

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

class: DOMPointReadOnly

func DOMPointReadOnlyFromJS

func DOMPointReadOnlyFromJS(value js.Value) *DOMPointReadOnly

DOMPointReadOnlyFromJS is casting a js.Value into DOMPointReadOnly.

func DOMPointReadOnlyFromWrapper

func DOMPointReadOnlyFromWrapper(input core.Wrapper) *DOMPointReadOnly

DOMPointReadOnlyFromJS is casting from something that holds a js.Value into DOMPointReadOnly.

func FromPoint2

func FromPoint2(other *DOMPointInit) (_result *DOMPointReadOnly)

func NewDOMPointReadOnly

func NewDOMPointReadOnly(x *float64, y *float64, z *float64, w *float64) (_result *DOMPointReadOnly)

func (*DOMPointReadOnly) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*DOMPointReadOnly) MatrixTransform

func (_this *DOMPointReadOnly) MatrixTransform(matrix *DOMMatrixInit) (_result *DOMPoint)

func (*DOMPointReadOnly) ToJSON

func (_this *DOMPointReadOnly) ToJSON() (_result *javascript.Object)

func (*DOMPointReadOnly) W

func (_this *DOMPointReadOnly) W() float64

W returning attribute 'w' with type float64 (idl: unrestricted double).

func (*DOMPointReadOnly) X

func (_this *DOMPointReadOnly) X() float64

X returning attribute 'x' with type float64 (idl: unrestricted double).

func (*DOMPointReadOnly) Y

func (_this *DOMPointReadOnly) Y() float64

Y returning attribute 'y' with type float64 (idl: unrestricted double).

func (*DOMPointReadOnly) Z

func (_this *DOMPointReadOnly) Z() float64

Z returning attribute 'z' with type float64 (idl: unrestricted double).

type DOMQuad

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

class: DOMQuad

func DOMQuadFromJS

func DOMQuadFromJS(value js.Value) *DOMQuad

DOMQuadFromJS is casting a js.Value into DOMQuad.

func DOMQuadFromWrapper

func DOMQuadFromWrapper(input core.Wrapper) *DOMQuad

DOMQuadFromJS is casting from something that holds a js.Value into DOMQuad.

func FromQuad

func FromQuad(other *DOMQuadInit) (_result *DOMQuad)

func FromRect

func FromRect(other *DOMRectInit) (_result *DOMQuad)

func NewDOMQuad

func NewDOMQuad(p1 *DOMPointInit, p2 *DOMPointInit, p3 *DOMPointInit, p4 *DOMPointInit) (_result *DOMQuad)

func (*DOMQuad) GetBounds

func (_this *DOMQuad) GetBounds() (_result *DOMRect)

func (*DOMQuad) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*DOMQuad) P1

func (_this *DOMQuad) P1() *DOMPoint

P1 returning attribute 'p1' with type DOMPoint (idl: DOMPoint).

func (*DOMQuad) P2

func (_this *DOMQuad) P2() *DOMPoint

P2 returning attribute 'p2' with type DOMPoint (idl: DOMPoint).

func (*DOMQuad) P3

func (_this *DOMQuad) P3() *DOMPoint

P3 returning attribute 'p3' with type DOMPoint (idl: DOMPoint).

func (*DOMQuad) P4

func (_this *DOMQuad) P4() *DOMPoint

P4 returning attribute 'p4' with type DOMPoint (idl: DOMPoint).

func (*DOMQuad) ToJSON

func (_this *DOMQuad) ToJSON() (_result *javascript.Object)

type DOMQuadInit

type DOMQuadInit struct {
	P1 *DOMPointInit
	P2 *DOMPointInit
	P3 *DOMPointInit
	P4 *DOMPointInit
}

dictionary: DOMQuadInit

func DOMQuadInitFromJS

func DOMQuadInitFromJS(value js.Value) *DOMQuadInit

DOMQuadInitFromJS is allocating a new DOMQuadInit object and copy all values in the value javascript object.

func (*DOMQuadInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DOMRect

type DOMRect struct {
	DOMRectReadOnly
}

class: DOMRect

func DOMRectFromJS

func DOMRectFromJS(value js.Value) *DOMRect

DOMRectFromJS is casting a js.Value into DOMRect.

func DOMRectFromWrapper

func DOMRectFromWrapper(input core.Wrapper) *DOMRect

DOMRectFromJS is casting from something that holds a js.Value into DOMRect.

func FromRect2

func FromRect2(other *DOMRectInit) (_result *DOMRect)

func NewDOMRect

func NewDOMRect(x *float64, y *float64, width *float64, height *float64) (_result *DOMRect)

func (*DOMRect) Height

func (_this *DOMRect) Height() float64

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

func (*DOMRect) SetHeight

func (_this *DOMRect) SetHeight(value float64)

SetHeight setting attribute 'height' with type float64 (idl: unrestricted double).

func (*DOMRect) SetWidth

func (_this *DOMRect) SetWidth(value float64)

SetWidth setting attribute 'width' with type float64 (idl: unrestricted double).

func (*DOMRect) SetX

func (_this *DOMRect) SetX(value float64)

SetX setting attribute 'x' with type float64 (idl: unrestricted double).

func (*DOMRect) SetY

func (_this *DOMRect) SetY(value float64)

SetY setting attribute 'y' with type float64 (idl: unrestricted double).

func (*DOMRect) Width

func (_this *DOMRect) Width() float64

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

func (*DOMRect) X

func (_this *DOMRect) X() float64

X returning attribute 'x' with type float64 (idl: unrestricted double).

func (*DOMRect) Y

func (_this *DOMRect) Y() float64

Y returning attribute 'y' with type float64 (idl: unrestricted double).

type DOMRectInit

type DOMRectInit struct {
	X      float64
	Y      float64
	Width  float64
	Height float64
}

dictionary: DOMRectInit

func DOMRectInitFromJS

func DOMRectInitFromJS(value js.Value) *DOMRectInit

DOMRectInitFromJS is allocating a new DOMRectInit object and copy all values in the value javascript object.

func (*DOMRectInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DOMRectList

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

class: DOMRectList

func DOMRectListFromJS

func DOMRectListFromJS(value js.Value) *DOMRectList

DOMRectListFromJS is casting a js.Value into DOMRectList.

func DOMRectListFromWrapper

func DOMRectListFromWrapper(input core.Wrapper) *DOMRectList

DOMRectListFromJS is casting from something that holds a js.Value into DOMRectList.

func (*DOMRectList) Index

func (_this *DOMRectList) Index(index uint) (_result *DOMRect)

func (*DOMRectList) Item

func (_this *DOMRectList) Item(index uint) (_result *DOMRect)

func (*DOMRectList) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*DOMRectList) Length

func (_this *DOMRectList) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

type DOMRectReadOnly

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

class: DOMRectReadOnly

func DOMRectReadOnlyFromJS

func DOMRectReadOnlyFromJS(value js.Value) *DOMRectReadOnly

DOMRectReadOnlyFromJS is casting a js.Value into DOMRectReadOnly.

func DOMRectReadOnlyFromWrapper

func DOMRectReadOnlyFromWrapper(input core.Wrapper) *DOMRectReadOnly

DOMRectReadOnlyFromJS is casting from something that holds a js.Value into DOMRectReadOnly.

func FromRect3

func FromRect3(other *DOMRectInit) (_result *DOMRectReadOnly)

func NewDOMRectReadOnly

func NewDOMRectReadOnly(x *float64, y *float64, width *float64, height *float64) (_result *DOMRectReadOnly)

func (*DOMRectReadOnly) Bottom

func (_this *DOMRectReadOnly) Bottom() float64

Bottom returning attribute 'bottom' with type float64 (idl: unrestricted double).

func (*DOMRectReadOnly) Height

func (_this *DOMRectReadOnly) Height() float64

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

func (*DOMRectReadOnly) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*DOMRectReadOnly) Left

func (_this *DOMRectReadOnly) Left() float64

Left returning attribute 'left' with type float64 (idl: unrestricted double).

func (*DOMRectReadOnly) Right

func (_this *DOMRectReadOnly) Right() float64

Right returning attribute 'right' with type float64 (idl: unrestricted double).

func (*DOMRectReadOnly) ToJSON

func (_this *DOMRectReadOnly) ToJSON() (_result *javascript.Object)

func (*DOMRectReadOnly) Top

func (_this *DOMRectReadOnly) Top() float64

Top returning attribute 'top' with type float64 (idl: unrestricted double).

func (*DOMRectReadOnly) Width

func (_this *DOMRectReadOnly) Width() float64

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

func (*DOMRectReadOnly) X

func (_this *DOMRectReadOnly) X() float64

X returning attribute 'x' with type float64 (idl: unrestricted double).

func (*DOMRectReadOnly) Y

func (_this *DOMRectReadOnly) Y() float64

Y returning attribute 'y' with type float64 (idl: unrestricted double).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL