github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis18_js_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package web
     5  
     6  import (
     7  	"github.com/primecitizens/pcz/std/core/abi"
     8  	"github.com/primecitizens/pcz/std/ffi/js"
     9  	"github.com/primecitizens/pcz/std/plat/js/web/bindings"
    10  )
    11  
    12  type OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext struct {
    13  	ref js.Ref
    14  }
    15  
    16  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) Ref() js.Ref {
    17  	return x.ref
    18  }
    19  
    20  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) Free() {
    21  	x.ref.Free()
    22  }
    23  
    24  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) FromRef(ref js.Ref) OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext {
    25  	return OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext{
    26  		ref: ref,
    27  	}
    28  }
    29  
    30  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) OffscreenCanvasRenderingContext2D() OffscreenCanvasRenderingContext2D {
    31  	return OffscreenCanvasRenderingContext2D{}.FromRef(x.ref)
    32  }
    33  
    34  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) ImageBitmapRenderingContext() ImageBitmapRenderingContext {
    35  	return ImageBitmapRenderingContext{}.FromRef(x.ref)
    36  }
    37  
    38  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) WebGLRenderingContext() WebGLRenderingContext {
    39  	return WebGLRenderingContext{}.FromRef(x.ref)
    40  }
    41  
    42  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) WebGL2RenderingContext() WebGL2RenderingContext {
    43  	return WebGL2RenderingContext{}.FromRef(x.ref)
    44  }
    45  
    46  func (x OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) GPUCanvasContext() GPUCanvasContext {
    47  	return GPUCanvasContext{}.FromRef(x.ref)
    48  }
    49  
    50  type OffscreenRenderingContext = OneOf_OffscreenCanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext
    51  
    52  type OffscreenRenderingContextId uint32
    53  
    54  const (
    55  	_ OffscreenRenderingContextId = iota
    56  
    57  	OffscreenRenderingContextId_2D
    58  	OffscreenRenderingContextId_BITMAPRENDERER
    59  	OffscreenRenderingContextId_WEBGL
    60  	OffscreenRenderingContextId_WEBGL2
    61  	OffscreenRenderingContextId_WEBGPU
    62  )
    63  
    64  func (OffscreenRenderingContextId) FromRef(str js.Ref) OffscreenRenderingContextId {
    65  	return OffscreenRenderingContextId(bindings.ConstOfOffscreenRenderingContextId(str))
    66  }
    67  
    68  func (x OffscreenRenderingContextId) String() (string, bool) {
    69  	switch x {
    70  	case OffscreenRenderingContextId_2D:
    71  		return "2d", true
    72  	case OffscreenRenderingContextId_BITMAPRENDERER:
    73  		return "bitmaprenderer", true
    74  	case OffscreenRenderingContextId_WEBGL:
    75  		return "webgl", true
    76  	case OffscreenRenderingContextId_WEBGL2:
    77  		return "webgl2", true
    78  	case OffscreenRenderingContextId_WEBGPU:
    79  		return "webgpu", true
    80  	default:
    81  		return "", false
    82  	}
    83  }
    84  
    85  type ImageEncodeOptions struct {
    86  	// Type is "ImageEncodeOptions.type"
    87  	//
    88  	// Optional, defaults to "image/png".
    89  	Type js.String
    90  	// Quality is "ImageEncodeOptions.quality"
    91  	//
    92  	// Optional
    93  	//
    94  	// NOTE: FFI_USE_Quality MUST be set to true to make this field effective.
    95  	Quality float64
    96  
    97  	FFI_USE_Quality bool // for Quality.
    98  
    99  	FFI_USE bool
   100  }
   101  
   102  // FromRef calls UpdateFrom and returns a ImageEncodeOptions with all fields set.
   103  func (p ImageEncodeOptions) FromRef(ref js.Ref) ImageEncodeOptions {
   104  	p.UpdateFrom(ref)
   105  	return p
   106  }
   107  
   108  // New creates a new ImageEncodeOptions in the application heap.
   109  func (p ImageEncodeOptions) New() js.Ref {
   110  	return bindings.ImageEncodeOptionsJSLoad(
   111  		js.Pointer(&p), js.True, 0,
   112  	)
   113  }
   114  
   115  // UpdateFrom copies value of all fields of the heap object to p.
   116  func (p *ImageEncodeOptions) UpdateFrom(ref js.Ref) {
   117  	bindings.ImageEncodeOptionsJSStore(
   118  		js.Pointer(p), ref,
   119  	)
   120  }
   121  
   122  // Update writes all fields of the p to the heap object referenced by ref.
   123  func (p *ImageEncodeOptions) Update(ref js.Ref) {
   124  	bindings.ImageEncodeOptionsJSLoad(
   125  		js.Pointer(p), js.False, ref,
   126  	)
   127  }
   128  
   129  // FreeMembers frees fields with heap reference, if recursive is true
   130  // free all heap references reachable from p.
   131  func (p *ImageEncodeOptions) FreeMembers(recursive bool) {
   132  	js.Free(
   133  		p.Type.Ref(),
   134  	)
   135  	p.Type = p.Type.FromRef(js.Undefined)
   136  }
   137  
   138  func NewOffscreenCanvas(width uint64, height uint64) (ret OffscreenCanvas) {
   139  	ret.ref = bindings.NewOffscreenCanvasByOffscreenCanvas(
   140  		float64(width),
   141  		float64(height))
   142  	return
   143  }
   144  
   145  type OffscreenCanvas struct {
   146  	EventTarget
   147  }
   148  
   149  func (this OffscreenCanvas) Once() OffscreenCanvas {
   150  	this.ref.Once()
   151  	return this
   152  }
   153  
   154  func (this OffscreenCanvas) Ref() js.Ref {
   155  	return this.EventTarget.Ref()
   156  }
   157  
   158  func (this OffscreenCanvas) FromRef(ref js.Ref) OffscreenCanvas {
   159  	this.EventTarget = this.EventTarget.FromRef(ref)
   160  	return this
   161  }
   162  
   163  func (this OffscreenCanvas) Free() {
   164  	this.ref.Free()
   165  }
   166  
   167  // Width returns the value of property "OffscreenCanvas.width".
   168  //
   169  // It returns ok=false if there is no such property.
   170  func (this OffscreenCanvas) Width() (ret uint64, ok bool) {
   171  	ok = js.True == bindings.GetOffscreenCanvasWidth(
   172  		this.ref, js.Pointer(&ret),
   173  	)
   174  	return
   175  }
   176  
   177  // SetWidth sets the value of property "OffscreenCanvas.width" to val.
   178  //
   179  // It returns false if the property cannot be set.
   180  func (this OffscreenCanvas) SetWidth(val uint64) bool {
   181  	return js.True == bindings.SetOffscreenCanvasWidth(
   182  		this.ref,
   183  		float64(val),
   184  	)
   185  }
   186  
   187  // Height returns the value of property "OffscreenCanvas.height".
   188  //
   189  // It returns ok=false if there is no such property.
   190  func (this OffscreenCanvas) Height() (ret uint64, ok bool) {
   191  	ok = js.True == bindings.GetOffscreenCanvasHeight(
   192  		this.ref, js.Pointer(&ret),
   193  	)
   194  	return
   195  }
   196  
   197  // SetHeight sets the value of property "OffscreenCanvas.height" to val.
   198  //
   199  // It returns false if the property cannot be set.
   200  func (this OffscreenCanvas) SetHeight(val uint64) bool {
   201  	return js.True == bindings.SetOffscreenCanvasHeight(
   202  		this.ref,
   203  		float64(val),
   204  	)
   205  }
   206  
   207  // HasFuncGetContext returns true if the method "OffscreenCanvas.getContext" exists.
   208  func (this OffscreenCanvas) HasFuncGetContext() bool {
   209  	return js.True == bindings.HasFuncOffscreenCanvasGetContext(
   210  		this.ref,
   211  	)
   212  }
   213  
   214  // FuncGetContext returns the method "OffscreenCanvas.getContext".
   215  func (this OffscreenCanvas) FuncGetContext() (fn js.Func[func(contextId OffscreenRenderingContextId, options js.Any) OffscreenRenderingContext]) {
   216  	bindings.FuncOffscreenCanvasGetContext(
   217  		this.ref, js.Pointer(&fn),
   218  	)
   219  	return
   220  }
   221  
   222  // GetContext calls the method "OffscreenCanvas.getContext".
   223  func (this OffscreenCanvas) GetContext(contextId OffscreenRenderingContextId, options js.Any) (ret OffscreenRenderingContext) {
   224  	bindings.CallOffscreenCanvasGetContext(
   225  		this.ref, js.Pointer(&ret),
   226  		uint32(contextId),
   227  		options.Ref(),
   228  	)
   229  
   230  	return
   231  }
   232  
   233  // TryGetContext calls the method "OffscreenCanvas.getContext"
   234  // in a try/catch block and returns (_, err, ok = false) when it went through
   235  // the catch clause.
   236  func (this OffscreenCanvas) TryGetContext(contextId OffscreenRenderingContextId, options js.Any) (ret OffscreenRenderingContext, exception js.Any, ok bool) {
   237  	ok = js.True == bindings.TryOffscreenCanvasGetContext(
   238  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   239  		uint32(contextId),
   240  		options.Ref(),
   241  	)
   242  
   243  	return
   244  }
   245  
   246  // HasFuncGetContext1 returns true if the method "OffscreenCanvas.getContext" exists.
   247  func (this OffscreenCanvas) HasFuncGetContext1() bool {
   248  	return js.True == bindings.HasFuncOffscreenCanvasGetContext1(
   249  		this.ref,
   250  	)
   251  }
   252  
   253  // FuncGetContext1 returns the method "OffscreenCanvas.getContext".
   254  func (this OffscreenCanvas) FuncGetContext1() (fn js.Func[func(contextId OffscreenRenderingContextId) OffscreenRenderingContext]) {
   255  	bindings.FuncOffscreenCanvasGetContext1(
   256  		this.ref, js.Pointer(&fn),
   257  	)
   258  	return
   259  }
   260  
   261  // GetContext1 calls the method "OffscreenCanvas.getContext".
   262  func (this OffscreenCanvas) GetContext1(contextId OffscreenRenderingContextId) (ret OffscreenRenderingContext) {
   263  	bindings.CallOffscreenCanvasGetContext1(
   264  		this.ref, js.Pointer(&ret),
   265  		uint32(contextId),
   266  	)
   267  
   268  	return
   269  }
   270  
   271  // TryGetContext1 calls the method "OffscreenCanvas.getContext"
   272  // in a try/catch block and returns (_, err, ok = false) when it went through
   273  // the catch clause.
   274  func (this OffscreenCanvas) TryGetContext1(contextId OffscreenRenderingContextId) (ret OffscreenRenderingContext, exception js.Any, ok bool) {
   275  	ok = js.True == bindings.TryOffscreenCanvasGetContext1(
   276  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   277  		uint32(contextId),
   278  	)
   279  
   280  	return
   281  }
   282  
   283  // HasFuncTransferToImageBitmap returns true if the method "OffscreenCanvas.transferToImageBitmap" exists.
   284  func (this OffscreenCanvas) HasFuncTransferToImageBitmap() bool {
   285  	return js.True == bindings.HasFuncOffscreenCanvasTransferToImageBitmap(
   286  		this.ref,
   287  	)
   288  }
   289  
   290  // FuncTransferToImageBitmap returns the method "OffscreenCanvas.transferToImageBitmap".
   291  func (this OffscreenCanvas) FuncTransferToImageBitmap() (fn js.Func[func() ImageBitmap]) {
   292  	bindings.FuncOffscreenCanvasTransferToImageBitmap(
   293  		this.ref, js.Pointer(&fn),
   294  	)
   295  	return
   296  }
   297  
   298  // TransferToImageBitmap calls the method "OffscreenCanvas.transferToImageBitmap".
   299  func (this OffscreenCanvas) TransferToImageBitmap() (ret ImageBitmap) {
   300  	bindings.CallOffscreenCanvasTransferToImageBitmap(
   301  		this.ref, js.Pointer(&ret),
   302  	)
   303  
   304  	return
   305  }
   306  
   307  // TryTransferToImageBitmap calls the method "OffscreenCanvas.transferToImageBitmap"
   308  // in a try/catch block and returns (_, err, ok = false) when it went through
   309  // the catch clause.
   310  func (this OffscreenCanvas) TryTransferToImageBitmap() (ret ImageBitmap, exception js.Any, ok bool) {
   311  	ok = js.True == bindings.TryOffscreenCanvasTransferToImageBitmap(
   312  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   313  	)
   314  
   315  	return
   316  }
   317  
   318  // HasFuncConvertToBlob returns true if the method "OffscreenCanvas.convertToBlob" exists.
   319  func (this OffscreenCanvas) HasFuncConvertToBlob() bool {
   320  	return js.True == bindings.HasFuncOffscreenCanvasConvertToBlob(
   321  		this.ref,
   322  	)
   323  }
   324  
   325  // FuncConvertToBlob returns the method "OffscreenCanvas.convertToBlob".
   326  func (this OffscreenCanvas) FuncConvertToBlob() (fn js.Func[func(options ImageEncodeOptions) js.Promise[Blob]]) {
   327  	bindings.FuncOffscreenCanvasConvertToBlob(
   328  		this.ref, js.Pointer(&fn),
   329  	)
   330  	return
   331  }
   332  
   333  // ConvertToBlob calls the method "OffscreenCanvas.convertToBlob".
   334  func (this OffscreenCanvas) ConvertToBlob(options ImageEncodeOptions) (ret js.Promise[Blob]) {
   335  	bindings.CallOffscreenCanvasConvertToBlob(
   336  		this.ref, js.Pointer(&ret),
   337  		js.Pointer(&options),
   338  	)
   339  
   340  	return
   341  }
   342  
   343  // TryConvertToBlob calls the method "OffscreenCanvas.convertToBlob"
   344  // in a try/catch block and returns (_, err, ok = false) when it went through
   345  // the catch clause.
   346  func (this OffscreenCanvas) TryConvertToBlob(options ImageEncodeOptions) (ret js.Promise[Blob], exception js.Any, ok bool) {
   347  	ok = js.True == bindings.TryOffscreenCanvasConvertToBlob(
   348  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   349  		js.Pointer(&options),
   350  	)
   351  
   352  	return
   353  }
   354  
   355  // HasFuncConvertToBlob1 returns true if the method "OffscreenCanvas.convertToBlob" exists.
   356  func (this OffscreenCanvas) HasFuncConvertToBlob1() bool {
   357  	return js.True == bindings.HasFuncOffscreenCanvasConvertToBlob1(
   358  		this.ref,
   359  	)
   360  }
   361  
   362  // FuncConvertToBlob1 returns the method "OffscreenCanvas.convertToBlob".
   363  func (this OffscreenCanvas) FuncConvertToBlob1() (fn js.Func[func() js.Promise[Blob]]) {
   364  	bindings.FuncOffscreenCanvasConvertToBlob1(
   365  		this.ref, js.Pointer(&fn),
   366  	)
   367  	return
   368  }
   369  
   370  // ConvertToBlob1 calls the method "OffscreenCanvas.convertToBlob".
   371  func (this OffscreenCanvas) ConvertToBlob1() (ret js.Promise[Blob]) {
   372  	bindings.CallOffscreenCanvasConvertToBlob1(
   373  		this.ref, js.Pointer(&ret),
   374  	)
   375  
   376  	return
   377  }
   378  
   379  // TryConvertToBlob1 calls the method "OffscreenCanvas.convertToBlob"
   380  // in a try/catch block and returns (_, err, ok = false) when it went through
   381  // the catch clause.
   382  func (this OffscreenCanvas) TryConvertToBlob1() (ret js.Promise[Blob], exception js.Any, ok bool) {
   383  	ok = js.True == bindings.TryOffscreenCanvasConvertToBlob1(
   384  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   385  	)
   386  
   387  	return
   388  }
   389  
   390  type OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame struct {
   391  	ref js.Ref
   392  }
   393  
   394  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) Ref() js.Ref {
   395  	return x.ref
   396  }
   397  
   398  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) Free() {
   399  	x.ref.Free()
   400  }
   401  
   402  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) FromRef(ref js.Ref) OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame {
   403  	return OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame{
   404  		ref: ref,
   405  	}
   406  }
   407  
   408  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) HTMLImageElement() HTMLImageElement {
   409  	return HTMLImageElement{}.FromRef(x.ref)
   410  }
   411  
   412  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) SVGImageElement() SVGImageElement {
   413  	return SVGImageElement{}.FromRef(x.ref)
   414  }
   415  
   416  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) HTMLVideoElement() HTMLVideoElement {
   417  	return HTMLVideoElement{}.FromRef(x.ref)
   418  }
   419  
   420  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) HTMLCanvasElement() HTMLCanvasElement {
   421  	return HTMLCanvasElement{}.FromRef(x.ref)
   422  }
   423  
   424  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) ImageBitmap() ImageBitmap {
   425  	return ImageBitmap{}.FromRef(x.ref)
   426  }
   427  
   428  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) OffscreenCanvas() OffscreenCanvas {
   429  	return OffscreenCanvas{}.FromRef(x.ref)
   430  }
   431  
   432  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame) VideoFrame() VideoFrame {
   433  	return VideoFrame{}.FromRef(x.ref)
   434  }
   435  
   436  type CanvasImageSource = OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame
   437  
   438  type CanvasRenderingContext2D struct {
   439  	ref js.Ref
   440  }
   441  
   442  func (this CanvasRenderingContext2D) Once() CanvasRenderingContext2D {
   443  	this.ref.Once()
   444  	return this
   445  }
   446  
   447  func (this CanvasRenderingContext2D) Ref() js.Ref {
   448  	return this.ref
   449  }
   450  
   451  func (this CanvasRenderingContext2D) FromRef(ref js.Ref) CanvasRenderingContext2D {
   452  	this.ref = ref
   453  	return this
   454  }
   455  
   456  func (this CanvasRenderingContext2D) Free() {
   457  	this.ref.Free()
   458  }
   459  
   460  // Canvas returns the value of property "CanvasRenderingContext2D.canvas".
   461  //
   462  // It returns ok=false if there is no such property.
   463  func (this CanvasRenderingContext2D) Canvas() (ret HTMLCanvasElement, ok bool) {
   464  	ok = js.True == bindings.GetCanvasRenderingContext2DCanvas(
   465  		this.ref, js.Pointer(&ret),
   466  	)
   467  	return
   468  }
   469  
   470  // GlobalAlpha returns the value of property "CanvasRenderingContext2D.globalAlpha".
   471  //
   472  // It returns ok=false if there is no such property.
   473  func (this CanvasRenderingContext2D) GlobalAlpha() (ret float64, ok bool) {
   474  	ok = js.True == bindings.GetCanvasRenderingContext2DGlobalAlpha(
   475  		this.ref, js.Pointer(&ret),
   476  	)
   477  	return
   478  }
   479  
   480  // SetGlobalAlpha sets the value of property "CanvasRenderingContext2D.globalAlpha" to val.
   481  //
   482  // It returns false if the property cannot be set.
   483  func (this CanvasRenderingContext2D) SetGlobalAlpha(val float64) bool {
   484  	return js.True == bindings.SetCanvasRenderingContext2DGlobalAlpha(
   485  		this.ref,
   486  		float64(val),
   487  	)
   488  }
   489  
   490  // GlobalCompositeOperation returns the value of property "CanvasRenderingContext2D.globalCompositeOperation".
   491  //
   492  // It returns ok=false if there is no such property.
   493  func (this CanvasRenderingContext2D) GlobalCompositeOperation() (ret js.String, ok bool) {
   494  	ok = js.True == bindings.GetCanvasRenderingContext2DGlobalCompositeOperation(
   495  		this.ref, js.Pointer(&ret),
   496  	)
   497  	return
   498  }
   499  
   500  // SetGlobalCompositeOperation sets the value of property "CanvasRenderingContext2D.globalCompositeOperation" to val.
   501  //
   502  // It returns false if the property cannot be set.
   503  func (this CanvasRenderingContext2D) SetGlobalCompositeOperation(val js.String) bool {
   504  	return js.True == bindings.SetCanvasRenderingContext2DGlobalCompositeOperation(
   505  		this.ref,
   506  		val.Ref(),
   507  	)
   508  }
   509  
   510  // ImageSmoothingEnabled returns the value of property "CanvasRenderingContext2D.imageSmoothingEnabled".
   511  //
   512  // It returns ok=false if there is no such property.
   513  func (this CanvasRenderingContext2D) ImageSmoothingEnabled() (ret bool, ok bool) {
   514  	ok = js.True == bindings.GetCanvasRenderingContext2DImageSmoothingEnabled(
   515  		this.ref, js.Pointer(&ret),
   516  	)
   517  	return
   518  }
   519  
   520  // SetImageSmoothingEnabled sets the value of property "CanvasRenderingContext2D.imageSmoothingEnabled" to val.
   521  //
   522  // It returns false if the property cannot be set.
   523  func (this CanvasRenderingContext2D) SetImageSmoothingEnabled(val bool) bool {
   524  	return js.True == bindings.SetCanvasRenderingContext2DImageSmoothingEnabled(
   525  		this.ref,
   526  		js.Bool(bool(val)),
   527  	)
   528  }
   529  
   530  // ImageSmoothingQuality returns the value of property "CanvasRenderingContext2D.imageSmoothingQuality".
   531  //
   532  // It returns ok=false if there is no such property.
   533  func (this CanvasRenderingContext2D) ImageSmoothingQuality() (ret ImageSmoothingQuality, ok bool) {
   534  	ok = js.True == bindings.GetCanvasRenderingContext2DImageSmoothingQuality(
   535  		this.ref, js.Pointer(&ret),
   536  	)
   537  	return
   538  }
   539  
   540  // SetImageSmoothingQuality sets the value of property "CanvasRenderingContext2D.imageSmoothingQuality" to val.
   541  //
   542  // It returns false if the property cannot be set.
   543  func (this CanvasRenderingContext2D) SetImageSmoothingQuality(val ImageSmoothingQuality) bool {
   544  	return js.True == bindings.SetCanvasRenderingContext2DImageSmoothingQuality(
   545  		this.ref,
   546  		uint32(val),
   547  	)
   548  }
   549  
   550  // StrokeStyle returns the value of property "CanvasRenderingContext2D.strokeStyle".
   551  //
   552  // It returns ok=false if there is no such property.
   553  func (this CanvasRenderingContext2D) StrokeStyle() (ret OneOf_String_CanvasGradient_CanvasPattern, ok bool) {
   554  	ok = js.True == bindings.GetCanvasRenderingContext2DStrokeStyle(
   555  		this.ref, js.Pointer(&ret),
   556  	)
   557  	return
   558  }
   559  
   560  // SetStrokeStyle sets the value of property "CanvasRenderingContext2D.strokeStyle" to val.
   561  //
   562  // It returns false if the property cannot be set.
   563  func (this CanvasRenderingContext2D) SetStrokeStyle(val OneOf_String_CanvasGradient_CanvasPattern) bool {
   564  	return js.True == bindings.SetCanvasRenderingContext2DStrokeStyle(
   565  		this.ref,
   566  		val.Ref(),
   567  	)
   568  }
   569  
   570  // FillStyle returns the value of property "CanvasRenderingContext2D.fillStyle".
   571  //
   572  // It returns ok=false if there is no such property.
   573  func (this CanvasRenderingContext2D) FillStyle() (ret OneOf_String_CanvasGradient_CanvasPattern, ok bool) {
   574  	ok = js.True == bindings.GetCanvasRenderingContext2DFillStyle(
   575  		this.ref, js.Pointer(&ret),
   576  	)
   577  	return
   578  }
   579  
   580  // SetFillStyle sets the value of property "CanvasRenderingContext2D.fillStyle" to val.
   581  //
   582  // It returns false if the property cannot be set.
   583  func (this CanvasRenderingContext2D) SetFillStyle(val OneOf_String_CanvasGradient_CanvasPattern) bool {
   584  	return js.True == bindings.SetCanvasRenderingContext2DFillStyle(
   585  		this.ref,
   586  		val.Ref(),
   587  	)
   588  }
   589  
   590  // ShadowOffsetX returns the value of property "CanvasRenderingContext2D.shadowOffsetX".
   591  //
   592  // It returns ok=false if there is no such property.
   593  func (this CanvasRenderingContext2D) ShadowOffsetX() (ret float64, ok bool) {
   594  	ok = js.True == bindings.GetCanvasRenderingContext2DShadowOffsetX(
   595  		this.ref, js.Pointer(&ret),
   596  	)
   597  	return
   598  }
   599  
   600  // SetShadowOffsetX sets the value of property "CanvasRenderingContext2D.shadowOffsetX" to val.
   601  //
   602  // It returns false if the property cannot be set.
   603  func (this CanvasRenderingContext2D) SetShadowOffsetX(val float64) bool {
   604  	return js.True == bindings.SetCanvasRenderingContext2DShadowOffsetX(
   605  		this.ref,
   606  		float64(val),
   607  	)
   608  }
   609  
   610  // ShadowOffsetY returns the value of property "CanvasRenderingContext2D.shadowOffsetY".
   611  //
   612  // It returns ok=false if there is no such property.
   613  func (this CanvasRenderingContext2D) ShadowOffsetY() (ret float64, ok bool) {
   614  	ok = js.True == bindings.GetCanvasRenderingContext2DShadowOffsetY(
   615  		this.ref, js.Pointer(&ret),
   616  	)
   617  	return
   618  }
   619  
   620  // SetShadowOffsetY sets the value of property "CanvasRenderingContext2D.shadowOffsetY" to val.
   621  //
   622  // It returns false if the property cannot be set.
   623  func (this CanvasRenderingContext2D) SetShadowOffsetY(val float64) bool {
   624  	return js.True == bindings.SetCanvasRenderingContext2DShadowOffsetY(
   625  		this.ref,
   626  		float64(val),
   627  	)
   628  }
   629  
   630  // ShadowBlur returns the value of property "CanvasRenderingContext2D.shadowBlur".
   631  //
   632  // It returns ok=false if there is no such property.
   633  func (this CanvasRenderingContext2D) ShadowBlur() (ret float64, ok bool) {
   634  	ok = js.True == bindings.GetCanvasRenderingContext2DShadowBlur(
   635  		this.ref, js.Pointer(&ret),
   636  	)
   637  	return
   638  }
   639  
   640  // SetShadowBlur sets the value of property "CanvasRenderingContext2D.shadowBlur" to val.
   641  //
   642  // It returns false if the property cannot be set.
   643  func (this CanvasRenderingContext2D) SetShadowBlur(val float64) bool {
   644  	return js.True == bindings.SetCanvasRenderingContext2DShadowBlur(
   645  		this.ref,
   646  		float64(val),
   647  	)
   648  }
   649  
   650  // ShadowColor returns the value of property "CanvasRenderingContext2D.shadowColor".
   651  //
   652  // It returns ok=false if there is no such property.
   653  func (this CanvasRenderingContext2D) ShadowColor() (ret js.String, ok bool) {
   654  	ok = js.True == bindings.GetCanvasRenderingContext2DShadowColor(
   655  		this.ref, js.Pointer(&ret),
   656  	)
   657  	return
   658  }
   659  
   660  // SetShadowColor sets the value of property "CanvasRenderingContext2D.shadowColor" to val.
   661  //
   662  // It returns false if the property cannot be set.
   663  func (this CanvasRenderingContext2D) SetShadowColor(val js.String) bool {
   664  	return js.True == bindings.SetCanvasRenderingContext2DShadowColor(
   665  		this.ref,
   666  		val.Ref(),
   667  	)
   668  }
   669  
   670  // Filter returns the value of property "CanvasRenderingContext2D.filter".
   671  //
   672  // It returns ok=false if there is no such property.
   673  func (this CanvasRenderingContext2D) Filter() (ret js.String, ok bool) {
   674  	ok = js.True == bindings.GetCanvasRenderingContext2DFilter(
   675  		this.ref, js.Pointer(&ret),
   676  	)
   677  	return
   678  }
   679  
   680  // SetFilter sets the value of property "CanvasRenderingContext2D.filter" to val.
   681  //
   682  // It returns false if the property cannot be set.
   683  func (this CanvasRenderingContext2D) SetFilter(val js.String) bool {
   684  	return js.True == bindings.SetCanvasRenderingContext2DFilter(
   685  		this.ref,
   686  		val.Ref(),
   687  	)
   688  }
   689  
   690  // LineWidth returns the value of property "CanvasRenderingContext2D.lineWidth".
   691  //
   692  // It returns ok=false if there is no such property.
   693  func (this CanvasRenderingContext2D) LineWidth() (ret float64, ok bool) {
   694  	ok = js.True == bindings.GetCanvasRenderingContext2DLineWidth(
   695  		this.ref, js.Pointer(&ret),
   696  	)
   697  	return
   698  }
   699  
   700  // SetLineWidth sets the value of property "CanvasRenderingContext2D.lineWidth" to val.
   701  //
   702  // It returns false if the property cannot be set.
   703  func (this CanvasRenderingContext2D) SetLineWidth(val float64) bool {
   704  	return js.True == bindings.SetCanvasRenderingContext2DLineWidth(
   705  		this.ref,
   706  		float64(val),
   707  	)
   708  }
   709  
   710  // LineCap returns the value of property "CanvasRenderingContext2D.lineCap".
   711  //
   712  // It returns ok=false if there is no such property.
   713  func (this CanvasRenderingContext2D) LineCap() (ret CanvasLineCap, ok bool) {
   714  	ok = js.True == bindings.GetCanvasRenderingContext2DLineCap(
   715  		this.ref, js.Pointer(&ret),
   716  	)
   717  	return
   718  }
   719  
   720  // SetLineCap sets the value of property "CanvasRenderingContext2D.lineCap" to val.
   721  //
   722  // It returns false if the property cannot be set.
   723  func (this CanvasRenderingContext2D) SetLineCap(val CanvasLineCap) bool {
   724  	return js.True == bindings.SetCanvasRenderingContext2DLineCap(
   725  		this.ref,
   726  		uint32(val),
   727  	)
   728  }
   729  
   730  // LineJoin returns the value of property "CanvasRenderingContext2D.lineJoin".
   731  //
   732  // It returns ok=false if there is no such property.
   733  func (this CanvasRenderingContext2D) LineJoin() (ret CanvasLineJoin, ok bool) {
   734  	ok = js.True == bindings.GetCanvasRenderingContext2DLineJoin(
   735  		this.ref, js.Pointer(&ret),
   736  	)
   737  	return
   738  }
   739  
   740  // SetLineJoin sets the value of property "CanvasRenderingContext2D.lineJoin" to val.
   741  //
   742  // It returns false if the property cannot be set.
   743  func (this CanvasRenderingContext2D) SetLineJoin(val CanvasLineJoin) bool {
   744  	return js.True == bindings.SetCanvasRenderingContext2DLineJoin(
   745  		this.ref,
   746  		uint32(val),
   747  	)
   748  }
   749  
   750  // MiterLimit returns the value of property "CanvasRenderingContext2D.miterLimit".
   751  //
   752  // It returns ok=false if there is no such property.
   753  func (this CanvasRenderingContext2D) MiterLimit() (ret float64, ok bool) {
   754  	ok = js.True == bindings.GetCanvasRenderingContext2DMiterLimit(
   755  		this.ref, js.Pointer(&ret),
   756  	)
   757  	return
   758  }
   759  
   760  // SetMiterLimit sets the value of property "CanvasRenderingContext2D.miterLimit" to val.
   761  //
   762  // It returns false if the property cannot be set.
   763  func (this CanvasRenderingContext2D) SetMiterLimit(val float64) bool {
   764  	return js.True == bindings.SetCanvasRenderingContext2DMiterLimit(
   765  		this.ref,
   766  		float64(val),
   767  	)
   768  }
   769  
   770  // LineDashOffset returns the value of property "CanvasRenderingContext2D.lineDashOffset".
   771  //
   772  // It returns ok=false if there is no such property.
   773  func (this CanvasRenderingContext2D) LineDashOffset() (ret float64, ok bool) {
   774  	ok = js.True == bindings.GetCanvasRenderingContext2DLineDashOffset(
   775  		this.ref, js.Pointer(&ret),
   776  	)
   777  	return
   778  }
   779  
   780  // SetLineDashOffset sets the value of property "CanvasRenderingContext2D.lineDashOffset" to val.
   781  //
   782  // It returns false if the property cannot be set.
   783  func (this CanvasRenderingContext2D) SetLineDashOffset(val float64) bool {
   784  	return js.True == bindings.SetCanvasRenderingContext2DLineDashOffset(
   785  		this.ref,
   786  		float64(val),
   787  	)
   788  }
   789  
   790  // Font returns the value of property "CanvasRenderingContext2D.font".
   791  //
   792  // It returns ok=false if there is no such property.
   793  func (this CanvasRenderingContext2D) Font() (ret js.String, ok bool) {
   794  	ok = js.True == bindings.GetCanvasRenderingContext2DFont(
   795  		this.ref, js.Pointer(&ret),
   796  	)
   797  	return
   798  }
   799  
   800  // SetFont sets the value of property "CanvasRenderingContext2D.font" to val.
   801  //
   802  // It returns false if the property cannot be set.
   803  func (this CanvasRenderingContext2D) SetFont(val js.String) bool {
   804  	return js.True == bindings.SetCanvasRenderingContext2DFont(
   805  		this.ref,
   806  		val.Ref(),
   807  	)
   808  }
   809  
   810  // TextAlign returns the value of property "CanvasRenderingContext2D.textAlign".
   811  //
   812  // It returns ok=false if there is no such property.
   813  func (this CanvasRenderingContext2D) TextAlign() (ret CanvasTextAlign, ok bool) {
   814  	ok = js.True == bindings.GetCanvasRenderingContext2DTextAlign(
   815  		this.ref, js.Pointer(&ret),
   816  	)
   817  	return
   818  }
   819  
   820  // SetTextAlign sets the value of property "CanvasRenderingContext2D.textAlign" to val.
   821  //
   822  // It returns false if the property cannot be set.
   823  func (this CanvasRenderingContext2D) SetTextAlign(val CanvasTextAlign) bool {
   824  	return js.True == bindings.SetCanvasRenderingContext2DTextAlign(
   825  		this.ref,
   826  		uint32(val),
   827  	)
   828  }
   829  
   830  // TextBaseline returns the value of property "CanvasRenderingContext2D.textBaseline".
   831  //
   832  // It returns ok=false if there is no such property.
   833  func (this CanvasRenderingContext2D) TextBaseline() (ret CanvasTextBaseline, ok bool) {
   834  	ok = js.True == bindings.GetCanvasRenderingContext2DTextBaseline(
   835  		this.ref, js.Pointer(&ret),
   836  	)
   837  	return
   838  }
   839  
   840  // SetTextBaseline sets the value of property "CanvasRenderingContext2D.textBaseline" to val.
   841  //
   842  // It returns false if the property cannot be set.
   843  func (this CanvasRenderingContext2D) SetTextBaseline(val CanvasTextBaseline) bool {
   844  	return js.True == bindings.SetCanvasRenderingContext2DTextBaseline(
   845  		this.ref,
   846  		uint32(val),
   847  	)
   848  }
   849  
   850  // Direction returns the value of property "CanvasRenderingContext2D.direction".
   851  //
   852  // It returns ok=false if there is no such property.
   853  func (this CanvasRenderingContext2D) Direction() (ret CanvasDirection, ok bool) {
   854  	ok = js.True == bindings.GetCanvasRenderingContext2DDirection(
   855  		this.ref, js.Pointer(&ret),
   856  	)
   857  	return
   858  }
   859  
   860  // SetDirection sets the value of property "CanvasRenderingContext2D.direction" to val.
   861  //
   862  // It returns false if the property cannot be set.
   863  func (this CanvasRenderingContext2D) SetDirection(val CanvasDirection) bool {
   864  	return js.True == bindings.SetCanvasRenderingContext2DDirection(
   865  		this.ref,
   866  		uint32(val),
   867  	)
   868  }
   869  
   870  // LetterSpacing returns the value of property "CanvasRenderingContext2D.letterSpacing".
   871  //
   872  // It returns ok=false if there is no such property.
   873  func (this CanvasRenderingContext2D) LetterSpacing() (ret js.String, ok bool) {
   874  	ok = js.True == bindings.GetCanvasRenderingContext2DLetterSpacing(
   875  		this.ref, js.Pointer(&ret),
   876  	)
   877  	return
   878  }
   879  
   880  // SetLetterSpacing sets the value of property "CanvasRenderingContext2D.letterSpacing" to val.
   881  //
   882  // It returns false if the property cannot be set.
   883  func (this CanvasRenderingContext2D) SetLetterSpacing(val js.String) bool {
   884  	return js.True == bindings.SetCanvasRenderingContext2DLetterSpacing(
   885  		this.ref,
   886  		val.Ref(),
   887  	)
   888  }
   889  
   890  // FontKerning returns the value of property "CanvasRenderingContext2D.fontKerning".
   891  //
   892  // It returns ok=false if there is no such property.
   893  func (this CanvasRenderingContext2D) FontKerning() (ret CanvasFontKerning, ok bool) {
   894  	ok = js.True == bindings.GetCanvasRenderingContext2DFontKerning(
   895  		this.ref, js.Pointer(&ret),
   896  	)
   897  	return
   898  }
   899  
   900  // SetFontKerning sets the value of property "CanvasRenderingContext2D.fontKerning" to val.
   901  //
   902  // It returns false if the property cannot be set.
   903  func (this CanvasRenderingContext2D) SetFontKerning(val CanvasFontKerning) bool {
   904  	return js.True == bindings.SetCanvasRenderingContext2DFontKerning(
   905  		this.ref,
   906  		uint32(val),
   907  	)
   908  }
   909  
   910  // FontStretch returns the value of property "CanvasRenderingContext2D.fontStretch".
   911  //
   912  // It returns ok=false if there is no such property.
   913  func (this CanvasRenderingContext2D) FontStretch() (ret CanvasFontStretch, ok bool) {
   914  	ok = js.True == bindings.GetCanvasRenderingContext2DFontStretch(
   915  		this.ref, js.Pointer(&ret),
   916  	)
   917  	return
   918  }
   919  
   920  // SetFontStretch sets the value of property "CanvasRenderingContext2D.fontStretch" to val.
   921  //
   922  // It returns false if the property cannot be set.
   923  func (this CanvasRenderingContext2D) SetFontStretch(val CanvasFontStretch) bool {
   924  	return js.True == bindings.SetCanvasRenderingContext2DFontStretch(
   925  		this.ref,
   926  		uint32(val),
   927  	)
   928  }
   929  
   930  // FontVariantCaps returns the value of property "CanvasRenderingContext2D.fontVariantCaps".
   931  //
   932  // It returns ok=false if there is no such property.
   933  func (this CanvasRenderingContext2D) FontVariantCaps() (ret CanvasFontVariantCaps, ok bool) {
   934  	ok = js.True == bindings.GetCanvasRenderingContext2DFontVariantCaps(
   935  		this.ref, js.Pointer(&ret),
   936  	)
   937  	return
   938  }
   939  
   940  // SetFontVariantCaps sets the value of property "CanvasRenderingContext2D.fontVariantCaps" to val.
   941  //
   942  // It returns false if the property cannot be set.
   943  func (this CanvasRenderingContext2D) SetFontVariantCaps(val CanvasFontVariantCaps) bool {
   944  	return js.True == bindings.SetCanvasRenderingContext2DFontVariantCaps(
   945  		this.ref,
   946  		uint32(val),
   947  	)
   948  }
   949  
   950  // TextRendering returns the value of property "CanvasRenderingContext2D.textRendering".
   951  //
   952  // It returns ok=false if there is no such property.
   953  func (this CanvasRenderingContext2D) TextRendering() (ret CanvasTextRendering, ok bool) {
   954  	ok = js.True == bindings.GetCanvasRenderingContext2DTextRendering(
   955  		this.ref, js.Pointer(&ret),
   956  	)
   957  	return
   958  }
   959  
   960  // SetTextRendering sets the value of property "CanvasRenderingContext2D.textRendering" to val.
   961  //
   962  // It returns false if the property cannot be set.
   963  func (this CanvasRenderingContext2D) SetTextRendering(val CanvasTextRendering) bool {
   964  	return js.True == bindings.SetCanvasRenderingContext2DTextRendering(
   965  		this.ref,
   966  		uint32(val),
   967  	)
   968  }
   969  
   970  // WordSpacing returns the value of property "CanvasRenderingContext2D.wordSpacing".
   971  //
   972  // It returns ok=false if there is no such property.
   973  func (this CanvasRenderingContext2D) WordSpacing() (ret js.String, ok bool) {
   974  	ok = js.True == bindings.GetCanvasRenderingContext2DWordSpacing(
   975  		this.ref, js.Pointer(&ret),
   976  	)
   977  	return
   978  }
   979  
   980  // SetWordSpacing sets the value of property "CanvasRenderingContext2D.wordSpacing" to val.
   981  //
   982  // It returns false if the property cannot be set.
   983  func (this CanvasRenderingContext2D) SetWordSpacing(val js.String) bool {
   984  	return js.True == bindings.SetCanvasRenderingContext2DWordSpacing(
   985  		this.ref,
   986  		val.Ref(),
   987  	)
   988  }
   989  
   990  // HasFuncGetContextAttributes returns true if the method "CanvasRenderingContext2D.getContextAttributes" exists.
   991  func (this CanvasRenderingContext2D) HasFuncGetContextAttributes() bool {
   992  	return js.True == bindings.HasFuncCanvasRenderingContext2DGetContextAttributes(
   993  		this.ref,
   994  	)
   995  }
   996  
   997  // FuncGetContextAttributes returns the method "CanvasRenderingContext2D.getContextAttributes".
   998  func (this CanvasRenderingContext2D) FuncGetContextAttributes() (fn js.Func[func() CanvasRenderingContext2DSettings]) {
   999  	bindings.FuncCanvasRenderingContext2DGetContextAttributes(
  1000  		this.ref, js.Pointer(&fn),
  1001  	)
  1002  	return
  1003  }
  1004  
  1005  // GetContextAttributes calls the method "CanvasRenderingContext2D.getContextAttributes".
  1006  func (this CanvasRenderingContext2D) GetContextAttributes() (ret CanvasRenderingContext2DSettings) {
  1007  	bindings.CallCanvasRenderingContext2DGetContextAttributes(
  1008  		this.ref, js.Pointer(&ret),
  1009  	)
  1010  
  1011  	return
  1012  }
  1013  
  1014  // TryGetContextAttributes calls the method "CanvasRenderingContext2D.getContextAttributes"
  1015  // in a try/catch block and returns (_, err, ok = false) when it went through
  1016  // the catch clause.
  1017  func (this CanvasRenderingContext2D) TryGetContextAttributes() (ret CanvasRenderingContext2DSettings, exception js.Any, ok bool) {
  1018  	ok = js.True == bindings.TryCanvasRenderingContext2DGetContextAttributes(
  1019  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1020  	)
  1021  
  1022  	return
  1023  }
  1024  
  1025  // HasFuncSave returns true if the method "CanvasRenderingContext2D.save" exists.
  1026  func (this CanvasRenderingContext2D) HasFuncSave() bool {
  1027  	return js.True == bindings.HasFuncCanvasRenderingContext2DSave(
  1028  		this.ref,
  1029  	)
  1030  }
  1031  
  1032  // FuncSave returns the method "CanvasRenderingContext2D.save".
  1033  func (this CanvasRenderingContext2D) FuncSave() (fn js.Func[func()]) {
  1034  	bindings.FuncCanvasRenderingContext2DSave(
  1035  		this.ref, js.Pointer(&fn),
  1036  	)
  1037  	return
  1038  }
  1039  
  1040  // Save calls the method "CanvasRenderingContext2D.save".
  1041  func (this CanvasRenderingContext2D) Save() (ret js.Void) {
  1042  	bindings.CallCanvasRenderingContext2DSave(
  1043  		this.ref, js.Pointer(&ret),
  1044  	)
  1045  
  1046  	return
  1047  }
  1048  
  1049  // TrySave calls the method "CanvasRenderingContext2D.save"
  1050  // in a try/catch block and returns (_, err, ok = false) when it went through
  1051  // the catch clause.
  1052  func (this CanvasRenderingContext2D) TrySave() (ret js.Void, exception js.Any, ok bool) {
  1053  	ok = js.True == bindings.TryCanvasRenderingContext2DSave(
  1054  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1055  	)
  1056  
  1057  	return
  1058  }
  1059  
  1060  // HasFuncRestore returns true if the method "CanvasRenderingContext2D.restore" exists.
  1061  func (this CanvasRenderingContext2D) HasFuncRestore() bool {
  1062  	return js.True == bindings.HasFuncCanvasRenderingContext2DRestore(
  1063  		this.ref,
  1064  	)
  1065  }
  1066  
  1067  // FuncRestore returns the method "CanvasRenderingContext2D.restore".
  1068  func (this CanvasRenderingContext2D) FuncRestore() (fn js.Func[func()]) {
  1069  	bindings.FuncCanvasRenderingContext2DRestore(
  1070  		this.ref, js.Pointer(&fn),
  1071  	)
  1072  	return
  1073  }
  1074  
  1075  // Restore calls the method "CanvasRenderingContext2D.restore".
  1076  func (this CanvasRenderingContext2D) Restore() (ret js.Void) {
  1077  	bindings.CallCanvasRenderingContext2DRestore(
  1078  		this.ref, js.Pointer(&ret),
  1079  	)
  1080  
  1081  	return
  1082  }
  1083  
  1084  // TryRestore calls the method "CanvasRenderingContext2D.restore"
  1085  // in a try/catch block and returns (_, err, ok = false) when it went through
  1086  // the catch clause.
  1087  func (this CanvasRenderingContext2D) TryRestore() (ret js.Void, exception js.Any, ok bool) {
  1088  	ok = js.True == bindings.TryCanvasRenderingContext2DRestore(
  1089  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1090  	)
  1091  
  1092  	return
  1093  }
  1094  
  1095  // HasFuncReset returns true if the method "CanvasRenderingContext2D.reset" exists.
  1096  func (this CanvasRenderingContext2D) HasFuncReset() bool {
  1097  	return js.True == bindings.HasFuncCanvasRenderingContext2DReset(
  1098  		this.ref,
  1099  	)
  1100  }
  1101  
  1102  // FuncReset returns the method "CanvasRenderingContext2D.reset".
  1103  func (this CanvasRenderingContext2D) FuncReset() (fn js.Func[func()]) {
  1104  	bindings.FuncCanvasRenderingContext2DReset(
  1105  		this.ref, js.Pointer(&fn),
  1106  	)
  1107  	return
  1108  }
  1109  
  1110  // Reset calls the method "CanvasRenderingContext2D.reset".
  1111  func (this CanvasRenderingContext2D) Reset() (ret js.Void) {
  1112  	bindings.CallCanvasRenderingContext2DReset(
  1113  		this.ref, js.Pointer(&ret),
  1114  	)
  1115  
  1116  	return
  1117  }
  1118  
  1119  // TryReset calls the method "CanvasRenderingContext2D.reset"
  1120  // in a try/catch block and returns (_, err, ok = false) when it went through
  1121  // the catch clause.
  1122  func (this CanvasRenderingContext2D) TryReset() (ret js.Void, exception js.Any, ok bool) {
  1123  	ok = js.True == bindings.TryCanvasRenderingContext2DReset(
  1124  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1125  	)
  1126  
  1127  	return
  1128  }
  1129  
  1130  // HasFuncIsContextLost returns true if the method "CanvasRenderingContext2D.isContextLost" exists.
  1131  func (this CanvasRenderingContext2D) HasFuncIsContextLost() bool {
  1132  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsContextLost(
  1133  		this.ref,
  1134  	)
  1135  }
  1136  
  1137  // FuncIsContextLost returns the method "CanvasRenderingContext2D.isContextLost".
  1138  func (this CanvasRenderingContext2D) FuncIsContextLost() (fn js.Func[func() bool]) {
  1139  	bindings.FuncCanvasRenderingContext2DIsContextLost(
  1140  		this.ref, js.Pointer(&fn),
  1141  	)
  1142  	return
  1143  }
  1144  
  1145  // IsContextLost calls the method "CanvasRenderingContext2D.isContextLost".
  1146  func (this CanvasRenderingContext2D) IsContextLost() (ret bool) {
  1147  	bindings.CallCanvasRenderingContext2DIsContextLost(
  1148  		this.ref, js.Pointer(&ret),
  1149  	)
  1150  
  1151  	return
  1152  }
  1153  
  1154  // TryIsContextLost calls the method "CanvasRenderingContext2D.isContextLost"
  1155  // in a try/catch block and returns (_, err, ok = false) when it went through
  1156  // the catch clause.
  1157  func (this CanvasRenderingContext2D) TryIsContextLost() (ret bool, exception js.Any, ok bool) {
  1158  	ok = js.True == bindings.TryCanvasRenderingContext2DIsContextLost(
  1159  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1160  	)
  1161  
  1162  	return
  1163  }
  1164  
  1165  // HasFuncScale returns true if the method "CanvasRenderingContext2D.scale" exists.
  1166  func (this CanvasRenderingContext2D) HasFuncScale() bool {
  1167  	return js.True == bindings.HasFuncCanvasRenderingContext2DScale(
  1168  		this.ref,
  1169  	)
  1170  }
  1171  
  1172  // FuncScale returns the method "CanvasRenderingContext2D.scale".
  1173  func (this CanvasRenderingContext2D) FuncScale() (fn js.Func[func(x float64, y float64)]) {
  1174  	bindings.FuncCanvasRenderingContext2DScale(
  1175  		this.ref, js.Pointer(&fn),
  1176  	)
  1177  	return
  1178  }
  1179  
  1180  // Scale calls the method "CanvasRenderingContext2D.scale".
  1181  func (this CanvasRenderingContext2D) Scale(x float64, y float64) (ret js.Void) {
  1182  	bindings.CallCanvasRenderingContext2DScale(
  1183  		this.ref, js.Pointer(&ret),
  1184  		float64(x),
  1185  		float64(y),
  1186  	)
  1187  
  1188  	return
  1189  }
  1190  
  1191  // TryScale calls the method "CanvasRenderingContext2D.scale"
  1192  // in a try/catch block and returns (_, err, ok = false) when it went through
  1193  // the catch clause.
  1194  func (this CanvasRenderingContext2D) TryScale(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  1195  	ok = js.True == bindings.TryCanvasRenderingContext2DScale(
  1196  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1197  		float64(x),
  1198  		float64(y),
  1199  	)
  1200  
  1201  	return
  1202  }
  1203  
  1204  // HasFuncRotate returns true if the method "CanvasRenderingContext2D.rotate" exists.
  1205  func (this CanvasRenderingContext2D) HasFuncRotate() bool {
  1206  	return js.True == bindings.HasFuncCanvasRenderingContext2DRotate(
  1207  		this.ref,
  1208  	)
  1209  }
  1210  
  1211  // FuncRotate returns the method "CanvasRenderingContext2D.rotate".
  1212  func (this CanvasRenderingContext2D) FuncRotate() (fn js.Func[func(angle float64)]) {
  1213  	bindings.FuncCanvasRenderingContext2DRotate(
  1214  		this.ref, js.Pointer(&fn),
  1215  	)
  1216  	return
  1217  }
  1218  
  1219  // Rotate calls the method "CanvasRenderingContext2D.rotate".
  1220  func (this CanvasRenderingContext2D) Rotate(angle float64) (ret js.Void) {
  1221  	bindings.CallCanvasRenderingContext2DRotate(
  1222  		this.ref, js.Pointer(&ret),
  1223  		float64(angle),
  1224  	)
  1225  
  1226  	return
  1227  }
  1228  
  1229  // TryRotate calls the method "CanvasRenderingContext2D.rotate"
  1230  // in a try/catch block and returns (_, err, ok = false) when it went through
  1231  // the catch clause.
  1232  func (this CanvasRenderingContext2D) TryRotate(angle float64) (ret js.Void, exception js.Any, ok bool) {
  1233  	ok = js.True == bindings.TryCanvasRenderingContext2DRotate(
  1234  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1235  		float64(angle),
  1236  	)
  1237  
  1238  	return
  1239  }
  1240  
  1241  // HasFuncTranslate returns true if the method "CanvasRenderingContext2D.translate" exists.
  1242  func (this CanvasRenderingContext2D) HasFuncTranslate() bool {
  1243  	return js.True == bindings.HasFuncCanvasRenderingContext2DTranslate(
  1244  		this.ref,
  1245  	)
  1246  }
  1247  
  1248  // FuncTranslate returns the method "CanvasRenderingContext2D.translate".
  1249  func (this CanvasRenderingContext2D) FuncTranslate() (fn js.Func[func(x float64, y float64)]) {
  1250  	bindings.FuncCanvasRenderingContext2DTranslate(
  1251  		this.ref, js.Pointer(&fn),
  1252  	)
  1253  	return
  1254  }
  1255  
  1256  // Translate calls the method "CanvasRenderingContext2D.translate".
  1257  func (this CanvasRenderingContext2D) Translate(x float64, y float64) (ret js.Void) {
  1258  	bindings.CallCanvasRenderingContext2DTranslate(
  1259  		this.ref, js.Pointer(&ret),
  1260  		float64(x),
  1261  		float64(y),
  1262  	)
  1263  
  1264  	return
  1265  }
  1266  
  1267  // TryTranslate calls the method "CanvasRenderingContext2D.translate"
  1268  // in a try/catch block and returns (_, err, ok = false) when it went through
  1269  // the catch clause.
  1270  func (this CanvasRenderingContext2D) TryTranslate(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  1271  	ok = js.True == bindings.TryCanvasRenderingContext2DTranslate(
  1272  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1273  		float64(x),
  1274  		float64(y),
  1275  	)
  1276  
  1277  	return
  1278  }
  1279  
  1280  // HasFuncTransform returns true if the method "CanvasRenderingContext2D.transform" exists.
  1281  func (this CanvasRenderingContext2D) HasFuncTransform() bool {
  1282  	return js.True == bindings.HasFuncCanvasRenderingContext2DTransform(
  1283  		this.ref,
  1284  	)
  1285  }
  1286  
  1287  // FuncTransform returns the method "CanvasRenderingContext2D.transform".
  1288  func (this CanvasRenderingContext2D) FuncTransform() (fn js.Func[func(a float64, b float64, c float64, d float64, e float64, f float64)]) {
  1289  	bindings.FuncCanvasRenderingContext2DTransform(
  1290  		this.ref, js.Pointer(&fn),
  1291  	)
  1292  	return
  1293  }
  1294  
  1295  // Transform calls the method "CanvasRenderingContext2D.transform".
  1296  func (this CanvasRenderingContext2D) Transform(a float64, b float64, c float64, d float64, e float64, f float64) (ret js.Void) {
  1297  	bindings.CallCanvasRenderingContext2DTransform(
  1298  		this.ref, js.Pointer(&ret),
  1299  		float64(a),
  1300  		float64(b),
  1301  		float64(c),
  1302  		float64(d),
  1303  		float64(e),
  1304  		float64(f),
  1305  	)
  1306  
  1307  	return
  1308  }
  1309  
  1310  // TryTransform calls the method "CanvasRenderingContext2D.transform"
  1311  // in a try/catch block and returns (_, err, ok = false) when it went through
  1312  // the catch clause.
  1313  func (this CanvasRenderingContext2D) TryTransform(a float64, b float64, c float64, d float64, e float64, f float64) (ret js.Void, exception js.Any, ok bool) {
  1314  	ok = js.True == bindings.TryCanvasRenderingContext2DTransform(
  1315  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1316  		float64(a),
  1317  		float64(b),
  1318  		float64(c),
  1319  		float64(d),
  1320  		float64(e),
  1321  		float64(f),
  1322  	)
  1323  
  1324  	return
  1325  }
  1326  
  1327  // HasFuncGetTransform returns true if the method "CanvasRenderingContext2D.getTransform" exists.
  1328  func (this CanvasRenderingContext2D) HasFuncGetTransform() bool {
  1329  	return js.True == bindings.HasFuncCanvasRenderingContext2DGetTransform(
  1330  		this.ref,
  1331  	)
  1332  }
  1333  
  1334  // FuncGetTransform returns the method "CanvasRenderingContext2D.getTransform".
  1335  func (this CanvasRenderingContext2D) FuncGetTransform() (fn js.Func[func() DOMMatrix]) {
  1336  	bindings.FuncCanvasRenderingContext2DGetTransform(
  1337  		this.ref, js.Pointer(&fn),
  1338  	)
  1339  	return
  1340  }
  1341  
  1342  // GetTransform calls the method "CanvasRenderingContext2D.getTransform".
  1343  func (this CanvasRenderingContext2D) GetTransform() (ret DOMMatrix) {
  1344  	bindings.CallCanvasRenderingContext2DGetTransform(
  1345  		this.ref, js.Pointer(&ret),
  1346  	)
  1347  
  1348  	return
  1349  }
  1350  
  1351  // TryGetTransform calls the method "CanvasRenderingContext2D.getTransform"
  1352  // in a try/catch block and returns (_, err, ok = false) when it went through
  1353  // the catch clause.
  1354  func (this CanvasRenderingContext2D) TryGetTransform() (ret DOMMatrix, exception js.Any, ok bool) {
  1355  	ok = js.True == bindings.TryCanvasRenderingContext2DGetTransform(
  1356  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1357  	)
  1358  
  1359  	return
  1360  }
  1361  
  1362  // HasFuncSetTransform returns true if the method "CanvasRenderingContext2D.setTransform" exists.
  1363  func (this CanvasRenderingContext2D) HasFuncSetTransform() bool {
  1364  	return js.True == bindings.HasFuncCanvasRenderingContext2DSetTransform(
  1365  		this.ref,
  1366  	)
  1367  }
  1368  
  1369  // FuncSetTransform returns the method "CanvasRenderingContext2D.setTransform".
  1370  func (this CanvasRenderingContext2D) FuncSetTransform() (fn js.Func[func(a float64, b float64, c float64, d float64, e float64, f float64)]) {
  1371  	bindings.FuncCanvasRenderingContext2DSetTransform(
  1372  		this.ref, js.Pointer(&fn),
  1373  	)
  1374  	return
  1375  }
  1376  
  1377  // SetTransform calls the method "CanvasRenderingContext2D.setTransform".
  1378  func (this CanvasRenderingContext2D) SetTransform(a float64, b float64, c float64, d float64, e float64, f float64) (ret js.Void) {
  1379  	bindings.CallCanvasRenderingContext2DSetTransform(
  1380  		this.ref, js.Pointer(&ret),
  1381  		float64(a),
  1382  		float64(b),
  1383  		float64(c),
  1384  		float64(d),
  1385  		float64(e),
  1386  		float64(f),
  1387  	)
  1388  
  1389  	return
  1390  }
  1391  
  1392  // TrySetTransform calls the method "CanvasRenderingContext2D.setTransform"
  1393  // in a try/catch block and returns (_, err, ok = false) when it went through
  1394  // the catch clause.
  1395  func (this CanvasRenderingContext2D) TrySetTransform(a float64, b float64, c float64, d float64, e float64, f float64) (ret js.Void, exception js.Any, ok bool) {
  1396  	ok = js.True == bindings.TryCanvasRenderingContext2DSetTransform(
  1397  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1398  		float64(a),
  1399  		float64(b),
  1400  		float64(c),
  1401  		float64(d),
  1402  		float64(e),
  1403  		float64(f),
  1404  	)
  1405  
  1406  	return
  1407  }
  1408  
  1409  // HasFuncSetTransform1 returns true if the method "CanvasRenderingContext2D.setTransform" exists.
  1410  func (this CanvasRenderingContext2D) HasFuncSetTransform1() bool {
  1411  	return js.True == bindings.HasFuncCanvasRenderingContext2DSetTransform1(
  1412  		this.ref,
  1413  	)
  1414  }
  1415  
  1416  // FuncSetTransform1 returns the method "CanvasRenderingContext2D.setTransform".
  1417  func (this CanvasRenderingContext2D) FuncSetTransform1() (fn js.Func[func(transform DOMMatrix2DInit)]) {
  1418  	bindings.FuncCanvasRenderingContext2DSetTransform1(
  1419  		this.ref, js.Pointer(&fn),
  1420  	)
  1421  	return
  1422  }
  1423  
  1424  // SetTransform1 calls the method "CanvasRenderingContext2D.setTransform".
  1425  func (this CanvasRenderingContext2D) SetTransform1(transform DOMMatrix2DInit) (ret js.Void) {
  1426  	bindings.CallCanvasRenderingContext2DSetTransform1(
  1427  		this.ref, js.Pointer(&ret),
  1428  		js.Pointer(&transform),
  1429  	)
  1430  
  1431  	return
  1432  }
  1433  
  1434  // TrySetTransform1 calls the method "CanvasRenderingContext2D.setTransform"
  1435  // in a try/catch block and returns (_, err, ok = false) when it went through
  1436  // the catch clause.
  1437  func (this CanvasRenderingContext2D) TrySetTransform1(transform DOMMatrix2DInit) (ret js.Void, exception js.Any, ok bool) {
  1438  	ok = js.True == bindings.TryCanvasRenderingContext2DSetTransform1(
  1439  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1440  		js.Pointer(&transform),
  1441  	)
  1442  
  1443  	return
  1444  }
  1445  
  1446  // HasFuncSetTransform2 returns true if the method "CanvasRenderingContext2D.setTransform" exists.
  1447  func (this CanvasRenderingContext2D) HasFuncSetTransform2() bool {
  1448  	return js.True == bindings.HasFuncCanvasRenderingContext2DSetTransform2(
  1449  		this.ref,
  1450  	)
  1451  }
  1452  
  1453  // FuncSetTransform2 returns the method "CanvasRenderingContext2D.setTransform".
  1454  func (this CanvasRenderingContext2D) FuncSetTransform2() (fn js.Func[func()]) {
  1455  	bindings.FuncCanvasRenderingContext2DSetTransform2(
  1456  		this.ref, js.Pointer(&fn),
  1457  	)
  1458  	return
  1459  }
  1460  
  1461  // SetTransform2 calls the method "CanvasRenderingContext2D.setTransform".
  1462  func (this CanvasRenderingContext2D) SetTransform2() (ret js.Void) {
  1463  	bindings.CallCanvasRenderingContext2DSetTransform2(
  1464  		this.ref, js.Pointer(&ret),
  1465  	)
  1466  
  1467  	return
  1468  }
  1469  
  1470  // TrySetTransform2 calls the method "CanvasRenderingContext2D.setTransform"
  1471  // in a try/catch block and returns (_, err, ok = false) when it went through
  1472  // the catch clause.
  1473  func (this CanvasRenderingContext2D) TrySetTransform2() (ret js.Void, exception js.Any, ok bool) {
  1474  	ok = js.True == bindings.TryCanvasRenderingContext2DSetTransform2(
  1475  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1476  	)
  1477  
  1478  	return
  1479  }
  1480  
  1481  // HasFuncResetTransform returns true if the method "CanvasRenderingContext2D.resetTransform" exists.
  1482  func (this CanvasRenderingContext2D) HasFuncResetTransform() bool {
  1483  	return js.True == bindings.HasFuncCanvasRenderingContext2DResetTransform(
  1484  		this.ref,
  1485  	)
  1486  }
  1487  
  1488  // FuncResetTransform returns the method "CanvasRenderingContext2D.resetTransform".
  1489  func (this CanvasRenderingContext2D) FuncResetTransform() (fn js.Func[func()]) {
  1490  	bindings.FuncCanvasRenderingContext2DResetTransform(
  1491  		this.ref, js.Pointer(&fn),
  1492  	)
  1493  	return
  1494  }
  1495  
  1496  // ResetTransform calls the method "CanvasRenderingContext2D.resetTransform".
  1497  func (this CanvasRenderingContext2D) ResetTransform() (ret js.Void) {
  1498  	bindings.CallCanvasRenderingContext2DResetTransform(
  1499  		this.ref, js.Pointer(&ret),
  1500  	)
  1501  
  1502  	return
  1503  }
  1504  
  1505  // TryResetTransform calls the method "CanvasRenderingContext2D.resetTransform"
  1506  // in a try/catch block and returns (_, err, ok = false) when it went through
  1507  // the catch clause.
  1508  func (this CanvasRenderingContext2D) TryResetTransform() (ret js.Void, exception js.Any, ok bool) {
  1509  	ok = js.True == bindings.TryCanvasRenderingContext2DResetTransform(
  1510  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1511  	)
  1512  
  1513  	return
  1514  }
  1515  
  1516  // HasFuncCreateLinearGradient returns true if the method "CanvasRenderingContext2D.createLinearGradient" exists.
  1517  func (this CanvasRenderingContext2D) HasFuncCreateLinearGradient() bool {
  1518  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreateLinearGradient(
  1519  		this.ref,
  1520  	)
  1521  }
  1522  
  1523  // FuncCreateLinearGradient returns the method "CanvasRenderingContext2D.createLinearGradient".
  1524  func (this CanvasRenderingContext2D) FuncCreateLinearGradient() (fn js.Func[func(x0 float64, y0 float64, x1 float64, y1 float64) CanvasGradient]) {
  1525  	bindings.FuncCanvasRenderingContext2DCreateLinearGradient(
  1526  		this.ref, js.Pointer(&fn),
  1527  	)
  1528  	return
  1529  }
  1530  
  1531  // CreateLinearGradient calls the method "CanvasRenderingContext2D.createLinearGradient".
  1532  func (this CanvasRenderingContext2D) CreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (ret CanvasGradient) {
  1533  	bindings.CallCanvasRenderingContext2DCreateLinearGradient(
  1534  		this.ref, js.Pointer(&ret),
  1535  		float64(x0),
  1536  		float64(y0),
  1537  		float64(x1),
  1538  		float64(y1),
  1539  	)
  1540  
  1541  	return
  1542  }
  1543  
  1544  // TryCreateLinearGradient calls the method "CanvasRenderingContext2D.createLinearGradient"
  1545  // in a try/catch block and returns (_, err, ok = false) when it went through
  1546  // the catch clause.
  1547  func (this CanvasRenderingContext2D) TryCreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (ret CanvasGradient, exception js.Any, ok bool) {
  1548  	ok = js.True == bindings.TryCanvasRenderingContext2DCreateLinearGradient(
  1549  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1550  		float64(x0),
  1551  		float64(y0),
  1552  		float64(x1),
  1553  		float64(y1),
  1554  	)
  1555  
  1556  	return
  1557  }
  1558  
  1559  // HasFuncCreateRadialGradient returns true if the method "CanvasRenderingContext2D.createRadialGradient" exists.
  1560  func (this CanvasRenderingContext2D) HasFuncCreateRadialGradient() bool {
  1561  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreateRadialGradient(
  1562  		this.ref,
  1563  	)
  1564  }
  1565  
  1566  // FuncCreateRadialGradient returns the method "CanvasRenderingContext2D.createRadialGradient".
  1567  func (this CanvasRenderingContext2D) FuncCreateRadialGradient() (fn js.Func[func(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) CanvasGradient]) {
  1568  	bindings.FuncCanvasRenderingContext2DCreateRadialGradient(
  1569  		this.ref, js.Pointer(&fn),
  1570  	)
  1571  	return
  1572  }
  1573  
  1574  // CreateRadialGradient calls the method "CanvasRenderingContext2D.createRadialGradient".
  1575  func (this CanvasRenderingContext2D) CreateRadialGradient(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) (ret CanvasGradient) {
  1576  	bindings.CallCanvasRenderingContext2DCreateRadialGradient(
  1577  		this.ref, js.Pointer(&ret),
  1578  		float64(x0),
  1579  		float64(y0),
  1580  		float64(r0),
  1581  		float64(x1),
  1582  		float64(y1),
  1583  		float64(r1),
  1584  	)
  1585  
  1586  	return
  1587  }
  1588  
  1589  // TryCreateRadialGradient calls the method "CanvasRenderingContext2D.createRadialGradient"
  1590  // in a try/catch block and returns (_, err, ok = false) when it went through
  1591  // the catch clause.
  1592  func (this CanvasRenderingContext2D) TryCreateRadialGradient(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) (ret CanvasGradient, exception js.Any, ok bool) {
  1593  	ok = js.True == bindings.TryCanvasRenderingContext2DCreateRadialGradient(
  1594  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1595  		float64(x0),
  1596  		float64(y0),
  1597  		float64(r0),
  1598  		float64(x1),
  1599  		float64(y1),
  1600  		float64(r1),
  1601  	)
  1602  
  1603  	return
  1604  }
  1605  
  1606  // HasFuncCreateConicGradient returns true if the method "CanvasRenderingContext2D.createConicGradient" exists.
  1607  func (this CanvasRenderingContext2D) HasFuncCreateConicGradient() bool {
  1608  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreateConicGradient(
  1609  		this.ref,
  1610  	)
  1611  }
  1612  
  1613  // FuncCreateConicGradient returns the method "CanvasRenderingContext2D.createConicGradient".
  1614  func (this CanvasRenderingContext2D) FuncCreateConicGradient() (fn js.Func[func(startAngle float64, x float64, y float64) CanvasGradient]) {
  1615  	bindings.FuncCanvasRenderingContext2DCreateConicGradient(
  1616  		this.ref, js.Pointer(&fn),
  1617  	)
  1618  	return
  1619  }
  1620  
  1621  // CreateConicGradient calls the method "CanvasRenderingContext2D.createConicGradient".
  1622  func (this CanvasRenderingContext2D) CreateConicGradient(startAngle float64, x float64, y float64) (ret CanvasGradient) {
  1623  	bindings.CallCanvasRenderingContext2DCreateConicGradient(
  1624  		this.ref, js.Pointer(&ret),
  1625  		float64(startAngle),
  1626  		float64(x),
  1627  		float64(y),
  1628  	)
  1629  
  1630  	return
  1631  }
  1632  
  1633  // TryCreateConicGradient calls the method "CanvasRenderingContext2D.createConicGradient"
  1634  // in a try/catch block and returns (_, err, ok = false) when it went through
  1635  // the catch clause.
  1636  func (this CanvasRenderingContext2D) TryCreateConicGradient(startAngle float64, x float64, y float64) (ret CanvasGradient, exception js.Any, ok bool) {
  1637  	ok = js.True == bindings.TryCanvasRenderingContext2DCreateConicGradient(
  1638  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1639  		float64(startAngle),
  1640  		float64(x),
  1641  		float64(y),
  1642  	)
  1643  
  1644  	return
  1645  }
  1646  
  1647  // HasFuncCreatePattern returns true if the method "CanvasRenderingContext2D.createPattern" exists.
  1648  func (this CanvasRenderingContext2D) HasFuncCreatePattern() bool {
  1649  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreatePattern(
  1650  		this.ref,
  1651  	)
  1652  }
  1653  
  1654  // FuncCreatePattern returns the method "CanvasRenderingContext2D.createPattern".
  1655  func (this CanvasRenderingContext2D) FuncCreatePattern() (fn js.Func[func(image CanvasImageSource, repetition js.String) CanvasPattern]) {
  1656  	bindings.FuncCanvasRenderingContext2DCreatePattern(
  1657  		this.ref, js.Pointer(&fn),
  1658  	)
  1659  	return
  1660  }
  1661  
  1662  // CreatePattern calls the method "CanvasRenderingContext2D.createPattern".
  1663  func (this CanvasRenderingContext2D) CreatePattern(image CanvasImageSource, repetition js.String) (ret CanvasPattern) {
  1664  	bindings.CallCanvasRenderingContext2DCreatePattern(
  1665  		this.ref, js.Pointer(&ret),
  1666  		image.Ref(),
  1667  		repetition.Ref(),
  1668  	)
  1669  
  1670  	return
  1671  }
  1672  
  1673  // TryCreatePattern calls the method "CanvasRenderingContext2D.createPattern"
  1674  // in a try/catch block and returns (_, err, ok = false) when it went through
  1675  // the catch clause.
  1676  func (this CanvasRenderingContext2D) TryCreatePattern(image CanvasImageSource, repetition js.String) (ret CanvasPattern, exception js.Any, ok bool) {
  1677  	ok = js.True == bindings.TryCanvasRenderingContext2DCreatePattern(
  1678  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1679  		image.Ref(),
  1680  		repetition.Ref(),
  1681  	)
  1682  
  1683  	return
  1684  }
  1685  
  1686  // HasFuncClearRect returns true if the method "CanvasRenderingContext2D.clearRect" exists.
  1687  func (this CanvasRenderingContext2D) HasFuncClearRect() bool {
  1688  	return js.True == bindings.HasFuncCanvasRenderingContext2DClearRect(
  1689  		this.ref,
  1690  	)
  1691  }
  1692  
  1693  // FuncClearRect returns the method "CanvasRenderingContext2D.clearRect".
  1694  func (this CanvasRenderingContext2D) FuncClearRect() (fn js.Func[func(x float64, y float64, w float64, h float64)]) {
  1695  	bindings.FuncCanvasRenderingContext2DClearRect(
  1696  		this.ref, js.Pointer(&fn),
  1697  	)
  1698  	return
  1699  }
  1700  
  1701  // ClearRect calls the method "CanvasRenderingContext2D.clearRect".
  1702  func (this CanvasRenderingContext2D) ClearRect(x float64, y float64, w float64, h float64) (ret js.Void) {
  1703  	bindings.CallCanvasRenderingContext2DClearRect(
  1704  		this.ref, js.Pointer(&ret),
  1705  		float64(x),
  1706  		float64(y),
  1707  		float64(w),
  1708  		float64(h),
  1709  	)
  1710  
  1711  	return
  1712  }
  1713  
  1714  // TryClearRect calls the method "CanvasRenderingContext2D.clearRect"
  1715  // in a try/catch block and returns (_, err, ok = false) when it went through
  1716  // the catch clause.
  1717  func (this CanvasRenderingContext2D) TryClearRect(x float64, y float64, w float64, h float64) (ret js.Void, exception js.Any, ok bool) {
  1718  	ok = js.True == bindings.TryCanvasRenderingContext2DClearRect(
  1719  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1720  		float64(x),
  1721  		float64(y),
  1722  		float64(w),
  1723  		float64(h),
  1724  	)
  1725  
  1726  	return
  1727  }
  1728  
  1729  // HasFuncFillRect returns true if the method "CanvasRenderingContext2D.fillRect" exists.
  1730  func (this CanvasRenderingContext2D) HasFuncFillRect() bool {
  1731  	return js.True == bindings.HasFuncCanvasRenderingContext2DFillRect(
  1732  		this.ref,
  1733  	)
  1734  }
  1735  
  1736  // FuncFillRect returns the method "CanvasRenderingContext2D.fillRect".
  1737  func (this CanvasRenderingContext2D) FuncFillRect() (fn js.Func[func(x float64, y float64, w float64, h float64)]) {
  1738  	bindings.FuncCanvasRenderingContext2DFillRect(
  1739  		this.ref, js.Pointer(&fn),
  1740  	)
  1741  	return
  1742  }
  1743  
  1744  // FillRect calls the method "CanvasRenderingContext2D.fillRect".
  1745  func (this CanvasRenderingContext2D) FillRect(x float64, y float64, w float64, h float64) (ret js.Void) {
  1746  	bindings.CallCanvasRenderingContext2DFillRect(
  1747  		this.ref, js.Pointer(&ret),
  1748  		float64(x),
  1749  		float64(y),
  1750  		float64(w),
  1751  		float64(h),
  1752  	)
  1753  
  1754  	return
  1755  }
  1756  
  1757  // TryFillRect calls the method "CanvasRenderingContext2D.fillRect"
  1758  // in a try/catch block and returns (_, err, ok = false) when it went through
  1759  // the catch clause.
  1760  func (this CanvasRenderingContext2D) TryFillRect(x float64, y float64, w float64, h float64) (ret js.Void, exception js.Any, ok bool) {
  1761  	ok = js.True == bindings.TryCanvasRenderingContext2DFillRect(
  1762  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1763  		float64(x),
  1764  		float64(y),
  1765  		float64(w),
  1766  		float64(h),
  1767  	)
  1768  
  1769  	return
  1770  }
  1771  
  1772  // HasFuncStrokeRect returns true if the method "CanvasRenderingContext2D.strokeRect" exists.
  1773  func (this CanvasRenderingContext2D) HasFuncStrokeRect() bool {
  1774  	return js.True == bindings.HasFuncCanvasRenderingContext2DStrokeRect(
  1775  		this.ref,
  1776  	)
  1777  }
  1778  
  1779  // FuncStrokeRect returns the method "CanvasRenderingContext2D.strokeRect".
  1780  func (this CanvasRenderingContext2D) FuncStrokeRect() (fn js.Func[func(x float64, y float64, w float64, h float64)]) {
  1781  	bindings.FuncCanvasRenderingContext2DStrokeRect(
  1782  		this.ref, js.Pointer(&fn),
  1783  	)
  1784  	return
  1785  }
  1786  
  1787  // StrokeRect calls the method "CanvasRenderingContext2D.strokeRect".
  1788  func (this CanvasRenderingContext2D) StrokeRect(x float64, y float64, w float64, h float64) (ret js.Void) {
  1789  	bindings.CallCanvasRenderingContext2DStrokeRect(
  1790  		this.ref, js.Pointer(&ret),
  1791  		float64(x),
  1792  		float64(y),
  1793  		float64(w),
  1794  		float64(h),
  1795  	)
  1796  
  1797  	return
  1798  }
  1799  
  1800  // TryStrokeRect calls the method "CanvasRenderingContext2D.strokeRect"
  1801  // in a try/catch block and returns (_, err, ok = false) when it went through
  1802  // the catch clause.
  1803  func (this CanvasRenderingContext2D) TryStrokeRect(x float64, y float64, w float64, h float64) (ret js.Void, exception js.Any, ok bool) {
  1804  	ok = js.True == bindings.TryCanvasRenderingContext2DStrokeRect(
  1805  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1806  		float64(x),
  1807  		float64(y),
  1808  		float64(w),
  1809  		float64(h),
  1810  	)
  1811  
  1812  	return
  1813  }
  1814  
  1815  // HasFuncBeginPath returns true if the method "CanvasRenderingContext2D.beginPath" exists.
  1816  func (this CanvasRenderingContext2D) HasFuncBeginPath() bool {
  1817  	return js.True == bindings.HasFuncCanvasRenderingContext2DBeginPath(
  1818  		this.ref,
  1819  	)
  1820  }
  1821  
  1822  // FuncBeginPath returns the method "CanvasRenderingContext2D.beginPath".
  1823  func (this CanvasRenderingContext2D) FuncBeginPath() (fn js.Func[func()]) {
  1824  	bindings.FuncCanvasRenderingContext2DBeginPath(
  1825  		this.ref, js.Pointer(&fn),
  1826  	)
  1827  	return
  1828  }
  1829  
  1830  // BeginPath calls the method "CanvasRenderingContext2D.beginPath".
  1831  func (this CanvasRenderingContext2D) BeginPath() (ret js.Void) {
  1832  	bindings.CallCanvasRenderingContext2DBeginPath(
  1833  		this.ref, js.Pointer(&ret),
  1834  	)
  1835  
  1836  	return
  1837  }
  1838  
  1839  // TryBeginPath calls the method "CanvasRenderingContext2D.beginPath"
  1840  // in a try/catch block and returns (_, err, ok = false) when it went through
  1841  // the catch clause.
  1842  func (this CanvasRenderingContext2D) TryBeginPath() (ret js.Void, exception js.Any, ok bool) {
  1843  	ok = js.True == bindings.TryCanvasRenderingContext2DBeginPath(
  1844  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1845  	)
  1846  
  1847  	return
  1848  }
  1849  
  1850  // HasFuncFill returns true if the method "CanvasRenderingContext2D.fill" exists.
  1851  func (this CanvasRenderingContext2D) HasFuncFill() bool {
  1852  	return js.True == bindings.HasFuncCanvasRenderingContext2DFill(
  1853  		this.ref,
  1854  	)
  1855  }
  1856  
  1857  // FuncFill returns the method "CanvasRenderingContext2D.fill".
  1858  func (this CanvasRenderingContext2D) FuncFill() (fn js.Func[func(fillRule CanvasFillRule)]) {
  1859  	bindings.FuncCanvasRenderingContext2DFill(
  1860  		this.ref, js.Pointer(&fn),
  1861  	)
  1862  	return
  1863  }
  1864  
  1865  // Fill calls the method "CanvasRenderingContext2D.fill".
  1866  func (this CanvasRenderingContext2D) Fill(fillRule CanvasFillRule) (ret js.Void) {
  1867  	bindings.CallCanvasRenderingContext2DFill(
  1868  		this.ref, js.Pointer(&ret),
  1869  		uint32(fillRule),
  1870  	)
  1871  
  1872  	return
  1873  }
  1874  
  1875  // TryFill calls the method "CanvasRenderingContext2D.fill"
  1876  // in a try/catch block and returns (_, err, ok = false) when it went through
  1877  // the catch clause.
  1878  func (this CanvasRenderingContext2D) TryFill(fillRule CanvasFillRule) (ret js.Void, exception js.Any, ok bool) {
  1879  	ok = js.True == bindings.TryCanvasRenderingContext2DFill(
  1880  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1881  		uint32(fillRule),
  1882  	)
  1883  
  1884  	return
  1885  }
  1886  
  1887  // HasFuncFill1 returns true if the method "CanvasRenderingContext2D.fill" exists.
  1888  func (this CanvasRenderingContext2D) HasFuncFill1() bool {
  1889  	return js.True == bindings.HasFuncCanvasRenderingContext2DFill1(
  1890  		this.ref,
  1891  	)
  1892  }
  1893  
  1894  // FuncFill1 returns the method "CanvasRenderingContext2D.fill".
  1895  func (this CanvasRenderingContext2D) FuncFill1() (fn js.Func[func()]) {
  1896  	bindings.FuncCanvasRenderingContext2DFill1(
  1897  		this.ref, js.Pointer(&fn),
  1898  	)
  1899  	return
  1900  }
  1901  
  1902  // Fill1 calls the method "CanvasRenderingContext2D.fill".
  1903  func (this CanvasRenderingContext2D) Fill1() (ret js.Void) {
  1904  	bindings.CallCanvasRenderingContext2DFill1(
  1905  		this.ref, js.Pointer(&ret),
  1906  	)
  1907  
  1908  	return
  1909  }
  1910  
  1911  // TryFill1 calls the method "CanvasRenderingContext2D.fill"
  1912  // in a try/catch block and returns (_, err, ok = false) when it went through
  1913  // the catch clause.
  1914  func (this CanvasRenderingContext2D) TryFill1() (ret js.Void, exception js.Any, ok bool) {
  1915  	ok = js.True == bindings.TryCanvasRenderingContext2DFill1(
  1916  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1917  	)
  1918  
  1919  	return
  1920  }
  1921  
  1922  // HasFuncFill2 returns true if the method "CanvasRenderingContext2D.fill" exists.
  1923  func (this CanvasRenderingContext2D) HasFuncFill2() bool {
  1924  	return js.True == bindings.HasFuncCanvasRenderingContext2DFill2(
  1925  		this.ref,
  1926  	)
  1927  }
  1928  
  1929  // FuncFill2 returns the method "CanvasRenderingContext2D.fill".
  1930  func (this CanvasRenderingContext2D) FuncFill2() (fn js.Func[func(path Path2D, fillRule CanvasFillRule)]) {
  1931  	bindings.FuncCanvasRenderingContext2DFill2(
  1932  		this.ref, js.Pointer(&fn),
  1933  	)
  1934  	return
  1935  }
  1936  
  1937  // Fill2 calls the method "CanvasRenderingContext2D.fill".
  1938  func (this CanvasRenderingContext2D) Fill2(path Path2D, fillRule CanvasFillRule) (ret js.Void) {
  1939  	bindings.CallCanvasRenderingContext2DFill2(
  1940  		this.ref, js.Pointer(&ret),
  1941  		path.Ref(),
  1942  		uint32(fillRule),
  1943  	)
  1944  
  1945  	return
  1946  }
  1947  
  1948  // TryFill2 calls the method "CanvasRenderingContext2D.fill"
  1949  // in a try/catch block and returns (_, err, ok = false) when it went through
  1950  // the catch clause.
  1951  func (this CanvasRenderingContext2D) TryFill2(path Path2D, fillRule CanvasFillRule) (ret js.Void, exception js.Any, ok bool) {
  1952  	ok = js.True == bindings.TryCanvasRenderingContext2DFill2(
  1953  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1954  		path.Ref(),
  1955  		uint32(fillRule),
  1956  	)
  1957  
  1958  	return
  1959  }
  1960  
  1961  // HasFuncFill3 returns true if the method "CanvasRenderingContext2D.fill" exists.
  1962  func (this CanvasRenderingContext2D) HasFuncFill3() bool {
  1963  	return js.True == bindings.HasFuncCanvasRenderingContext2DFill3(
  1964  		this.ref,
  1965  	)
  1966  }
  1967  
  1968  // FuncFill3 returns the method "CanvasRenderingContext2D.fill".
  1969  func (this CanvasRenderingContext2D) FuncFill3() (fn js.Func[func(path Path2D)]) {
  1970  	bindings.FuncCanvasRenderingContext2DFill3(
  1971  		this.ref, js.Pointer(&fn),
  1972  	)
  1973  	return
  1974  }
  1975  
  1976  // Fill3 calls the method "CanvasRenderingContext2D.fill".
  1977  func (this CanvasRenderingContext2D) Fill3(path Path2D) (ret js.Void) {
  1978  	bindings.CallCanvasRenderingContext2DFill3(
  1979  		this.ref, js.Pointer(&ret),
  1980  		path.Ref(),
  1981  	)
  1982  
  1983  	return
  1984  }
  1985  
  1986  // TryFill3 calls the method "CanvasRenderingContext2D.fill"
  1987  // in a try/catch block and returns (_, err, ok = false) when it went through
  1988  // the catch clause.
  1989  func (this CanvasRenderingContext2D) TryFill3(path Path2D) (ret js.Void, exception js.Any, ok bool) {
  1990  	ok = js.True == bindings.TryCanvasRenderingContext2DFill3(
  1991  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1992  		path.Ref(),
  1993  	)
  1994  
  1995  	return
  1996  }
  1997  
  1998  // HasFuncStroke returns true if the method "CanvasRenderingContext2D.stroke" exists.
  1999  func (this CanvasRenderingContext2D) HasFuncStroke() bool {
  2000  	return js.True == bindings.HasFuncCanvasRenderingContext2DStroke(
  2001  		this.ref,
  2002  	)
  2003  }
  2004  
  2005  // FuncStroke returns the method "CanvasRenderingContext2D.stroke".
  2006  func (this CanvasRenderingContext2D) FuncStroke() (fn js.Func[func()]) {
  2007  	bindings.FuncCanvasRenderingContext2DStroke(
  2008  		this.ref, js.Pointer(&fn),
  2009  	)
  2010  	return
  2011  }
  2012  
  2013  // Stroke calls the method "CanvasRenderingContext2D.stroke".
  2014  func (this CanvasRenderingContext2D) Stroke() (ret js.Void) {
  2015  	bindings.CallCanvasRenderingContext2DStroke(
  2016  		this.ref, js.Pointer(&ret),
  2017  	)
  2018  
  2019  	return
  2020  }
  2021  
  2022  // TryStroke calls the method "CanvasRenderingContext2D.stroke"
  2023  // in a try/catch block and returns (_, err, ok = false) when it went through
  2024  // the catch clause.
  2025  func (this CanvasRenderingContext2D) TryStroke() (ret js.Void, exception js.Any, ok bool) {
  2026  	ok = js.True == bindings.TryCanvasRenderingContext2DStroke(
  2027  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2028  	)
  2029  
  2030  	return
  2031  }
  2032  
  2033  // HasFuncStroke1 returns true if the method "CanvasRenderingContext2D.stroke" exists.
  2034  func (this CanvasRenderingContext2D) HasFuncStroke1() bool {
  2035  	return js.True == bindings.HasFuncCanvasRenderingContext2DStroke1(
  2036  		this.ref,
  2037  	)
  2038  }
  2039  
  2040  // FuncStroke1 returns the method "CanvasRenderingContext2D.stroke".
  2041  func (this CanvasRenderingContext2D) FuncStroke1() (fn js.Func[func(path Path2D)]) {
  2042  	bindings.FuncCanvasRenderingContext2DStroke1(
  2043  		this.ref, js.Pointer(&fn),
  2044  	)
  2045  	return
  2046  }
  2047  
  2048  // Stroke1 calls the method "CanvasRenderingContext2D.stroke".
  2049  func (this CanvasRenderingContext2D) Stroke1(path Path2D) (ret js.Void) {
  2050  	bindings.CallCanvasRenderingContext2DStroke1(
  2051  		this.ref, js.Pointer(&ret),
  2052  		path.Ref(),
  2053  	)
  2054  
  2055  	return
  2056  }
  2057  
  2058  // TryStroke1 calls the method "CanvasRenderingContext2D.stroke"
  2059  // in a try/catch block and returns (_, err, ok = false) when it went through
  2060  // the catch clause.
  2061  func (this CanvasRenderingContext2D) TryStroke1(path Path2D) (ret js.Void, exception js.Any, ok bool) {
  2062  	ok = js.True == bindings.TryCanvasRenderingContext2DStroke1(
  2063  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2064  		path.Ref(),
  2065  	)
  2066  
  2067  	return
  2068  }
  2069  
  2070  // HasFuncClip returns true if the method "CanvasRenderingContext2D.clip" exists.
  2071  func (this CanvasRenderingContext2D) HasFuncClip() bool {
  2072  	return js.True == bindings.HasFuncCanvasRenderingContext2DClip(
  2073  		this.ref,
  2074  	)
  2075  }
  2076  
  2077  // FuncClip returns the method "CanvasRenderingContext2D.clip".
  2078  func (this CanvasRenderingContext2D) FuncClip() (fn js.Func[func(fillRule CanvasFillRule)]) {
  2079  	bindings.FuncCanvasRenderingContext2DClip(
  2080  		this.ref, js.Pointer(&fn),
  2081  	)
  2082  	return
  2083  }
  2084  
  2085  // Clip calls the method "CanvasRenderingContext2D.clip".
  2086  func (this CanvasRenderingContext2D) Clip(fillRule CanvasFillRule) (ret js.Void) {
  2087  	bindings.CallCanvasRenderingContext2DClip(
  2088  		this.ref, js.Pointer(&ret),
  2089  		uint32(fillRule),
  2090  	)
  2091  
  2092  	return
  2093  }
  2094  
  2095  // TryClip calls the method "CanvasRenderingContext2D.clip"
  2096  // in a try/catch block and returns (_, err, ok = false) when it went through
  2097  // the catch clause.
  2098  func (this CanvasRenderingContext2D) TryClip(fillRule CanvasFillRule) (ret js.Void, exception js.Any, ok bool) {
  2099  	ok = js.True == bindings.TryCanvasRenderingContext2DClip(
  2100  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2101  		uint32(fillRule),
  2102  	)
  2103  
  2104  	return
  2105  }
  2106  
  2107  // HasFuncClip1 returns true if the method "CanvasRenderingContext2D.clip" exists.
  2108  func (this CanvasRenderingContext2D) HasFuncClip1() bool {
  2109  	return js.True == bindings.HasFuncCanvasRenderingContext2DClip1(
  2110  		this.ref,
  2111  	)
  2112  }
  2113  
  2114  // FuncClip1 returns the method "CanvasRenderingContext2D.clip".
  2115  func (this CanvasRenderingContext2D) FuncClip1() (fn js.Func[func()]) {
  2116  	bindings.FuncCanvasRenderingContext2DClip1(
  2117  		this.ref, js.Pointer(&fn),
  2118  	)
  2119  	return
  2120  }
  2121  
  2122  // Clip1 calls the method "CanvasRenderingContext2D.clip".
  2123  func (this CanvasRenderingContext2D) Clip1() (ret js.Void) {
  2124  	bindings.CallCanvasRenderingContext2DClip1(
  2125  		this.ref, js.Pointer(&ret),
  2126  	)
  2127  
  2128  	return
  2129  }
  2130  
  2131  // TryClip1 calls the method "CanvasRenderingContext2D.clip"
  2132  // in a try/catch block and returns (_, err, ok = false) when it went through
  2133  // the catch clause.
  2134  func (this CanvasRenderingContext2D) TryClip1() (ret js.Void, exception js.Any, ok bool) {
  2135  	ok = js.True == bindings.TryCanvasRenderingContext2DClip1(
  2136  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2137  	)
  2138  
  2139  	return
  2140  }
  2141  
  2142  // HasFuncClip2 returns true if the method "CanvasRenderingContext2D.clip" exists.
  2143  func (this CanvasRenderingContext2D) HasFuncClip2() bool {
  2144  	return js.True == bindings.HasFuncCanvasRenderingContext2DClip2(
  2145  		this.ref,
  2146  	)
  2147  }
  2148  
  2149  // FuncClip2 returns the method "CanvasRenderingContext2D.clip".
  2150  func (this CanvasRenderingContext2D) FuncClip2() (fn js.Func[func(path Path2D, fillRule CanvasFillRule)]) {
  2151  	bindings.FuncCanvasRenderingContext2DClip2(
  2152  		this.ref, js.Pointer(&fn),
  2153  	)
  2154  	return
  2155  }
  2156  
  2157  // Clip2 calls the method "CanvasRenderingContext2D.clip".
  2158  func (this CanvasRenderingContext2D) Clip2(path Path2D, fillRule CanvasFillRule) (ret js.Void) {
  2159  	bindings.CallCanvasRenderingContext2DClip2(
  2160  		this.ref, js.Pointer(&ret),
  2161  		path.Ref(),
  2162  		uint32(fillRule),
  2163  	)
  2164  
  2165  	return
  2166  }
  2167  
  2168  // TryClip2 calls the method "CanvasRenderingContext2D.clip"
  2169  // in a try/catch block and returns (_, err, ok = false) when it went through
  2170  // the catch clause.
  2171  func (this CanvasRenderingContext2D) TryClip2(path Path2D, fillRule CanvasFillRule) (ret js.Void, exception js.Any, ok bool) {
  2172  	ok = js.True == bindings.TryCanvasRenderingContext2DClip2(
  2173  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2174  		path.Ref(),
  2175  		uint32(fillRule),
  2176  	)
  2177  
  2178  	return
  2179  }
  2180  
  2181  // HasFuncClip3 returns true if the method "CanvasRenderingContext2D.clip" exists.
  2182  func (this CanvasRenderingContext2D) HasFuncClip3() bool {
  2183  	return js.True == bindings.HasFuncCanvasRenderingContext2DClip3(
  2184  		this.ref,
  2185  	)
  2186  }
  2187  
  2188  // FuncClip3 returns the method "CanvasRenderingContext2D.clip".
  2189  func (this CanvasRenderingContext2D) FuncClip3() (fn js.Func[func(path Path2D)]) {
  2190  	bindings.FuncCanvasRenderingContext2DClip3(
  2191  		this.ref, js.Pointer(&fn),
  2192  	)
  2193  	return
  2194  }
  2195  
  2196  // Clip3 calls the method "CanvasRenderingContext2D.clip".
  2197  func (this CanvasRenderingContext2D) Clip3(path Path2D) (ret js.Void) {
  2198  	bindings.CallCanvasRenderingContext2DClip3(
  2199  		this.ref, js.Pointer(&ret),
  2200  		path.Ref(),
  2201  	)
  2202  
  2203  	return
  2204  }
  2205  
  2206  // TryClip3 calls the method "CanvasRenderingContext2D.clip"
  2207  // in a try/catch block and returns (_, err, ok = false) when it went through
  2208  // the catch clause.
  2209  func (this CanvasRenderingContext2D) TryClip3(path Path2D) (ret js.Void, exception js.Any, ok bool) {
  2210  	ok = js.True == bindings.TryCanvasRenderingContext2DClip3(
  2211  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2212  		path.Ref(),
  2213  	)
  2214  
  2215  	return
  2216  }
  2217  
  2218  // HasFuncIsPointInPath returns true if the method "CanvasRenderingContext2D.isPointInPath" exists.
  2219  func (this CanvasRenderingContext2D) HasFuncIsPointInPath() bool {
  2220  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsPointInPath(
  2221  		this.ref,
  2222  	)
  2223  }
  2224  
  2225  // FuncIsPointInPath returns the method "CanvasRenderingContext2D.isPointInPath".
  2226  func (this CanvasRenderingContext2D) FuncIsPointInPath() (fn js.Func[func(x float64, y float64, fillRule CanvasFillRule) bool]) {
  2227  	bindings.FuncCanvasRenderingContext2DIsPointInPath(
  2228  		this.ref, js.Pointer(&fn),
  2229  	)
  2230  	return
  2231  }
  2232  
  2233  // IsPointInPath calls the method "CanvasRenderingContext2D.isPointInPath".
  2234  func (this CanvasRenderingContext2D) IsPointInPath(x float64, y float64, fillRule CanvasFillRule) (ret bool) {
  2235  	bindings.CallCanvasRenderingContext2DIsPointInPath(
  2236  		this.ref, js.Pointer(&ret),
  2237  		float64(x),
  2238  		float64(y),
  2239  		uint32(fillRule),
  2240  	)
  2241  
  2242  	return
  2243  }
  2244  
  2245  // TryIsPointInPath calls the method "CanvasRenderingContext2D.isPointInPath"
  2246  // in a try/catch block and returns (_, err, ok = false) when it went through
  2247  // the catch clause.
  2248  func (this CanvasRenderingContext2D) TryIsPointInPath(x float64, y float64, fillRule CanvasFillRule) (ret bool, exception js.Any, ok bool) {
  2249  	ok = js.True == bindings.TryCanvasRenderingContext2DIsPointInPath(
  2250  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2251  		float64(x),
  2252  		float64(y),
  2253  		uint32(fillRule),
  2254  	)
  2255  
  2256  	return
  2257  }
  2258  
  2259  // HasFuncIsPointInPath1 returns true if the method "CanvasRenderingContext2D.isPointInPath" exists.
  2260  func (this CanvasRenderingContext2D) HasFuncIsPointInPath1() bool {
  2261  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsPointInPath1(
  2262  		this.ref,
  2263  	)
  2264  }
  2265  
  2266  // FuncIsPointInPath1 returns the method "CanvasRenderingContext2D.isPointInPath".
  2267  func (this CanvasRenderingContext2D) FuncIsPointInPath1() (fn js.Func[func(x float64, y float64) bool]) {
  2268  	bindings.FuncCanvasRenderingContext2DIsPointInPath1(
  2269  		this.ref, js.Pointer(&fn),
  2270  	)
  2271  	return
  2272  }
  2273  
  2274  // IsPointInPath1 calls the method "CanvasRenderingContext2D.isPointInPath".
  2275  func (this CanvasRenderingContext2D) IsPointInPath1(x float64, y float64) (ret bool) {
  2276  	bindings.CallCanvasRenderingContext2DIsPointInPath1(
  2277  		this.ref, js.Pointer(&ret),
  2278  		float64(x),
  2279  		float64(y),
  2280  	)
  2281  
  2282  	return
  2283  }
  2284  
  2285  // TryIsPointInPath1 calls the method "CanvasRenderingContext2D.isPointInPath"
  2286  // in a try/catch block and returns (_, err, ok = false) when it went through
  2287  // the catch clause.
  2288  func (this CanvasRenderingContext2D) TryIsPointInPath1(x float64, y float64) (ret bool, exception js.Any, ok bool) {
  2289  	ok = js.True == bindings.TryCanvasRenderingContext2DIsPointInPath1(
  2290  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2291  		float64(x),
  2292  		float64(y),
  2293  	)
  2294  
  2295  	return
  2296  }
  2297  
  2298  // HasFuncIsPointInPath2 returns true if the method "CanvasRenderingContext2D.isPointInPath" exists.
  2299  func (this CanvasRenderingContext2D) HasFuncIsPointInPath2() bool {
  2300  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsPointInPath2(
  2301  		this.ref,
  2302  	)
  2303  }
  2304  
  2305  // FuncIsPointInPath2 returns the method "CanvasRenderingContext2D.isPointInPath".
  2306  func (this CanvasRenderingContext2D) FuncIsPointInPath2() (fn js.Func[func(path Path2D, x float64, y float64, fillRule CanvasFillRule) bool]) {
  2307  	bindings.FuncCanvasRenderingContext2DIsPointInPath2(
  2308  		this.ref, js.Pointer(&fn),
  2309  	)
  2310  	return
  2311  }
  2312  
  2313  // IsPointInPath2 calls the method "CanvasRenderingContext2D.isPointInPath".
  2314  func (this CanvasRenderingContext2D) IsPointInPath2(path Path2D, x float64, y float64, fillRule CanvasFillRule) (ret bool) {
  2315  	bindings.CallCanvasRenderingContext2DIsPointInPath2(
  2316  		this.ref, js.Pointer(&ret),
  2317  		path.Ref(),
  2318  		float64(x),
  2319  		float64(y),
  2320  		uint32(fillRule),
  2321  	)
  2322  
  2323  	return
  2324  }
  2325  
  2326  // TryIsPointInPath2 calls the method "CanvasRenderingContext2D.isPointInPath"
  2327  // in a try/catch block and returns (_, err, ok = false) when it went through
  2328  // the catch clause.
  2329  func (this CanvasRenderingContext2D) TryIsPointInPath2(path Path2D, x float64, y float64, fillRule CanvasFillRule) (ret bool, exception js.Any, ok bool) {
  2330  	ok = js.True == bindings.TryCanvasRenderingContext2DIsPointInPath2(
  2331  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2332  		path.Ref(),
  2333  		float64(x),
  2334  		float64(y),
  2335  		uint32(fillRule),
  2336  	)
  2337  
  2338  	return
  2339  }
  2340  
  2341  // HasFuncIsPointInPath3 returns true if the method "CanvasRenderingContext2D.isPointInPath" exists.
  2342  func (this CanvasRenderingContext2D) HasFuncIsPointInPath3() bool {
  2343  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsPointInPath3(
  2344  		this.ref,
  2345  	)
  2346  }
  2347  
  2348  // FuncIsPointInPath3 returns the method "CanvasRenderingContext2D.isPointInPath".
  2349  func (this CanvasRenderingContext2D) FuncIsPointInPath3() (fn js.Func[func(path Path2D, x float64, y float64) bool]) {
  2350  	bindings.FuncCanvasRenderingContext2DIsPointInPath3(
  2351  		this.ref, js.Pointer(&fn),
  2352  	)
  2353  	return
  2354  }
  2355  
  2356  // IsPointInPath3 calls the method "CanvasRenderingContext2D.isPointInPath".
  2357  func (this CanvasRenderingContext2D) IsPointInPath3(path Path2D, x float64, y float64) (ret bool) {
  2358  	bindings.CallCanvasRenderingContext2DIsPointInPath3(
  2359  		this.ref, js.Pointer(&ret),
  2360  		path.Ref(),
  2361  		float64(x),
  2362  		float64(y),
  2363  	)
  2364  
  2365  	return
  2366  }
  2367  
  2368  // TryIsPointInPath3 calls the method "CanvasRenderingContext2D.isPointInPath"
  2369  // in a try/catch block and returns (_, err, ok = false) when it went through
  2370  // the catch clause.
  2371  func (this CanvasRenderingContext2D) TryIsPointInPath3(path Path2D, x float64, y float64) (ret bool, exception js.Any, ok bool) {
  2372  	ok = js.True == bindings.TryCanvasRenderingContext2DIsPointInPath3(
  2373  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2374  		path.Ref(),
  2375  		float64(x),
  2376  		float64(y),
  2377  	)
  2378  
  2379  	return
  2380  }
  2381  
  2382  // HasFuncIsPointInStroke returns true if the method "CanvasRenderingContext2D.isPointInStroke" exists.
  2383  func (this CanvasRenderingContext2D) HasFuncIsPointInStroke() bool {
  2384  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsPointInStroke(
  2385  		this.ref,
  2386  	)
  2387  }
  2388  
  2389  // FuncIsPointInStroke returns the method "CanvasRenderingContext2D.isPointInStroke".
  2390  func (this CanvasRenderingContext2D) FuncIsPointInStroke() (fn js.Func[func(x float64, y float64) bool]) {
  2391  	bindings.FuncCanvasRenderingContext2DIsPointInStroke(
  2392  		this.ref, js.Pointer(&fn),
  2393  	)
  2394  	return
  2395  }
  2396  
  2397  // IsPointInStroke calls the method "CanvasRenderingContext2D.isPointInStroke".
  2398  func (this CanvasRenderingContext2D) IsPointInStroke(x float64, y float64) (ret bool) {
  2399  	bindings.CallCanvasRenderingContext2DIsPointInStroke(
  2400  		this.ref, js.Pointer(&ret),
  2401  		float64(x),
  2402  		float64(y),
  2403  	)
  2404  
  2405  	return
  2406  }
  2407  
  2408  // TryIsPointInStroke calls the method "CanvasRenderingContext2D.isPointInStroke"
  2409  // in a try/catch block and returns (_, err, ok = false) when it went through
  2410  // the catch clause.
  2411  func (this CanvasRenderingContext2D) TryIsPointInStroke(x float64, y float64) (ret bool, exception js.Any, ok bool) {
  2412  	ok = js.True == bindings.TryCanvasRenderingContext2DIsPointInStroke(
  2413  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2414  		float64(x),
  2415  		float64(y),
  2416  	)
  2417  
  2418  	return
  2419  }
  2420  
  2421  // HasFuncIsPointInStroke1 returns true if the method "CanvasRenderingContext2D.isPointInStroke" exists.
  2422  func (this CanvasRenderingContext2D) HasFuncIsPointInStroke1() bool {
  2423  	return js.True == bindings.HasFuncCanvasRenderingContext2DIsPointInStroke1(
  2424  		this.ref,
  2425  	)
  2426  }
  2427  
  2428  // FuncIsPointInStroke1 returns the method "CanvasRenderingContext2D.isPointInStroke".
  2429  func (this CanvasRenderingContext2D) FuncIsPointInStroke1() (fn js.Func[func(path Path2D, x float64, y float64) bool]) {
  2430  	bindings.FuncCanvasRenderingContext2DIsPointInStroke1(
  2431  		this.ref, js.Pointer(&fn),
  2432  	)
  2433  	return
  2434  }
  2435  
  2436  // IsPointInStroke1 calls the method "CanvasRenderingContext2D.isPointInStroke".
  2437  func (this CanvasRenderingContext2D) IsPointInStroke1(path Path2D, x float64, y float64) (ret bool) {
  2438  	bindings.CallCanvasRenderingContext2DIsPointInStroke1(
  2439  		this.ref, js.Pointer(&ret),
  2440  		path.Ref(),
  2441  		float64(x),
  2442  		float64(y),
  2443  	)
  2444  
  2445  	return
  2446  }
  2447  
  2448  // TryIsPointInStroke1 calls the method "CanvasRenderingContext2D.isPointInStroke"
  2449  // in a try/catch block and returns (_, err, ok = false) when it went through
  2450  // the catch clause.
  2451  func (this CanvasRenderingContext2D) TryIsPointInStroke1(path Path2D, x float64, y float64) (ret bool, exception js.Any, ok bool) {
  2452  	ok = js.True == bindings.TryCanvasRenderingContext2DIsPointInStroke1(
  2453  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2454  		path.Ref(),
  2455  		float64(x),
  2456  		float64(y),
  2457  	)
  2458  
  2459  	return
  2460  }
  2461  
  2462  // HasFuncDrawFocusIfNeeded returns true if the method "CanvasRenderingContext2D.drawFocusIfNeeded" exists.
  2463  func (this CanvasRenderingContext2D) HasFuncDrawFocusIfNeeded() bool {
  2464  	return js.True == bindings.HasFuncCanvasRenderingContext2DDrawFocusIfNeeded(
  2465  		this.ref,
  2466  	)
  2467  }
  2468  
  2469  // FuncDrawFocusIfNeeded returns the method "CanvasRenderingContext2D.drawFocusIfNeeded".
  2470  func (this CanvasRenderingContext2D) FuncDrawFocusIfNeeded() (fn js.Func[func(element Element)]) {
  2471  	bindings.FuncCanvasRenderingContext2DDrawFocusIfNeeded(
  2472  		this.ref, js.Pointer(&fn),
  2473  	)
  2474  	return
  2475  }
  2476  
  2477  // DrawFocusIfNeeded calls the method "CanvasRenderingContext2D.drawFocusIfNeeded".
  2478  func (this CanvasRenderingContext2D) DrawFocusIfNeeded(element Element) (ret js.Void) {
  2479  	bindings.CallCanvasRenderingContext2DDrawFocusIfNeeded(
  2480  		this.ref, js.Pointer(&ret),
  2481  		element.Ref(),
  2482  	)
  2483  
  2484  	return
  2485  }
  2486  
  2487  // TryDrawFocusIfNeeded calls the method "CanvasRenderingContext2D.drawFocusIfNeeded"
  2488  // in a try/catch block and returns (_, err, ok = false) when it went through
  2489  // the catch clause.
  2490  func (this CanvasRenderingContext2D) TryDrawFocusIfNeeded(element Element) (ret js.Void, exception js.Any, ok bool) {
  2491  	ok = js.True == bindings.TryCanvasRenderingContext2DDrawFocusIfNeeded(
  2492  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2493  		element.Ref(),
  2494  	)
  2495  
  2496  	return
  2497  }
  2498  
  2499  // HasFuncDrawFocusIfNeeded1 returns true if the method "CanvasRenderingContext2D.drawFocusIfNeeded" exists.
  2500  func (this CanvasRenderingContext2D) HasFuncDrawFocusIfNeeded1() bool {
  2501  	return js.True == bindings.HasFuncCanvasRenderingContext2DDrawFocusIfNeeded1(
  2502  		this.ref,
  2503  	)
  2504  }
  2505  
  2506  // FuncDrawFocusIfNeeded1 returns the method "CanvasRenderingContext2D.drawFocusIfNeeded".
  2507  func (this CanvasRenderingContext2D) FuncDrawFocusIfNeeded1() (fn js.Func[func(path Path2D, element Element)]) {
  2508  	bindings.FuncCanvasRenderingContext2DDrawFocusIfNeeded1(
  2509  		this.ref, js.Pointer(&fn),
  2510  	)
  2511  	return
  2512  }
  2513  
  2514  // DrawFocusIfNeeded1 calls the method "CanvasRenderingContext2D.drawFocusIfNeeded".
  2515  func (this CanvasRenderingContext2D) DrawFocusIfNeeded1(path Path2D, element Element) (ret js.Void) {
  2516  	bindings.CallCanvasRenderingContext2DDrawFocusIfNeeded1(
  2517  		this.ref, js.Pointer(&ret),
  2518  		path.Ref(),
  2519  		element.Ref(),
  2520  	)
  2521  
  2522  	return
  2523  }
  2524  
  2525  // TryDrawFocusIfNeeded1 calls the method "CanvasRenderingContext2D.drawFocusIfNeeded"
  2526  // in a try/catch block and returns (_, err, ok = false) when it went through
  2527  // the catch clause.
  2528  func (this CanvasRenderingContext2D) TryDrawFocusIfNeeded1(path Path2D, element Element) (ret js.Void, exception js.Any, ok bool) {
  2529  	ok = js.True == bindings.TryCanvasRenderingContext2DDrawFocusIfNeeded1(
  2530  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2531  		path.Ref(),
  2532  		element.Ref(),
  2533  	)
  2534  
  2535  	return
  2536  }
  2537  
  2538  // HasFuncScrollPathIntoView returns true if the method "CanvasRenderingContext2D.scrollPathIntoView" exists.
  2539  func (this CanvasRenderingContext2D) HasFuncScrollPathIntoView() bool {
  2540  	return js.True == bindings.HasFuncCanvasRenderingContext2DScrollPathIntoView(
  2541  		this.ref,
  2542  	)
  2543  }
  2544  
  2545  // FuncScrollPathIntoView returns the method "CanvasRenderingContext2D.scrollPathIntoView".
  2546  func (this CanvasRenderingContext2D) FuncScrollPathIntoView() (fn js.Func[func()]) {
  2547  	bindings.FuncCanvasRenderingContext2DScrollPathIntoView(
  2548  		this.ref, js.Pointer(&fn),
  2549  	)
  2550  	return
  2551  }
  2552  
  2553  // ScrollPathIntoView calls the method "CanvasRenderingContext2D.scrollPathIntoView".
  2554  func (this CanvasRenderingContext2D) ScrollPathIntoView() (ret js.Void) {
  2555  	bindings.CallCanvasRenderingContext2DScrollPathIntoView(
  2556  		this.ref, js.Pointer(&ret),
  2557  	)
  2558  
  2559  	return
  2560  }
  2561  
  2562  // TryScrollPathIntoView calls the method "CanvasRenderingContext2D.scrollPathIntoView"
  2563  // in a try/catch block and returns (_, err, ok = false) when it went through
  2564  // the catch clause.
  2565  func (this CanvasRenderingContext2D) TryScrollPathIntoView() (ret js.Void, exception js.Any, ok bool) {
  2566  	ok = js.True == bindings.TryCanvasRenderingContext2DScrollPathIntoView(
  2567  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2568  	)
  2569  
  2570  	return
  2571  }
  2572  
  2573  // HasFuncScrollPathIntoView1 returns true if the method "CanvasRenderingContext2D.scrollPathIntoView" exists.
  2574  func (this CanvasRenderingContext2D) HasFuncScrollPathIntoView1() bool {
  2575  	return js.True == bindings.HasFuncCanvasRenderingContext2DScrollPathIntoView1(
  2576  		this.ref,
  2577  	)
  2578  }
  2579  
  2580  // FuncScrollPathIntoView1 returns the method "CanvasRenderingContext2D.scrollPathIntoView".
  2581  func (this CanvasRenderingContext2D) FuncScrollPathIntoView1() (fn js.Func[func(path Path2D)]) {
  2582  	bindings.FuncCanvasRenderingContext2DScrollPathIntoView1(
  2583  		this.ref, js.Pointer(&fn),
  2584  	)
  2585  	return
  2586  }
  2587  
  2588  // ScrollPathIntoView1 calls the method "CanvasRenderingContext2D.scrollPathIntoView".
  2589  func (this CanvasRenderingContext2D) ScrollPathIntoView1(path Path2D) (ret js.Void) {
  2590  	bindings.CallCanvasRenderingContext2DScrollPathIntoView1(
  2591  		this.ref, js.Pointer(&ret),
  2592  		path.Ref(),
  2593  	)
  2594  
  2595  	return
  2596  }
  2597  
  2598  // TryScrollPathIntoView1 calls the method "CanvasRenderingContext2D.scrollPathIntoView"
  2599  // in a try/catch block and returns (_, err, ok = false) when it went through
  2600  // the catch clause.
  2601  func (this CanvasRenderingContext2D) TryScrollPathIntoView1(path Path2D) (ret js.Void, exception js.Any, ok bool) {
  2602  	ok = js.True == bindings.TryCanvasRenderingContext2DScrollPathIntoView1(
  2603  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2604  		path.Ref(),
  2605  	)
  2606  
  2607  	return
  2608  }
  2609  
  2610  // HasFuncFillText returns true if the method "CanvasRenderingContext2D.fillText" exists.
  2611  func (this CanvasRenderingContext2D) HasFuncFillText() bool {
  2612  	return js.True == bindings.HasFuncCanvasRenderingContext2DFillText(
  2613  		this.ref,
  2614  	)
  2615  }
  2616  
  2617  // FuncFillText returns the method "CanvasRenderingContext2D.fillText".
  2618  func (this CanvasRenderingContext2D) FuncFillText() (fn js.Func[func(text js.String, x float64, y float64, maxWidth float64)]) {
  2619  	bindings.FuncCanvasRenderingContext2DFillText(
  2620  		this.ref, js.Pointer(&fn),
  2621  	)
  2622  	return
  2623  }
  2624  
  2625  // FillText calls the method "CanvasRenderingContext2D.fillText".
  2626  func (this CanvasRenderingContext2D) FillText(text js.String, x float64, y float64, maxWidth float64) (ret js.Void) {
  2627  	bindings.CallCanvasRenderingContext2DFillText(
  2628  		this.ref, js.Pointer(&ret),
  2629  		text.Ref(),
  2630  		float64(x),
  2631  		float64(y),
  2632  		float64(maxWidth),
  2633  	)
  2634  
  2635  	return
  2636  }
  2637  
  2638  // TryFillText calls the method "CanvasRenderingContext2D.fillText"
  2639  // in a try/catch block and returns (_, err, ok = false) when it went through
  2640  // the catch clause.
  2641  func (this CanvasRenderingContext2D) TryFillText(text js.String, x float64, y float64, maxWidth float64) (ret js.Void, exception js.Any, ok bool) {
  2642  	ok = js.True == bindings.TryCanvasRenderingContext2DFillText(
  2643  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2644  		text.Ref(),
  2645  		float64(x),
  2646  		float64(y),
  2647  		float64(maxWidth),
  2648  	)
  2649  
  2650  	return
  2651  }
  2652  
  2653  // HasFuncFillText1 returns true if the method "CanvasRenderingContext2D.fillText" exists.
  2654  func (this CanvasRenderingContext2D) HasFuncFillText1() bool {
  2655  	return js.True == bindings.HasFuncCanvasRenderingContext2DFillText1(
  2656  		this.ref,
  2657  	)
  2658  }
  2659  
  2660  // FuncFillText1 returns the method "CanvasRenderingContext2D.fillText".
  2661  func (this CanvasRenderingContext2D) FuncFillText1() (fn js.Func[func(text js.String, x float64, y float64)]) {
  2662  	bindings.FuncCanvasRenderingContext2DFillText1(
  2663  		this.ref, js.Pointer(&fn),
  2664  	)
  2665  	return
  2666  }
  2667  
  2668  // FillText1 calls the method "CanvasRenderingContext2D.fillText".
  2669  func (this CanvasRenderingContext2D) FillText1(text js.String, x float64, y float64) (ret js.Void) {
  2670  	bindings.CallCanvasRenderingContext2DFillText1(
  2671  		this.ref, js.Pointer(&ret),
  2672  		text.Ref(),
  2673  		float64(x),
  2674  		float64(y),
  2675  	)
  2676  
  2677  	return
  2678  }
  2679  
  2680  // TryFillText1 calls the method "CanvasRenderingContext2D.fillText"
  2681  // in a try/catch block and returns (_, err, ok = false) when it went through
  2682  // the catch clause.
  2683  func (this CanvasRenderingContext2D) TryFillText1(text js.String, x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  2684  	ok = js.True == bindings.TryCanvasRenderingContext2DFillText1(
  2685  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2686  		text.Ref(),
  2687  		float64(x),
  2688  		float64(y),
  2689  	)
  2690  
  2691  	return
  2692  }
  2693  
  2694  // HasFuncStrokeText returns true if the method "CanvasRenderingContext2D.strokeText" exists.
  2695  func (this CanvasRenderingContext2D) HasFuncStrokeText() bool {
  2696  	return js.True == bindings.HasFuncCanvasRenderingContext2DStrokeText(
  2697  		this.ref,
  2698  	)
  2699  }
  2700  
  2701  // FuncStrokeText returns the method "CanvasRenderingContext2D.strokeText".
  2702  func (this CanvasRenderingContext2D) FuncStrokeText() (fn js.Func[func(text js.String, x float64, y float64, maxWidth float64)]) {
  2703  	bindings.FuncCanvasRenderingContext2DStrokeText(
  2704  		this.ref, js.Pointer(&fn),
  2705  	)
  2706  	return
  2707  }
  2708  
  2709  // StrokeText calls the method "CanvasRenderingContext2D.strokeText".
  2710  func (this CanvasRenderingContext2D) StrokeText(text js.String, x float64, y float64, maxWidth float64) (ret js.Void) {
  2711  	bindings.CallCanvasRenderingContext2DStrokeText(
  2712  		this.ref, js.Pointer(&ret),
  2713  		text.Ref(),
  2714  		float64(x),
  2715  		float64(y),
  2716  		float64(maxWidth),
  2717  	)
  2718  
  2719  	return
  2720  }
  2721  
  2722  // TryStrokeText calls the method "CanvasRenderingContext2D.strokeText"
  2723  // in a try/catch block and returns (_, err, ok = false) when it went through
  2724  // the catch clause.
  2725  func (this CanvasRenderingContext2D) TryStrokeText(text js.String, x float64, y float64, maxWidth float64) (ret js.Void, exception js.Any, ok bool) {
  2726  	ok = js.True == bindings.TryCanvasRenderingContext2DStrokeText(
  2727  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2728  		text.Ref(),
  2729  		float64(x),
  2730  		float64(y),
  2731  		float64(maxWidth),
  2732  	)
  2733  
  2734  	return
  2735  }
  2736  
  2737  // HasFuncStrokeText1 returns true if the method "CanvasRenderingContext2D.strokeText" exists.
  2738  func (this CanvasRenderingContext2D) HasFuncStrokeText1() bool {
  2739  	return js.True == bindings.HasFuncCanvasRenderingContext2DStrokeText1(
  2740  		this.ref,
  2741  	)
  2742  }
  2743  
  2744  // FuncStrokeText1 returns the method "CanvasRenderingContext2D.strokeText".
  2745  func (this CanvasRenderingContext2D) FuncStrokeText1() (fn js.Func[func(text js.String, x float64, y float64)]) {
  2746  	bindings.FuncCanvasRenderingContext2DStrokeText1(
  2747  		this.ref, js.Pointer(&fn),
  2748  	)
  2749  	return
  2750  }
  2751  
  2752  // StrokeText1 calls the method "CanvasRenderingContext2D.strokeText".
  2753  func (this CanvasRenderingContext2D) StrokeText1(text js.String, x float64, y float64) (ret js.Void) {
  2754  	bindings.CallCanvasRenderingContext2DStrokeText1(
  2755  		this.ref, js.Pointer(&ret),
  2756  		text.Ref(),
  2757  		float64(x),
  2758  		float64(y),
  2759  	)
  2760  
  2761  	return
  2762  }
  2763  
  2764  // TryStrokeText1 calls the method "CanvasRenderingContext2D.strokeText"
  2765  // in a try/catch block and returns (_, err, ok = false) when it went through
  2766  // the catch clause.
  2767  func (this CanvasRenderingContext2D) TryStrokeText1(text js.String, x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  2768  	ok = js.True == bindings.TryCanvasRenderingContext2DStrokeText1(
  2769  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2770  		text.Ref(),
  2771  		float64(x),
  2772  		float64(y),
  2773  	)
  2774  
  2775  	return
  2776  }
  2777  
  2778  // HasFuncMeasureText returns true if the method "CanvasRenderingContext2D.measureText" exists.
  2779  func (this CanvasRenderingContext2D) HasFuncMeasureText() bool {
  2780  	return js.True == bindings.HasFuncCanvasRenderingContext2DMeasureText(
  2781  		this.ref,
  2782  	)
  2783  }
  2784  
  2785  // FuncMeasureText returns the method "CanvasRenderingContext2D.measureText".
  2786  func (this CanvasRenderingContext2D) FuncMeasureText() (fn js.Func[func(text js.String) TextMetrics]) {
  2787  	bindings.FuncCanvasRenderingContext2DMeasureText(
  2788  		this.ref, js.Pointer(&fn),
  2789  	)
  2790  	return
  2791  }
  2792  
  2793  // MeasureText calls the method "CanvasRenderingContext2D.measureText".
  2794  func (this CanvasRenderingContext2D) MeasureText(text js.String) (ret TextMetrics) {
  2795  	bindings.CallCanvasRenderingContext2DMeasureText(
  2796  		this.ref, js.Pointer(&ret),
  2797  		text.Ref(),
  2798  	)
  2799  
  2800  	return
  2801  }
  2802  
  2803  // TryMeasureText calls the method "CanvasRenderingContext2D.measureText"
  2804  // in a try/catch block and returns (_, err, ok = false) when it went through
  2805  // the catch clause.
  2806  func (this CanvasRenderingContext2D) TryMeasureText(text js.String) (ret TextMetrics, exception js.Any, ok bool) {
  2807  	ok = js.True == bindings.TryCanvasRenderingContext2DMeasureText(
  2808  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2809  		text.Ref(),
  2810  	)
  2811  
  2812  	return
  2813  }
  2814  
  2815  // HasFuncDrawImage returns true if the method "CanvasRenderingContext2D.drawImage" exists.
  2816  func (this CanvasRenderingContext2D) HasFuncDrawImage() bool {
  2817  	return js.True == bindings.HasFuncCanvasRenderingContext2DDrawImage(
  2818  		this.ref,
  2819  	)
  2820  }
  2821  
  2822  // FuncDrawImage returns the method "CanvasRenderingContext2D.drawImage".
  2823  func (this CanvasRenderingContext2D) FuncDrawImage() (fn js.Func[func(image CanvasImageSource, dx float64, dy float64)]) {
  2824  	bindings.FuncCanvasRenderingContext2DDrawImage(
  2825  		this.ref, js.Pointer(&fn),
  2826  	)
  2827  	return
  2828  }
  2829  
  2830  // DrawImage calls the method "CanvasRenderingContext2D.drawImage".
  2831  func (this CanvasRenderingContext2D) DrawImage(image CanvasImageSource, dx float64, dy float64) (ret js.Void) {
  2832  	bindings.CallCanvasRenderingContext2DDrawImage(
  2833  		this.ref, js.Pointer(&ret),
  2834  		image.Ref(),
  2835  		float64(dx),
  2836  		float64(dy),
  2837  	)
  2838  
  2839  	return
  2840  }
  2841  
  2842  // TryDrawImage calls the method "CanvasRenderingContext2D.drawImage"
  2843  // in a try/catch block and returns (_, err, ok = false) when it went through
  2844  // the catch clause.
  2845  func (this CanvasRenderingContext2D) TryDrawImage(image CanvasImageSource, dx float64, dy float64) (ret js.Void, exception js.Any, ok bool) {
  2846  	ok = js.True == bindings.TryCanvasRenderingContext2DDrawImage(
  2847  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2848  		image.Ref(),
  2849  		float64(dx),
  2850  		float64(dy),
  2851  	)
  2852  
  2853  	return
  2854  }
  2855  
  2856  // HasFuncDrawImage1 returns true if the method "CanvasRenderingContext2D.drawImage" exists.
  2857  func (this CanvasRenderingContext2D) HasFuncDrawImage1() bool {
  2858  	return js.True == bindings.HasFuncCanvasRenderingContext2DDrawImage1(
  2859  		this.ref,
  2860  	)
  2861  }
  2862  
  2863  // FuncDrawImage1 returns the method "CanvasRenderingContext2D.drawImage".
  2864  func (this CanvasRenderingContext2D) FuncDrawImage1() (fn js.Func[func(image CanvasImageSource, dx float64, dy float64, dw float64, dh float64)]) {
  2865  	bindings.FuncCanvasRenderingContext2DDrawImage1(
  2866  		this.ref, js.Pointer(&fn),
  2867  	)
  2868  	return
  2869  }
  2870  
  2871  // DrawImage1 calls the method "CanvasRenderingContext2D.drawImage".
  2872  func (this CanvasRenderingContext2D) DrawImage1(image CanvasImageSource, dx float64, dy float64, dw float64, dh float64) (ret js.Void) {
  2873  	bindings.CallCanvasRenderingContext2DDrawImage1(
  2874  		this.ref, js.Pointer(&ret),
  2875  		image.Ref(),
  2876  		float64(dx),
  2877  		float64(dy),
  2878  		float64(dw),
  2879  		float64(dh),
  2880  	)
  2881  
  2882  	return
  2883  }
  2884  
  2885  // TryDrawImage1 calls the method "CanvasRenderingContext2D.drawImage"
  2886  // in a try/catch block and returns (_, err, ok = false) when it went through
  2887  // the catch clause.
  2888  func (this CanvasRenderingContext2D) TryDrawImage1(image CanvasImageSource, dx float64, dy float64, dw float64, dh float64) (ret js.Void, exception js.Any, ok bool) {
  2889  	ok = js.True == bindings.TryCanvasRenderingContext2DDrawImage1(
  2890  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2891  		image.Ref(),
  2892  		float64(dx),
  2893  		float64(dy),
  2894  		float64(dw),
  2895  		float64(dh),
  2896  	)
  2897  
  2898  	return
  2899  }
  2900  
  2901  // HasFuncDrawImage2 returns true if the method "CanvasRenderingContext2D.drawImage" exists.
  2902  func (this CanvasRenderingContext2D) HasFuncDrawImage2() bool {
  2903  	return js.True == bindings.HasFuncCanvasRenderingContext2DDrawImage2(
  2904  		this.ref,
  2905  	)
  2906  }
  2907  
  2908  // FuncDrawImage2 returns the method "CanvasRenderingContext2D.drawImage".
  2909  func (this CanvasRenderingContext2D) FuncDrawImage2() (fn js.Func[func(image CanvasImageSource, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64)]) {
  2910  	bindings.FuncCanvasRenderingContext2DDrawImage2(
  2911  		this.ref, js.Pointer(&fn),
  2912  	)
  2913  	return
  2914  }
  2915  
  2916  // DrawImage2 calls the method "CanvasRenderingContext2D.drawImage".
  2917  func (this CanvasRenderingContext2D) DrawImage2(image CanvasImageSource, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64) (ret js.Void) {
  2918  	bindings.CallCanvasRenderingContext2DDrawImage2(
  2919  		this.ref, js.Pointer(&ret),
  2920  		image.Ref(),
  2921  		float64(sx),
  2922  		float64(sy),
  2923  		float64(sw),
  2924  		float64(sh),
  2925  		float64(dx),
  2926  		float64(dy),
  2927  		float64(dw),
  2928  		float64(dh),
  2929  	)
  2930  
  2931  	return
  2932  }
  2933  
  2934  // TryDrawImage2 calls the method "CanvasRenderingContext2D.drawImage"
  2935  // in a try/catch block and returns (_, err, ok = false) when it went through
  2936  // the catch clause.
  2937  func (this CanvasRenderingContext2D) TryDrawImage2(image CanvasImageSource, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64) (ret js.Void, exception js.Any, ok bool) {
  2938  	ok = js.True == bindings.TryCanvasRenderingContext2DDrawImage2(
  2939  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2940  		image.Ref(),
  2941  		float64(sx),
  2942  		float64(sy),
  2943  		float64(sw),
  2944  		float64(sh),
  2945  		float64(dx),
  2946  		float64(dy),
  2947  		float64(dw),
  2948  		float64(dh),
  2949  	)
  2950  
  2951  	return
  2952  }
  2953  
  2954  // HasFuncCreateImageData returns true if the method "CanvasRenderingContext2D.createImageData" exists.
  2955  func (this CanvasRenderingContext2D) HasFuncCreateImageData() bool {
  2956  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreateImageData(
  2957  		this.ref,
  2958  	)
  2959  }
  2960  
  2961  // FuncCreateImageData returns the method "CanvasRenderingContext2D.createImageData".
  2962  func (this CanvasRenderingContext2D) FuncCreateImageData() (fn js.Func[func(sw int32, sh int32, settings ImageDataSettings) ImageData]) {
  2963  	bindings.FuncCanvasRenderingContext2DCreateImageData(
  2964  		this.ref, js.Pointer(&fn),
  2965  	)
  2966  	return
  2967  }
  2968  
  2969  // CreateImageData calls the method "CanvasRenderingContext2D.createImageData".
  2970  func (this CanvasRenderingContext2D) CreateImageData(sw int32, sh int32, settings ImageDataSettings) (ret ImageData) {
  2971  	bindings.CallCanvasRenderingContext2DCreateImageData(
  2972  		this.ref, js.Pointer(&ret),
  2973  		int32(sw),
  2974  		int32(sh),
  2975  		js.Pointer(&settings),
  2976  	)
  2977  
  2978  	return
  2979  }
  2980  
  2981  // TryCreateImageData calls the method "CanvasRenderingContext2D.createImageData"
  2982  // in a try/catch block and returns (_, err, ok = false) when it went through
  2983  // the catch clause.
  2984  func (this CanvasRenderingContext2D) TryCreateImageData(sw int32, sh int32, settings ImageDataSettings) (ret ImageData, exception js.Any, ok bool) {
  2985  	ok = js.True == bindings.TryCanvasRenderingContext2DCreateImageData(
  2986  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2987  		int32(sw),
  2988  		int32(sh),
  2989  		js.Pointer(&settings),
  2990  	)
  2991  
  2992  	return
  2993  }
  2994  
  2995  // HasFuncCreateImageData1 returns true if the method "CanvasRenderingContext2D.createImageData" exists.
  2996  func (this CanvasRenderingContext2D) HasFuncCreateImageData1() bool {
  2997  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreateImageData1(
  2998  		this.ref,
  2999  	)
  3000  }
  3001  
  3002  // FuncCreateImageData1 returns the method "CanvasRenderingContext2D.createImageData".
  3003  func (this CanvasRenderingContext2D) FuncCreateImageData1() (fn js.Func[func(sw int32, sh int32) ImageData]) {
  3004  	bindings.FuncCanvasRenderingContext2DCreateImageData1(
  3005  		this.ref, js.Pointer(&fn),
  3006  	)
  3007  	return
  3008  }
  3009  
  3010  // CreateImageData1 calls the method "CanvasRenderingContext2D.createImageData".
  3011  func (this CanvasRenderingContext2D) CreateImageData1(sw int32, sh int32) (ret ImageData) {
  3012  	bindings.CallCanvasRenderingContext2DCreateImageData1(
  3013  		this.ref, js.Pointer(&ret),
  3014  		int32(sw),
  3015  		int32(sh),
  3016  	)
  3017  
  3018  	return
  3019  }
  3020  
  3021  // TryCreateImageData1 calls the method "CanvasRenderingContext2D.createImageData"
  3022  // in a try/catch block and returns (_, err, ok = false) when it went through
  3023  // the catch clause.
  3024  func (this CanvasRenderingContext2D) TryCreateImageData1(sw int32, sh int32) (ret ImageData, exception js.Any, ok bool) {
  3025  	ok = js.True == bindings.TryCanvasRenderingContext2DCreateImageData1(
  3026  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3027  		int32(sw),
  3028  		int32(sh),
  3029  	)
  3030  
  3031  	return
  3032  }
  3033  
  3034  // HasFuncCreateImageData2 returns true if the method "CanvasRenderingContext2D.createImageData" exists.
  3035  func (this CanvasRenderingContext2D) HasFuncCreateImageData2() bool {
  3036  	return js.True == bindings.HasFuncCanvasRenderingContext2DCreateImageData2(
  3037  		this.ref,
  3038  	)
  3039  }
  3040  
  3041  // FuncCreateImageData2 returns the method "CanvasRenderingContext2D.createImageData".
  3042  func (this CanvasRenderingContext2D) FuncCreateImageData2() (fn js.Func[func(imagedata ImageData) ImageData]) {
  3043  	bindings.FuncCanvasRenderingContext2DCreateImageData2(
  3044  		this.ref, js.Pointer(&fn),
  3045  	)
  3046  	return
  3047  }
  3048  
  3049  // CreateImageData2 calls the method "CanvasRenderingContext2D.createImageData".
  3050  func (this CanvasRenderingContext2D) CreateImageData2(imagedata ImageData) (ret ImageData) {
  3051  	bindings.CallCanvasRenderingContext2DCreateImageData2(
  3052  		this.ref, js.Pointer(&ret),
  3053  		imagedata.Ref(),
  3054  	)
  3055  
  3056  	return
  3057  }
  3058  
  3059  // TryCreateImageData2 calls the method "CanvasRenderingContext2D.createImageData"
  3060  // in a try/catch block and returns (_, err, ok = false) when it went through
  3061  // the catch clause.
  3062  func (this CanvasRenderingContext2D) TryCreateImageData2(imagedata ImageData) (ret ImageData, exception js.Any, ok bool) {
  3063  	ok = js.True == bindings.TryCanvasRenderingContext2DCreateImageData2(
  3064  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3065  		imagedata.Ref(),
  3066  	)
  3067  
  3068  	return
  3069  }
  3070  
  3071  // HasFuncGetImageData returns true if the method "CanvasRenderingContext2D.getImageData" exists.
  3072  func (this CanvasRenderingContext2D) HasFuncGetImageData() bool {
  3073  	return js.True == bindings.HasFuncCanvasRenderingContext2DGetImageData(
  3074  		this.ref,
  3075  	)
  3076  }
  3077  
  3078  // FuncGetImageData returns the method "CanvasRenderingContext2D.getImageData".
  3079  func (this CanvasRenderingContext2D) FuncGetImageData() (fn js.Func[func(sx int32, sy int32, sw int32, sh int32, settings ImageDataSettings) ImageData]) {
  3080  	bindings.FuncCanvasRenderingContext2DGetImageData(
  3081  		this.ref, js.Pointer(&fn),
  3082  	)
  3083  	return
  3084  }
  3085  
  3086  // GetImageData calls the method "CanvasRenderingContext2D.getImageData".
  3087  func (this CanvasRenderingContext2D) GetImageData(sx int32, sy int32, sw int32, sh int32, settings ImageDataSettings) (ret ImageData) {
  3088  	bindings.CallCanvasRenderingContext2DGetImageData(
  3089  		this.ref, js.Pointer(&ret),
  3090  		int32(sx),
  3091  		int32(sy),
  3092  		int32(sw),
  3093  		int32(sh),
  3094  		js.Pointer(&settings),
  3095  	)
  3096  
  3097  	return
  3098  }
  3099  
  3100  // TryGetImageData calls the method "CanvasRenderingContext2D.getImageData"
  3101  // in a try/catch block and returns (_, err, ok = false) when it went through
  3102  // the catch clause.
  3103  func (this CanvasRenderingContext2D) TryGetImageData(sx int32, sy int32, sw int32, sh int32, settings ImageDataSettings) (ret ImageData, exception js.Any, ok bool) {
  3104  	ok = js.True == bindings.TryCanvasRenderingContext2DGetImageData(
  3105  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3106  		int32(sx),
  3107  		int32(sy),
  3108  		int32(sw),
  3109  		int32(sh),
  3110  		js.Pointer(&settings),
  3111  	)
  3112  
  3113  	return
  3114  }
  3115  
  3116  // HasFuncGetImageData1 returns true if the method "CanvasRenderingContext2D.getImageData" exists.
  3117  func (this CanvasRenderingContext2D) HasFuncGetImageData1() bool {
  3118  	return js.True == bindings.HasFuncCanvasRenderingContext2DGetImageData1(
  3119  		this.ref,
  3120  	)
  3121  }
  3122  
  3123  // FuncGetImageData1 returns the method "CanvasRenderingContext2D.getImageData".
  3124  func (this CanvasRenderingContext2D) FuncGetImageData1() (fn js.Func[func(sx int32, sy int32, sw int32, sh int32) ImageData]) {
  3125  	bindings.FuncCanvasRenderingContext2DGetImageData1(
  3126  		this.ref, js.Pointer(&fn),
  3127  	)
  3128  	return
  3129  }
  3130  
  3131  // GetImageData1 calls the method "CanvasRenderingContext2D.getImageData".
  3132  func (this CanvasRenderingContext2D) GetImageData1(sx int32, sy int32, sw int32, sh int32) (ret ImageData) {
  3133  	bindings.CallCanvasRenderingContext2DGetImageData1(
  3134  		this.ref, js.Pointer(&ret),
  3135  		int32(sx),
  3136  		int32(sy),
  3137  		int32(sw),
  3138  		int32(sh),
  3139  	)
  3140  
  3141  	return
  3142  }
  3143  
  3144  // TryGetImageData1 calls the method "CanvasRenderingContext2D.getImageData"
  3145  // in a try/catch block and returns (_, err, ok = false) when it went through
  3146  // the catch clause.
  3147  func (this CanvasRenderingContext2D) TryGetImageData1(sx int32, sy int32, sw int32, sh int32) (ret ImageData, exception js.Any, ok bool) {
  3148  	ok = js.True == bindings.TryCanvasRenderingContext2DGetImageData1(
  3149  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3150  		int32(sx),
  3151  		int32(sy),
  3152  		int32(sw),
  3153  		int32(sh),
  3154  	)
  3155  
  3156  	return
  3157  }
  3158  
  3159  // HasFuncPutImageData returns true if the method "CanvasRenderingContext2D.putImageData" exists.
  3160  func (this CanvasRenderingContext2D) HasFuncPutImageData() bool {
  3161  	return js.True == bindings.HasFuncCanvasRenderingContext2DPutImageData(
  3162  		this.ref,
  3163  	)
  3164  }
  3165  
  3166  // FuncPutImageData returns the method "CanvasRenderingContext2D.putImageData".
  3167  func (this CanvasRenderingContext2D) FuncPutImageData() (fn js.Func[func(imagedata ImageData, dx int32, dy int32)]) {
  3168  	bindings.FuncCanvasRenderingContext2DPutImageData(
  3169  		this.ref, js.Pointer(&fn),
  3170  	)
  3171  	return
  3172  }
  3173  
  3174  // PutImageData calls the method "CanvasRenderingContext2D.putImageData".
  3175  func (this CanvasRenderingContext2D) PutImageData(imagedata ImageData, dx int32, dy int32) (ret js.Void) {
  3176  	bindings.CallCanvasRenderingContext2DPutImageData(
  3177  		this.ref, js.Pointer(&ret),
  3178  		imagedata.Ref(),
  3179  		int32(dx),
  3180  		int32(dy),
  3181  	)
  3182  
  3183  	return
  3184  }
  3185  
  3186  // TryPutImageData calls the method "CanvasRenderingContext2D.putImageData"
  3187  // in a try/catch block and returns (_, err, ok = false) when it went through
  3188  // the catch clause.
  3189  func (this CanvasRenderingContext2D) TryPutImageData(imagedata ImageData, dx int32, dy int32) (ret js.Void, exception js.Any, ok bool) {
  3190  	ok = js.True == bindings.TryCanvasRenderingContext2DPutImageData(
  3191  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3192  		imagedata.Ref(),
  3193  		int32(dx),
  3194  		int32(dy),
  3195  	)
  3196  
  3197  	return
  3198  }
  3199  
  3200  // HasFuncPutImageData1 returns true if the method "CanvasRenderingContext2D.putImageData" exists.
  3201  func (this CanvasRenderingContext2D) HasFuncPutImageData1() bool {
  3202  	return js.True == bindings.HasFuncCanvasRenderingContext2DPutImageData1(
  3203  		this.ref,
  3204  	)
  3205  }
  3206  
  3207  // FuncPutImageData1 returns the method "CanvasRenderingContext2D.putImageData".
  3208  func (this CanvasRenderingContext2D) FuncPutImageData1() (fn js.Func[func(imagedata ImageData, dx int32, dy int32, dirtyX int32, dirtyY int32, dirtyWidth int32, dirtyHeight int32)]) {
  3209  	bindings.FuncCanvasRenderingContext2DPutImageData1(
  3210  		this.ref, js.Pointer(&fn),
  3211  	)
  3212  	return
  3213  }
  3214  
  3215  // PutImageData1 calls the method "CanvasRenderingContext2D.putImageData".
  3216  func (this CanvasRenderingContext2D) PutImageData1(imagedata ImageData, dx int32, dy int32, dirtyX int32, dirtyY int32, dirtyWidth int32, dirtyHeight int32) (ret js.Void) {
  3217  	bindings.CallCanvasRenderingContext2DPutImageData1(
  3218  		this.ref, js.Pointer(&ret),
  3219  		imagedata.Ref(),
  3220  		int32(dx),
  3221  		int32(dy),
  3222  		int32(dirtyX),
  3223  		int32(dirtyY),
  3224  		int32(dirtyWidth),
  3225  		int32(dirtyHeight),
  3226  	)
  3227  
  3228  	return
  3229  }
  3230  
  3231  // TryPutImageData1 calls the method "CanvasRenderingContext2D.putImageData"
  3232  // in a try/catch block and returns (_, err, ok = false) when it went through
  3233  // the catch clause.
  3234  func (this CanvasRenderingContext2D) TryPutImageData1(imagedata ImageData, dx int32, dy int32, dirtyX int32, dirtyY int32, dirtyWidth int32, dirtyHeight int32) (ret js.Void, exception js.Any, ok bool) {
  3235  	ok = js.True == bindings.TryCanvasRenderingContext2DPutImageData1(
  3236  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3237  		imagedata.Ref(),
  3238  		int32(dx),
  3239  		int32(dy),
  3240  		int32(dirtyX),
  3241  		int32(dirtyY),
  3242  		int32(dirtyWidth),
  3243  		int32(dirtyHeight),
  3244  	)
  3245  
  3246  	return
  3247  }
  3248  
  3249  // HasFuncSetLineDash returns true if the method "CanvasRenderingContext2D.setLineDash" exists.
  3250  func (this CanvasRenderingContext2D) HasFuncSetLineDash() bool {
  3251  	return js.True == bindings.HasFuncCanvasRenderingContext2DSetLineDash(
  3252  		this.ref,
  3253  	)
  3254  }
  3255  
  3256  // FuncSetLineDash returns the method "CanvasRenderingContext2D.setLineDash".
  3257  func (this CanvasRenderingContext2D) FuncSetLineDash() (fn js.Func[func(segments js.Array[float64])]) {
  3258  	bindings.FuncCanvasRenderingContext2DSetLineDash(
  3259  		this.ref, js.Pointer(&fn),
  3260  	)
  3261  	return
  3262  }
  3263  
  3264  // SetLineDash calls the method "CanvasRenderingContext2D.setLineDash".
  3265  func (this CanvasRenderingContext2D) SetLineDash(segments js.Array[float64]) (ret js.Void) {
  3266  	bindings.CallCanvasRenderingContext2DSetLineDash(
  3267  		this.ref, js.Pointer(&ret),
  3268  		segments.Ref(),
  3269  	)
  3270  
  3271  	return
  3272  }
  3273  
  3274  // TrySetLineDash calls the method "CanvasRenderingContext2D.setLineDash"
  3275  // in a try/catch block and returns (_, err, ok = false) when it went through
  3276  // the catch clause.
  3277  func (this CanvasRenderingContext2D) TrySetLineDash(segments js.Array[float64]) (ret js.Void, exception js.Any, ok bool) {
  3278  	ok = js.True == bindings.TryCanvasRenderingContext2DSetLineDash(
  3279  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3280  		segments.Ref(),
  3281  	)
  3282  
  3283  	return
  3284  }
  3285  
  3286  // HasFuncGetLineDash returns true if the method "CanvasRenderingContext2D.getLineDash" exists.
  3287  func (this CanvasRenderingContext2D) HasFuncGetLineDash() bool {
  3288  	return js.True == bindings.HasFuncCanvasRenderingContext2DGetLineDash(
  3289  		this.ref,
  3290  	)
  3291  }
  3292  
  3293  // FuncGetLineDash returns the method "CanvasRenderingContext2D.getLineDash".
  3294  func (this CanvasRenderingContext2D) FuncGetLineDash() (fn js.Func[func() js.Array[float64]]) {
  3295  	bindings.FuncCanvasRenderingContext2DGetLineDash(
  3296  		this.ref, js.Pointer(&fn),
  3297  	)
  3298  	return
  3299  }
  3300  
  3301  // GetLineDash calls the method "CanvasRenderingContext2D.getLineDash".
  3302  func (this CanvasRenderingContext2D) GetLineDash() (ret js.Array[float64]) {
  3303  	bindings.CallCanvasRenderingContext2DGetLineDash(
  3304  		this.ref, js.Pointer(&ret),
  3305  	)
  3306  
  3307  	return
  3308  }
  3309  
  3310  // TryGetLineDash calls the method "CanvasRenderingContext2D.getLineDash"
  3311  // in a try/catch block and returns (_, err, ok = false) when it went through
  3312  // the catch clause.
  3313  func (this CanvasRenderingContext2D) TryGetLineDash() (ret js.Array[float64], exception js.Any, ok bool) {
  3314  	ok = js.True == bindings.TryCanvasRenderingContext2DGetLineDash(
  3315  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3316  	)
  3317  
  3318  	return
  3319  }
  3320  
  3321  // HasFuncClosePath returns true if the method "CanvasRenderingContext2D.closePath" exists.
  3322  func (this CanvasRenderingContext2D) HasFuncClosePath() bool {
  3323  	return js.True == bindings.HasFuncCanvasRenderingContext2DClosePath(
  3324  		this.ref,
  3325  	)
  3326  }
  3327  
  3328  // FuncClosePath returns the method "CanvasRenderingContext2D.closePath".
  3329  func (this CanvasRenderingContext2D) FuncClosePath() (fn js.Func[func()]) {
  3330  	bindings.FuncCanvasRenderingContext2DClosePath(
  3331  		this.ref, js.Pointer(&fn),
  3332  	)
  3333  	return
  3334  }
  3335  
  3336  // ClosePath calls the method "CanvasRenderingContext2D.closePath".
  3337  func (this CanvasRenderingContext2D) ClosePath() (ret js.Void) {
  3338  	bindings.CallCanvasRenderingContext2DClosePath(
  3339  		this.ref, js.Pointer(&ret),
  3340  	)
  3341  
  3342  	return
  3343  }
  3344  
  3345  // TryClosePath calls the method "CanvasRenderingContext2D.closePath"
  3346  // in a try/catch block and returns (_, err, ok = false) when it went through
  3347  // the catch clause.
  3348  func (this CanvasRenderingContext2D) TryClosePath() (ret js.Void, exception js.Any, ok bool) {
  3349  	ok = js.True == bindings.TryCanvasRenderingContext2DClosePath(
  3350  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3351  	)
  3352  
  3353  	return
  3354  }
  3355  
  3356  // HasFuncMoveTo returns true if the method "CanvasRenderingContext2D.moveTo" exists.
  3357  func (this CanvasRenderingContext2D) HasFuncMoveTo() bool {
  3358  	return js.True == bindings.HasFuncCanvasRenderingContext2DMoveTo(
  3359  		this.ref,
  3360  	)
  3361  }
  3362  
  3363  // FuncMoveTo returns the method "CanvasRenderingContext2D.moveTo".
  3364  func (this CanvasRenderingContext2D) FuncMoveTo() (fn js.Func[func(x float64, y float64)]) {
  3365  	bindings.FuncCanvasRenderingContext2DMoveTo(
  3366  		this.ref, js.Pointer(&fn),
  3367  	)
  3368  	return
  3369  }
  3370  
  3371  // MoveTo calls the method "CanvasRenderingContext2D.moveTo".
  3372  func (this CanvasRenderingContext2D) MoveTo(x float64, y float64) (ret js.Void) {
  3373  	bindings.CallCanvasRenderingContext2DMoveTo(
  3374  		this.ref, js.Pointer(&ret),
  3375  		float64(x),
  3376  		float64(y),
  3377  	)
  3378  
  3379  	return
  3380  }
  3381  
  3382  // TryMoveTo calls the method "CanvasRenderingContext2D.moveTo"
  3383  // in a try/catch block and returns (_, err, ok = false) when it went through
  3384  // the catch clause.
  3385  func (this CanvasRenderingContext2D) TryMoveTo(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  3386  	ok = js.True == bindings.TryCanvasRenderingContext2DMoveTo(
  3387  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3388  		float64(x),
  3389  		float64(y),
  3390  	)
  3391  
  3392  	return
  3393  }
  3394  
  3395  // HasFuncLineTo returns true if the method "CanvasRenderingContext2D.lineTo" exists.
  3396  func (this CanvasRenderingContext2D) HasFuncLineTo() bool {
  3397  	return js.True == bindings.HasFuncCanvasRenderingContext2DLineTo(
  3398  		this.ref,
  3399  	)
  3400  }
  3401  
  3402  // FuncLineTo returns the method "CanvasRenderingContext2D.lineTo".
  3403  func (this CanvasRenderingContext2D) FuncLineTo() (fn js.Func[func(x float64, y float64)]) {
  3404  	bindings.FuncCanvasRenderingContext2DLineTo(
  3405  		this.ref, js.Pointer(&fn),
  3406  	)
  3407  	return
  3408  }
  3409  
  3410  // LineTo calls the method "CanvasRenderingContext2D.lineTo".
  3411  func (this CanvasRenderingContext2D) LineTo(x float64, y float64) (ret js.Void) {
  3412  	bindings.CallCanvasRenderingContext2DLineTo(
  3413  		this.ref, js.Pointer(&ret),
  3414  		float64(x),
  3415  		float64(y),
  3416  	)
  3417  
  3418  	return
  3419  }
  3420  
  3421  // TryLineTo calls the method "CanvasRenderingContext2D.lineTo"
  3422  // in a try/catch block and returns (_, err, ok = false) when it went through
  3423  // the catch clause.
  3424  func (this CanvasRenderingContext2D) TryLineTo(x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  3425  	ok = js.True == bindings.TryCanvasRenderingContext2DLineTo(
  3426  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3427  		float64(x),
  3428  		float64(y),
  3429  	)
  3430  
  3431  	return
  3432  }
  3433  
  3434  // HasFuncQuadraticCurveTo returns true if the method "CanvasRenderingContext2D.quadraticCurveTo" exists.
  3435  func (this CanvasRenderingContext2D) HasFuncQuadraticCurveTo() bool {
  3436  	return js.True == bindings.HasFuncCanvasRenderingContext2DQuadraticCurveTo(
  3437  		this.ref,
  3438  	)
  3439  }
  3440  
  3441  // FuncQuadraticCurveTo returns the method "CanvasRenderingContext2D.quadraticCurveTo".
  3442  func (this CanvasRenderingContext2D) FuncQuadraticCurveTo() (fn js.Func[func(cpx float64, cpy float64, x float64, y float64)]) {
  3443  	bindings.FuncCanvasRenderingContext2DQuadraticCurveTo(
  3444  		this.ref, js.Pointer(&fn),
  3445  	)
  3446  	return
  3447  }
  3448  
  3449  // QuadraticCurveTo calls the method "CanvasRenderingContext2D.quadraticCurveTo".
  3450  func (this CanvasRenderingContext2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64) (ret js.Void) {
  3451  	bindings.CallCanvasRenderingContext2DQuadraticCurveTo(
  3452  		this.ref, js.Pointer(&ret),
  3453  		float64(cpx),
  3454  		float64(cpy),
  3455  		float64(x),
  3456  		float64(y),
  3457  	)
  3458  
  3459  	return
  3460  }
  3461  
  3462  // TryQuadraticCurveTo calls the method "CanvasRenderingContext2D.quadraticCurveTo"
  3463  // in a try/catch block and returns (_, err, ok = false) when it went through
  3464  // the catch clause.
  3465  func (this CanvasRenderingContext2D) TryQuadraticCurveTo(cpx float64, cpy float64, x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  3466  	ok = js.True == bindings.TryCanvasRenderingContext2DQuadraticCurveTo(
  3467  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3468  		float64(cpx),
  3469  		float64(cpy),
  3470  		float64(x),
  3471  		float64(y),
  3472  	)
  3473  
  3474  	return
  3475  }
  3476  
  3477  // HasFuncBezierCurveTo returns true if the method "CanvasRenderingContext2D.bezierCurveTo" exists.
  3478  func (this CanvasRenderingContext2D) HasFuncBezierCurveTo() bool {
  3479  	return js.True == bindings.HasFuncCanvasRenderingContext2DBezierCurveTo(
  3480  		this.ref,
  3481  	)
  3482  }
  3483  
  3484  // FuncBezierCurveTo returns the method "CanvasRenderingContext2D.bezierCurveTo".
  3485  func (this CanvasRenderingContext2D) FuncBezierCurveTo() (fn js.Func[func(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)]) {
  3486  	bindings.FuncCanvasRenderingContext2DBezierCurveTo(
  3487  		this.ref, js.Pointer(&fn),
  3488  	)
  3489  	return
  3490  }
  3491  
  3492  // BezierCurveTo calls the method "CanvasRenderingContext2D.bezierCurveTo".
  3493  func (this CanvasRenderingContext2D) BezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64) (ret js.Void) {
  3494  	bindings.CallCanvasRenderingContext2DBezierCurveTo(
  3495  		this.ref, js.Pointer(&ret),
  3496  		float64(cp1x),
  3497  		float64(cp1y),
  3498  		float64(cp2x),
  3499  		float64(cp2y),
  3500  		float64(x),
  3501  		float64(y),
  3502  	)
  3503  
  3504  	return
  3505  }
  3506  
  3507  // TryBezierCurveTo calls the method "CanvasRenderingContext2D.bezierCurveTo"
  3508  // in a try/catch block and returns (_, err, ok = false) when it went through
  3509  // the catch clause.
  3510  func (this CanvasRenderingContext2D) TryBezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64) (ret js.Void, exception js.Any, ok bool) {
  3511  	ok = js.True == bindings.TryCanvasRenderingContext2DBezierCurveTo(
  3512  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3513  		float64(cp1x),
  3514  		float64(cp1y),
  3515  		float64(cp2x),
  3516  		float64(cp2y),
  3517  		float64(x),
  3518  		float64(y),
  3519  	)
  3520  
  3521  	return
  3522  }
  3523  
  3524  // HasFuncArcTo returns true if the method "CanvasRenderingContext2D.arcTo" exists.
  3525  func (this CanvasRenderingContext2D) HasFuncArcTo() bool {
  3526  	return js.True == bindings.HasFuncCanvasRenderingContext2DArcTo(
  3527  		this.ref,
  3528  	)
  3529  }
  3530  
  3531  // FuncArcTo returns the method "CanvasRenderingContext2D.arcTo".
  3532  func (this CanvasRenderingContext2D) FuncArcTo() (fn js.Func[func(x1 float64, y1 float64, x2 float64, y2 float64, radius float64)]) {
  3533  	bindings.FuncCanvasRenderingContext2DArcTo(
  3534  		this.ref, js.Pointer(&fn),
  3535  	)
  3536  	return
  3537  }
  3538  
  3539  // ArcTo calls the method "CanvasRenderingContext2D.arcTo".
  3540  func (this CanvasRenderingContext2D) ArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64) (ret js.Void) {
  3541  	bindings.CallCanvasRenderingContext2DArcTo(
  3542  		this.ref, js.Pointer(&ret),
  3543  		float64(x1),
  3544  		float64(y1),
  3545  		float64(x2),
  3546  		float64(y2),
  3547  		float64(radius),
  3548  	)
  3549  
  3550  	return
  3551  }
  3552  
  3553  // TryArcTo calls the method "CanvasRenderingContext2D.arcTo"
  3554  // in a try/catch block and returns (_, err, ok = false) when it went through
  3555  // the catch clause.
  3556  func (this CanvasRenderingContext2D) TryArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64) (ret js.Void, exception js.Any, ok bool) {
  3557  	ok = js.True == bindings.TryCanvasRenderingContext2DArcTo(
  3558  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3559  		float64(x1),
  3560  		float64(y1),
  3561  		float64(x2),
  3562  		float64(y2),
  3563  		float64(radius),
  3564  	)
  3565  
  3566  	return
  3567  }
  3568  
  3569  // HasFuncRect returns true if the method "CanvasRenderingContext2D.rect" exists.
  3570  func (this CanvasRenderingContext2D) HasFuncRect() bool {
  3571  	return js.True == bindings.HasFuncCanvasRenderingContext2DRect(
  3572  		this.ref,
  3573  	)
  3574  }
  3575  
  3576  // FuncRect returns the method "CanvasRenderingContext2D.rect".
  3577  func (this CanvasRenderingContext2D) FuncRect() (fn js.Func[func(x float64, y float64, w float64, h float64)]) {
  3578  	bindings.FuncCanvasRenderingContext2DRect(
  3579  		this.ref, js.Pointer(&fn),
  3580  	)
  3581  	return
  3582  }
  3583  
  3584  // Rect calls the method "CanvasRenderingContext2D.rect".
  3585  func (this CanvasRenderingContext2D) Rect(x float64, y float64, w float64, h float64) (ret js.Void) {
  3586  	bindings.CallCanvasRenderingContext2DRect(
  3587  		this.ref, js.Pointer(&ret),
  3588  		float64(x),
  3589  		float64(y),
  3590  		float64(w),
  3591  		float64(h),
  3592  	)
  3593  
  3594  	return
  3595  }
  3596  
  3597  // TryRect calls the method "CanvasRenderingContext2D.rect"
  3598  // in a try/catch block and returns (_, err, ok = false) when it went through
  3599  // the catch clause.
  3600  func (this CanvasRenderingContext2D) TryRect(x float64, y float64, w float64, h float64) (ret js.Void, exception js.Any, ok bool) {
  3601  	ok = js.True == bindings.TryCanvasRenderingContext2DRect(
  3602  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3603  		float64(x),
  3604  		float64(y),
  3605  		float64(w),
  3606  		float64(h),
  3607  	)
  3608  
  3609  	return
  3610  }
  3611  
  3612  // HasFuncRoundRect returns true if the method "CanvasRenderingContext2D.roundRect" exists.
  3613  func (this CanvasRenderingContext2D) HasFuncRoundRect() bool {
  3614  	return js.True == bindings.HasFuncCanvasRenderingContext2DRoundRect(
  3615  		this.ref,
  3616  	)
  3617  }
  3618  
  3619  // FuncRoundRect returns the method "CanvasRenderingContext2D.roundRect".
  3620  func (this CanvasRenderingContext2D) FuncRoundRect() (fn js.Func[func(x float64, y float64, w float64, h float64, radii OneOf_Float64_DOMPointInit_ArrayOneOf_Float64_DOMPointInit)]) {
  3621  	bindings.FuncCanvasRenderingContext2DRoundRect(
  3622  		this.ref, js.Pointer(&fn),
  3623  	)
  3624  	return
  3625  }
  3626  
  3627  // RoundRect calls the method "CanvasRenderingContext2D.roundRect".
  3628  func (this CanvasRenderingContext2D) RoundRect(x float64, y float64, w float64, h float64, radii OneOf_Float64_DOMPointInit_ArrayOneOf_Float64_DOMPointInit) (ret js.Void) {
  3629  	bindings.CallCanvasRenderingContext2DRoundRect(
  3630  		this.ref, js.Pointer(&ret),
  3631  		float64(x),
  3632  		float64(y),
  3633  		float64(w),
  3634  		float64(h),
  3635  		radii.Ref(),
  3636  	)
  3637  
  3638  	return
  3639  }
  3640  
  3641  // TryRoundRect calls the method "CanvasRenderingContext2D.roundRect"
  3642  // in a try/catch block and returns (_, err, ok = false) when it went through
  3643  // the catch clause.
  3644  func (this CanvasRenderingContext2D) TryRoundRect(x float64, y float64, w float64, h float64, radii OneOf_Float64_DOMPointInit_ArrayOneOf_Float64_DOMPointInit) (ret js.Void, exception js.Any, ok bool) {
  3645  	ok = js.True == bindings.TryCanvasRenderingContext2DRoundRect(
  3646  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3647  		float64(x),
  3648  		float64(y),
  3649  		float64(w),
  3650  		float64(h),
  3651  		radii.Ref(),
  3652  	)
  3653  
  3654  	return
  3655  }
  3656  
  3657  // HasFuncRoundRect1 returns true if the method "CanvasRenderingContext2D.roundRect" exists.
  3658  func (this CanvasRenderingContext2D) HasFuncRoundRect1() bool {
  3659  	return js.True == bindings.HasFuncCanvasRenderingContext2DRoundRect1(
  3660  		this.ref,
  3661  	)
  3662  }
  3663  
  3664  // FuncRoundRect1 returns the method "CanvasRenderingContext2D.roundRect".
  3665  func (this CanvasRenderingContext2D) FuncRoundRect1() (fn js.Func[func(x float64, y float64, w float64, h float64)]) {
  3666  	bindings.FuncCanvasRenderingContext2DRoundRect1(
  3667  		this.ref, js.Pointer(&fn),
  3668  	)
  3669  	return
  3670  }
  3671  
  3672  // RoundRect1 calls the method "CanvasRenderingContext2D.roundRect".
  3673  func (this CanvasRenderingContext2D) RoundRect1(x float64, y float64, w float64, h float64) (ret js.Void) {
  3674  	bindings.CallCanvasRenderingContext2DRoundRect1(
  3675  		this.ref, js.Pointer(&ret),
  3676  		float64(x),
  3677  		float64(y),
  3678  		float64(w),
  3679  		float64(h),
  3680  	)
  3681  
  3682  	return
  3683  }
  3684  
  3685  // TryRoundRect1 calls the method "CanvasRenderingContext2D.roundRect"
  3686  // in a try/catch block and returns (_, err, ok = false) when it went through
  3687  // the catch clause.
  3688  func (this CanvasRenderingContext2D) TryRoundRect1(x float64, y float64, w float64, h float64) (ret js.Void, exception js.Any, ok bool) {
  3689  	ok = js.True == bindings.TryCanvasRenderingContext2DRoundRect1(
  3690  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3691  		float64(x),
  3692  		float64(y),
  3693  		float64(w),
  3694  		float64(h),
  3695  	)
  3696  
  3697  	return
  3698  }
  3699  
  3700  // HasFuncArc returns true if the method "CanvasRenderingContext2D.arc" exists.
  3701  func (this CanvasRenderingContext2D) HasFuncArc() bool {
  3702  	return js.True == bindings.HasFuncCanvasRenderingContext2DArc(
  3703  		this.ref,
  3704  	)
  3705  }
  3706  
  3707  // FuncArc returns the method "CanvasRenderingContext2D.arc".
  3708  func (this CanvasRenderingContext2D) FuncArc() (fn js.Func[func(x float64, y float64, radius float64, startAngle float64, endAngle float64, counterclockwise bool)]) {
  3709  	bindings.FuncCanvasRenderingContext2DArc(
  3710  		this.ref, js.Pointer(&fn),
  3711  	)
  3712  	return
  3713  }
  3714  
  3715  // Arc calls the method "CanvasRenderingContext2D.arc".
  3716  func (this CanvasRenderingContext2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, counterclockwise bool) (ret js.Void) {
  3717  	bindings.CallCanvasRenderingContext2DArc(
  3718  		this.ref, js.Pointer(&ret),
  3719  		float64(x),
  3720  		float64(y),
  3721  		float64(radius),
  3722  		float64(startAngle),
  3723  		float64(endAngle),
  3724  		js.Bool(bool(counterclockwise)),
  3725  	)
  3726  
  3727  	return
  3728  }
  3729  
  3730  // TryArc calls the method "CanvasRenderingContext2D.arc"
  3731  // in a try/catch block and returns (_, err, ok = false) when it went through
  3732  // the catch clause.
  3733  func (this CanvasRenderingContext2D) TryArc(x float64, y float64, radius float64, startAngle float64, endAngle float64, counterclockwise bool) (ret js.Void, exception js.Any, ok bool) {
  3734  	ok = js.True == bindings.TryCanvasRenderingContext2DArc(
  3735  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3736  		float64(x),
  3737  		float64(y),
  3738  		float64(radius),
  3739  		float64(startAngle),
  3740  		float64(endAngle),
  3741  		js.Bool(bool(counterclockwise)),
  3742  	)
  3743  
  3744  	return
  3745  }
  3746  
  3747  // HasFuncArc1 returns true if the method "CanvasRenderingContext2D.arc" exists.
  3748  func (this CanvasRenderingContext2D) HasFuncArc1() bool {
  3749  	return js.True == bindings.HasFuncCanvasRenderingContext2DArc1(
  3750  		this.ref,
  3751  	)
  3752  }
  3753  
  3754  // FuncArc1 returns the method "CanvasRenderingContext2D.arc".
  3755  func (this CanvasRenderingContext2D) FuncArc1() (fn js.Func[func(x float64, y float64, radius float64, startAngle float64, endAngle float64)]) {
  3756  	bindings.FuncCanvasRenderingContext2DArc1(
  3757  		this.ref, js.Pointer(&fn),
  3758  	)
  3759  	return
  3760  }
  3761  
  3762  // Arc1 calls the method "CanvasRenderingContext2D.arc".
  3763  func (this CanvasRenderingContext2D) Arc1(x float64, y float64, radius float64, startAngle float64, endAngle float64) (ret js.Void) {
  3764  	bindings.CallCanvasRenderingContext2DArc1(
  3765  		this.ref, js.Pointer(&ret),
  3766  		float64(x),
  3767  		float64(y),
  3768  		float64(radius),
  3769  		float64(startAngle),
  3770  		float64(endAngle),
  3771  	)
  3772  
  3773  	return
  3774  }
  3775  
  3776  // TryArc1 calls the method "CanvasRenderingContext2D.arc"
  3777  // in a try/catch block and returns (_, err, ok = false) when it went through
  3778  // the catch clause.
  3779  func (this CanvasRenderingContext2D) TryArc1(x float64, y float64, radius float64, startAngle float64, endAngle float64) (ret js.Void, exception js.Any, ok bool) {
  3780  	ok = js.True == bindings.TryCanvasRenderingContext2DArc1(
  3781  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3782  		float64(x),
  3783  		float64(y),
  3784  		float64(radius),
  3785  		float64(startAngle),
  3786  		float64(endAngle),
  3787  	)
  3788  
  3789  	return
  3790  }
  3791  
  3792  // HasFuncEllipse returns true if the method "CanvasRenderingContext2D.ellipse" exists.
  3793  func (this CanvasRenderingContext2D) HasFuncEllipse() bool {
  3794  	return js.True == bindings.HasFuncCanvasRenderingContext2DEllipse(
  3795  		this.ref,
  3796  	)
  3797  }
  3798  
  3799  // FuncEllipse returns the method "CanvasRenderingContext2D.ellipse".
  3800  func (this CanvasRenderingContext2D) FuncEllipse() (fn js.Func[func(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, counterclockwise bool)]) {
  3801  	bindings.FuncCanvasRenderingContext2DEllipse(
  3802  		this.ref, js.Pointer(&fn),
  3803  	)
  3804  	return
  3805  }
  3806  
  3807  // Ellipse calls the method "CanvasRenderingContext2D.ellipse".
  3808  func (this CanvasRenderingContext2D) Ellipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, counterclockwise bool) (ret js.Void) {
  3809  	bindings.CallCanvasRenderingContext2DEllipse(
  3810  		this.ref, js.Pointer(&ret),
  3811  		float64(x),
  3812  		float64(y),
  3813  		float64(radiusX),
  3814  		float64(radiusY),
  3815  		float64(rotation),
  3816  		float64(startAngle),
  3817  		float64(endAngle),
  3818  		js.Bool(bool(counterclockwise)),
  3819  	)
  3820  
  3821  	return
  3822  }
  3823  
  3824  // TryEllipse calls the method "CanvasRenderingContext2D.ellipse"
  3825  // in a try/catch block and returns (_, err, ok = false) when it went through
  3826  // the catch clause.
  3827  func (this CanvasRenderingContext2D) TryEllipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, counterclockwise bool) (ret js.Void, exception js.Any, ok bool) {
  3828  	ok = js.True == bindings.TryCanvasRenderingContext2DEllipse(
  3829  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3830  		float64(x),
  3831  		float64(y),
  3832  		float64(radiusX),
  3833  		float64(radiusY),
  3834  		float64(rotation),
  3835  		float64(startAngle),
  3836  		float64(endAngle),
  3837  		js.Bool(bool(counterclockwise)),
  3838  	)
  3839  
  3840  	return
  3841  }
  3842  
  3843  // HasFuncEllipse1 returns true if the method "CanvasRenderingContext2D.ellipse" exists.
  3844  func (this CanvasRenderingContext2D) HasFuncEllipse1() bool {
  3845  	return js.True == bindings.HasFuncCanvasRenderingContext2DEllipse1(
  3846  		this.ref,
  3847  	)
  3848  }
  3849  
  3850  // FuncEllipse1 returns the method "CanvasRenderingContext2D.ellipse".
  3851  func (this CanvasRenderingContext2D) FuncEllipse1() (fn js.Func[func(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64)]) {
  3852  	bindings.FuncCanvasRenderingContext2DEllipse1(
  3853  		this.ref, js.Pointer(&fn),
  3854  	)
  3855  	return
  3856  }
  3857  
  3858  // Ellipse1 calls the method "CanvasRenderingContext2D.ellipse".
  3859  func (this CanvasRenderingContext2D) Ellipse1(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64) (ret js.Void) {
  3860  	bindings.CallCanvasRenderingContext2DEllipse1(
  3861  		this.ref, js.Pointer(&ret),
  3862  		float64(x),
  3863  		float64(y),
  3864  		float64(radiusX),
  3865  		float64(radiusY),
  3866  		float64(rotation),
  3867  		float64(startAngle),
  3868  		float64(endAngle),
  3869  	)
  3870  
  3871  	return
  3872  }
  3873  
  3874  // TryEllipse1 calls the method "CanvasRenderingContext2D.ellipse"
  3875  // in a try/catch block and returns (_, err, ok = false) when it went through
  3876  // the catch clause.
  3877  func (this CanvasRenderingContext2D) TryEllipse1(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64) (ret js.Void, exception js.Any, ok bool) {
  3878  	ok = js.True == bindings.TryCanvasRenderingContext2DEllipse1(
  3879  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3880  		float64(x),
  3881  		float64(y),
  3882  		float64(radiusX),
  3883  		float64(radiusY),
  3884  		float64(rotation),
  3885  		float64(startAngle),
  3886  		float64(endAngle),
  3887  	)
  3888  
  3889  	return
  3890  }
  3891  
  3892  type OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext struct {
  3893  	ref js.Ref
  3894  }
  3895  
  3896  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) Ref() js.Ref {
  3897  	return x.ref
  3898  }
  3899  
  3900  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) Free() {
  3901  	x.ref.Free()
  3902  }
  3903  
  3904  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) FromRef(ref js.Ref) OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext {
  3905  	return OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext{
  3906  		ref: ref,
  3907  	}
  3908  }
  3909  
  3910  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) CanvasRenderingContext2D() CanvasRenderingContext2D {
  3911  	return CanvasRenderingContext2D{}.FromRef(x.ref)
  3912  }
  3913  
  3914  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) ImageBitmapRenderingContext() ImageBitmapRenderingContext {
  3915  	return ImageBitmapRenderingContext{}.FromRef(x.ref)
  3916  }
  3917  
  3918  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) WebGLRenderingContext() WebGLRenderingContext {
  3919  	return WebGLRenderingContext{}.FromRef(x.ref)
  3920  }
  3921  
  3922  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) WebGL2RenderingContext() WebGL2RenderingContext {
  3923  	return WebGL2RenderingContext{}.FromRef(x.ref)
  3924  }
  3925  
  3926  func (x OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext) GPUCanvasContext() GPUCanvasContext {
  3927  	return GPUCanvasContext{}.FromRef(x.ref)
  3928  }
  3929  
  3930  type RenderingContext = OneOf_CanvasRenderingContext2D_ImageBitmapRenderingContext_WebGLRenderingContext_WebGL2RenderingContext_GPUCanvasContext
  3931  
  3932  type BlobCallbackFunc func(this js.Ref, blob Blob) js.Ref
  3933  
  3934  func (fn BlobCallbackFunc) Register() js.Func[func(blob Blob)] {
  3935  	return js.RegisterCallback[func(blob Blob)](
  3936  		fn, abi.FuncPCABIInternal(fn),
  3937  	)
  3938  }
  3939  
  3940  func (fn BlobCallbackFunc) DispatchCallback(
  3941  	targetPC uintptr, ctx *js.CallbackContext,
  3942  ) {
  3943  	args := ctx.Args()
  3944  	if len(args) != 1+1 /* js this */ ||
  3945  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3946  		js.ThrowInvalidCallbackInvocation()
  3947  	}
  3948  
  3949  	if ctx.Return(fn(
  3950  		args[0],
  3951  
  3952  		Blob{}.FromRef(args[0+1]),
  3953  	)) {
  3954  		return
  3955  	}
  3956  
  3957  	js.ThrowCallbackValueNotReturned()
  3958  }
  3959  
  3960  type BlobCallback[T any] struct {
  3961  	Fn  func(arg T, this js.Ref, blob Blob) js.Ref
  3962  	Arg T
  3963  }
  3964  
  3965  func (cb *BlobCallback[T]) Register() js.Func[func(blob Blob)] {
  3966  	return js.RegisterCallback[func(blob Blob)](
  3967  		cb, abi.FuncPCABIInternal(cb.Fn),
  3968  	)
  3969  }
  3970  
  3971  func (cb *BlobCallback[T]) DispatchCallback(
  3972  	targetPC uintptr, ctx *js.CallbackContext,
  3973  ) {
  3974  	args := ctx.Args()
  3975  	if len(args) != 1+1 /* js this */ ||
  3976  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3977  		js.ThrowInvalidCallbackInvocation()
  3978  	}
  3979  
  3980  	if ctx.Return(cb.Fn(
  3981  		cb.Arg,
  3982  		args[0],
  3983  
  3984  		Blob{}.FromRef(args[0+1]),
  3985  	)) {
  3986  		return
  3987  	}
  3988  
  3989  	js.ThrowCallbackValueNotReturned()
  3990  }
  3991  
  3992  type HTMLCanvasElement struct {
  3993  	HTMLElement
  3994  }
  3995  
  3996  func (this HTMLCanvasElement) Once() HTMLCanvasElement {
  3997  	this.ref.Once()
  3998  	return this
  3999  }
  4000  
  4001  func (this HTMLCanvasElement) Ref() js.Ref {
  4002  	return this.HTMLElement.Ref()
  4003  }
  4004  
  4005  func (this HTMLCanvasElement) FromRef(ref js.Ref) HTMLCanvasElement {
  4006  	this.HTMLElement = this.HTMLElement.FromRef(ref)
  4007  	return this
  4008  }
  4009  
  4010  func (this HTMLCanvasElement) Free() {
  4011  	this.ref.Free()
  4012  }
  4013  
  4014  // Width returns the value of property "HTMLCanvasElement.width".
  4015  //
  4016  // It returns ok=false if there is no such property.
  4017  func (this HTMLCanvasElement) Width() (ret uint32, ok bool) {
  4018  	ok = js.True == bindings.GetHTMLCanvasElementWidth(
  4019  		this.ref, js.Pointer(&ret),
  4020  	)
  4021  	return
  4022  }
  4023  
  4024  // SetWidth sets the value of property "HTMLCanvasElement.width" to val.
  4025  //
  4026  // It returns false if the property cannot be set.
  4027  func (this HTMLCanvasElement) SetWidth(val uint32) bool {
  4028  	return js.True == bindings.SetHTMLCanvasElementWidth(
  4029  		this.ref,
  4030  		uint32(val),
  4031  	)
  4032  }
  4033  
  4034  // Height returns the value of property "HTMLCanvasElement.height".
  4035  //
  4036  // It returns ok=false if there is no such property.
  4037  func (this HTMLCanvasElement) Height() (ret uint32, ok bool) {
  4038  	ok = js.True == bindings.GetHTMLCanvasElementHeight(
  4039  		this.ref, js.Pointer(&ret),
  4040  	)
  4041  	return
  4042  }
  4043  
  4044  // SetHeight sets the value of property "HTMLCanvasElement.height" to val.
  4045  //
  4046  // It returns false if the property cannot be set.
  4047  func (this HTMLCanvasElement) SetHeight(val uint32) bool {
  4048  	return js.True == bindings.SetHTMLCanvasElementHeight(
  4049  		this.ref,
  4050  		uint32(val),
  4051  	)
  4052  }
  4053  
  4054  // HasFuncGetContext returns true if the method "HTMLCanvasElement.getContext" exists.
  4055  func (this HTMLCanvasElement) HasFuncGetContext() bool {
  4056  	return js.True == bindings.HasFuncHTMLCanvasElementGetContext(
  4057  		this.ref,
  4058  	)
  4059  }
  4060  
  4061  // FuncGetContext returns the method "HTMLCanvasElement.getContext".
  4062  func (this HTMLCanvasElement) FuncGetContext() (fn js.Func[func(contextId js.String, options js.Any) RenderingContext]) {
  4063  	bindings.FuncHTMLCanvasElementGetContext(
  4064  		this.ref, js.Pointer(&fn),
  4065  	)
  4066  	return
  4067  }
  4068  
  4069  // GetContext calls the method "HTMLCanvasElement.getContext".
  4070  func (this HTMLCanvasElement) GetContext(contextId js.String, options js.Any) (ret RenderingContext) {
  4071  	bindings.CallHTMLCanvasElementGetContext(
  4072  		this.ref, js.Pointer(&ret),
  4073  		contextId.Ref(),
  4074  		options.Ref(),
  4075  	)
  4076  
  4077  	return
  4078  }
  4079  
  4080  // TryGetContext calls the method "HTMLCanvasElement.getContext"
  4081  // in a try/catch block and returns (_, err, ok = false) when it went through
  4082  // the catch clause.
  4083  func (this HTMLCanvasElement) TryGetContext(contextId js.String, options js.Any) (ret RenderingContext, exception js.Any, ok bool) {
  4084  	ok = js.True == bindings.TryHTMLCanvasElementGetContext(
  4085  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4086  		contextId.Ref(),
  4087  		options.Ref(),
  4088  	)
  4089  
  4090  	return
  4091  }
  4092  
  4093  // HasFuncGetContext1 returns true if the method "HTMLCanvasElement.getContext" exists.
  4094  func (this HTMLCanvasElement) HasFuncGetContext1() bool {
  4095  	return js.True == bindings.HasFuncHTMLCanvasElementGetContext1(
  4096  		this.ref,
  4097  	)
  4098  }
  4099  
  4100  // FuncGetContext1 returns the method "HTMLCanvasElement.getContext".
  4101  func (this HTMLCanvasElement) FuncGetContext1() (fn js.Func[func(contextId js.String) RenderingContext]) {
  4102  	bindings.FuncHTMLCanvasElementGetContext1(
  4103  		this.ref, js.Pointer(&fn),
  4104  	)
  4105  	return
  4106  }
  4107  
  4108  // GetContext1 calls the method "HTMLCanvasElement.getContext".
  4109  func (this HTMLCanvasElement) GetContext1(contextId js.String) (ret RenderingContext) {
  4110  	bindings.CallHTMLCanvasElementGetContext1(
  4111  		this.ref, js.Pointer(&ret),
  4112  		contextId.Ref(),
  4113  	)
  4114  
  4115  	return
  4116  }
  4117  
  4118  // TryGetContext1 calls the method "HTMLCanvasElement.getContext"
  4119  // in a try/catch block and returns (_, err, ok = false) when it went through
  4120  // the catch clause.
  4121  func (this HTMLCanvasElement) TryGetContext1(contextId js.String) (ret RenderingContext, exception js.Any, ok bool) {
  4122  	ok = js.True == bindings.TryHTMLCanvasElementGetContext1(
  4123  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4124  		contextId.Ref(),
  4125  	)
  4126  
  4127  	return
  4128  }
  4129  
  4130  // HasFuncToDataURL returns true if the method "HTMLCanvasElement.toDataURL" exists.
  4131  func (this HTMLCanvasElement) HasFuncToDataURL() bool {
  4132  	return js.True == bindings.HasFuncHTMLCanvasElementToDataURL(
  4133  		this.ref,
  4134  	)
  4135  }
  4136  
  4137  // FuncToDataURL returns the method "HTMLCanvasElement.toDataURL".
  4138  func (this HTMLCanvasElement) FuncToDataURL() (fn js.Func[func(typ js.String, quality js.Any) js.String]) {
  4139  	bindings.FuncHTMLCanvasElementToDataURL(
  4140  		this.ref, js.Pointer(&fn),
  4141  	)
  4142  	return
  4143  }
  4144  
  4145  // ToDataURL calls the method "HTMLCanvasElement.toDataURL".
  4146  func (this HTMLCanvasElement) ToDataURL(typ js.String, quality js.Any) (ret js.String) {
  4147  	bindings.CallHTMLCanvasElementToDataURL(
  4148  		this.ref, js.Pointer(&ret),
  4149  		typ.Ref(),
  4150  		quality.Ref(),
  4151  	)
  4152  
  4153  	return
  4154  }
  4155  
  4156  // TryToDataURL calls the method "HTMLCanvasElement.toDataURL"
  4157  // in a try/catch block and returns (_, err, ok = false) when it went through
  4158  // the catch clause.
  4159  func (this HTMLCanvasElement) TryToDataURL(typ js.String, quality js.Any) (ret js.String, exception js.Any, ok bool) {
  4160  	ok = js.True == bindings.TryHTMLCanvasElementToDataURL(
  4161  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4162  		typ.Ref(),
  4163  		quality.Ref(),
  4164  	)
  4165  
  4166  	return
  4167  }
  4168  
  4169  // HasFuncToDataURL1 returns true if the method "HTMLCanvasElement.toDataURL" exists.
  4170  func (this HTMLCanvasElement) HasFuncToDataURL1() bool {
  4171  	return js.True == bindings.HasFuncHTMLCanvasElementToDataURL1(
  4172  		this.ref,
  4173  	)
  4174  }
  4175  
  4176  // FuncToDataURL1 returns the method "HTMLCanvasElement.toDataURL".
  4177  func (this HTMLCanvasElement) FuncToDataURL1() (fn js.Func[func(typ js.String) js.String]) {
  4178  	bindings.FuncHTMLCanvasElementToDataURL1(
  4179  		this.ref, js.Pointer(&fn),
  4180  	)
  4181  	return
  4182  }
  4183  
  4184  // ToDataURL1 calls the method "HTMLCanvasElement.toDataURL".
  4185  func (this HTMLCanvasElement) ToDataURL1(typ js.String) (ret js.String) {
  4186  	bindings.CallHTMLCanvasElementToDataURL1(
  4187  		this.ref, js.Pointer(&ret),
  4188  		typ.Ref(),
  4189  	)
  4190  
  4191  	return
  4192  }
  4193  
  4194  // TryToDataURL1 calls the method "HTMLCanvasElement.toDataURL"
  4195  // in a try/catch block and returns (_, err, ok = false) when it went through
  4196  // the catch clause.
  4197  func (this HTMLCanvasElement) TryToDataURL1(typ js.String) (ret js.String, exception js.Any, ok bool) {
  4198  	ok = js.True == bindings.TryHTMLCanvasElementToDataURL1(
  4199  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4200  		typ.Ref(),
  4201  	)
  4202  
  4203  	return
  4204  }
  4205  
  4206  // HasFuncToDataURL2 returns true if the method "HTMLCanvasElement.toDataURL" exists.
  4207  func (this HTMLCanvasElement) HasFuncToDataURL2() bool {
  4208  	return js.True == bindings.HasFuncHTMLCanvasElementToDataURL2(
  4209  		this.ref,
  4210  	)
  4211  }
  4212  
  4213  // FuncToDataURL2 returns the method "HTMLCanvasElement.toDataURL".
  4214  func (this HTMLCanvasElement) FuncToDataURL2() (fn js.Func[func() js.String]) {
  4215  	bindings.FuncHTMLCanvasElementToDataURL2(
  4216  		this.ref, js.Pointer(&fn),
  4217  	)
  4218  	return
  4219  }
  4220  
  4221  // ToDataURL2 calls the method "HTMLCanvasElement.toDataURL".
  4222  func (this HTMLCanvasElement) ToDataURL2() (ret js.String) {
  4223  	bindings.CallHTMLCanvasElementToDataURL2(
  4224  		this.ref, js.Pointer(&ret),
  4225  	)
  4226  
  4227  	return
  4228  }
  4229  
  4230  // TryToDataURL2 calls the method "HTMLCanvasElement.toDataURL"
  4231  // in a try/catch block and returns (_, err, ok = false) when it went through
  4232  // the catch clause.
  4233  func (this HTMLCanvasElement) TryToDataURL2() (ret js.String, exception js.Any, ok bool) {
  4234  	ok = js.True == bindings.TryHTMLCanvasElementToDataURL2(
  4235  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4236  	)
  4237  
  4238  	return
  4239  }
  4240  
  4241  // HasFuncToBlob returns true if the method "HTMLCanvasElement.toBlob" exists.
  4242  func (this HTMLCanvasElement) HasFuncToBlob() bool {
  4243  	return js.True == bindings.HasFuncHTMLCanvasElementToBlob(
  4244  		this.ref,
  4245  	)
  4246  }
  4247  
  4248  // FuncToBlob returns the method "HTMLCanvasElement.toBlob".
  4249  func (this HTMLCanvasElement) FuncToBlob() (fn js.Func[func(callback js.Func[func(blob Blob)], typ js.String, quality js.Any)]) {
  4250  	bindings.FuncHTMLCanvasElementToBlob(
  4251  		this.ref, js.Pointer(&fn),
  4252  	)
  4253  	return
  4254  }
  4255  
  4256  // ToBlob calls the method "HTMLCanvasElement.toBlob".
  4257  func (this HTMLCanvasElement) ToBlob(callback js.Func[func(blob Blob)], typ js.String, quality js.Any) (ret js.Void) {
  4258  	bindings.CallHTMLCanvasElementToBlob(
  4259  		this.ref, js.Pointer(&ret),
  4260  		callback.Ref(),
  4261  		typ.Ref(),
  4262  		quality.Ref(),
  4263  	)
  4264  
  4265  	return
  4266  }
  4267  
  4268  // TryToBlob calls the method "HTMLCanvasElement.toBlob"
  4269  // in a try/catch block and returns (_, err, ok = false) when it went through
  4270  // the catch clause.
  4271  func (this HTMLCanvasElement) TryToBlob(callback js.Func[func(blob Blob)], typ js.String, quality js.Any) (ret js.Void, exception js.Any, ok bool) {
  4272  	ok = js.True == bindings.TryHTMLCanvasElementToBlob(
  4273  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4274  		callback.Ref(),
  4275  		typ.Ref(),
  4276  		quality.Ref(),
  4277  	)
  4278  
  4279  	return
  4280  }
  4281  
  4282  // HasFuncToBlob1 returns true if the method "HTMLCanvasElement.toBlob" exists.
  4283  func (this HTMLCanvasElement) HasFuncToBlob1() bool {
  4284  	return js.True == bindings.HasFuncHTMLCanvasElementToBlob1(
  4285  		this.ref,
  4286  	)
  4287  }
  4288  
  4289  // FuncToBlob1 returns the method "HTMLCanvasElement.toBlob".
  4290  func (this HTMLCanvasElement) FuncToBlob1() (fn js.Func[func(callback js.Func[func(blob Blob)], typ js.String)]) {
  4291  	bindings.FuncHTMLCanvasElementToBlob1(
  4292  		this.ref, js.Pointer(&fn),
  4293  	)
  4294  	return
  4295  }
  4296  
  4297  // ToBlob1 calls the method "HTMLCanvasElement.toBlob".
  4298  func (this HTMLCanvasElement) ToBlob1(callback js.Func[func(blob Blob)], typ js.String) (ret js.Void) {
  4299  	bindings.CallHTMLCanvasElementToBlob1(
  4300  		this.ref, js.Pointer(&ret),
  4301  		callback.Ref(),
  4302  		typ.Ref(),
  4303  	)
  4304  
  4305  	return
  4306  }
  4307  
  4308  // TryToBlob1 calls the method "HTMLCanvasElement.toBlob"
  4309  // in a try/catch block and returns (_, err, ok = false) when it went through
  4310  // the catch clause.
  4311  func (this HTMLCanvasElement) TryToBlob1(callback js.Func[func(blob Blob)], typ js.String) (ret js.Void, exception js.Any, ok bool) {
  4312  	ok = js.True == bindings.TryHTMLCanvasElementToBlob1(
  4313  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4314  		callback.Ref(),
  4315  		typ.Ref(),
  4316  	)
  4317  
  4318  	return
  4319  }
  4320  
  4321  // HasFuncToBlob2 returns true if the method "HTMLCanvasElement.toBlob" exists.
  4322  func (this HTMLCanvasElement) HasFuncToBlob2() bool {
  4323  	return js.True == bindings.HasFuncHTMLCanvasElementToBlob2(
  4324  		this.ref,
  4325  	)
  4326  }
  4327  
  4328  // FuncToBlob2 returns the method "HTMLCanvasElement.toBlob".
  4329  func (this HTMLCanvasElement) FuncToBlob2() (fn js.Func[func(callback js.Func[func(blob Blob)])]) {
  4330  	bindings.FuncHTMLCanvasElementToBlob2(
  4331  		this.ref, js.Pointer(&fn),
  4332  	)
  4333  	return
  4334  }
  4335  
  4336  // ToBlob2 calls the method "HTMLCanvasElement.toBlob".
  4337  func (this HTMLCanvasElement) ToBlob2(callback js.Func[func(blob Blob)]) (ret js.Void) {
  4338  	bindings.CallHTMLCanvasElementToBlob2(
  4339  		this.ref, js.Pointer(&ret),
  4340  		callback.Ref(),
  4341  	)
  4342  
  4343  	return
  4344  }
  4345  
  4346  // TryToBlob2 calls the method "HTMLCanvasElement.toBlob"
  4347  // in a try/catch block and returns (_, err, ok = false) when it went through
  4348  // the catch clause.
  4349  func (this HTMLCanvasElement) TryToBlob2(callback js.Func[func(blob Blob)]) (ret js.Void, exception js.Any, ok bool) {
  4350  	ok = js.True == bindings.TryHTMLCanvasElementToBlob2(
  4351  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4352  		callback.Ref(),
  4353  	)
  4354  
  4355  	return
  4356  }
  4357  
  4358  // HasFuncTransferControlToOffscreen returns true if the method "HTMLCanvasElement.transferControlToOffscreen" exists.
  4359  func (this HTMLCanvasElement) HasFuncTransferControlToOffscreen() bool {
  4360  	return js.True == bindings.HasFuncHTMLCanvasElementTransferControlToOffscreen(
  4361  		this.ref,
  4362  	)
  4363  }
  4364  
  4365  // FuncTransferControlToOffscreen returns the method "HTMLCanvasElement.transferControlToOffscreen".
  4366  func (this HTMLCanvasElement) FuncTransferControlToOffscreen() (fn js.Func[func() OffscreenCanvas]) {
  4367  	bindings.FuncHTMLCanvasElementTransferControlToOffscreen(
  4368  		this.ref, js.Pointer(&fn),
  4369  	)
  4370  	return
  4371  }
  4372  
  4373  // TransferControlToOffscreen calls the method "HTMLCanvasElement.transferControlToOffscreen".
  4374  func (this HTMLCanvasElement) TransferControlToOffscreen() (ret OffscreenCanvas) {
  4375  	bindings.CallHTMLCanvasElementTransferControlToOffscreen(
  4376  		this.ref, js.Pointer(&ret),
  4377  	)
  4378  
  4379  	return
  4380  }
  4381  
  4382  // TryTransferControlToOffscreen calls the method "HTMLCanvasElement.transferControlToOffscreen"
  4383  // in a try/catch block and returns (_, err, ok = false) when it went through
  4384  // the catch clause.
  4385  func (this HTMLCanvasElement) TryTransferControlToOffscreen() (ret OffscreenCanvas, exception js.Any, ok bool) {
  4386  	ok = js.True == bindings.TryHTMLCanvasElementTransferControlToOffscreen(
  4387  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4388  	)
  4389  
  4390  	return
  4391  }
  4392  
  4393  // HasFuncCaptureStream returns true if the method "HTMLCanvasElement.captureStream" exists.
  4394  func (this HTMLCanvasElement) HasFuncCaptureStream() bool {
  4395  	return js.True == bindings.HasFuncHTMLCanvasElementCaptureStream(
  4396  		this.ref,
  4397  	)
  4398  }
  4399  
  4400  // FuncCaptureStream returns the method "HTMLCanvasElement.captureStream".
  4401  func (this HTMLCanvasElement) FuncCaptureStream() (fn js.Func[func(frameRequestRate float64) MediaStream]) {
  4402  	bindings.FuncHTMLCanvasElementCaptureStream(
  4403  		this.ref, js.Pointer(&fn),
  4404  	)
  4405  	return
  4406  }
  4407  
  4408  // CaptureStream calls the method "HTMLCanvasElement.captureStream".
  4409  func (this HTMLCanvasElement) CaptureStream(frameRequestRate float64) (ret MediaStream) {
  4410  	bindings.CallHTMLCanvasElementCaptureStream(
  4411  		this.ref, js.Pointer(&ret),
  4412  		float64(frameRequestRate),
  4413  	)
  4414  
  4415  	return
  4416  }
  4417  
  4418  // TryCaptureStream calls the method "HTMLCanvasElement.captureStream"
  4419  // in a try/catch block and returns (_, err, ok = false) when it went through
  4420  // the catch clause.
  4421  func (this HTMLCanvasElement) TryCaptureStream(frameRequestRate float64) (ret MediaStream, exception js.Any, ok bool) {
  4422  	ok = js.True == bindings.TryHTMLCanvasElementCaptureStream(
  4423  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4424  		float64(frameRequestRate),
  4425  	)
  4426  
  4427  	return
  4428  }
  4429  
  4430  // HasFuncCaptureStream1 returns true if the method "HTMLCanvasElement.captureStream" exists.
  4431  func (this HTMLCanvasElement) HasFuncCaptureStream1() bool {
  4432  	return js.True == bindings.HasFuncHTMLCanvasElementCaptureStream1(
  4433  		this.ref,
  4434  	)
  4435  }
  4436  
  4437  // FuncCaptureStream1 returns the method "HTMLCanvasElement.captureStream".
  4438  func (this HTMLCanvasElement) FuncCaptureStream1() (fn js.Func[func() MediaStream]) {
  4439  	bindings.FuncHTMLCanvasElementCaptureStream1(
  4440  		this.ref, js.Pointer(&fn),
  4441  	)
  4442  	return
  4443  }
  4444  
  4445  // CaptureStream1 calls the method "HTMLCanvasElement.captureStream".
  4446  func (this HTMLCanvasElement) CaptureStream1() (ret MediaStream) {
  4447  	bindings.CallHTMLCanvasElementCaptureStream1(
  4448  		this.ref, js.Pointer(&ret),
  4449  	)
  4450  
  4451  	return
  4452  }
  4453  
  4454  // TryCaptureStream1 calls the method "HTMLCanvasElement.captureStream"
  4455  // in a try/catch block and returns (_, err, ok = false) when it went through
  4456  // the catch clause.
  4457  func (this HTMLCanvasElement) TryCaptureStream1() (ret MediaStream, exception js.Any, ok bool) {
  4458  	ok = js.True == bindings.TryHTMLCanvasElementCaptureStream1(
  4459  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4460  	)
  4461  
  4462  	return
  4463  }
  4464  
  4465  type OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData struct {
  4466  	ref js.Ref
  4467  }
  4468  
  4469  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) Ref() js.Ref {
  4470  	return x.ref
  4471  }
  4472  
  4473  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) Free() {
  4474  	x.ref.Free()
  4475  }
  4476  
  4477  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) FromRef(ref js.Ref) OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData {
  4478  	return OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData{
  4479  		ref: ref,
  4480  	}
  4481  }
  4482  
  4483  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) HTMLImageElement() HTMLImageElement {
  4484  	return HTMLImageElement{}.FromRef(x.ref)
  4485  }
  4486  
  4487  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) SVGImageElement() SVGImageElement {
  4488  	return SVGImageElement{}.FromRef(x.ref)
  4489  }
  4490  
  4491  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) HTMLVideoElement() HTMLVideoElement {
  4492  	return HTMLVideoElement{}.FromRef(x.ref)
  4493  }
  4494  
  4495  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) HTMLCanvasElement() HTMLCanvasElement {
  4496  	return HTMLCanvasElement{}.FromRef(x.ref)
  4497  }
  4498  
  4499  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) ImageBitmap() ImageBitmap {
  4500  	return ImageBitmap{}.FromRef(x.ref)
  4501  }
  4502  
  4503  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) OffscreenCanvas() OffscreenCanvas {
  4504  	return OffscreenCanvas{}.FromRef(x.ref)
  4505  }
  4506  
  4507  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) VideoFrame() VideoFrame {
  4508  	return VideoFrame{}.FromRef(x.ref)
  4509  }
  4510  
  4511  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) Blob() Blob {
  4512  	return Blob{}.FromRef(x.ref)
  4513  }
  4514  
  4515  func (x OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData) ImageData() ImageData {
  4516  	return ImageData{}.FromRef(x.ref)
  4517  }
  4518  
  4519  type ImageBitmapSource = OneOf_HTMLImageElement_SVGImageElement_HTMLVideoElement_HTMLCanvasElement_ImageBitmap_OffscreenCanvas_VideoFrame_Blob_ImageData
  4520  
  4521  func NewBarcodeDetector(barcodeDetectorOptions BarcodeDetectorOptions) (ret BarcodeDetector) {
  4522  	ret.ref = bindings.NewBarcodeDetectorByBarcodeDetector(
  4523  		js.Pointer(&barcodeDetectorOptions))
  4524  	return
  4525  }
  4526  
  4527  func NewBarcodeDetectorByBarcodeDetector1() (ret BarcodeDetector) {
  4528  	ret.ref = bindings.NewBarcodeDetectorByBarcodeDetector1()
  4529  	return
  4530  }
  4531  
  4532  type BarcodeDetector struct {
  4533  	ref js.Ref
  4534  }
  4535  
  4536  func (this BarcodeDetector) Once() BarcodeDetector {
  4537  	this.ref.Once()
  4538  	return this
  4539  }
  4540  
  4541  func (this BarcodeDetector) Ref() js.Ref {
  4542  	return this.ref
  4543  }
  4544  
  4545  func (this BarcodeDetector) FromRef(ref js.Ref) BarcodeDetector {
  4546  	this.ref = ref
  4547  	return this
  4548  }
  4549  
  4550  func (this BarcodeDetector) Free() {
  4551  	this.ref.Free()
  4552  }
  4553  
  4554  // HasFuncGetSupportedFormats returns true if the static method "BarcodeDetector.getSupportedFormats" exists.
  4555  func (this BarcodeDetector) HasFuncGetSupportedFormats() bool {
  4556  	return js.True == bindings.HasFuncBarcodeDetectorGetSupportedFormats(
  4557  		this.ref,
  4558  	)
  4559  }
  4560  
  4561  // FuncGetSupportedFormats returns the static method "BarcodeDetector.getSupportedFormats".
  4562  func (this BarcodeDetector) FuncGetSupportedFormats() (fn js.Func[func() js.Promise[js.Array[BarcodeFormat]]]) {
  4563  	bindings.FuncBarcodeDetectorGetSupportedFormats(
  4564  		this.ref, js.Pointer(&fn),
  4565  	)
  4566  	return
  4567  }
  4568  
  4569  // GetSupportedFormats calls the static method "BarcodeDetector.getSupportedFormats".
  4570  func (this BarcodeDetector) GetSupportedFormats() (ret js.Promise[js.Array[BarcodeFormat]]) {
  4571  	bindings.CallBarcodeDetectorGetSupportedFormats(
  4572  		this.ref, js.Pointer(&ret),
  4573  	)
  4574  
  4575  	return
  4576  }
  4577  
  4578  // TryGetSupportedFormats calls the static method "BarcodeDetector.getSupportedFormats"
  4579  // in a try/catch block and returns (_, err, ok = false) when it went through
  4580  // the catch clause.
  4581  func (this BarcodeDetector) TryGetSupportedFormats() (ret js.Promise[js.Array[BarcodeFormat]], exception js.Any, ok bool) {
  4582  	ok = js.True == bindings.TryBarcodeDetectorGetSupportedFormats(
  4583  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4584  	)
  4585  
  4586  	return
  4587  }
  4588  
  4589  // HasFuncDetect returns true if the method "BarcodeDetector.detect" exists.
  4590  func (this BarcodeDetector) HasFuncDetect() bool {
  4591  	return js.True == bindings.HasFuncBarcodeDetectorDetect(
  4592  		this.ref,
  4593  	)
  4594  }
  4595  
  4596  // FuncDetect returns the method "BarcodeDetector.detect".
  4597  func (this BarcodeDetector) FuncDetect() (fn js.Func[func(image ImageBitmapSource) js.Promise[js.Array[DetectedBarcode]]]) {
  4598  	bindings.FuncBarcodeDetectorDetect(
  4599  		this.ref, js.Pointer(&fn),
  4600  	)
  4601  	return
  4602  }
  4603  
  4604  // Detect calls the method "BarcodeDetector.detect".
  4605  func (this BarcodeDetector) Detect(image ImageBitmapSource) (ret js.Promise[js.Array[DetectedBarcode]]) {
  4606  	bindings.CallBarcodeDetectorDetect(
  4607  		this.ref, js.Pointer(&ret),
  4608  		image.Ref(),
  4609  	)
  4610  
  4611  	return
  4612  }
  4613  
  4614  // TryDetect calls the method "BarcodeDetector.detect"
  4615  // in a try/catch block and returns (_, err, ok = false) when it went through
  4616  // the catch clause.
  4617  func (this BarcodeDetector) TryDetect(image ImageBitmapSource) (ret js.Promise[js.Array[DetectedBarcode]], exception js.Any, ok bool) {
  4618  	ok = js.True == bindings.TryBarcodeDetectorDetect(
  4619  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4620  		image.Ref(),
  4621  	)
  4622  
  4623  	return
  4624  }
  4625  
  4626  type CompositeOperationOrAuto uint32
  4627  
  4628  const (
  4629  	_ CompositeOperationOrAuto = iota
  4630  
  4631  	CompositeOperationOrAuto_REPLACE
  4632  	CompositeOperationOrAuto_ADD
  4633  	CompositeOperationOrAuto_ACCUMULATE
  4634  	CompositeOperationOrAuto_AUTO
  4635  )
  4636  
  4637  func (CompositeOperationOrAuto) FromRef(str js.Ref) CompositeOperationOrAuto {
  4638  	return CompositeOperationOrAuto(bindings.ConstOfCompositeOperationOrAuto(str))
  4639  }
  4640  
  4641  func (x CompositeOperationOrAuto) String() (string, bool) {
  4642  	switch x {
  4643  	case CompositeOperationOrAuto_REPLACE:
  4644  		return "replace", true
  4645  	case CompositeOperationOrAuto_ADD:
  4646  		return "add", true
  4647  	case CompositeOperationOrAuto_ACCUMULATE:
  4648  		return "accumulate", true
  4649  	case CompositeOperationOrAuto_AUTO:
  4650  		return "auto", true
  4651  	default:
  4652  		return "", false
  4653  	}
  4654  }
  4655  
  4656  type BaseComputedKeyframe struct {
  4657  	// Offset is "BaseComputedKeyframe.offset"
  4658  	//
  4659  	// Optional, defaults to null.
  4660  	//
  4661  	// NOTE: FFI_USE_Offset MUST be set to true to make this field effective.
  4662  	Offset float64
  4663  	// ComputedOffset is "BaseComputedKeyframe.computedOffset"
  4664  	//
  4665  	// Optional
  4666  	//
  4667  	// NOTE: FFI_USE_ComputedOffset MUST be set to true to make this field effective.
  4668  	ComputedOffset float64
  4669  	// Easing is "BaseComputedKeyframe.easing"
  4670  	//
  4671  	// Optional, defaults to "linear".
  4672  	Easing js.String
  4673  	// Composite is "BaseComputedKeyframe.composite"
  4674  	//
  4675  	// Optional, defaults to "auto".
  4676  	Composite CompositeOperationOrAuto
  4677  
  4678  	FFI_USE_Offset         bool // for Offset.
  4679  	FFI_USE_ComputedOffset bool // for ComputedOffset.
  4680  
  4681  	FFI_USE bool
  4682  }
  4683  
  4684  // FromRef calls UpdateFrom and returns a BaseComputedKeyframe with all fields set.
  4685  func (p BaseComputedKeyframe) FromRef(ref js.Ref) BaseComputedKeyframe {
  4686  	p.UpdateFrom(ref)
  4687  	return p
  4688  }
  4689  
  4690  // New creates a new BaseComputedKeyframe in the application heap.
  4691  func (p BaseComputedKeyframe) New() js.Ref {
  4692  	return bindings.BaseComputedKeyframeJSLoad(
  4693  		js.Pointer(&p), js.True, 0,
  4694  	)
  4695  }
  4696  
  4697  // UpdateFrom copies value of all fields of the heap object to p.
  4698  func (p *BaseComputedKeyframe) UpdateFrom(ref js.Ref) {
  4699  	bindings.BaseComputedKeyframeJSStore(
  4700  		js.Pointer(p), ref,
  4701  	)
  4702  }
  4703  
  4704  // Update writes all fields of the p to the heap object referenced by ref.
  4705  func (p *BaseComputedKeyframe) Update(ref js.Ref) {
  4706  	bindings.BaseComputedKeyframeJSLoad(
  4707  		js.Pointer(p), js.False, ref,
  4708  	)
  4709  }
  4710  
  4711  // FreeMembers frees fields with heap reference, if recursive is true
  4712  // free all heap references reachable from p.
  4713  func (p *BaseComputedKeyframe) FreeMembers(recursive bool) {
  4714  	js.Free(
  4715  		p.Easing.Ref(),
  4716  	)
  4717  	p.Easing = p.Easing.FromRef(js.Undefined)
  4718  }
  4719  
  4720  type BaseKeyframe struct {
  4721  	// Offset is "BaseKeyframe.offset"
  4722  	//
  4723  	// Optional, defaults to null.
  4724  	//
  4725  	// NOTE: FFI_USE_Offset MUST be set to true to make this field effective.
  4726  	Offset float64
  4727  	// Easing is "BaseKeyframe.easing"
  4728  	//
  4729  	// Optional, defaults to "linear".
  4730  	Easing js.String
  4731  	// Composite is "BaseKeyframe.composite"
  4732  	//
  4733  	// Optional, defaults to "auto".
  4734  	Composite CompositeOperationOrAuto
  4735  
  4736  	FFI_USE_Offset bool // for Offset.
  4737  
  4738  	FFI_USE bool
  4739  }
  4740  
  4741  // FromRef calls UpdateFrom and returns a BaseKeyframe with all fields set.
  4742  func (p BaseKeyframe) FromRef(ref js.Ref) BaseKeyframe {
  4743  	p.UpdateFrom(ref)
  4744  	return p
  4745  }
  4746  
  4747  // New creates a new BaseKeyframe in the application heap.
  4748  func (p BaseKeyframe) New() js.Ref {
  4749  	return bindings.BaseKeyframeJSLoad(
  4750  		js.Pointer(&p), js.True, 0,
  4751  	)
  4752  }
  4753  
  4754  // UpdateFrom copies value of all fields of the heap object to p.
  4755  func (p *BaseKeyframe) UpdateFrom(ref js.Ref) {
  4756  	bindings.BaseKeyframeJSStore(
  4757  		js.Pointer(p), ref,
  4758  	)
  4759  }
  4760  
  4761  // Update writes all fields of the p to the heap object referenced by ref.
  4762  func (p *BaseKeyframe) Update(ref js.Ref) {
  4763  	bindings.BaseKeyframeJSLoad(
  4764  		js.Pointer(p), js.False, ref,
  4765  	)
  4766  }
  4767  
  4768  // FreeMembers frees fields with heap reference, if recursive is true
  4769  // free all heap references reachable from p.
  4770  func (p *BaseKeyframe) FreeMembers(recursive bool) {
  4771  	js.Free(
  4772  		p.Easing.Ref(),
  4773  	)
  4774  	p.Easing = p.Easing.FromRef(js.Undefined)
  4775  }
  4776  
  4777  type OneOf_Float64_ArrayFloat64_Null struct {
  4778  	ref js.Ref
  4779  }
  4780  
  4781  func (x OneOf_Float64_ArrayFloat64_Null) Ref() js.Ref {
  4782  	return x.ref
  4783  }
  4784  
  4785  func (x OneOf_Float64_ArrayFloat64_Null) Free() {
  4786  	x.ref.Free()
  4787  }
  4788  
  4789  func (x OneOf_Float64_ArrayFloat64_Null) FromRef(ref js.Ref) OneOf_Float64_ArrayFloat64_Null {
  4790  	return OneOf_Float64_ArrayFloat64_Null{
  4791  		ref: ref,
  4792  	}
  4793  }
  4794  
  4795  func (x OneOf_Float64_ArrayFloat64_Null) Null() bool {
  4796  	return x.ref == js.Null
  4797  }
  4798  
  4799  func (x OneOf_Float64_ArrayFloat64_Null) Float64() float64 {
  4800  	return js.Number[float64]{}.FromRef(x.ref).Get()
  4801  }
  4802  
  4803  func (x OneOf_Float64_ArrayFloat64_Null) ArrayFloat64() js.Array[float64] {
  4804  	return js.Array[float64]{}.FromRef(x.ref)
  4805  }
  4806  
  4807  type OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto struct {
  4808  	ref js.Ref
  4809  }
  4810  
  4811  func (x OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto) Ref() js.Ref {
  4812  	return x.ref
  4813  }
  4814  
  4815  func (x OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto) Free() {
  4816  	x.ref.Free()
  4817  }
  4818  
  4819  func (x OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto) FromRef(ref js.Ref) OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto {
  4820  	return OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto{
  4821  		ref: ref,
  4822  	}
  4823  }
  4824  
  4825  func (x OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto) CompositeOperationOrAuto() CompositeOperationOrAuto {
  4826  	return CompositeOperationOrAuto(0).FromRef(x.ref)
  4827  }
  4828  
  4829  func (x OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto) ArrayCompositeOperationOrAuto() js.Array[CompositeOperationOrAuto] {
  4830  	return js.Array[CompositeOperationOrAuto]{}.FromRef(x.ref)
  4831  }
  4832  
  4833  type BasePropertyIndexedKeyframe struct {
  4834  	// Offset is "BasePropertyIndexedKeyframe.offset"
  4835  	//
  4836  	// Optional, defaults to [].
  4837  	Offset OneOf_Float64_ArrayFloat64_Null
  4838  	// Easing is "BasePropertyIndexedKeyframe.easing"
  4839  	//
  4840  	// Optional, defaults to [].
  4841  	Easing OneOf_String_ArrayString
  4842  	// Composite is "BasePropertyIndexedKeyframe.composite"
  4843  	//
  4844  	// Optional, defaults to [].
  4845  	Composite OneOf_CompositeOperationOrAuto_ArrayCompositeOperationOrAuto
  4846  
  4847  	FFI_USE bool
  4848  }
  4849  
  4850  // FromRef calls UpdateFrom and returns a BasePropertyIndexedKeyframe with all fields set.
  4851  func (p BasePropertyIndexedKeyframe) FromRef(ref js.Ref) BasePropertyIndexedKeyframe {
  4852  	p.UpdateFrom(ref)
  4853  	return p
  4854  }
  4855  
  4856  // New creates a new BasePropertyIndexedKeyframe in the application heap.
  4857  func (p BasePropertyIndexedKeyframe) New() js.Ref {
  4858  	return bindings.BasePropertyIndexedKeyframeJSLoad(
  4859  		js.Pointer(&p), js.True, 0,
  4860  	)
  4861  }
  4862  
  4863  // UpdateFrom copies value of all fields of the heap object to p.
  4864  func (p *BasePropertyIndexedKeyframe) UpdateFrom(ref js.Ref) {
  4865  	bindings.BasePropertyIndexedKeyframeJSStore(
  4866  		js.Pointer(p), ref,
  4867  	)
  4868  }
  4869  
  4870  // Update writes all fields of the p to the heap object referenced by ref.
  4871  func (p *BasePropertyIndexedKeyframe) Update(ref js.Ref) {
  4872  	bindings.BasePropertyIndexedKeyframeJSLoad(
  4873  		js.Pointer(p), js.False, ref,
  4874  	)
  4875  }
  4876  
  4877  // FreeMembers frees fields with heap reference, if recursive is true
  4878  // free all heap references reachable from p.
  4879  func (p *BasePropertyIndexedKeyframe) FreeMembers(recursive bool) {
  4880  	js.Free(
  4881  		p.Offset.Ref(),
  4882  		p.Easing.Ref(),
  4883  		p.Composite.Ref(),
  4884  	)
  4885  	p.Offset = p.Offset.FromRef(js.Undefined)
  4886  	p.Easing = p.Easing.FromRef(js.Undefined)
  4887  	p.Composite = p.Composite.FromRef(js.Undefined)
  4888  }
  4889  
  4890  type BatteryManager struct {
  4891  	EventTarget
  4892  }
  4893  
  4894  func (this BatteryManager) Once() BatteryManager {
  4895  	this.ref.Once()
  4896  	return this
  4897  }
  4898  
  4899  func (this BatteryManager) Ref() js.Ref {
  4900  	return this.EventTarget.Ref()
  4901  }
  4902  
  4903  func (this BatteryManager) FromRef(ref js.Ref) BatteryManager {
  4904  	this.EventTarget = this.EventTarget.FromRef(ref)
  4905  	return this
  4906  }
  4907  
  4908  func (this BatteryManager) Free() {
  4909  	this.ref.Free()
  4910  }
  4911  
  4912  // Charging returns the value of property "BatteryManager.charging".
  4913  //
  4914  // It returns ok=false if there is no such property.
  4915  func (this BatteryManager) Charging() (ret bool, ok bool) {
  4916  	ok = js.True == bindings.GetBatteryManagerCharging(
  4917  		this.ref, js.Pointer(&ret),
  4918  	)
  4919  	return
  4920  }
  4921  
  4922  // ChargingTime returns the value of property "BatteryManager.chargingTime".
  4923  //
  4924  // It returns ok=false if there is no such property.
  4925  func (this BatteryManager) ChargingTime() (ret float64, ok bool) {
  4926  	ok = js.True == bindings.GetBatteryManagerChargingTime(
  4927  		this.ref, js.Pointer(&ret),
  4928  	)
  4929  	return
  4930  }
  4931  
  4932  // DischargingTime returns the value of property "BatteryManager.dischargingTime".
  4933  //
  4934  // It returns ok=false if there is no such property.
  4935  func (this BatteryManager) DischargingTime() (ret float64, ok bool) {
  4936  	ok = js.True == bindings.GetBatteryManagerDischargingTime(
  4937  		this.ref, js.Pointer(&ret),
  4938  	)
  4939  	return
  4940  }
  4941  
  4942  // Level returns the value of property "BatteryManager.level".
  4943  //
  4944  // It returns ok=false if there is no such property.
  4945  func (this BatteryManager) Level() (ret float64, ok bool) {
  4946  	ok = js.True == bindings.GetBatteryManagerLevel(
  4947  		this.ref, js.Pointer(&ret),
  4948  	)
  4949  	return
  4950  }
  4951  
  4952  type PromptResponseObject struct {
  4953  	// UserChoice is "PromptResponseObject.userChoice"
  4954  	//
  4955  	// Optional
  4956  	UserChoice AppBannerPromptOutcome
  4957  
  4958  	FFI_USE bool
  4959  }
  4960  
  4961  // FromRef calls UpdateFrom and returns a PromptResponseObject with all fields set.
  4962  func (p PromptResponseObject) FromRef(ref js.Ref) PromptResponseObject {
  4963  	p.UpdateFrom(ref)
  4964  	return p
  4965  }
  4966  
  4967  // New creates a new PromptResponseObject in the application heap.
  4968  func (p PromptResponseObject) New() js.Ref {
  4969  	return bindings.PromptResponseObjectJSLoad(
  4970  		js.Pointer(&p), js.True, 0,
  4971  	)
  4972  }
  4973  
  4974  // UpdateFrom copies value of all fields of the heap object to p.
  4975  func (p *PromptResponseObject) UpdateFrom(ref js.Ref) {
  4976  	bindings.PromptResponseObjectJSStore(
  4977  		js.Pointer(p), ref,
  4978  	)
  4979  }
  4980  
  4981  // Update writes all fields of the p to the heap object referenced by ref.
  4982  func (p *PromptResponseObject) Update(ref js.Ref) {
  4983  	bindings.PromptResponseObjectJSLoad(
  4984  		js.Pointer(p), js.False, ref,
  4985  	)
  4986  }
  4987  
  4988  // FreeMembers frees fields with heap reference, if recursive is true
  4989  // free all heap references reachable from p.
  4990  func (p *PromptResponseObject) FreeMembers(recursive bool) {
  4991  }
  4992  
  4993  func NewBeforeInstallPromptEvent(typ js.String, eventInitDict EventInit) (ret BeforeInstallPromptEvent) {
  4994  	ret.ref = bindings.NewBeforeInstallPromptEventByBeforeInstallPromptEvent(
  4995  		typ.Ref(),
  4996  		js.Pointer(&eventInitDict))
  4997  	return
  4998  }
  4999  
  5000  func NewBeforeInstallPromptEventByBeforeInstallPromptEvent1(typ js.String) (ret BeforeInstallPromptEvent) {
  5001  	ret.ref = bindings.NewBeforeInstallPromptEventByBeforeInstallPromptEvent1(
  5002  		typ.Ref())
  5003  	return
  5004  }
  5005  
  5006  type BeforeInstallPromptEvent struct {
  5007  	Event
  5008  }
  5009  
  5010  func (this BeforeInstallPromptEvent) Once() BeforeInstallPromptEvent {
  5011  	this.ref.Once()
  5012  	return this
  5013  }
  5014  
  5015  func (this BeforeInstallPromptEvent) Ref() js.Ref {
  5016  	return this.Event.Ref()
  5017  }
  5018  
  5019  func (this BeforeInstallPromptEvent) FromRef(ref js.Ref) BeforeInstallPromptEvent {
  5020  	this.Event = this.Event.FromRef(ref)
  5021  	return this
  5022  }
  5023  
  5024  func (this BeforeInstallPromptEvent) Free() {
  5025  	this.ref.Free()
  5026  }
  5027  
  5028  // HasFuncPrompt returns true if the method "BeforeInstallPromptEvent.prompt" exists.
  5029  func (this BeforeInstallPromptEvent) HasFuncPrompt() bool {
  5030  	return js.True == bindings.HasFuncBeforeInstallPromptEventPrompt(
  5031  		this.ref,
  5032  	)
  5033  }
  5034  
  5035  // FuncPrompt returns the method "BeforeInstallPromptEvent.prompt".
  5036  func (this BeforeInstallPromptEvent) FuncPrompt() (fn js.Func[func() js.Promise[PromptResponseObject]]) {
  5037  	bindings.FuncBeforeInstallPromptEventPrompt(
  5038  		this.ref, js.Pointer(&fn),
  5039  	)
  5040  	return
  5041  }
  5042  
  5043  // Prompt calls the method "BeforeInstallPromptEvent.prompt".
  5044  func (this BeforeInstallPromptEvent) Prompt() (ret js.Promise[PromptResponseObject]) {
  5045  	bindings.CallBeforeInstallPromptEventPrompt(
  5046  		this.ref, js.Pointer(&ret),
  5047  	)
  5048  
  5049  	return
  5050  }
  5051  
  5052  // TryPrompt calls the method "BeforeInstallPromptEvent.prompt"
  5053  // in a try/catch block and returns (_, err, ok = false) when it went through
  5054  // the catch clause.
  5055  func (this BeforeInstallPromptEvent) TryPrompt() (ret js.Promise[PromptResponseObject], exception js.Any, ok bool) {
  5056  	ok = js.True == bindings.TryBeforeInstallPromptEventPrompt(
  5057  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5058  	)
  5059  
  5060  	return
  5061  }
  5062  
  5063  func NewBeforeUnloadEvent(typ js.String, eventInitDict EventInit) (ret BeforeUnloadEvent) {
  5064  	ret.ref = bindings.NewBeforeUnloadEventByBeforeUnloadEvent(
  5065  		typ.Ref(),
  5066  		js.Pointer(&eventInitDict))
  5067  	return
  5068  }
  5069  
  5070  func NewBeforeUnloadEventByBeforeUnloadEvent1(typ js.String) (ret BeforeUnloadEvent) {
  5071  	ret.ref = bindings.NewBeforeUnloadEventByBeforeUnloadEvent1(
  5072  		typ.Ref())
  5073  	return
  5074  }
  5075  
  5076  type BeforeUnloadEvent struct {
  5077  	Event
  5078  }
  5079  
  5080  func (this BeforeUnloadEvent) Once() BeforeUnloadEvent {
  5081  	this.ref.Once()
  5082  	return this
  5083  }
  5084  
  5085  func (this BeforeUnloadEvent) Ref() js.Ref {
  5086  	return this.Event.Ref()
  5087  }
  5088  
  5089  func (this BeforeUnloadEvent) FromRef(ref js.Ref) BeforeUnloadEvent {
  5090  	this.Event = this.Event.FromRef(ref)
  5091  	return this
  5092  }
  5093  
  5094  func (this BeforeUnloadEvent) Free() {
  5095  	this.ref.Free()
  5096  }
  5097  
  5098  // ReturnValue returns the value of property "BeforeUnloadEvent.returnValue".
  5099  //
  5100  // It returns ok=false if there is no such property.
  5101  func (this BeforeUnloadEvent) ReturnValue() (ret js.String, ok bool) {
  5102  	ok = js.True == bindings.GetBeforeUnloadEventReturnValue(
  5103  		this.ref, js.Pointer(&ret),
  5104  	)
  5105  	return
  5106  }
  5107  
  5108  // SetReturnValue sets the value of property "BeforeUnloadEvent.returnValue" to val.
  5109  //
  5110  // It returns false if the property cannot be set.
  5111  func (this BeforeUnloadEvent) SetReturnValue(val js.String) bool {
  5112  	return js.True == bindings.SetBeforeUnloadEventReturnValue(
  5113  		this.ref,
  5114  		val.Ref(),
  5115  	)
  5116  }
  5117  
  5118  type PreviousWin struct {
  5119  	// TimeDelta is "PreviousWin.timeDelta"
  5120  	//
  5121  	// Required
  5122  	TimeDelta int64
  5123  	// AdJSON is "PreviousWin.adJSON"
  5124  	//
  5125  	// Required
  5126  	AdJSON js.String
  5127  
  5128  	FFI_USE bool
  5129  }
  5130  
  5131  // FromRef calls UpdateFrom and returns a PreviousWin with all fields set.
  5132  func (p PreviousWin) FromRef(ref js.Ref) PreviousWin {
  5133  	p.UpdateFrom(ref)
  5134  	return p
  5135  }
  5136  
  5137  // New creates a new PreviousWin in the application heap.
  5138  func (p PreviousWin) New() js.Ref {
  5139  	return bindings.PreviousWinJSLoad(
  5140  		js.Pointer(&p), js.True, 0,
  5141  	)
  5142  }
  5143  
  5144  // UpdateFrom copies value of all fields of the heap object to p.
  5145  func (p *PreviousWin) UpdateFrom(ref js.Ref) {
  5146  	bindings.PreviousWinJSStore(
  5147  		js.Pointer(p), ref,
  5148  	)
  5149  }
  5150  
  5151  // Update writes all fields of the p to the heap object referenced by ref.
  5152  func (p *PreviousWin) Update(ref js.Ref) {
  5153  	bindings.PreviousWinJSLoad(
  5154  		js.Pointer(p), js.False, ref,
  5155  	)
  5156  }
  5157  
  5158  // FreeMembers frees fields with heap reference, if recursive is true
  5159  // free all heap references reachable from p.
  5160  func (p *PreviousWin) FreeMembers(recursive bool) {
  5161  	js.Free(
  5162  		p.AdJSON.Ref(),
  5163  	)
  5164  	p.AdJSON = p.AdJSON.FromRef(js.Undefined)
  5165  }
  5166  
  5167  type BiddingBrowserSignals struct {
  5168  	// TopWindowHostname is "BiddingBrowserSignals.topWindowHostname"
  5169  	//
  5170  	// Required
  5171  	TopWindowHostname js.String
  5172  	// Seller is "BiddingBrowserSignals.seller"
  5173  	//
  5174  	// Required
  5175  	Seller js.String
  5176  	// JoinCount is "BiddingBrowserSignals.joinCount"
  5177  	//
  5178  	// Required
  5179  	JoinCount int32
  5180  	// BidCount is "BiddingBrowserSignals.bidCount"
  5181  	//
  5182  	// Required
  5183  	BidCount int32
  5184  	// Recency is "BiddingBrowserSignals.recency"
  5185  	//
  5186  	// Required
  5187  	Recency int32
  5188  	// TopLevelSeller is "BiddingBrowserSignals.topLevelSeller"
  5189  	//
  5190  	// Optional
  5191  	TopLevelSeller js.String
  5192  	// PrevWinsMs is "BiddingBrowserSignals.prevWinsMs"
  5193  	//
  5194  	// Optional
  5195  	PrevWinsMs js.Array[PreviousWin]
  5196  	// WasmHelper is "BiddingBrowserSignals.wasmHelper"
  5197  	//
  5198  	// Optional
  5199  	WasmHelper js.Object
  5200  	// DataVersion is "BiddingBrowserSignals.dataVersion"
  5201  	//
  5202  	// Optional
  5203  	//
  5204  	// NOTE: FFI_USE_DataVersion MUST be set to true to make this field effective.
  5205  	DataVersion uint32
  5206  
  5207  	FFI_USE_DataVersion bool // for DataVersion.
  5208  
  5209  	FFI_USE bool
  5210  }
  5211  
  5212  // FromRef calls UpdateFrom and returns a BiddingBrowserSignals with all fields set.
  5213  func (p BiddingBrowserSignals) FromRef(ref js.Ref) BiddingBrowserSignals {
  5214  	p.UpdateFrom(ref)
  5215  	return p
  5216  }
  5217  
  5218  // New creates a new BiddingBrowserSignals in the application heap.
  5219  func (p BiddingBrowserSignals) New() js.Ref {
  5220  	return bindings.BiddingBrowserSignalsJSLoad(
  5221  		js.Pointer(&p), js.True, 0,
  5222  	)
  5223  }
  5224  
  5225  // UpdateFrom copies value of all fields of the heap object to p.
  5226  func (p *BiddingBrowserSignals) UpdateFrom(ref js.Ref) {
  5227  	bindings.BiddingBrowserSignalsJSStore(
  5228  		js.Pointer(p), ref,
  5229  	)
  5230  }
  5231  
  5232  // Update writes all fields of the p to the heap object referenced by ref.
  5233  func (p *BiddingBrowserSignals) Update(ref js.Ref) {
  5234  	bindings.BiddingBrowserSignalsJSLoad(
  5235  		js.Pointer(p), js.False, ref,
  5236  	)
  5237  }
  5238  
  5239  // FreeMembers frees fields with heap reference, if recursive is true
  5240  // free all heap references reachable from p.
  5241  func (p *BiddingBrowserSignals) FreeMembers(recursive bool) {
  5242  	js.Free(
  5243  		p.TopWindowHostname.Ref(),
  5244  		p.Seller.Ref(),
  5245  		p.TopLevelSeller.Ref(),
  5246  		p.PrevWinsMs.Ref(),
  5247  		p.WasmHelper.Ref(),
  5248  	)
  5249  	p.TopWindowHostname = p.TopWindowHostname.FromRef(js.Undefined)
  5250  	p.Seller = p.Seller.FromRef(js.Undefined)
  5251  	p.TopLevelSeller = p.TopLevelSeller.FromRef(js.Undefined)
  5252  	p.PrevWinsMs = p.PrevWinsMs.FromRef(js.Undefined)
  5253  	p.WasmHelper = p.WasmHelper.FromRef(js.Undefined)
  5254  }
  5255  
  5256  type BigInteger = js.TypedArray[uint8]
  5257  
  5258  type OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView struct {
  5259  	ref js.Ref
  5260  }
  5261  
  5262  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) Ref() js.Ref {
  5263  	return x.ref
  5264  }
  5265  
  5266  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) Free() {
  5267  	x.ref.Free()
  5268  }
  5269  
  5270  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) FromRef(ref js.Ref) OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView {
  5271  	return OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView{
  5272  		ref: ref,
  5273  	}
  5274  }
  5275  
  5276  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) ArrayBuffer() js.ArrayBuffer {
  5277  	return js.ArrayBuffer{}.FromRef(x.ref)
  5278  }
  5279  
  5280  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt8() js.TypedArray[int8] {
  5281  	return js.TypedArray[int8]{}.FromRef(x.ref)
  5282  }
  5283  
  5284  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt16() js.TypedArray[int16] {
  5285  	return js.TypedArray[int16]{}.FromRef(x.ref)
  5286  }
  5287  
  5288  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt32() js.TypedArray[int32] {
  5289  	return js.TypedArray[int32]{}.FromRef(x.ref)
  5290  }
  5291  
  5292  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint8() js.TypedArray[uint8] {
  5293  	return js.TypedArray[uint8]{}.FromRef(x.ref)
  5294  }
  5295  
  5296  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint16() js.TypedArray[uint16] {
  5297  	return js.TypedArray[uint16]{}.FromRef(x.ref)
  5298  }
  5299  
  5300  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint32() js.TypedArray[uint32] {
  5301  	return js.TypedArray[uint32]{}.FromRef(x.ref)
  5302  }
  5303  
  5304  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt64() js.TypedArray[int64] {
  5305  	return js.TypedArray[int64]{}.FromRef(x.ref)
  5306  }
  5307  
  5308  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint64() js.TypedArray[uint64] {
  5309  	return js.TypedArray[uint64]{}.FromRef(x.ref)
  5310  }
  5311  
  5312  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayFloat32() js.TypedArray[float32] {
  5313  	return js.TypedArray[float32]{}.FromRef(x.ref)
  5314  }
  5315  
  5316  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayFloat64() js.TypedArray[float64] {
  5317  	return js.TypedArray[float64]{}.FromRef(x.ref)
  5318  }
  5319  
  5320  func (x OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) DataView() js.DataView {
  5321  	return js.DataView{}.FromRef(x.ref)
  5322  }
  5323  
  5324  type BinaryData = OneOf_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView
  5325  
  5326  type BinaryType uint32
  5327  
  5328  const (
  5329  	_ BinaryType = iota
  5330  
  5331  	BinaryType_BLOB
  5332  	BinaryType_ARRAYBUFFER
  5333  )
  5334  
  5335  func (BinaryType) FromRef(str js.Ref) BinaryType {
  5336  	return BinaryType(bindings.ConstOfBinaryType(str))
  5337  }
  5338  
  5339  func (x BinaryType) String() (string, bool) {
  5340  	switch x {
  5341  	case BinaryType_BLOB:
  5342  		return "blob", true
  5343  	case BinaryType_ARRAYBUFFER:
  5344  		return "arraybuffer", true
  5345  	default:
  5346  		return "", false
  5347  	}
  5348  }
  5349  
  5350  type BlobEventInit struct {
  5351  	// Data is "BlobEventInit.data"
  5352  	//
  5353  	// Required
  5354  	Data Blob
  5355  	// Timecode is "BlobEventInit.timecode"
  5356  	//
  5357  	// Optional
  5358  	//
  5359  	// NOTE: FFI_USE_Timecode MUST be set to true to make this field effective.
  5360  	Timecode DOMHighResTimeStamp
  5361  
  5362  	FFI_USE_Timecode bool // for Timecode.
  5363  
  5364  	FFI_USE bool
  5365  }
  5366  
  5367  // FromRef calls UpdateFrom and returns a BlobEventInit with all fields set.
  5368  func (p BlobEventInit) FromRef(ref js.Ref) BlobEventInit {
  5369  	p.UpdateFrom(ref)
  5370  	return p
  5371  }
  5372  
  5373  // New creates a new BlobEventInit in the application heap.
  5374  func (p BlobEventInit) New() js.Ref {
  5375  	return bindings.BlobEventInitJSLoad(
  5376  		js.Pointer(&p), js.True, 0,
  5377  	)
  5378  }
  5379  
  5380  // UpdateFrom copies value of all fields of the heap object to p.
  5381  func (p *BlobEventInit) UpdateFrom(ref js.Ref) {
  5382  	bindings.BlobEventInitJSStore(
  5383  		js.Pointer(p), ref,
  5384  	)
  5385  }
  5386  
  5387  // Update writes all fields of the p to the heap object referenced by ref.
  5388  func (p *BlobEventInit) Update(ref js.Ref) {
  5389  	bindings.BlobEventInitJSLoad(
  5390  		js.Pointer(p), js.False, ref,
  5391  	)
  5392  }
  5393  
  5394  // FreeMembers frees fields with heap reference, if recursive is true
  5395  // free all heap references reachable from p.
  5396  func (p *BlobEventInit) FreeMembers(recursive bool) {
  5397  	js.Free(
  5398  		p.Data.Ref(),
  5399  	)
  5400  	p.Data = p.Data.FromRef(js.Undefined)
  5401  }
  5402  
  5403  func NewBlobEvent(typ js.String, eventInitDict BlobEventInit) (ret BlobEvent) {
  5404  	ret.ref = bindings.NewBlobEventByBlobEvent(
  5405  		typ.Ref(),
  5406  		js.Pointer(&eventInitDict))
  5407  	return
  5408  }
  5409  
  5410  type BlobEvent struct {
  5411  	Event
  5412  }
  5413  
  5414  func (this BlobEvent) Once() BlobEvent {
  5415  	this.ref.Once()
  5416  	return this
  5417  }
  5418  
  5419  func (this BlobEvent) Ref() js.Ref {
  5420  	return this.Event.Ref()
  5421  }
  5422  
  5423  func (this BlobEvent) FromRef(ref js.Ref) BlobEvent {
  5424  	this.Event = this.Event.FromRef(ref)
  5425  	return this
  5426  }
  5427  
  5428  func (this BlobEvent) Free() {
  5429  	this.ref.Free()
  5430  }
  5431  
  5432  // Data returns the value of property "BlobEvent.data".
  5433  //
  5434  // It returns ok=false if there is no such property.
  5435  func (this BlobEvent) Data() (ret Blob, ok bool) {
  5436  	ok = js.True == bindings.GetBlobEventData(
  5437  		this.ref, js.Pointer(&ret),
  5438  	)
  5439  	return
  5440  }
  5441  
  5442  // Timecode returns the value of property "BlobEvent.timecode".
  5443  //
  5444  // It returns ok=false if there is no such property.
  5445  func (this BlobEvent) Timecode() (ret DOMHighResTimeStamp, ok bool) {
  5446  	ok = js.True == bindings.GetBlobEventTimecode(
  5447  		this.ref, js.Pointer(&ret),
  5448  	)
  5449  	return
  5450  }
  5451  
  5452  type BlockFragmentationType uint32
  5453  
  5454  const (
  5455  	_ BlockFragmentationType = iota
  5456  
  5457  	BlockFragmentationType_NONE
  5458  	BlockFragmentationType_PAGE
  5459  	BlockFragmentationType_COLUMN
  5460  	BlockFragmentationType_REGION
  5461  )
  5462  
  5463  func (BlockFragmentationType) FromRef(str js.Ref) BlockFragmentationType {
  5464  	return BlockFragmentationType(bindings.ConstOfBlockFragmentationType(str))
  5465  }
  5466  
  5467  func (x BlockFragmentationType) String() (string, bool) {
  5468  	switch x {
  5469  	case BlockFragmentationType_NONE:
  5470  		return "none", true
  5471  	case BlockFragmentationType_PAGE:
  5472  		return "page", true
  5473  	case BlockFragmentationType_COLUMN:
  5474  		return "column", true
  5475  	case BlockFragmentationType_REGION:
  5476  		return "region", true
  5477  	default:
  5478  		return "", false
  5479  	}
  5480  }
  5481  
  5482  type WatchAdvertisementsOptions struct {
  5483  	// Signal is "WatchAdvertisementsOptions.signal"
  5484  	//
  5485  	// Optional
  5486  	Signal AbortSignal
  5487  
  5488  	FFI_USE bool
  5489  }
  5490  
  5491  // FromRef calls UpdateFrom and returns a WatchAdvertisementsOptions with all fields set.
  5492  func (p WatchAdvertisementsOptions) FromRef(ref js.Ref) WatchAdvertisementsOptions {
  5493  	p.UpdateFrom(ref)
  5494  	return p
  5495  }
  5496  
  5497  // New creates a new WatchAdvertisementsOptions in the application heap.
  5498  func (p WatchAdvertisementsOptions) New() js.Ref {
  5499  	return bindings.WatchAdvertisementsOptionsJSLoad(
  5500  		js.Pointer(&p), js.True, 0,
  5501  	)
  5502  }
  5503  
  5504  // UpdateFrom copies value of all fields of the heap object to p.
  5505  func (p *WatchAdvertisementsOptions) UpdateFrom(ref js.Ref) {
  5506  	bindings.WatchAdvertisementsOptionsJSStore(
  5507  		js.Pointer(p), ref,
  5508  	)
  5509  }
  5510  
  5511  // Update writes all fields of the p to the heap object referenced by ref.
  5512  func (p *WatchAdvertisementsOptions) Update(ref js.Ref) {
  5513  	bindings.WatchAdvertisementsOptionsJSLoad(
  5514  		js.Pointer(p), js.False, ref,
  5515  	)
  5516  }
  5517  
  5518  // FreeMembers frees fields with heap reference, if recursive is true
  5519  // free all heap references reachable from p.
  5520  func (p *WatchAdvertisementsOptions) FreeMembers(recursive bool) {
  5521  	js.Free(
  5522  		p.Signal.Ref(),
  5523  	)
  5524  	p.Signal = p.Signal.FromRef(js.Undefined)
  5525  }
  5526  
  5527  type BluetoothRemoteGATTDescriptor struct {
  5528  	ref js.Ref
  5529  }
  5530  
  5531  func (this BluetoothRemoteGATTDescriptor) Once() BluetoothRemoteGATTDescriptor {
  5532  	this.ref.Once()
  5533  	return this
  5534  }
  5535  
  5536  func (this BluetoothRemoteGATTDescriptor) Ref() js.Ref {
  5537  	return this.ref
  5538  }
  5539  
  5540  func (this BluetoothRemoteGATTDescriptor) FromRef(ref js.Ref) BluetoothRemoteGATTDescriptor {
  5541  	this.ref = ref
  5542  	return this
  5543  }
  5544  
  5545  func (this BluetoothRemoteGATTDescriptor) Free() {
  5546  	this.ref.Free()
  5547  }
  5548  
  5549  // Characteristic returns the value of property "BluetoothRemoteGATTDescriptor.characteristic".
  5550  //
  5551  // It returns ok=false if there is no such property.
  5552  func (this BluetoothRemoteGATTDescriptor) Characteristic() (ret BluetoothRemoteGATTCharacteristic, ok bool) {
  5553  	ok = js.True == bindings.GetBluetoothRemoteGATTDescriptorCharacteristic(
  5554  		this.ref, js.Pointer(&ret),
  5555  	)
  5556  	return
  5557  }
  5558  
  5559  // Uuid returns the value of property "BluetoothRemoteGATTDescriptor.uuid".
  5560  //
  5561  // It returns ok=false if there is no such property.
  5562  func (this BluetoothRemoteGATTDescriptor) Uuid() (ret UUID, ok bool) {
  5563  	ok = js.True == bindings.GetBluetoothRemoteGATTDescriptorUuid(
  5564  		this.ref, js.Pointer(&ret),
  5565  	)
  5566  	return
  5567  }
  5568  
  5569  // Value returns the value of property "BluetoothRemoteGATTDescriptor.value".
  5570  //
  5571  // It returns ok=false if there is no such property.
  5572  func (this BluetoothRemoteGATTDescriptor) Value() (ret js.DataView, ok bool) {
  5573  	ok = js.True == bindings.GetBluetoothRemoteGATTDescriptorValue(
  5574  		this.ref, js.Pointer(&ret),
  5575  	)
  5576  	return
  5577  }
  5578  
  5579  // HasFuncReadValue returns true if the method "BluetoothRemoteGATTDescriptor.readValue" exists.
  5580  func (this BluetoothRemoteGATTDescriptor) HasFuncReadValue() bool {
  5581  	return js.True == bindings.HasFuncBluetoothRemoteGATTDescriptorReadValue(
  5582  		this.ref,
  5583  	)
  5584  }
  5585  
  5586  // FuncReadValue returns the method "BluetoothRemoteGATTDescriptor.readValue".
  5587  func (this BluetoothRemoteGATTDescriptor) FuncReadValue() (fn js.Func[func() js.Promise[js.DataView]]) {
  5588  	bindings.FuncBluetoothRemoteGATTDescriptorReadValue(
  5589  		this.ref, js.Pointer(&fn),
  5590  	)
  5591  	return
  5592  }
  5593  
  5594  // ReadValue calls the method "BluetoothRemoteGATTDescriptor.readValue".
  5595  func (this BluetoothRemoteGATTDescriptor) ReadValue() (ret js.Promise[js.DataView]) {
  5596  	bindings.CallBluetoothRemoteGATTDescriptorReadValue(
  5597  		this.ref, js.Pointer(&ret),
  5598  	)
  5599  
  5600  	return
  5601  }
  5602  
  5603  // TryReadValue calls the method "BluetoothRemoteGATTDescriptor.readValue"
  5604  // in a try/catch block and returns (_, err, ok = false) when it went through
  5605  // the catch clause.
  5606  func (this BluetoothRemoteGATTDescriptor) TryReadValue() (ret js.Promise[js.DataView], exception js.Any, ok bool) {
  5607  	ok = js.True == bindings.TryBluetoothRemoteGATTDescriptorReadValue(
  5608  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5609  	)
  5610  
  5611  	return
  5612  }
  5613  
  5614  // HasFuncWriteValue returns true if the method "BluetoothRemoteGATTDescriptor.writeValue" exists.
  5615  func (this BluetoothRemoteGATTDescriptor) HasFuncWriteValue() bool {
  5616  	return js.True == bindings.HasFuncBluetoothRemoteGATTDescriptorWriteValue(
  5617  		this.ref,
  5618  	)
  5619  }
  5620  
  5621  // FuncWriteValue returns the method "BluetoothRemoteGATTDescriptor.writeValue".
  5622  func (this BluetoothRemoteGATTDescriptor) FuncWriteValue() (fn js.Func[func(value BufferSource) js.Promise[js.Void]]) {
  5623  	bindings.FuncBluetoothRemoteGATTDescriptorWriteValue(
  5624  		this.ref, js.Pointer(&fn),
  5625  	)
  5626  	return
  5627  }
  5628  
  5629  // WriteValue calls the method "BluetoothRemoteGATTDescriptor.writeValue".
  5630  func (this BluetoothRemoteGATTDescriptor) WriteValue(value BufferSource) (ret js.Promise[js.Void]) {
  5631  	bindings.CallBluetoothRemoteGATTDescriptorWriteValue(
  5632  		this.ref, js.Pointer(&ret),
  5633  		value.Ref(),
  5634  	)
  5635  
  5636  	return
  5637  }
  5638  
  5639  // TryWriteValue calls the method "BluetoothRemoteGATTDescriptor.writeValue"
  5640  // in a try/catch block and returns (_, err, ok = false) when it went through
  5641  // the catch clause.
  5642  func (this BluetoothRemoteGATTDescriptor) TryWriteValue(value BufferSource) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  5643  	ok = js.True == bindings.TryBluetoothRemoteGATTDescriptorWriteValue(
  5644  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5645  		value.Ref(),
  5646  	)
  5647  
  5648  	return
  5649  }
  5650  
  5651  type OneOf_String_Uint32 struct {
  5652  	ref js.Ref
  5653  }
  5654  
  5655  func (x OneOf_String_Uint32) Ref() js.Ref {
  5656  	return x.ref
  5657  }
  5658  
  5659  func (x OneOf_String_Uint32) Free() {
  5660  	x.ref.Free()
  5661  }
  5662  
  5663  func (x OneOf_String_Uint32) FromRef(ref js.Ref) OneOf_String_Uint32 {
  5664  	return OneOf_String_Uint32{
  5665  		ref: ref,
  5666  	}
  5667  }
  5668  
  5669  func (x OneOf_String_Uint32) String() js.String {
  5670  	return js.String{}.FromRef(x.ref)
  5671  }
  5672  
  5673  func (x OneOf_String_Uint32) Uint32() uint32 {
  5674  	return js.Number[uint32]{}.FromRef(x.ref).Get()
  5675  }
  5676  
  5677  type BluetoothDescriptorUUID = OneOf_String_Uint32
  5678  
  5679  type BluetoothCharacteristicProperties struct {
  5680  	ref js.Ref
  5681  }
  5682  
  5683  func (this BluetoothCharacteristicProperties) Once() BluetoothCharacteristicProperties {
  5684  	this.ref.Once()
  5685  	return this
  5686  }
  5687  
  5688  func (this BluetoothCharacteristicProperties) Ref() js.Ref {
  5689  	return this.ref
  5690  }
  5691  
  5692  func (this BluetoothCharacteristicProperties) FromRef(ref js.Ref) BluetoothCharacteristicProperties {
  5693  	this.ref = ref
  5694  	return this
  5695  }
  5696  
  5697  func (this BluetoothCharacteristicProperties) Free() {
  5698  	this.ref.Free()
  5699  }
  5700  
  5701  // Broadcast returns the value of property "BluetoothCharacteristicProperties.broadcast".
  5702  //
  5703  // It returns ok=false if there is no such property.
  5704  func (this BluetoothCharacteristicProperties) Broadcast() (ret bool, ok bool) {
  5705  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesBroadcast(
  5706  		this.ref, js.Pointer(&ret),
  5707  	)
  5708  	return
  5709  }
  5710  
  5711  // Read returns the value of property "BluetoothCharacteristicProperties.read".
  5712  //
  5713  // It returns ok=false if there is no such property.
  5714  func (this BluetoothCharacteristicProperties) Read() (ret bool, ok bool) {
  5715  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesRead(
  5716  		this.ref, js.Pointer(&ret),
  5717  	)
  5718  	return
  5719  }
  5720  
  5721  // WriteWithoutResponse returns the value of property "BluetoothCharacteristicProperties.writeWithoutResponse".
  5722  //
  5723  // It returns ok=false if there is no such property.
  5724  func (this BluetoothCharacteristicProperties) WriteWithoutResponse() (ret bool, ok bool) {
  5725  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesWriteWithoutResponse(
  5726  		this.ref, js.Pointer(&ret),
  5727  	)
  5728  	return
  5729  }
  5730  
  5731  // Write returns the value of property "BluetoothCharacteristicProperties.write".
  5732  //
  5733  // It returns ok=false if there is no such property.
  5734  func (this BluetoothCharacteristicProperties) Write() (ret bool, ok bool) {
  5735  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesWrite(
  5736  		this.ref, js.Pointer(&ret),
  5737  	)
  5738  	return
  5739  }
  5740  
  5741  // Notify returns the value of property "BluetoothCharacteristicProperties.notify".
  5742  //
  5743  // It returns ok=false if there is no such property.
  5744  func (this BluetoothCharacteristicProperties) Notify() (ret bool, ok bool) {
  5745  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesNotify(
  5746  		this.ref, js.Pointer(&ret),
  5747  	)
  5748  	return
  5749  }
  5750  
  5751  // Indicate returns the value of property "BluetoothCharacteristicProperties.indicate".
  5752  //
  5753  // It returns ok=false if there is no such property.
  5754  func (this BluetoothCharacteristicProperties) Indicate() (ret bool, ok bool) {
  5755  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesIndicate(
  5756  		this.ref, js.Pointer(&ret),
  5757  	)
  5758  	return
  5759  }
  5760  
  5761  // AuthenticatedSignedWrites returns the value of property "BluetoothCharacteristicProperties.authenticatedSignedWrites".
  5762  //
  5763  // It returns ok=false if there is no such property.
  5764  func (this BluetoothCharacteristicProperties) AuthenticatedSignedWrites() (ret bool, ok bool) {
  5765  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesAuthenticatedSignedWrites(
  5766  		this.ref, js.Pointer(&ret),
  5767  	)
  5768  	return
  5769  }
  5770  
  5771  // ReliableWrite returns the value of property "BluetoothCharacteristicProperties.reliableWrite".
  5772  //
  5773  // It returns ok=false if there is no such property.
  5774  func (this BluetoothCharacteristicProperties) ReliableWrite() (ret bool, ok bool) {
  5775  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesReliableWrite(
  5776  		this.ref, js.Pointer(&ret),
  5777  	)
  5778  	return
  5779  }
  5780  
  5781  // WritableAuxiliaries returns the value of property "BluetoothCharacteristicProperties.writableAuxiliaries".
  5782  //
  5783  // It returns ok=false if there is no such property.
  5784  func (this BluetoothCharacteristicProperties) WritableAuxiliaries() (ret bool, ok bool) {
  5785  	ok = js.True == bindings.GetBluetoothCharacteristicPropertiesWritableAuxiliaries(
  5786  		this.ref, js.Pointer(&ret),
  5787  	)
  5788  	return
  5789  }
  5790  
  5791  type BluetoothRemoteGATTCharacteristic struct {
  5792  	EventTarget
  5793  }
  5794  
  5795  func (this BluetoothRemoteGATTCharacteristic) Once() BluetoothRemoteGATTCharacteristic {
  5796  	this.ref.Once()
  5797  	return this
  5798  }
  5799  
  5800  func (this BluetoothRemoteGATTCharacteristic) Ref() js.Ref {
  5801  	return this.EventTarget.Ref()
  5802  }
  5803  
  5804  func (this BluetoothRemoteGATTCharacteristic) FromRef(ref js.Ref) BluetoothRemoteGATTCharacteristic {
  5805  	this.EventTarget = this.EventTarget.FromRef(ref)
  5806  	return this
  5807  }
  5808  
  5809  func (this BluetoothRemoteGATTCharacteristic) Free() {
  5810  	this.ref.Free()
  5811  }
  5812  
  5813  // Service returns the value of property "BluetoothRemoteGATTCharacteristic.service".
  5814  //
  5815  // It returns ok=false if there is no such property.
  5816  func (this BluetoothRemoteGATTCharacteristic) Service() (ret BluetoothRemoteGATTService, ok bool) {
  5817  	ok = js.True == bindings.GetBluetoothRemoteGATTCharacteristicService(
  5818  		this.ref, js.Pointer(&ret),
  5819  	)
  5820  	return
  5821  }
  5822  
  5823  // Uuid returns the value of property "BluetoothRemoteGATTCharacteristic.uuid".
  5824  //
  5825  // It returns ok=false if there is no such property.
  5826  func (this BluetoothRemoteGATTCharacteristic) Uuid() (ret UUID, ok bool) {
  5827  	ok = js.True == bindings.GetBluetoothRemoteGATTCharacteristicUuid(
  5828  		this.ref, js.Pointer(&ret),
  5829  	)
  5830  	return
  5831  }
  5832  
  5833  // Properties returns the value of property "BluetoothRemoteGATTCharacteristic.properties".
  5834  //
  5835  // It returns ok=false if there is no such property.
  5836  func (this BluetoothRemoteGATTCharacteristic) Properties() (ret BluetoothCharacteristicProperties, ok bool) {
  5837  	ok = js.True == bindings.GetBluetoothRemoteGATTCharacteristicProperties(
  5838  		this.ref, js.Pointer(&ret),
  5839  	)
  5840  	return
  5841  }
  5842  
  5843  // Value returns the value of property "BluetoothRemoteGATTCharacteristic.value".
  5844  //
  5845  // It returns ok=false if there is no such property.
  5846  func (this BluetoothRemoteGATTCharacteristic) Value() (ret js.DataView, ok bool) {
  5847  	ok = js.True == bindings.GetBluetoothRemoteGATTCharacteristicValue(
  5848  		this.ref, js.Pointer(&ret),
  5849  	)
  5850  	return
  5851  }
  5852  
  5853  // HasFuncGetDescriptor returns true if the method "BluetoothRemoteGATTCharacteristic.getDescriptor" exists.
  5854  func (this BluetoothRemoteGATTCharacteristic) HasFuncGetDescriptor() bool {
  5855  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicGetDescriptor(
  5856  		this.ref,
  5857  	)
  5858  }
  5859  
  5860  // FuncGetDescriptor returns the method "BluetoothRemoteGATTCharacteristic.getDescriptor".
  5861  func (this BluetoothRemoteGATTCharacteristic) FuncGetDescriptor() (fn js.Func[func(descriptor BluetoothDescriptorUUID) js.Promise[BluetoothRemoteGATTDescriptor]]) {
  5862  	bindings.FuncBluetoothRemoteGATTCharacteristicGetDescriptor(
  5863  		this.ref, js.Pointer(&fn),
  5864  	)
  5865  	return
  5866  }
  5867  
  5868  // GetDescriptor calls the method "BluetoothRemoteGATTCharacteristic.getDescriptor".
  5869  func (this BluetoothRemoteGATTCharacteristic) GetDescriptor(descriptor BluetoothDescriptorUUID) (ret js.Promise[BluetoothRemoteGATTDescriptor]) {
  5870  	bindings.CallBluetoothRemoteGATTCharacteristicGetDescriptor(
  5871  		this.ref, js.Pointer(&ret),
  5872  		descriptor.Ref(),
  5873  	)
  5874  
  5875  	return
  5876  }
  5877  
  5878  // TryGetDescriptor calls the method "BluetoothRemoteGATTCharacteristic.getDescriptor"
  5879  // in a try/catch block and returns (_, err, ok = false) when it went through
  5880  // the catch clause.
  5881  func (this BluetoothRemoteGATTCharacteristic) TryGetDescriptor(descriptor BluetoothDescriptorUUID) (ret js.Promise[BluetoothRemoteGATTDescriptor], exception js.Any, ok bool) {
  5882  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicGetDescriptor(
  5883  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5884  		descriptor.Ref(),
  5885  	)
  5886  
  5887  	return
  5888  }
  5889  
  5890  // HasFuncGetDescriptors returns true if the method "BluetoothRemoteGATTCharacteristic.getDescriptors" exists.
  5891  func (this BluetoothRemoteGATTCharacteristic) HasFuncGetDescriptors() bool {
  5892  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicGetDescriptors(
  5893  		this.ref,
  5894  	)
  5895  }
  5896  
  5897  // FuncGetDescriptors returns the method "BluetoothRemoteGATTCharacteristic.getDescriptors".
  5898  func (this BluetoothRemoteGATTCharacteristic) FuncGetDescriptors() (fn js.Func[func(descriptor BluetoothDescriptorUUID) js.Promise[js.Array[BluetoothRemoteGATTDescriptor]]]) {
  5899  	bindings.FuncBluetoothRemoteGATTCharacteristicGetDescriptors(
  5900  		this.ref, js.Pointer(&fn),
  5901  	)
  5902  	return
  5903  }
  5904  
  5905  // GetDescriptors calls the method "BluetoothRemoteGATTCharacteristic.getDescriptors".
  5906  func (this BluetoothRemoteGATTCharacteristic) GetDescriptors(descriptor BluetoothDescriptorUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTDescriptor]]) {
  5907  	bindings.CallBluetoothRemoteGATTCharacteristicGetDescriptors(
  5908  		this.ref, js.Pointer(&ret),
  5909  		descriptor.Ref(),
  5910  	)
  5911  
  5912  	return
  5913  }
  5914  
  5915  // TryGetDescriptors calls the method "BluetoothRemoteGATTCharacteristic.getDescriptors"
  5916  // in a try/catch block and returns (_, err, ok = false) when it went through
  5917  // the catch clause.
  5918  func (this BluetoothRemoteGATTCharacteristic) TryGetDescriptors(descriptor BluetoothDescriptorUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTDescriptor]], exception js.Any, ok bool) {
  5919  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicGetDescriptors(
  5920  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5921  		descriptor.Ref(),
  5922  	)
  5923  
  5924  	return
  5925  }
  5926  
  5927  // HasFuncGetDescriptors1 returns true if the method "BluetoothRemoteGATTCharacteristic.getDescriptors" exists.
  5928  func (this BluetoothRemoteGATTCharacteristic) HasFuncGetDescriptors1() bool {
  5929  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicGetDescriptors1(
  5930  		this.ref,
  5931  	)
  5932  }
  5933  
  5934  // FuncGetDescriptors1 returns the method "BluetoothRemoteGATTCharacteristic.getDescriptors".
  5935  func (this BluetoothRemoteGATTCharacteristic) FuncGetDescriptors1() (fn js.Func[func() js.Promise[js.Array[BluetoothRemoteGATTDescriptor]]]) {
  5936  	bindings.FuncBluetoothRemoteGATTCharacteristicGetDescriptors1(
  5937  		this.ref, js.Pointer(&fn),
  5938  	)
  5939  	return
  5940  }
  5941  
  5942  // GetDescriptors1 calls the method "BluetoothRemoteGATTCharacteristic.getDescriptors".
  5943  func (this BluetoothRemoteGATTCharacteristic) GetDescriptors1() (ret js.Promise[js.Array[BluetoothRemoteGATTDescriptor]]) {
  5944  	bindings.CallBluetoothRemoteGATTCharacteristicGetDescriptors1(
  5945  		this.ref, js.Pointer(&ret),
  5946  	)
  5947  
  5948  	return
  5949  }
  5950  
  5951  // TryGetDescriptors1 calls the method "BluetoothRemoteGATTCharacteristic.getDescriptors"
  5952  // in a try/catch block and returns (_, err, ok = false) when it went through
  5953  // the catch clause.
  5954  func (this BluetoothRemoteGATTCharacteristic) TryGetDescriptors1() (ret js.Promise[js.Array[BluetoothRemoteGATTDescriptor]], exception js.Any, ok bool) {
  5955  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicGetDescriptors1(
  5956  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5957  	)
  5958  
  5959  	return
  5960  }
  5961  
  5962  // HasFuncReadValue returns true if the method "BluetoothRemoteGATTCharacteristic.readValue" exists.
  5963  func (this BluetoothRemoteGATTCharacteristic) HasFuncReadValue() bool {
  5964  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicReadValue(
  5965  		this.ref,
  5966  	)
  5967  }
  5968  
  5969  // FuncReadValue returns the method "BluetoothRemoteGATTCharacteristic.readValue".
  5970  func (this BluetoothRemoteGATTCharacteristic) FuncReadValue() (fn js.Func[func() js.Promise[js.DataView]]) {
  5971  	bindings.FuncBluetoothRemoteGATTCharacteristicReadValue(
  5972  		this.ref, js.Pointer(&fn),
  5973  	)
  5974  	return
  5975  }
  5976  
  5977  // ReadValue calls the method "BluetoothRemoteGATTCharacteristic.readValue".
  5978  func (this BluetoothRemoteGATTCharacteristic) ReadValue() (ret js.Promise[js.DataView]) {
  5979  	bindings.CallBluetoothRemoteGATTCharacteristicReadValue(
  5980  		this.ref, js.Pointer(&ret),
  5981  	)
  5982  
  5983  	return
  5984  }
  5985  
  5986  // TryReadValue calls the method "BluetoothRemoteGATTCharacteristic.readValue"
  5987  // in a try/catch block and returns (_, err, ok = false) when it went through
  5988  // the catch clause.
  5989  func (this BluetoothRemoteGATTCharacteristic) TryReadValue() (ret js.Promise[js.DataView], exception js.Any, ok bool) {
  5990  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicReadValue(
  5991  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  5992  	)
  5993  
  5994  	return
  5995  }
  5996  
  5997  // HasFuncWriteValue returns true if the method "BluetoothRemoteGATTCharacteristic.writeValue" exists.
  5998  func (this BluetoothRemoteGATTCharacteristic) HasFuncWriteValue() bool {
  5999  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicWriteValue(
  6000  		this.ref,
  6001  	)
  6002  }
  6003  
  6004  // FuncWriteValue returns the method "BluetoothRemoteGATTCharacteristic.writeValue".
  6005  func (this BluetoothRemoteGATTCharacteristic) FuncWriteValue() (fn js.Func[func(value BufferSource) js.Promise[js.Void]]) {
  6006  	bindings.FuncBluetoothRemoteGATTCharacteristicWriteValue(
  6007  		this.ref, js.Pointer(&fn),
  6008  	)
  6009  	return
  6010  }
  6011  
  6012  // WriteValue calls the method "BluetoothRemoteGATTCharacteristic.writeValue".
  6013  func (this BluetoothRemoteGATTCharacteristic) WriteValue(value BufferSource) (ret js.Promise[js.Void]) {
  6014  	bindings.CallBluetoothRemoteGATTCharacteristicWriteValue(
  6015  		this.ref, js.Pointer(&ret),
  6016  		value.Ref(),
  6017  	)
  6018  
  6019  	return
  6020  }
  6021  
  6022  // TryWriteValue calls the method "BluetoothRemoteGATTCharacteristic.writeValue"
  6023  // in a try/catch block and returns (_, err, ok = false) when it went through
  6024  // the catch clause.
  6025  func (this BluetoothRemoteGATTCharacteristic) TryWriteValue(value BufferSource) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6026  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicWriteValue(
  6027  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6028  		value.Ref(),
  6029  	)
  6030  
  6031  	return
  6032  }
  6033  
  6034  // HasFuncWriteValueWithResponse returns true if the method "BluetoothRemoteGATTCharacteristic.writeValueWithResponse" exists.
  6035  func (this BluetoothRemoteGATTCharacteristic) HasFuncWriteValueWithResponse() bool {
  6036  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicWriteValueWithResponse(
  6037  		this.ref,
  6038  	)
  6039  }
  6040  
  6041  // FuncWriteValueWithResponse returns the method "BluetoothRemoteGATTCharacteristic.writeValueWithResponse".
  6042  func (this BluetoothRemoteGATTCharacteristic) FuncWriteValueWithResponse() (fn js.Func[func(value BufferSource) js.Promise[js.Void]]) {
  6043  	bindings.FuncBluetoothRemoteGATTCharacteristicWriteValueWithResponse(
  6044  		this.ref, js.Pointer(&fn),
  6045  	)
  6046  	return
  6047  }
  6048  
  6049  // WriteValueWithResponse calls the method "BluetoothRemoteGATTCharacteristic.writeValueWithResponse".
  6050  func (this BluetoothRemoteGATTCharacteristic) WriteValueWithResponse(value BufferSource) (ret js.Promise[js.Void]) {
  6051  	bindings.CallBluetoothRemoteGATTCharacteristicWriteValueWithResponse(
  6052  		this.ref, js.Pointer(&ret),
  6053  		value.Ref(),
  6054  	)
  6055  
  6056  	return
  6057  }
  6058  
  6059  // TryWriteValueWithResponse calls the method "BluetoothRemoteGATTCharacteristic.writeValueWithResponse"
  6060  // in a try/catch block and returns (_, err, ok = false) when it went through
  6061  // the catch clause.
  6062  func (this BluetoothRemoteGATTCharacteristic) TryWriteValueWithResponse(value BufferSource) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6063  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicWriteValueWithResponse(
  6064  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6065  		value.Ref(),
  6066  	)
  6067  
  6068  	return
  6069  }
  6070  
  6071  // HasFuncWriteValueWithoutResponse returns true if the method "BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse" exists.
  6072  func (this BluetoothRemoteGATTCharacteristic) HasFuncWriteValueWithoutResponse() bool {
  6073  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicWriteValueWithoutResponse(
  6074  		this.ref,
  6075  	)
  6076  }
  6077  
  6078  // FuncWriteValueWithoutResponse returns the method "BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse".
  6079  func (this BluetoothRemoteGATTCharacteristic) FuncWriteValueWithoutResponse() (fn js.Func[func(value BufferSource) js.Promise[js.Void]]) {
  6080  	bindings.FuncBluetoothRemoteGATTCharacteristicWriteValueWithoutResponse(
  6081  		this.ref, js.Pointer(&fn),
  6082  	)
  6083  	return
  6084  }
  6085  
  6086  // WriteValueWithoutResponse calls the method "BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse".
  6087  func (this BluetoothRemoteGATTCharacteristic) WriteValueWithoutResponse(value BufferSource) (ret js.Promise[js.Void]) {
  6088  	bindings.CallBluetoothRemoteGATTCharacteristicWriteValueWithoutResponse(
  6089  		this.ref, js.Pointer(&ret),
  6090  		value.Ref(),
  6091  	)
  6092  
  6093  	return
  6094  }
  6095  
  6096  // TryWriteValueWithoutResponse calls the method "BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse"
  6097  // in a try/catch block and returns (_, err, ok = false) when it went through
  6098  // the catch clause.
  6099  func (this BluetoothRemoteGATTCharacteristic) TryWriteValueWithoutResponse(value BufferSource) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6100  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicWriteValueWithoutResponse(
  6101  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6102  		value.Ref(),
  6103  	)
  6104  
  6105  	return
  6106  }
  6107  
  6108  // HasFuncStartNotifications returns true if the method "BluetoothRemoteGATTCharacteristic.startNotifications" exists.
  6109  func (this BluetoothRemoteGATTCharacteristic) HasFuncStartNotifications() bool {
  6110  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicStartNotifications(
  6111  		this.ref,
  6112  	)
  6113  }
  6114  
  6115  // FuncStartNotifications returns the method "BluetoothRemoteGATTCharacteristic.startNotifications".
  6116  func (this BluetoothRemoteGATTCharacteristic) FuncStartNotifications() (fn js.Func[func() js.Promise[BluetoothRemoteGATTCharacteristic]]) {
  6117  	bindings.FuncBluetoothRemoteGATTCharacteristicStartNotifications(
  6118  		this.ref, js.Pointer(&fn),
  6119  	)
  6120  	return
  6121  }
  6122  
  6123  // StartNotifications calls the method "BluetoothRemoteGATTCharacteristic.startNotifications".
  6124  func (this BluetoothRemoteGATTCharacteristic) StartNotifications() (ret js.Promise[BluetoothRemoteGATTCharacteristic]) {
  6125  	bindings.CallBluetoothRemoteGATTCharacteristicStartNotifications(
  6126  		this.ref, js.Pointer(&ret),
  6127  	)
  6128  
  6129  	return
  6130  }
  6131  
  6132  // TryStartNotifications calls the method "BluetoothRemoteGATTCharacteristic.startNotifications"
  6133  // in a try/catch block and returns (_, err, ok = false) when it went through
  6134  // the catch clause.
  6135  func (this BluetoothRemoteGATTCharacteristic) TryStartNotifications() (ret js.Promise[BluetoothRemoteGATTCharacteristic], exception js.Any, ok bool) {
  6136  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicStartNotifications(
  6137  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6138  	)
  6139  
  6140  	return
  6141  }
  6142  
  6143  // HasFuncStopNotifications returns true if the method "BluetoothRemoteGATTCharacteristic.stopNotifications" exists.
  6144  func (this BluetoothRemoteGATTCharacteristic) HasFuncStopNotifications() bool {
  6145  	return js.True == bindings.HasFuncBluetoothRemoteGATTCharacteristicStopNotifications(
  6146  		this.ref,
  6147  	)
  6148  }
  6149  
  6150  // FuncStopNotifications returns the method "BluetoothRemoteGATTCharacteristic.stopNotifications".
  6151  func (this BluetoothRemoteGATTCharacteristic) FuncStopNotifications() (fn js.Func[func() js.Promise[BluetoothRemoteGATTCharacteristic]]) {
  6152  	bindings.FuncBluetoothRemoteGATTCharacteristicStopNotifications(
  6153  		this.ref, js.Pointer(&fn),
  6154  	)
  6155  	return
  6156  }
  6157  
  6158  // StopNotifications calls the method "BluetoothRemoteGATTCharacteristic.stopNotifications".
  6159  func (this BluetoothRemoteGATTCharacteristic) StopNotifications() (ret js.Promise[BluetoothRemoteGATTCharacteristic]) {
  6160  	bindings.CallBluetoothRemoteGATTCharacteristicStopNotifications(
  6161  		this.ref, js.Pointer(&ret),
  6162  	)
  6163  
  6164  	return
  6165  }
  6166  
  6167  // TryStopNotifications calls the method "BluetoothRemoteGATTCharacteristic.stopNotifications"
  6168  // in a try/catch block and returns (_, err, ok = false) when it went through
  6169  // the catch clause.
  6170  func (this BluetoothRemoteGATTCharacteristic) TryStopNotifications() (ret js.Promise[BluetoothRemoteGATTCharacteristic], exception js.Any, ok bool) {
  6171  	ok = js.True == bindings.TryBluetoothRemoteGATTCharacteristicStopNotifications(
  6172  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6173  	)
  6174  
  6175  	return
  6176  }
  6177  
  6178  type BluetoothCharacteristicUUID = OneOf_String_Uint32
  6179  
  6180  type BluetoothServiceUUID = OneOf_String_Uint32
  6181  
  6182  type BluetoothRemoteGATTService struct {
  6183  	EventTarget
  6184  }
  6185  
  6186  func (this BluetoothRemoteGATTService) Once() BluetoothRemoteGATTService {
  6187  	this.ref.Once()
  6188  	return this
  6189  }
  6190  
  6191  func (this BluetoothRemoteGATTService) Ref() js.Ref {
  6192  	return this.EventTarget.Ref()
  6193  }
  6194  
  6195  func (this BluetoothRemoteGATTService) FromRef(ref js.Ref) BluetoothRemoteGATTService {
  6196  	this.EventTarget = this.EventTarget.FromRef(ref)
  6197  	return this
  6198  }
  6199  
  6200  func (this BluetoothRemoteGATTService) Free() {
  6201  	this.ref.Free()
  6202  }
  6203  
  6204  // Device returns the value of property "BluetoothRemoteGATTService.device".
  6205  //
  6206  // It returns ok=false if there is no such property.
  6207  func (this BluetoothRemoteGATTService) Device() (ret BluetoothDevice, ok bool) {
  6208  	ok = js.True == bindings.GetBluetoothRemoteGATTServiceDevice(
  6209  		this.ref, js.Pointer(&ret),
  6210  	)
  6211  	return
  6212  }
  6213  
  6214  // Uuid returns the value of property "BluetoothRemoteGATTService.uuid".
  6215  //
  6216  // It returns ok=false if there is no such property.
  6217  func (this BluetoothRemoteGATTService) Uuid() (ret UUID, ok bool) {
  6218  	ok = js.True == bindings.GetBluetoothRemoteGATTServiceUuid(
  6219  		this.ref, js.Pointer(&ret),
  6220  	)
  6221  	return
  6222  }
  6223  
  6224  // IsPrimary returns the value of property "BluetoothRemoteGATTService.isPrimary".
  6225  //
  6226  // It returns ok=false if there is no such property.
  6227  func (this BluetoothRemoteGATTService) IsPrimary() (ret bool, ok bool) {
  6228  	ok = js.True == bindings.GetBluetoothRemoteGATTServiceIsPrimary(
  6229  		this.ref, js.Pointer(&ret),
  6230  	)
  6231  	return
  6232  }
  6233  
  6234  // HasFuncGetCharacteristic returns true if the method "BluetoothRemoteGATTService.getCharacteristic" exists.
  6235  func (this BluetoothRemoteGATTService) HasFuncGetCharacteristic() bool {
  6236  	return js.True == bindings.HasFuncBluetoothRemoteGATTServiceGetCharacteristic(
  6237  		this.ref,
  6238  	)
  6239  }
  6240  
  6241  // FuncGetCharacteristic returns the method "BluetoothRemoteGATTService.getCharacteristic".
  6242  func (this BluetoothRemoteGATTService) FuncGetCharacteristic() (fn js.Func[func(characteristic BluetoothCharacteristicUUID) js.Promise[BluetoothRemoteGATTCharacteristic]]) {
  6243  	bindings.FuncBluetoothRemoteGATTServiceGetCharacteristic(
  6244  		this.ref, js.Pointer(&fn),
  6245  	)
  6246  	return
  6247  }
  6248  
  6249  // GetCharacteristic calls the method "BluetoothRemoteGATTService.getCharacteristic".
  6250  func (this BluetoothRemoteGATTService) GetCharacteristic(characteristic BluetoothCharacteristicUUID) (ret js.Promise[BluetoothRemoteGATTCharacteristic]) {
  6251  	bindings.CallBluetoothRemoteGATTServiceGetCharacteristic(
  6252  		this.ref, js.Pointer(&ret),
  6253  		characteristic.Ref(),
  6254  	)
  6255  
  6256  	return
  6257  }
  6258  
  6259  // TryGetCharacteristic calls the method "BluetoothRemoteGATTService.getCharacteristic"
  6260  // in a try/catch block and returns (_, err, ok = false) when it went through
  6261  // the catch clause.
  6262  func (this BluetoothRemoteGATTService) TryGetCharacteristic(characteristic BluetoothCharacteristicUUID) (ret js.Promise[BluetoothRemoteGATTCharacteristic], exception js.Any, ok bool) {
  6263  	ok = js.True == bindings.TryBluetoothRemoteGATTServiceGetCharacteristic(
  6264  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6265  		characteristic.Ref(),
  6266  	)
  6267  
  6268  	return
  6269  }
  6270  
  6271  // HasFuncGetCharacteristics returns true if the method "BluetoothRemoteGATTService.getCharacteristics" exists.
  6272  func (this BluetoothRemoteGATTService) HasFuncGetCharacteristics() bool {
  6273  	return js.True == bindings.HasFuncBluetoothRemoteGATTServiceGetCharacteristics(
  6274  		this.ref,
  6275  	)
  6276  }
  6277  
  6278  // FuncGetCharacteristics returns the method "BluetoothRemoteGATTService.getCharacteristics".
  6279  func (this BluetoothRemoteGATTService) FuncGetCharacteristics() (fn js.Func[func(characteristic BluetoothCharacteristicUUID) js.Promise[js.Array[BluetoothRemoteGATTCharacteristic]]]) {
  6280  	bindings.FuncBluetoothRemoteGATTServiceGetCharacteristics(
  6281  		this.ref, js.Pointer(&fn),
  6282  	)
  6283  	return
  6284  }
  6285  
  6286  // GetCharacteristics calls the method "BluetoothRemoteGATTService.getCharacteristics".
  6287  func (this BluetoothRemoteGATTService) GetCharacteristics(characteristic BluetoothCharacteristicUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTCharacteristic]]) {
  6288  	bindings.CallBluetoothRemoteGATTServiceGetCharacteristics(
  6289  		this.ref, js.Pointer(&ret),
  6290  		characteristic.Ref(),
  6291  	)
  6292  
  6293  	return
  6294  }
  6295  
  6296  // TryGetCharacteristics calls the method "BluetoothRemoteGATTService.getCharacteristics"
  6297  // in a try/catch block and returns (_, err, ok = false) when it went through
  6298  // the catch clause.
  6299  func (this BluetoothRemoteGATTService) TryGetCharacteristics(characteristic BluetoothCharacteristicUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTCharacteristic]], exception js.Any, ok bool) {
  6300  	ok = js.True == bindings.TryBluetoothRemoteGATTServiceGetCharacteristics(
  6301  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6302  		characteristic.Ref(),
  6303  	)
  6304  
  6305  	return
  6306  }
  6307  
  6308  // HasFuncGetCharacteristics1 returns true if the method "BluetoothRemoteGATTService.getCharacteristics" exists.
  6309  func (this BluetoothRemoteGATTService) HasFuncGetCharacteristics1() bool {
  6310  	return js.True == bindings.HasFuncBluetoothRemoteGATTServiceGetCharacteristics1(
  6311  		this.ref,
  6312  	)
  6313  }
  6314  
  6315  // FuncGetCharacteristics1 returns the method "BluetoothRemoteGATTService.getCharacteristics".
  6316  func (this BluetoothRemoteGATTService) FuncGetCharacteristics1() (fn js.Func[func() js.Promise[js.Array[BluetoothRemoteGATTCharacteristic]]]) {
  6317  	bindings.FuncBluetoothRemoteGATTServiceGetCharacteristics1(
  6318  		this.ref, js.Pointer(&fn),
  6319  	)
  6320  	return
  6321  }
  6322  
  6323  // GetCharacteristics1 calls the method "BluetoothRemoteGATTService.getCharacteristics".
  6324  func (this BluetoothRemoteGATTService) GetCharacteristics1() (ret js.Promise[js.Array[BluetoothRemoteGATTCharacteristic]]) {
  6325  	bindings.CallBluetoothRemoteGATTServiceGetCharacteristics1(
  6326  		this.ref, js.Pointer(&ret),
  6327  	)
  6328  
  6329  	return
  6330  }
  6331  
  6332  // TryGetCharacteristics1 calls the method "BluetoothRemoteGATTService.getCharacteristics"
  6333  // in a try/catch block and returns (_, err, ok = false) when it went through
  6334  // the catch clause.
  6335  func (this BluetoothRemoteGATTService) TryGetCharacteristics1() (ret js.Promise[js.Array[BluetoothRemoteGATTCharacteristic]], exception js.Any, ok bool) {
  6336  	ok = js.True == bindings.TryBluetoothRemoteGATTServiceGetCharacteristics1(
  6337  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6338  	)
  6339  
  6340  	return
  6341  }
  6342  
  6343  // HasFuncGetIncludedService returns true if the method "BluetoothRemoteGATTService.getIncludedService" exists.
  6344  func (this BluetoothRemoteGATTService) HasFuncGetIncludedService() bool {
  6345  	return js.True == bindings.HasFuncBluetoothRemoteGATTServiceGetIncludedService(
  6346  		this.ref,
  6347  	)
  6348  }
  6349  
  6350  // FuncGetIncludedService returns the method "BluetoothRemoteGATTService.getIncludedService".
  6351  func (this BluetoothRemoteGATTService) FuncGetIncludedService() (fn js.Func[func(service BluetoothServiceUUID) js.Promise[BluetoothRemoteGATTService]]) {
  6352  	bindings.FuncBluetoothRemoteGATTServiceGetIncludedService(
  6353  		this.ref, js.Pointer(&fn),
  6354  	)
  6355  	return
  6356  }
  6357  
  6358  // GetIncludedService calls the method "BluetoothRemoteGATTService.getIncludedService".
  6359  func (this BluetoothRemoteGATTService) GetIncludedService(service BluetoothServiceUUID) (ret js.Promise[BluetoothRemoteGATTService]) {
  6360  	bindings.CallBluetoothRemoteGATTServiceGetIncludedService(
  6361  		this.ref, js.Pointer(&ret),
  6362  		service.Ref(),
  6363  	)
  6364  
  6365  	return
  6366  }
  6367  
  6368  // TryGetIncludedService calls the method "BluetoothRemoteGATTService.getIncludedService"
  6369  // in a try/catch block and returns (_, err, ok = false) when it went through
  6370  // the catch clause.
  6371  func (this BluetoothRemoteGATTService) TryGetIncludedService(service BluetoothServiceUUID) (ret js.Promise[BluetoothRemoteGATTService], exception js.Any, ok bool) {
  6372  	ok = js.True == bindings.TryBluetoothRemoteGATTServiceGetIncludedService(
  6373  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6374  		service.Ref(),
  6375  	)
  6376  
  6377  	return
  6378  }
  6379  
  6380  // HasFuncGetIncludedServices returns true if the method "BluetoothRemoteGATTService.getIncludedServices" exists.
  6381  func (this BluetoothRemoteGATTService) HasFuncGetIncludedServices() bool {
  6382  	return js.True == bindings.HasFuncBluetoothRemoteGATTServiceGetIncludedServices(
  6383  		this.ref,
  6384  	)
  6385  }
  6386  
  6387  // FuncGetIncludedServices returns the method "BluetoothRemoteGATTService.getIncludedServices".
  6388  func (this BluetoothRemoteGATTService) FuncGetIncludedServices() (fn js.Func[func(service BluetoothServiceUUID) js.Promise[js.Array[BluetoothRemoteGATTService]]]) {
  6389  	bindings.FuncBluetoothRemoteGATTServiceGetIncludedServices(
  6390  		this.ref, js.Pointer(&fn),
  6391  	)
  6392  	return
  6393  }
  6394  
  6395  // GetIncludedServices calls the method "BluetoothRemoteGATTService.getIncludedServices".
  6396  func (this BluetoothRemoteGATTService) GetIncludedServices(service BluetoothServiceUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTService]]) {
  6397  	bindings.CallBluetoothRemoteGATTServiceGetIncludedServices(
  6398  		this.ref, js.Pointer(&ret),
  6399  		service.Ref(),
  6400  	)
  6401  
  6402  	return
  6403  }
  6404  
  6405  // TryGetIncludedServices calls the method "BluetoothRemoteGATTService.getIncludedServices"
  6406  // in a try/catch block and returns (_, err, ok = false) when it went through
  6407  // the catch clause.
  6408  func (this BluetoothRemoteGATTService) TryGetIncludedServices(service BluetoothServiceUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTService]], exception js.Any, ok bool) {
  6409  	ok = js.True == bindings.TryBluetoothRemoteGATTServiceGetIncludedServices(
  6410  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6411  		service.Ref(),
  6412  	)
  6413  
  6414  	return
  6415  }
  6416  
  6417  // HasFuncGetIncludedServices1 returns true if the method "BluetoothRemoteGATTService.getIncludedServices" exists.
  6418  func (this BluetoothRemoteGATTService) HasFuncGetIncludedServices1() bool {
  6419  	return js.True == bindings.HasFuncBluetoothRemoteGATTServiceGetIncludedServices1(
  6420  		this.ref,
  6421  	)
  6422  }
  6423  
  6424  // FuncGetIncludedServices1 returns the method "BluetoothRemoteGATTService.getIncludedServices".
  6425  func (this BluetoothRemoteGATTService) FuncGetIncludedServices1() (fn js.Func[func() js.Promise[js.Array[BluetoothRemoteGATTService]]]) {
  6426  	bindings.FuncBluetoothRemoteGATTServiceGetIncludedServices1(
  6427  		this.ref, js.Pointer(&fn),
  6428  	)
  6429  	return
  6430  }
  6431  
  6432  // GetIncludedServices1 calls the method "BluetoothRemoteGATTService.getIncludedServices".
  6433  func (this BluetoothRemoteGATTService) GetIncludedServices1() (ret js.Promise[js.Array[BluetoothRemoteGATTService]]) {
  6434  	bindings.CallBluetoothRemoteGATTServiceGetIncludedServices1(
  6435  		this.ref, js.Pointer(&ret),
  6436  	)
  6437  
  6438  	return
  6439  }
  6440  
  6441  // TryGetIncludedServices1 calls the method "BluetoothRemoteGATTService.getIncludedServices"
  6442  // in a try/catch block and returns (_, err, ok = false) when it went through
  6443  // the catch clause.
  6444  func (this BluetoothRemoteGATTService) TryGetIncludedServices1() (ret js.Promise[js.Array[BluetoothRemoteGATTService]], exception js.Any, ok bool) {
  6445  	ok = js.True == bindings.TryBluetoothRemoteGATTServiceGetIncludedServices1(
  6446  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6447  	)
  6448  
  6449  	return
  6450  }
  6451  
  6452  type BluetoothRemoteGATTServer struct {
  6453  	ref js.Ref
  6454  }
  6455  
  6456  func (this BluetoothRemoteGATTServer) Once() BluetoothRemoteGATTServer {
  6457  	this.ref.Once()
  6458  	return this
  6459  }
  6460  
  6461  func (this BluetoothRemoteGATTServer) Ref() js.Ref {
  6462  	return this.ref
  6463  }
  6464  
  6465  func (this BluetoothRemoteGATTServer) FromRef(ref js.Ref) BluetoothRemoteGATTServer {
  6466  	this.ref = ref
  6467  	return this
  6468  }
  6469  
  6470  func (this BluetoothRemoteGATTServer) Free() {
  6471  	this.ref.Free()
  6472  }
  6473  
  6474  // Device returns the value of property "BluetoothRemoteGATTServer.device".
  6475  //
  6476  // It returns ok=false if there is no such property.
  6477  func (this BluetoothRemoteGATTServer) Device() (ret BluetoothDevice, ok bool) {
  6478  	ok = js.True == bindings.GetBluetoothRemoteGATTServerDevice(
  6479  		this.ref, js.Pointer(&ret),
  6480  	)
  6481  	return
  6482  }
  6483  
  6484  // Connected returns the value of property "BluetoothRemoteGATTServer.connected".
  6485  //
  6486  // It returns ok=false if there is no such property.
  6487  func (this BluetoothRemoteGATTServer) Connected() (ret bool, ok bool) {
  6488  	ok = js.True == bindings.GetBluetoothRemoteGATTServerConnected(
  6489  		this.ref, js.Pointer(&ret),
  6490  	)
  6491  	return
  6492  }
  6493  
  6494  // HasFuncConnect returns true if the method "BluetoothRemoteGATTServer.connect" exists.
  6495  func (this BluetoothRemoteGATTServer) HasFuncConnect() bool {
  6496  	return js.True == bindings.HasFuncBluetoothRemoteGATTServerConnect(
  6497  		this.ref,
  6498  	)
  6499  }
  6500  
  6501  // FuncConnect returns the method "BluetoothRemoteGATTServer.connect".
  6502  func (this BluetoothRemoteGATTServer) FuncConnect() (fn js.Func[func() js.Promise[BluetoothRemoteGATTServer]]) {
  6503  	bindings.FuncBluetoothRemoteGATTServerConnect(
  6504  		this.ref, js.Pointer(&fn),
  6505  	)
  6506  	return
  6507  }
  6508  
  6509  // Connect calls the method "BluetoothRemoteGATTServer.connect".
  6510  func (this BluetoothRemoteGATTServer) Connect() (ret js.Promise[BluetoothRemoteGATTServer]) {
  6511  	bindings.CallBluetoothRemoteGATTServerConnect(
  6512  		this.ref, js.Pointer(&ret),
  6513  	)
  6514  
  6515  	return
  6516  }
  6517  
  6518  // TryConnect calls the method "BluetoothRemoteGATTServer.connect"
  6519  // in a try/catch block and returns (_, err, ok = false) when it went through
  6520  // the catch clause.
  6521  func (this BluetoothRemoteGATTServer) TryConnect() (ret js.Promise[BluetoothRemoteGATTServer], exception js.Any, ok bool) {
  6522  	ok = js.True == bindings.TryBluetoothRemoteGATTServerConnect(
  6523  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6524  	)
  6525  
  6526  	return
  6527  }
  6528  
  6529  // HasFuncDisconnect returns true if the method "BluetoothRemoteGATTServer.disconnect" exists.
  6530  func (this BluetoothRemoteGATTServer) HasFuncDisconnect() bool {
  6531  	return js.True == bindings.HasFuncBluetoothRemoteGATTServerDisconnect(
  6532  		this.ref,
  6533  	)
  6534  }
  6535  
  6536  // FuncDisconnect returns the method "BluetoothRemoteGATTServer.disconnect".
  6537  func (this BluetoothRemoteGATTServer) FuncDisconnect() (fn js.Func[func()]) {
  6538  	bindings.FuncBluetoothRemoteGATTServerDisconnect(
  6539  		this.ref, js.Pointer(&fn),
  6540  	)
  6541  	return
  6542  }
  6543  
  6544  // Disconnect calls the method "BluetoothRemoteGATTServer.disconnect".
  6545  func (this BluetoothRemoteGATTServer) Disconnect() (ret js.Void) {
  6546  	bindings.CallBluetoothRemoteGATTServerDisconnect(
  6547  		this.ref, js.Pointer(&ret),
  6548  	)
  6549  
  6550  	return
  6551  }
  6552  
  6553  // TryDisconnect calls the method "BluetoothRemoteGATTServer.disconnect"
  6554  // in a try/catch block and returns (_, err, ok = false) when it went through
  6555  // the catch clause.
  6556  func (this BluetoothRemoteGATTServer) TryDisconnect() (ret js.Void, exception js.Any, ok bool) {
  6557  	ok = js.True == bindings.TryBluetoothRemoteGATTServerDisconnect(
  6558  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6559  	)
  6560  
  6561  	return
  6562  }
  6563  
  6564  // HasFuncGetPrimaryService returns true if the method "BluetoothRemoteGATTServer.getPrimaryService" exists.
  6565  func (this BluetoothRemoteGATTServer) HasFuncGetPrimaryService() bool {
  6566  	return js.True == bindings.HasFuncBluetoothRemoteGATTServerGetPrimaryService(
  6567  		this.ref,
  6568  	)
  6569  }
  6570  
  6571  // FuncGetPrimaryService returns the method "BluetoothRemoteGATTServer.getPrimaryService".
  6572  func (this BluetoothRemoteGATTServer) FuncGetPrimaryService() (fn js.Func[func(service BluetoothServiceUUID) js.Promise[BluetoothRemoteGATTService]]) {
  6573  	bindings.FuncBluetoothRemoteGATTServerGetPrimaryService(
  6574  		this.ref, js.Pointer(&fn),
  6575  	)
  6576  	return
  6577  }
  6578  
  6579  // GetPrimaryService calls the method "BluetoothRemoteGATTServer.getPrimaryService".
  6580  func (this BluetoothRemoteGATTServer) GetPrimaryService(service BluetoothServiceUUID) (ret js.Promise[BluetoothRemoteGATTService]) {
  6581  	bindings.CallBluetoothRemoteGATTServerGetPrimaryService(
  6582  		this.ref, js.Pointer(&ret),
  6583  		service.Ref(),
  6584  	)
  6585  
  6586  	return
  6587  }
  6588  
  6589  // TryGetPrimaryService calls the method "BluetoothRemoteGATTServer.getPrimaryService"
  6590  // in a try/catch block and returns (_, err, ok = false) when it went through
  6591  // the catch clause.
  6592  func (this BluetoothRemoteGATTServer) TryGetPrimaryService(service BluetoothServiceUUID) (ret js.Promise[BluetoothRemoteGATTService], exception js.Any, ok bool) {
  6593  	ok = js.True == bindings.TryBluetoothRemoteGATTServerGetPrimaryService(
  6594  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6595  		service.Ref(),
  6596  	)
  6597  
  6598  	return
  6599  }
  6600  
  6601  // HasFuncGetPrimaryServices returns true if the method "BluetoothRemoteGATTServer.getPrimaryServices" exists.
  6602  func (this BluetoothRemoteGATTServer) HasFuncGetPrimaryServices() bool {
  6603  	return js.True == bindings.HasFuncBluetoothRemoteGATTServerGetPrimaryServices(
  6604  		this.ref,
  6605  	)
  6606  }
  6607  
  6608  // FuncGetPrimaryServices returns the method "BluetoothRemoteGATTServer.getPrimaryServices".
  6609  func (this BluetoothRemoteGATTServer) FuncGetPrimaryServices() (fn js.Func[func(service BluetoothServiceUUID) js.Promise[js.Array[BluetoothRemoteGATTService]]]) {
  6610  	bindings.FuncBluetoothRemoteGATTServerGetPrimaryServices(
  6611  		this.ref, js.Pointer(&fn),
  6612  	)
  6613  	return
  6614  }
  6615  
  6616  // GetPrimaryServices calls the method "BluetoothRemoteGATTServer.getPrimaryServices".
  6617  func (this BluetoothRemoteGATTServer) GetPrimaryServices(service BluetoothServiceUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTService]]) {
  6618  	bindings.CallBluetoothRemoteGATTServerGetPrimaryServices(
  6619  		this.ref, js.Pointer(&ret),
  6620  		service.Ref(),
  6621  	)
  6622  
  6623  	return
  6624  }
  6625  
  6626  // TryGetPrimaryServices calls the method "BluetoothRemoteGATTServer.getPrimaryServices"
  6627  // in a try/catch block and returns (_, err, ok = false) when it went through
  6628  // the catch clause.
  6629  func (this BluetoothRemoteGATTServer) TryGetPrimaryServices(service BluetoothServiceUUID) (ret js.Promise[js.Array[BluetoothRemoteGATTService]], exception js.Any, ok bool) {
  6630  	ok = js.True == bindings.TryBluetoothRemoteGATTServerGetPrimaryServices(
  6631  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6632  		service.Ref(),
  6633  	)
  6634  
  6635  	return
  6636  }
  6637  
  6638  // HasFuncGetPrimaryServices1 returns true if the method "BluetoothRemoteGATTServer.getPrimaryServices" exists.
  6639  func (this BluetoothRemoteGATTServer) HasFuncGetPrimaryServices1() bool {
  6640  	return js.True == bindings.HasFuncBluetoothRemoteGATTServerGetPrimaryServices1(
  6641  		this.ref,
  6642  	)
  6643  }
  6644  
  6645  // FuncGetPrimaryServices1 returns the method "BluetoothRemoteGATTServer.getPrimaryServices".
  6646  func (this BluetoothRemoteGATTServer) FuncGetPrimaryServices1() (fn js.Func[func() js.Promise[js.Array[BluetoothRemoteGATTService]]]) {
  6647  	bindings.FuncBluetoothRemoteGATTServerGetPrimaryServices1(
  6648  		this.ref, js.Pointer(&fn),
  6649  	)
  6650  	return
  6651  }
  6652  
  6653  // GetPrimaryServices1 calls the method "BluetoothRemoteGATTServer.getPrimaryServices".
  6654  func (this BluetoothRemoteGATTServer) GetPrimaryServices1() (ret js.Promise[js.Array[BluetoothRemoteGATTService]]) {
  6655  	bindings.CallBluetoothRemoteGATTServerGetPrimaryServices1(
  6656  		this.ref, js.Pointer(&ret),
  6657  	)
  6658  
  6659  	return
  6660  }
  6661  
  6662  // TryGetPrimaryServices1 calls the method "BluetoothRemoteGATTServer.getPrimaryServices"
  6663  // in a try/catch block and returns (_, err, ok = false) when it went through
  6664  // the catch clause.
  6665  func (this BluetoothRemoteGATTServer) TryGetPrimaryServices1() (ret js.Promise[js.Array[BluetoothRemoteGATTService]], exception js.Any, ok bool) {
  6666  	ok = js.True == bindings.TryBluetoothRemoteGATTServerGetPrimaryServices1(
  6667  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6668  	)
  6669  
  6670  	return
  6671  }
  6672  
  6673  type BluetoothDevice struct {
  6674  	EventTarget
  6675  }
  6676  
  6677  func (this BluetoothDevice) Once() BluetoothDevice {
  6678  	this.ref.Once()
  6679  	return this
  6680  }
  6681  
  6682  func (this BluetoothDevice) Ref() js.Ref {
  6683  	return this.EventTarget.Ref()
  6684  }
  6685  
  6686  func (this BluetoothDevice) FromRef(ref js.Ref) BluetoothDevice {
  6687  	this.EventTarget = this.EventTarget.FromRef(ref)
  6688  	return this
  6689  }
  6690  
  6691  func (this BluetoothDevice) Free() {
  6692  	this.ref.Free()
  6693  }
  6694  
  6695  // Id returns the value of property "BluetoothDevice.id".
  6696  //
  6697  // It returns ok=false if there is no such property.
  6698  func (this BluetoothDevice) Id() (ret js.String, ok bool) {
  6699  	ok = js.True == bindings.GetBluetoothDeviceId(
  6700  		this.ref, js.Pointer(&ret),
  6701  	)
  6702  	return
  6703  }
  6704  
  6705  // Name returns the value of property "BluetoothDevice.name".
  6706  //
  6707  // It returns ok=false if there is no such property.
  6708  func (this BluetoothDevice) Name() (ret js.String, ok bool) {
  6709  	ok = js.True == bindings.GetBluetoothDeviceName(
  6710  		this.ref, js.Pointer(&ret),
  6711  	)
  6712  	return
  6713  }
  6714  
  6715  // Gatt returns the value of property "BluetoothDevice.gatt".
  6716  //
  6717  // It returns ok=false if there is no such property.
  6718  func (this BluetoothDevice) Gatt() (ret BluetoothRemoteGATTServer, ok bool) {
  6719  	ok = js.True == bindings.GetBluetoothDeviceGatt(
  6720  		this.ref, js.Pointer(&ret),
  6721  	)
  6722  	return
  6723  }
  6724  
  6725  // WatchingAdvertisements returns the value of property "BluetoothDevice.watchingAdvertisements".
  6726  //
  6727  // It returns ok=false if there is no such property.
  6728  func (this BluetoothDevice) WatchingAdvertisements() (ret bool, ok bool) {
  6729  	ok = js.True == bindings.GetBluetoothDeviceWatchingAdvertisements(
  6730  		this.ref, js.Pointer(&ret),
  6731  	)
  6732  	return
  6733  }
  6734  
  6735  // HasFuncForget returns true if the method "BluetoothDevice.forget" exists.
  6736  func (this BluetoothDevice) HasFuncForget() bool {
  6737  	return js.True == bindings.HasFuncBluetoothDeviceForget(
  6738  		this.ref,
  6739  	)
  6740  }
  6741  
  6742  // FuncForget returns the method "BluetoothDevice.forget".
  6743  func (this BluetoothDevice) FuncForget() (fn js.Func[func() js.Promise[js.Void]]) {
  6744  	bindings.FuncBluetoothDeviceForget(
  6745  		this.ref, js.Pointer(&fn),
  6746  	)
  6747  	return
  6748  }
  6749  
  6750  // Forget calls the method "BluetoothDevice.forget".
  6751  func (this BluetoothDevice) Forget() (ret js.Promise[js.Void]) {
  6752  	bindings.CallBluetoothDeviceForget(
  6753  		this.ref, js.Pointer(&ret),
  6754  	)
  6755  
  6756  	return
  6757  }
  6758  
  6759  // TryForget calls the method "BluetoothDevice.forget"
  6760  // in a try/catch block and returns (_, err, ok = false) when it went through
  6761  // the catch clause.
  6762  func (this BluetoothDevice) TryForget() (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6763  	ok = js.True == bindings.TryBluetoothDeviceForget(
  6764  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6765  	)
  6766  
  6767  	return
  6768  }
  6769  
  6770  // HasFuncWatchAdvertisements returns true if the method "BluetoothDevice.watchAdvertisements" exists.
  6771  func (this BluetoothDevice) HasFuncWatchAdvertisements() bool {
  6772  	return js.True == bindings.HasFuncBluetoothDeviceWatchAdvertisements(
  6773  		this.ref,
  6774  	)
  6775  }
  6776  
  6777  // FuncWatchAdvertisements returns the method "BluetoothDevice.watchAdvertisements".
  6778  func (this BluetoothDevice) FuncWatchAdvertisements() (fn js.Func[func(options WatchAdvertisementsOptions) js.Promise[js.Void]]) {
  6779  	bindings.FuncBluetoothDeviceWatchAdvertisements(
  6780  		this.ref, js.Pointer(&fn),
  6781  	)
  6782  	return
  6783  }
  6784  
  6785  // WatchAdvertisements calls the method "BluetoothDevice.watchAdvertisements".
  6786  func (this BluetoothDevice) WatchAdvertisements(options WatchAdvertisementsOptions) (ret js.Promise[js.Void]) {
  6787  	bindings.CallBluetoothDeviceWatchAdvertisements(
  6788  		this.ref, js.Pointer(&ret),
  6789  		js.Pointer(&options),
  6790  	)
  6791  
  6792  	return
  6793  }
  6794  
  6795  // TryWatchAdvertisements calls the method "BluetoothDevice.watchAdvertisements"
  6796  // in a try/catch block and returns (_, err, ok = false) when it went through
  6797  // the catch clause.
  6798  func (this BluetoothDevice) TryWatchAdvertisements(options WatchAdvertisementsOptions) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6799  	ok = js.True == bindings.TryBluetoothDeviceWatchAdvertisements(
  6800  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6801  		js.Pointer(&options),
  6802  	)
  6803  
  6804  	return
  6805  }
  6806  
  6807  // HasFuncWatchAdvertisements1 returns true if the method "BluetoothDevice.watchAdvertisements" exists.
  6808  func (this BluetoothDevice) HasFuncWatchAdvertisements1() bool {
  6809  	return js.True == bindings.HasFuncBluetoothDeviceWatchAdvertisements1(
  6810  		this.ref,
  6811  	)
  6812  }
  6813  
  6814  // FuncWatchAdvertisements1 returns the method "BluetoothDevice.watchAdvertisements".
  6815  func (this BluetoothDevice) FuncWatchAdvertisements1() (fn js.Func[func() js.Promise[js.Void]]) {
  6816  	bindings.FuncBluetoothDeviceWatchAdvertisements1(
  6817  		this.ref, js.Pointer(&fn),
  6818  	)
  6819  	return
  6820  }
  6821  
  6822  // WatchAdvertisements1 calls the method "BluetoothDevice.watchAdvertisements".
  6823  func (this BluetoothDevice) WatchAdvertisements1() (ret js.Promise[js.Void]) {
  6824  	bindings.CallBluetoothDeviceWatchAdvertisements1(
  6825  		this.ref, js.Pointer(&ret),
  6826  	)
  6827  
  6828  	return
  6829  }
  6830  
  6831  // TryWatchAdvertisements1 calls the method "BluetoothDevice.watchAdvertisements"
  6832  // in a try/catch block and returns (_, err, ok = false) when it went through
  6833  // the catch clause.
  6834  func (this BluetoothDevice) TryWatchAdvertisements1() (ret js.Promise[js.Void], exception js.Any, ok bool) {
  6835  	ok = js.True == bindings.TryBluetoothDeviceWatchAdvertisements1(
  6836  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  6837  	)
  6838  
  6839  	return
  6840  }
  6841  
  6842  type BluetoothManufacturerDataFilterInit struct {
  6843  	// CompanyIdentifier is "BluetoothManufacturerDataFilterInit.companyIdentifier"
  6844  	//
  6845  	// Required
  6846  	CompanyIdentifier uint16
  6847  	// DataPrefix is "BluetoothManufacturerDataFilterInit.dataPrefix"
  6848  	//
  6849  	// Optional
  6850  	DataPrefix BufferSource
  6851  	// Mask is "BluetoothManufacturerDataFilterInit.mask"
  6852  	//
  6853  	// Optional
  6854  	Mask BufferSource
  6855  
  6856  	FFI_USE bool
  6857  }
  6858  
  6859  // FromRef calls UpdateFrom and returns a BluetoothManufacturerDataFilterInit with all fields set.
  6860  func (p BluetoothManufacturerDataFilterInit) FromRef(ref js.Ref) BluetoothManufacturerDataFilterInit {
  6861  	p.UpdateFrom(ref)
  6862  	return p
  6863  }
  6864  
  6865  // New creates a new BluetoothManufacturerDataFilterInit in the application heap.
  6866  func (p BluetoothManufacturerDataFilterInit) New() js.Ref {
  6867  	return bindings.BluetoothManufacturerDataFilterInitJSLoad(
  6868  		js.Pointer(&p), js.True, 0,
  6869  	)
  6870  }
  6871  
  6872  // UpdateFrom copies value of all fields of the heap object to p.
  6873  func (p *BluetoothManufacturerDataFilterInit) UpdateFrom(ref js.Ref) {
  6874  	bindings.BluetoothManufacturerDataFilterInitJSStore(
  6875  		js.Pointer(p), ref,
  6876  	)
  6877  }
  6878  
  6879  // Update writes all fields of the p to the heap object referenced by ref.
  6880  func (p *BluetoothManufacturerDataFilterInit) Update(ref js.Ref) {
  6881  	bindings.BluetoothManufacturerDataFilterInitJSLoad(
  6882  		js.Pointer(p), js.False, ref,
  6883  	)
  6884  }
  6885  
  6886  // FreeMembers frees fields with heap reference, if recursive is true
  6887  // free all heap references reachable from p.
  6888  func (p *BluetoothManufacturerDataFilterInit) FreeMembers(recursive bool) {
  6889  	js.Free(
  6890  		p.DataPrefix.Ref(),
  6891  		p.Mask.Ref(),
  6892  	)
  6893  	p.DataPrefix = p.DataPrefix.FromRef(js.Undefined)
  6894  	p.Mask = p.Mask.FromRef(js.Undefined)
  6895  }