github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis58_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/ffi/js"
     8  	"github.com/primecitizens/pcz/std/plat/js/web/bindings"
     9  )
    10  
    11  type XRLayerLayout uint32
    12  
    13  const (
    14  	_ XRLayerLayout = iota
    15  
    16  	XRLayerLayout_DEFAULT
    17  	XRLayerLayout_MONO
    18  	XRLayerLayout_STEREO
    19  	XRLayerLayout_STEREO_LEFT_RIGHT
    20  	XRLayerLayout_STEREO_TOP_BOTTOM
    21  )
    22  
    23  func (XRLayerLayout) FromRef(str js.Ref) XRLayerLayout {
    24  	return XRLayerLayout(bindings.ConstOfXRLayerLayout(str))
    25  }
    26  
    27  func (x XRLayerLayout) String() (string, bool) {
    28  	switch x {
    29  	case XRLayerLayout_DEFAULT:
    30  		return "default", true
    31  	case XRLayerLayout_MONO:
    32  		return "mono", true
    33  	case XRLayerLayout_STEREO:
    34  		return "stereo", true
    35  	case XRLayerLayout_STEREO_LEFT_RIGHT:
    36  		return "stereo-left-right", true
    37  	case XRLayerLayout_STEREO_TOP_BOTTOM:
    38  		return "stereo-top-bottom", true
    39  	default:
    40  		return "", false
    41  	}
    42  }
    43  
    44  type XRLayerQuality uint32
    45  
    46  const (
    47  	_ XRLayerQuality = iota
    48  
    49  	XRLayerQuality_DEFAULT
    50  	XRLayerQuality_TEXT_OPTIMIZED
    51  	XRLayerQuality_GRAPHICS_OPTIMIZED
    52  )
    53  
    54  func (XRLayerQuality) FromRef(str js.Ref) XRLayerQuality {
    55  	return XRLayerQuality(bindings.ConstOfXRLayerQuality(str))
    56  }
    57  
    58  func (x XRLayerQuality) String() (string, bool) {
    59  	switch x {
    60  	case XRLayerQuality_DEFAULT:
    61  		return "default", true
    62  	case XRLayerQuality_TEXT_OPTIMIZED:
    63  		return "text-optimized", true
    64  	case XRLayerQuality_GRAPHICS_OPTIMIZED:
    65  		return "graphics-optimized", true
    66  	default:
    67  		return "", false
    68  	}
    69  }
    70  
    71  type XRCompositionLayer struct {
    72  	XRLayer
    73  }
    74  
    75  func (this XRCompositionLayer) Once() XRCompositionLayer {
    76  	this.ref.Once()
    77  	return this
    78  }
    79  
    80  func (this XRCompositionLayer) Ref() js.Ref {
    81  	return this.XRLayer.Ref()
    82  }
    83  
    84  func (this XRCompositionLayer) FromRef(ref js.Ref) XRCompositionLayer {
    85  	this.XRLayer = this.XRLayer.FromRef(ref)
    86  	return this
    87  }
    88  
    89  func (this XRCompositionLayer) Free() {
    90  	this.ref.Free()
    91  }
    92  
    93  // Layout returns the value of property "XRCompositionLayer.layout".
    94  //
    95  // It returns ok=false if there is no such property.
    96  func (this XRCompositionLayer) Layout() (ret XRLayerLayout, ok bool) {
    97  	ok = js.True == bindings.GetXRCompositionLayerLayout(
    98  		this.ref, js.Pointer(&ret),
    99  	)
   100  	return
   101  }
   102  
   103  // BlendTextureSourceAlpha returns the value of property "XRCompositionLayer.blendTextureSourceAlpha".
   104  //
   105  // It returns ok=false if there is no such property.
   106  func (this XRCompositionLayer) BlendTextureSourceAlpha() (ret bool, ok bool) {
   107  	ok = js.True == bindings.GetXRCompositionLayerBlendTextureSourceAlpha(
   108  		this.ref, js.Pointer(&ret),
   109  	)
   110  	return
   111  }
   112  
   113  // SetBlendTextureSourceAlpha sets the value of property "XRCompositionLayer.blendTextureSourceAlpha" to val.
   114  //
   115  // It returns false if the property cannot be set.
   116  func (this XRCompositionLayer) SetBlendTextureSourceAlpha(val bool) bool {
   117  	return js.True == bindings.SetXRCompositionLayerBlendTextureSourceAlpha(
   118  		this.ref,
   119  		js.Bool(bool(val)),
   120  	)
   121  }
   122  
   123  // ForceMonoPresentation returns the value of property "XRCompositionLayer.forceMonoPresentation".
   124  //
   125  // It returns ok=false if there is no such property.
   126  func (this XRCompositionLayer) ForceMonoPresentation() (ret bool, ok bool) {
   127  	ok = js.True == bindings.GetXRCompositionLayerForceMonoPresentation(
   128  		this.ref, js.Pointer(&ret),
   129  	)
   130  	return
   131  }
   132  
   133  // SetForceMonoPresentation sets the value of property "XRCompositionLayer.forceMonoPresentation" to val.
   134  //
   135  // It returns false if the property cannot be set.
   136  func (this XRCompositionLayer) SetForceMonoPresentation(val bool) bool {
   137  	return js.True == bindings.SetXRCompositionLayerForceMonoPresentation(
   138  		this.ref,
   139  		js.Bool(bool(val)),
   140  	)
   141  }
   142  
   143  // Opacity returns the value of property "XRCompositionLayer.opacity".
   144  //
   145  // It returns ok=false if there is no such property.
   146  func (this XRCompositionLayer) Opacity() (ret float32, ok bool) {
   147  	ok = js.True == bindings.GetXRCompositionLayerOpacity(
   148  		this.ref, js.Pointer(&ret),
   149  	)
   150  	return
   151  }
   152  
   153  // SetOpacity sets the value of property "XRCompositionLayer.opacity" to val.
   154  //
   155  // It returns false if the property cannot be set.
   156  func (this XRCompositionLayer) SetOpacity(val float32) bool {
   157  	return js.True == bindings.SetXRCompositionLayerOpacity(
   158  		this.ref,
   159  		float32(val),
   160  	)
   161  }
   162  
   163  // MipLevels returns the value of property "XRCompositionLayer.mipLevels".
   164  //
   165  // It returns ok=false if there is no such property.
   166  func (this XRCompositionLayer) MipLevels() (ret uint32, ok bool) {
   167  	ok = js.True == bindings.GetXRCompositionLayerMipLevels(
   168  		this.ref, js.Pointer(&ret),
   169  	)
   170  	return
   171  }
   172  
   173  // Quality returns the value of property "XRCompositionLayer.quality".
   174  //
   175  // It returns ok=false if there is no such property.
   176  func (this XRCompositionLayer) Quality() (ret XRLayerQuality, ok bool) {
   177  	ok = js.True == bindings.GetXRCompositionLayerQuality(
   178  		this.ref, js.Pointer(&ret),
   179  	)
   180  	return
   181  }
   182  
   183  // SetQuality sets the value of property "XRCompositionLayer.quality" to val.
   184  //
   185  // It returns false if the property cannot be set.
   186  func (this XRCompositionLayer) SetQuality(val XRLayerQuality) bool {
   187  	return js.True == bindings.SetXRCompositionLayerQuality(
   188  		this.ref,
   189  		uint32(val),
   190  	)
   191  }
   192  
   193  // NeedsRedraw returns the value of property "XRCompositionLayer.needsRedraw".
   194  //
   195  // It returns ok=false if there is no such property.
   196  func (this XRCompositionLayer) NeedsRedraw() (ret bool, ok bool) {
   197  	ok = js.True == bindings.GetXRCompositionLayerNeedsRedraw(
   198  		this.ref, js.Pointer(&ret),
   199  	)
   200  	return
   201  }
   202  
   203  // HasFuncDestroy returns true if the method "XRCompositionLayer.destroy" exists.
   204  func (this XRCompositionLayer) HasFuncDestroy() bool {
   205  	return js.True == bindings.HasFuncXRCompositionLayerDestroy(
   206  		this.ref,
   207  	)
   208  }
   209  
   210  // FuncDestroy returns the method "XRCompositionLayer.destroy".
   211  func (this XRCompositionLayer) FuncDestroy() (fn js.Func[func()]) {
   212  	bindings.FuncXRCompositionLayerDestroy(
   213  		this.ref, js.Pointer(&fn),
   214  	)
   215  	return
   216  }
   217  
   218  // Destroy calls the method "XRCompositionLayer.destroy".
   219  func (this XRCompositionLayer) Destroy() (ret js.Void) {
   220  	bindings.CallXRCompositionLayerDestroy(
   221  		this.ref, js.Pointer(&ret),
   222  	)
   223  
   224  	return
   225  }
   226  
   227  // TryDestroy calls the method "XRCompositionLayer.destroy"
   228  // in a try/catch block and returns (_, err, ok = false) when it went through
   229  // the catch clause.
   230  func (this XRCompositionLayer) TryDestroy() (ret js.Void, exception js.Any, ok bool) {
   231  	ok = js.True == bindings.TryXRCompositionLayerDestroy(
   232  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   233  	)
   234  
   235  	return
   236  }
   237  
   238  type XRCubeLayer struct {
   239  	XRCompositionLayer
   240  }
   241  
   242  func (this XRCubeLayer) Once() XRCubeLayer {
   243  	this.ref.Once()
   244  	return this
   245  }
   246  
   247  func (this XRCubeLayer) Ref() js.Ref {
   248  	return this.XRCompositionLayer.Ref()
   249  }
   250  
   251  func (this XRCubeLayer) FromRef(ref js.Ref) XRCubeLayer {
   252  	this.XRCompositionLayer = this.XRCompositionLayer.FromRef(ref)
   253  	return this
   254  }
   255  
   256  func (this XRCubeLayer) Free() {
   257  	this.ref.Free()
   258  }
   259  
   260  // Space returns the value of property "XRCubeLayer.space".
   261  //
   262  // It returns ok=false if there is no such property.
   263  func (this XRCubeLayer) Space() (ret XRSpace, ok bool) {
   264  	ok = js.True == bindings.GetXRCubeLayerSpace(
   265  		this.ref, js.Pointer(&ret),
   266  	)
   267  	return
   268  }
   269  
   270  // SetSpace sets the value of property "XRCubeLayer.space" to val.
   271  //
   272  // It returns false if the property cannot be set.
   273  func (this XRCubeLayer) SetSpace(val XRSpace) bool {
   274  	return js.True == bindings.SetXRCubeLayerSpace(
   275  		this.ref,
   276  		val.Ref(),
   277  	)
   278  }
   279  
   280  // Orientation returns the value of property "XRCubeLayer.orientation".
   281  //
   282  // It returns ok=false if there is no such property.
   283  func (this XRCubeLayer) Orientation() (ret DOMPointReadOnly, ok bool) {
   284  	ok = js.True == bindings.GetXRCubeLayerOrientation(
   285  		this.ref, js.Pointer(&ret),
   286  	)
   287  	return
   288  }
   289  
   290  // SetOrientation sets the value of property "XRCubeLayer.orientation" to val.
   291  //
   292  // It returns false if the property cannot be set.
   293  func (this XRCubeLayer) SetOrientation(val DOMPointReadOnly) bool {
   294  	return js.True == bindings.SetXRCubeLayerOrientation(
   295  		this.ref,
   296  		val.Ref(),
   297  	)
   298  }
   299  
   300  type XRCubeLayerInit struct {
   301  	// Orientation is "XRCubeLayerInit.orientation"
   302  	//
   303  	// Optional
   304  	Orientation DOMPointReadOnly
   305  	// Space is "XRCubeLayerInit.space"
   306  	//
   307  	// Required
   308  	Space XRSpace
   309  	// ColorFormat is "XRCubeLayerInit.colorFormat"
   310  	//
   311  	// Optional, defaults to 0x1908.
   312  	//
   313  	// NOTE: FFI_USE_ColorFormat MUST be set to true to make this field effective.
   314  	ColorFormat GLenum
   315  	// DepthFormat is "XRCubeLayerInit.depthFormat"
   316  	//
   317  	// Optional
   318  	//
   319  	// NOTE: FFI_USE_DepthFormat MUST be set to true to make this field effective.
   320  	DepthFormat GLenum
   321  	// MipLevels is "XRCubeLayerInit.mipLevels"
   322  	//
   323  	// Optional, defaults to 1.
   324  	//
   325  	// NOTE: FFI_USE_MipLevels MUST be set to true to make this field effective.
   326  	MipLevels uint32
   327  	// ViewPixelWidth is "XRCubeLayerInit.viewPixelWidth"
   328  	//
   329  	// Required
   330  	ViewPixelWidth uint32
   331  	// ViewPixelHeight is "XRCubeLayerInit.viewPixelHeight"
   332  	//
   333  	// Required
   334  	ViewPixelHeight uint32
   335  	// Layout is "XRCubeLayerInit.layout"
   336  	//
   337  	// Optional, defaults to "mono".
   338  	Layout XRLayerLayout
   339  	// IsStatic is "XRCubeLayerInit.isStatic"
   340  	//
   341  	// Optional, defaults to false.
   342  	//
   343  	// NOTE: FFI_USE_IsStatic MUST be set to true to make this field effective.
   344  	IsStatic bool
   345  	// ClearOnAccess is "XRCubeLayerInit.clearOnAccess"
   346  	//
   347  	// Optional, defaults to true.
   348  	//
   349  	// NOTE: FFI_USE_ClearOnAccess MUST be set to true to make this field effective.
   350  	ClearOnAccess bool
   351  
   352  	FFI_USE_ColorFormat   bool // for ColorFormat.
   353  	FFI_USE_DepthFormat   bool // for DepthFormat.
   354  	FFI_USE_MipLevels     bool // for MipLevels.
   355  	FFI_USE_IsStatic      bool // for IsStatic.
   356  	FFI_USE_ClearOnAccess bool // for ClearOnAccess.
   357  
   358  	FFI_USE bool
   359  }
   360  
   361  // FromRef calls UpdateFrom and returns a XRCubeLayerInit with all fields set.
   362  func (p XRCubeLayerInit) FromRef(ref js.Ref) XRCubeLayerInit {
   363  	p.UpdateFrom(ref)
   364  	return p
   365  }
   366  
   367  // New creates a new XRCubeLayerInit in the application heap.
   368  func (p XRCubeLayerInit) New() js.Ref {
   369  	return bindings.XRCubeLayerInitJSLoad(
   370  		js.Pointer(&p), js.True, 0,
   371  	)
   372  }
   373  
   374  // UpdateFrom copies value of all fields of the heap object to p.
   375  func (p *XRCubeLayerInit) UpdateFrom(ref js.Ref) {
   376  	bindings.XRCubeLayerInitJSStore(
   377  		js.Pointer(p), ref,
   378  	)
   379  }
   380  
   381  // Update writes all fields of the p to the heap object referenced by ref.
   382  func (p *XRCubeLayerInit) Update(ref js.Ref) {
   383  	bindings.XRCubeLayerInitJSLoad(
   384  		js.Pointer(p), js.False, ref,
   385  	)
   386  }
   387  
   388  // FreeMembers frees fields with heap reference, if recursive is true
   389  // free all heap references reachable from p.
   390  func (p *XRCubeLayerInit) FreeMembers(recursive bool) {
   391  	js.Free(
   392  		p.Orientation.Ref(),
   393  		p.Space.Ref(),
   394  	)
   395  	p.Orientation = p.Orientation.FromRef(js.Undefined)
   396  	p.Space = p.Space.FromRef(js.Undefined)
   397  }
   398  
   399  type XRCylinderLayer struct {
   400  	XRCompositionLayer
   401  }
   402  
   403  func (this XRCylinderLayer) Once() XRCylinderLayer {
   404  	this.ref.Once()
   405  	return this
   406  }
   407  
   408  func (this XRCylinderLayer) Ref() js.Ref {
   409  	return this.XRCompositionLayer.Ref()
   410  }
   411  
   412  func (this XRCylinderLayer) FromRef(ref js.Ref) XRCylinderLayer {
   413  	this.XRCompositionLayer = this.XRCompositionLayer.FromRef(ref)
   414  	return this
   415  }
   416  
   417  func (this XRCylinderLayer) Free() {
   418  	this.ref.Free()
   419  }
   420  
   421  // Space returns the value of property "XRCylinderLayer.space".
   422  //
   423  // It returns ok=false if there is no such property.
   424  func (this XRCylinderLayer) Space() (ret XRSpace, ok bool) {
   425  	ok = js.True == bindings.GetXRCylinderLayerSpace(
   426  		this.ref, js.Pointer(&ret),
   427  	)
   428  	return
   429  }
   430  
   431  // SetSpace sets the value of property "XRCylinderLayer.space" to val.
   432  //
   433  // It returns false if the property cannot be set.
   434  func (this XRCylinderLayer) SetSpace(val XRSpace) bool {
   435  	return js.True == bindings.SetXRCylinderLayerSpace(
   436  		this.ref,
   437  		val.Ref(),
   438  	)
   439  }
   440  
   441  // Transform returns the value of property "XRCylinderLayer.transform".
   442  //
   443  // It returns ok=false if there is no such property.
   444  func (this XRCylinderLayer) Transform() (ret XRRigidTransform, ok bool) {
   445  	ok = js.True == bindings.GetXRCylinderLayerTransform(
   446  		this.ref, js.Pointer(&ret),
   447  	)
   448  	return
   449  }
   450  
   451  // SetTransform sets the value of property "XRCylinderLayer.transform" to val.
   452  //
   453  // It returns false if the property cannot be set.
   454  func (this XRCylinderLayer) SetTransform(val XRRigidTransform) bool {
   455  	return js.True == bindings.SetXRCylinderLayerTransform(
   456  		this.ref,
   457  		val.Ref(),
   458  	)
   459  }
   460  
   461  // Radius returns the value of property "XRCylinderLayer.radius".
   462  //
   463  // It returns ok=false if there is no such property.
   464  func (this XRCylinderLayer) Radius() (ret float32, ok bool) {
   465  	ok = js.True == bindings.GetXRCylinderLayerRadius(
   466  		this.ref, js.Pointer(&ret),
   467  	)
   468  	return
   469  }
   470  
   471  // SetRadius sets the value of property "XRCylinderLayer.radius" to val.
   472  //
   473  // It returns false if the property cannot be set.
   474  func (this XRCylinderLayer) SetRadius(val float32) bool {
   475  	return js.True == bindings.SetXRCylinderLayerRadius(
   476  		this.ref,
   477  		float32(val),
   478  	)
   479  }
   480  
   481  // CentralAngle returns the value of property "XRCylinderLayer.centralAngle".
   482  //
   483  // It returns ok=false if there is no such property.
   484  func (this XRCylinderLayer) CentralAngle() (ret float32, ok bool) {
   485  	ok = js.True == bindings.GetXRCylinderLayerCentralAngle(
   486  		this.ref, js.Pointer(&ret),
   487  	)
   488  	return
   489  }
   490  
   491  // SetCentralAngle sets the value of property "XRCylinderLayer.centralAngle" to val.
   492  //
   493  // It returns false if the property cannot be set.
   494  func (this XRCylinderLayer) SetCentralAngle(val float32) bool {
   495  	return js.True == bindings.SetXRCylinderLayerCentralAngle(
   496  		this.ref,
   497  		float32(val),
   498  	)
   499  }
   500  
   501  // AspectRatio returns the value of property "XRCylinderLayer.aspectRatio".
   502  //
   503  // It returns ok=false if there is no such property.
   504  func (this XRCylinderLayer) AspectRatio() (ret float32, ok bool) {
   505  	ok = js.True == bindings.GetXRCylinderLayerAspectRatio(
   506  		this.ref, js.Pointer(&ret),
   507  	)
   508  	return
   509  }
   510  
   511  // SetAspectRatio sets the value of property "XRCylinderLayer.aspectRatio" to val.
   512  //
   513  // It returns false if the property cannot be set.
   514  func (this XRCylinderLayer) SetAspectRatio(val float32) bool {
   515  	return js.True == bindings.SetXRCylinderLayerAspectRatio(
   516  		this.ref,
   517  		float32(val),
   518  	)
   519  }
   520  
   521  type XRTextureType uint32
   522  
   523  const (
   524  	_ XRTextureType = iota
   525  
   526  	XRTextureType_TEXTURE
   527  	XRTextureType_TEXTURE_ARRAY
   528  )
   529  
   530  func (XRTextureType) FromRef(str js.Ref) XRTextureType {
   531  	return XRTextureType(bindings.ConstOfXRTextureType(str))
   532  }
   533  
   534  func (x XRTextureType) String() (string, bool) {
   535  	switch x {
   536  	case XRTextureType_TEXTURE:
   537  		return "texture", true
   538  	case XRTextureType_TEXTURE_ARRAY:
   539  		return "texture-array", true
   540  	default:
   541  		return "", false
   542  	}
   543  }
   544  
   545  type XRCylinderLayerInit struct {
   546  	// TextureType is "XRCylinderLayerInit.textureType"
   547  	//
   548  	// Optional, defaults to "texture".
   549  	TextureType XRTextureType
   550  	// Transform is "XRCylinderLayerInit.transform"
   551  	//
   552  	// Optional
   553  	Transform XRRigidTransform
   554  	// Radius is "XRCylinderLayerInit.radius"
   555  	//
   556  	// Optional, defaults to 2.0.
   557  	//
   558  	// NOTE: FFI_USE_Radius MUST be set to true to make this field effective.
   559  	Radius float32
   560  	// CentralAngle is "XRCylinderLayerInit.centralAngle"
   561  	//
   562  	// Optional, defaults to 0.78539.
   563  	//
   564  	// NOTE: FFI_USE_CentralAngle MUST be set to true to make this field effective.
   565  	CentralAngle float32
   566  	// AspectRatio is "XRCylinderLayerInit.aspectRatio"
   567  	//
   568  	// Optional, defaults to 2.0.
   569  	//
   570  	// NOTE: FFI_USE_AspectRatio MUST be set to true to make this field effective.
   571  	AspectRatio float32
   572  	// Space is "XRCylinderLayerInit.space"
   573  	//
   574  	// Required
   575  	Space XRSpace
   576  	// ColorFormat is "XRCylinderLayerInit.colorFormat"
   577  	//
   578  	// Optional, defaults to 0x1908.
   579  	//
   580  	// NOTE: FFI_USE_ColorFormat MUST be set to true to make this field effective.
   581  	ColorFormat GLenum
   582  	// DepthFormat is "XRCylinderLayerInit.depthFormat"
   583  	//
   584  	// Optional
   585  	//
   586  	// NOTE: FFI_USE_DepthFormat MUST be set to true to make this field effective.
   587  	DepthFormat GLenum
   588  	// MipLevels is "XRCylinderLayerInit.mipLevels"
   589  	//
   590  	// Optional, defaults to 1.
   591  	//
   592  	// NOTE: FFI_USE_MipLevels MUST be set to true to make this field effective.
   593  	MipLevels uint32
   594  	// ViewPixelWidth is "XRCylinderLayerInit.viewPixelWidth"
   595  	//
   596  	// Required
   597  	ViewPixelWidth uint32
   598  	// ViewPixelHeight is "XRCylinderLayerInit.viewPixelHeight"
   599  	//
   600  	// Required
   601  	ViewPixelHeight uint32
   602  	// Layout is "XRCylinderLayerInit.layout"
   603  	//
   604  	// Optional, defaults to "mono".
   605  	Layout XRLayerLayout
   606  	// IsStatic is "XRCylinderLayerInit.isStatic"
   607  	//
   608  	// Optional, defaults to false.
   609  	//
   610  	// NOTE: FFI_USE_IsStatic MUST be set to true to make this field effective.
   611  	IsStatic bool
   612  	// ClearOnAccess is "XRCylinderLayerInit.clearOnAccess"
   613  	//
   614  	// Optional, defaults to true.
   615  	//
   616  	// NOTE: FFI_USE_ClearOnAccess MUST be set to true to make this field effective.
   617  	ClearOnAccess bool
   618  
   619  	FFI_USE_Radius        bool // for Radius.
   620  	FFI_USE_CentralAngle  bool // for CentralAngle.
   621  	FFI_USE_AspectRatio   bool // for AspectRatio.
   622  	FFI_USE_ColorFormat   bool // for ColorFormat.
   623  	FFI_USE_DepthFormat   bool // for DepthFormat.
   624  	FFI_USE_MipLevels     bool // for MipLevels.
   625  	FFI_USE_IsStatic      bool // for IsStatic.
   626  	FFI_USE_ClearOnAccess bool // for ClearOnAccess.
   627  
   628  	FFI_USE bool
   629  }
   630  
   631  // FromRef calls UpdateFrom and returns a XRCylinderLayerInit with all fields set.
   632  func (p XRCylinderLayerInit) FromRef(ref js.Ref) XRCylinderLayerInit {
   633  	p.UpdateFrom(ref)
   634  	return p
   635  }
   636  
   637  // New creates a new XRCylinderLayerInit in the application heap.
   638  func (p XRCylinderLayerInit) New() js.Ref {
   639  	return bindings.XRCylinderLayerInitJSLoad(
   640  		js.Pointer(&p), js.True, 0,
   641  	)
   642  }
   643  
   644  // UpdateFrom copies value of all fields of the heap object to p.
   645  func (p *XRCylinderLayerInit) UpdateFrom(ref js.Ref) {
   646  	bindings.XRCylinderLayerInitJSStore(
   647  		js.Pointer(p), ref,
   648  	)
   649  }
   650  
   651  // Update writes all fields of the p to the heap object referenced by ref.
   652  func (p *XRCylinderLayerInit) Update(ref js.Ref) {
   653  	bindings.XRCylinderLayerInitJSLoad(
   654  		js.Pointer(p), js.False, ref,
   655  	)
   656  }
   657  
   658  // FreeMembers frees fields with heap reference, if recursive is true
   659  // free all heap references reachable from p.
   660  func (p *XRCylinderLayerInit) FreeMembers(recursive bool) {
   661  	js.Free(
   662  		p.Transform.Ref(),
   663  		p.Space.Ref(),
   664  	)
   665  	p.Transform = p.Transform.FromRef(js.Undefined)
   666  	p.Space = p.Space.FromRef(js.Undefined)
   667  }
   668  
   669  type XRDepthInformation struct {
   670  	ref js.Ref
   671  }
   672  
   673  func (this XRDepthInformation) Once() XRDepthInformation {
   674  	this.ref.Once()
   675  	return this
   676  }
   677  
   678  func (this XRDepthInformation) Ref() js.Ref {
   679  	return this.ref
   680  }
   681  
   682  func (this XRDepthInformation) FromRef(ref js.Ref) XRDepthInformation {
   683  	this.ref = ref
   684  	return this
   685  }
   686  
   687  func (this XRDepthInformation) Free() {
   688  	this.ref.Free()
   689  }
   690  
   691  // Width returns the value of property "XRDepthInformation.width".
   692  //
   693  // It returns ok=false if there is no such property.
   694  func (this XRDepthInformation) Width() (ret uint32, ok bool) {
   695  	ok = js.True == bindings.GetXRDepthInformationWidth(
   696  		this.ref, js.Pointer(&ret),
   697  	)
   698  	return
   699  }
   700  
   701  // Height returns the value of property "XRDepthInformation.height".
   702  //
   703  // It returns ok=false if there is no such property.
   704  func (this XRDepthInformation) Height() (ret uint32, ok bool) {
   705  	ok = js.True == bindings.GetXRDepthInformationHeight(
   706  		this.ref, js.Pointer(&ret),
   707  	)
   708  	return
   709  }
   710  
   711  // NormDepthBufferFromNormView returns the value of property "XRDepthInformation.normDepthBufferFromNormView".
   712  //
   713  // It returns ok=false if there is no such property.
   714  func (this XRDepthInformation) NormDepthBufferFromNormView() (ret XRRigidTransform, ok bool) {
   715  	ok = js.True == bindings.GetXRDepthInformationNormDepthBufferFromNormView(
   716  		this.ref, js.Pointer(&ret),
   717  	)
   718  	return
   719  }
   720  
   721  // RawValueToMeters returns the value of property "XRDepthInformation.rawValueToMeters".
   722  //
   723  // It returns ok=false if there is no such property.
   724  func (this XRDepthInformation) RawValueToMeters() (ret float32, ok bool) {
   725  	ok = js.True == bindings.GetXRDepthInformationRawValueToMeters(
   726  		this.ref, js.Pointer(&ret),
   727  	)
   728  	return
   729  }
   730  
   731  type XREquirectLayer struct {
   732  	XRCompositionLayer
   733  }
   734  
   735  func (this XREquirectLayer) Once() XREquirectLayer {
   736  	this.ref.Once()
   737  	return this
   738  }
   739  
   740  func (this XREquirectLayer) Ref() js.Ref {
   741  	return this.XRCompositionLayer.Ref()
   742  }
   743  
   744  func (this XREquirectLayer) FromRef(ref js.Ref) XREquirectLayer {
   745  	this.XRCompositionLayer = this.XRCompositionLayer.FromRef(ref)
   746  	return this
   747  }
   748  
   749  func (this XREquirectLayer) Free() {
   750  	this.ref.Free()
   751  }
   752  
   753  // Space returns the value of property "XREquirectLayer.space".
   754  //
   755  // It returns ok=false if there is no such property.
   756  func (this XREquirectLayer) Space() (ret XRSpace, ok bool) {
   757  	ok = js.True == bindings.GetXREquirectLayerSpace(
   758  		this.ref, js.Pointer(&ret),
   759  	)
   760  	return
   761  }
   762  
   763  // SetSpace sets the value of property "XREquirectLayer.space" to val.
   764  //
   765  // It returns false if the property cannot be set.
   766  func (this XREquirectLayer) SetSpace(val XRSpace) bool {
   767  	return js.True == bindings.SetXREquirectLayerSpace(
   768  		this.ref,
   769  		val.Ref(),
   770  	)
   771  }
   772  
   773  // Transform returns the value of property "XREquirectLayer.transform".
   774  //
   775  // It returns ok=false if there is no such property.
   776  func (this XREquirectLayer) Transform() (ret XRRigidTransform, ok bool) {
   777  	ok = js.True == bindings.GetXREquirectLayerTransform(
   778  		this.ref, js.Pointer(&ret),
   779  	)
   780  	return
   781  }
   782  
   783  // SetTransform sets the value of property "XREquirectLayer.transform" to val.
   784  //
   785  // It returns false if the property cannot be set.
   786  func (this XREquirectLayer) SetTransform(val XRRigidTransform) bool {
   787  	return js.True == bindings.SetXREquirectLayerTransform(
   788  		this.ref,
   789  		val.Ref(),
   790  	)
   791  }
   792  
   793  // Radius returns the value of property "XREquirectLayer.radius".
   794  //
   795  // It returns ok=false if there is no such property.
   796  func (this XREquirectLayer) Radius() (ret float32, ok bool) {
   797  	ok = js.True == bindings.GetXREquirectLayerRadius(
   798  		this.ref, js.Pointer(&ret),
   799  	)
   800  	return
   801  }
   802  
   803  // SetRadius sets the value of property "XREquirectLayer.radius" to val.
   804  //
   805  // It returns false if the property cannot be set.
   806  func (this XREquirectLayer) SetRadius(val float32) bool {
   807  	return js.True == bindings.SetXREquirectLayerRadius(
   808  		this.ref,
   809  		float32(val),
   810  	)
   811  }
   812  
   813  // CentralHorizontalAngle returns the value of property "XREquirectLayer.centralHorizontalAngle".
   814  //
   815  // It returns ok=false if there is no such property.
   816  func (this XREquirectLayer) CentralHorizontalAngle() (ret float32, ok bool) {
   817  	ok = js.True == bindings.GetXREquirectLayerCentralHorizontalAngle(
   818  		this.ref, js.Pointer(&ret),
   819  	)
   820  	return
   821  }
   822  
   823  // SetCentralHorizontalAngle sets the value of property "XREquirectLayer.centralHorizontalAngle" to val.
   824  //
   825  // It returns false if the property cannot be set.
   826  func (this XREquirectLayer) SetCentralHorizontalAngle(val float32) bool {
   827  	return js.True == bindings.SetXREquirectLayerCentralHorizontalAngle(
   828  		this.ref,
   829  		float32(val),
   830  	)
   831  }
   832  
   833  // UpperVerticalAngle returns the value of property "XREquirectLayer.upperVerticalAngle".
   834  //
   835  // It returns ok=false if there is no such property.
   836  func (this XREquirectLayer) UpperVerticalAngle() (ret float32, ok bool) {
   837  	ok = js.True == bindings.GetXREquirectLayerUpperVerticalAngle(
   838  		this.ref, js.Pointer(&ret),
   839  	)
   840  	return
   841  }
   842  
   843  // SetUpperVerticalAngle sets the value of property "XREquirectLayer.upperVerticalAngle" to val.
   844  //
   845  // It returns false if the property cannot be set.
   846  func (this XREquirectLayer) SetUpperVerticalAngle(val float32) bool {
   847  	return js.True == bindings.SetXREquirectLayerUpperVerticalAngle(
   848  		this.ref,
   849  		float32(val),
   850  	)
   851  }
   852  
   853  // LowerVerticalAngle returns the value of property "XREquirectLayer.lowerVerticalAngle".
   854  //
   855  // It returns ok=false if there is no such property.
   856  func (this XREquirectLayer) LowerVerticalAngle() (ret float32, ok bool) {
   857  	ok = js.True == bindings.GetXREquirectLayerLowerVerticalAngle(
   858  		this.ref, js.Pointer(&ret),
   859  	)
   860  	return
   861  }
   862  
   863  // SetLowerVerticalAngle sets the value of property "XREquirectLayer.lowerVerticalAngle" to val.
   864  //
   865  // It returns false if the property cannot be set.
   866  func (this XREquirectLayer) SetLowerVerticalAngle(val float32) bool {
   867  	return js.True == bindings.SetXREquirectLayerLowerVerticalAngle(
   868  		this.ref,
   869  		float32(val),
   870  	)
   871  }
   872  
   873  type XREquirectLayerInit struct {
   874  	// TextureType is "XREquirectLayerInit.textureType"
   875  	//
   876  	// Optional, defaults to "texture".
   877  	TextureType XRTextureType
   878  	// Transform is "XREquirectLayerInit.transform"
   879  	//
   880  	// Optional
   881  	Transform XRRigidTransform
   882  	// Radius is "XREquirectLayerInit.radius"
   883  	//
   884  	// Optional, defaults to 0.
   885  	//
   886  	// NOTE: FFI_USE_Radius MUST be set to true to make this field effective.
   887  	Radius float32
   888  	// CentralHorizontalAngle is "XREquirectLayerInit.centralHorizontalAngle"
   889  	//
   890  	// Optional, defaults to 6.28318.
   891  	//
   892  	// NOTE: FFI_USE_CentralHorizontalAngle MUST be set to true to make this field effective.
   893  	CentralHorizontalAngle float32
   894  	// UpperVerticalAngle is "XREquirectLayerInit.upperVerticalAngle"
   895  	//
   896  	// Optional, defaults to 1.570795.
   897  	//
   898  	// NOTE: FFI_USE_UpperVerticalAngle MUST be set to true to make this field effective.
   899  	UpperVerticalAngle float32
   900  	// LowerVerticalAngle is "XREquirectLayerInit.lowerVerticalAngle"
   901  	//
   902  	// Optional, defaults to -1.570795.
   903  	//
   904  	// NOTE: FFI_USE_LowerVerticalAngle MUST be set to true to make this field effective.
   905  	LowerVerticalAngle float32
   906  	// Space is "XREquirectLayerInit.space"
   907  	//
   908  	// Required
   909  	Space XRSpace
   910  	// ColorFormat is "XREquirectLayerInit.colorFormat"
   911  	//
   912  	// Optional, defaults to 0x1908.
   913  	//
   914  	// NOTE: FFI_USE_ColorFormat MUST be set to true to make this field effective.
   915  	ColorFormat GLenum
   916  	// DepthFormat is "XREquirectLayerInit.depthFormat"
   917  	//
   918  	// Optional
   919  	//
   920  	// NOTE: FFI_USE_DepthFormat MUST be set to true to make this field effective.
   921  	DepthFormat GLenum
   922  	// MipLevels is "XREquirectLayerInit.mipLevels"
   923  	//
   924  	// Optional, defaults to 1.
   925  	//
   926  	// NOTE: FFI_USE_MipLevels MUST be set to true to make this field effective.
   927  	MipLevels uint32
   928  	// ViewPixelWidth is "XREquirectLayerInit.viewPixelWidth"
   929  	//
   930  	// Required
   931  	ViewPixelWidth uint32
   932  	// ViewPixelHeight is "XREquirectLayerInit.viewPixelHeight"
   933  	//
   934  	// Required
   935  	ViewPixelHeight uint32
   936  	// Layout is "XREquirectLayerInit.layout"
   937  	//
   938  	// Optional, defaults to "mono".
   939  	Layout XRLayerLayout
   940  	// IsStatic is "XREquirectLayerInit.isStatic"
   941  	//
   942  	// Optional, defaults to false.
   943  	//
   944  	// NOTE: FFI_USE_IsStatic MUST be set to true to make this field effective.
   945  	IsStatic bool
   946  	// ClearOnAccess is "XREquirectLayerInit.clearOnAccess"
   947  	//
   948  	// Optional, defaults to true.
   949  	//
   950  	// NOTE: FFI_USE_ClearOnAccess MUST be set to true to make this field effective.
   951  	ClearOnAccess bool
   952  
   953  	FFI_USE_Radius                 bool // for Radius.
   954  	FFI_USE_CentralHorizontalAngle bool // for CentralHorizontalAngle.
   955  	FFI_USE_UpperVerticalAngle     bool // for UpperVerticalAngle.
   956  	FFI_USE_LowerVerticalAngle     bool // for LowerVerticalAngle.
   957  	FFI_USE_ColorFormat            bool // for ColorFormat.
   958  	FFI_USE_DepthFormat            bool // for DepthFormat.
   959  	FFI_USE_MipLevels              bool // for MipLevels.
   960  	FFI_USE_IsStatic               bool // for IsStatic.
   961  	FFI_USE_ClearOnAccess          bool // for ClearOnAccess.
   962  
   963  	FFI_USE bool
   964  }
   965  
   966  // FromRef calls UpdateFrom and returns a XREquirectLayerInit with all fields set.
   967  func (p XREquirectLayerInit) FromRef(ref js.Ref) XREquirectLayerInit {
   968  	p.UpdateFrom(ref)
   969  	return p
   970  }
   971  
   972  // New creates a new XREquirectLayerInit in the application heap.
   973  func (p XREquirectLayerInit) New() js.Ref {
   974  	return bindings.XREquirectLayerInitJSLoad(
   975  		js.Pointer(&p), js.True, 0,
   976  	)
   977  }
   978  
   979  // UpdateFrom copies value of all fields of the heap object to p.
   980  func (p *XREquirectLayerInit) UpdateFrom(ref js.Ref) {
   981  	bindings.XREquirectLayerInitJSStore(
   982  		js.Pointer(p), ref,
   983  	)
   984  }
   985  
   986  // Update writes all fields of the p to the heap object referenced by ref.
   987  func (p *XREquirectLayerInit) Update(ref js.Ref) {
   988  	bindings.XREquirectLayerInitJSLoad(
   989  		js.Pointer(p), js.False, ref,
   990  	)
   991  }
   992  
   993  // FreeMembers frees fields with heap reference, if recursive is true
   994  // free all heap references reachable from p.
   995  func (p *XREquirectLayerInit) FreeMembers(recursive bool) {
   996  	js.Free(
   997  		p.Transform.Ref(),
   998  		p.Space.Ref(),
   999  	)
  1000  	p.Transform = p.Transform.FromRef(js.Undefined)
  1001  	p.Space = p.Space.FromRef(js.Undefined)
  1002  }
  1003  
  1004  type XRInputSourceEventInit struct {
  1005  	// Frame is "XRInputSourceEventInit.frame"
  1006  	//
  1007  	// Required
  1008  	Frame XRFrame
  1009  	// InputSource is "XRInputSourceEventInit.inputSource"
  1010  	//
  1011  	// Required
  1012  	InputSource XRInputSource
  1013  	// Bubbles is "XRInputSourceEventInit.bubbles"
  1014  	//
  1015  	// Optional, defaults to false.
  1016  	//
  1017  	// NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective.
  1018  	Bubbles bool
  1019  	// Cancelable is "XRInputSourceEventInit.cancelable"
  1020  	//
  1021  	// Optional, defaults to false.
  1022  	//
  1023  	// NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective.
  1024  	Cancelable bool
  1025  	// Composed is "XRInputSourceEventInit.composed"
  1026  	//
  1027  	// Optional, defaults to false.
  1028  	//
  1029  	// NOTE: FFI_USE_Composed MUST be set to true to make this field effective.
  1030  	Composed bool
  1031  
  1032  	FFI_USE_Bubbles    bool // for Bubbles.
  1033  	FFI_USE_Cancelable bool // for Cancelable.
  1034  	FFI_USE_Composed   bool // for Composed.
  1035  
  1036  	FFI_USE bool
  1037  }
  1038  
  1039  // FromRef calls UpdateFrom and returns a XRInputSourceEventInit with all fields set.
  1040  func (p XRInputSourceEventInit) FromRef(ref js.Ref) XRInputSourceEventInit {
  1041  	p.UpdateFrom(ref)
  1042  	return p
  1043  }
  1044  
  1045  // New creates a new XRInputSourceEventInit in the application heap.
  1046  func (p XRInputSourceEventInit) New() js.Ref {
  1047  	return bindings.XRInputSourceEventInitJSLoad(
  1048  		js.Pointer(&p), js.True, 0,
  1049  	)
  1050  }
  1051  
  1052  // UpdateFrom copies value of all fields of the heap object to p.
  1053  func (p *XRInputSourceEventInit) UpdateFrom(ref js.Ref) {
  1054  	bindings.XRInputSourceEventInitJSStore(
  1055  		js.Pointer(p), ref,
  1056  	)
  1057  }
  1058  
  1059  // Update writes all fields of the p to the heap object referenced by ref.
  1060  func (p *XRInputSourceEventInit) Update(ref js.Ref) {
  1061  	bindings.XRInputSourceEventInitJSLoad(
  1062  		js.Pointer(p), js.False, ref,
  1063  	)
  1064  }
  1065  
  1066  // FreeMembers frees fields with heap reference, if recursive is true
  1067  // free all heap references reachable from p.
  1068  func (p *XRInputSourceEventInit) FreeMembers(recursive bool) {
  1069  	js.Free(
  1070  		p.Frame.Ref(),
  1071  		p.InputSource.Ref(),
  1072  	)
  1073  	p.Frame = p.Frame.FromRef(js.Undefined)
  1074  	p.InputSource = p.InputSource.FromRef(js.Undefined)
  1075  }
  1076  
  1077  func NewXRInputSourceEvent(typ js.String, eventInitDict XRInputSourceEventInit) (ret XRInputSourceEvent) {
  1078  	ret.ref = bindings.NewXRInputSourceEventByXRInputSourceEvent(
  1079  		typ.Ref(),
  1080  		js.Pointer(&eventInitDict))
  1081  	return
  1082  }
  1083  
  1084  type XRInputSourceEvent struct {
  1085  	Event
  1086  }
  1087  
  1088  func (this XRInputSourceEvent) Once() XRInputSourceEvent {
  1089  	this.ref.Once()
  1090  	return this
  1091  }
  1092  
  1093  func (this XRInputSourceEvent) Ref() js.Ref {
  1094  	return this.Event.Ref()
  1095  }
  1096  
  1097  func (this XRInputSourceEvent) FromRef(ref js.Ref) XRInputSourceEvent {
  1098  	this.Event = this.Event.FromRef(ref)
  1099  	return this
  1100  }
  1101  
  1102  func (this XRInputSourceEvent) Free() {
  1103  	this.ref.Free()
  1104  }
  1105  
  1106  // Frame returns the value of property "XRInputSourceEvent.frame".
  1107  //
  1108  // It returns ok=false if there is no such property.
  1109  func (this XRInputSourceEvent) Frame() (ret XRFrame, ok bool) {
  1110  	ok = js.True == bindings.GetXRInputSourceEventFrame(
  1111  		this.ref, js.Pointer(&ret),
  1112  	)
  1113  	return
  1114  }
  1115  
  1116  // InputSource returns the value of property "XRInputSourceEvent.inputSource".
  1117  //
  1118  // It returns ok=false if there is no such property.
  1119  func (this XRInputSourceEvent) InputSource() (ret XRInputSource, ok bool) {
  1120  	ok = js.True == bindings.GetXRInputSourceEventInputSource(
  1121  		this.ref, js.Pointer(&ret),
  1122  	)
  1123  	return
  1124  }
  1125  
  1126  type XRInputSourcesChangeEventInit struct {
  1127  	// Session is "XRInputSourcesChangeEventInit.session"
  1128  	//
  1129  	// Required
  1130  	Session XRSession
  1131  	// Added is "XRInputSourcesChangeEventInit.added"
  1132  	//
  1133  	// Required
  1134  	Added js.FrozenArray[XRInputSource]
  1135  	// Removed is "XRInputSourcesChangeEventInit.removed"
  1136  	//
  1137  	// Required
  1138  	Removed js.FrozenArray[XRInputSource]
  1139  	// Bubbles is "XRInputSourcesChangeEventInit.bubbles"
  1140  	//
  1141  	// Optional, defaults to false.
  1142  	//
  1143  	// NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective.
  1144  	Bubbles bool
  1145  	// Cancelable is "XRInputSourcesChangeEventInit.cancelable"
  1146  	//
  1147  	// Optional, defaults to false.
  1148  	//
  1149  	// NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective.
  1150  	Cancelable bool
  1151  	// Composed is "XRInputSourcesChangeEventInit.composed"
  1152  	//
  1153  	// Optional, defaults to false.
  1154  	//
  1155  	// NOTE: FFI_USE_Composed MUST be set to true to make this field effective.
  1156  	Composed bool
  1157  
  1158  	FFI_USE_Bubbles    bool // for Bubbles.
  1159  	FFI_USE_Cancelable bool // for Cancelable.
  1160  	FFI_USE_Composed   bool // for Composed.
  1161  
  1162  	FFI_USE bool
  1163  }
  1164  
  1165  // FromRef calls UpdateFrom and returns a XRInputSourcesChangeEventInit with all fields set.
  1166  func (p XRInputSourcesChangeEventInit) FromRef(ref js.Ref) XRInputSourcesChangeEventInit {
  1167  	p.UpdateFrom(ref)
  1168  	return p
  1169  }
  1170  
  1171  // New creates a new XRInputSourcesChangeEventInit in the application heap.
  1172  func (p XRInputSourcesChangeEventInit) New() js.Ref {
  1173  	return bindings.XRInputSourcesChangeEventInitJSLoad(
  1174  		js.Pointer(&p), js.True, 0,
  1175  	)
  1176  }
  1177  
  1178  // UpdateFrom copies value of all fields of the heap object to p.
  1179  func (p *XRInputSourcesChangeEventInit) UpdateFrom(ref js.Ref) {
  1180  	bindings.XRInputSourcesChangeEventInitJSStore(
  1181  		js.Pointer(p), ref,
  1182  	)
  1183  }
  1184  
  1185  // Update writes all fields of the p to the heap object referenced by ref.
  1186  func (p *XRInputSourcesChangeEventInit) Update(ref js.Ref) {
  1187  	bindings.XRInputSourcesChangeEventInitJSLoad(
  1188  		js.Pointer(p), js.False, ref,
  1189  	)
  1190  }
  1191  
  1192  // FreeMembers frees fields with heap reference, if recursive is true
  1193  // free all heap references reachable from p.
  1194  func (p *XRInputSourcesChangeEventInit) FreeMembers(recursive bool) {
  1195  	js.Free(
  1196  		p.Session.Ref(),
  1197  		p.Added.Ref(),
  1198  		p.Removed.Ref(),
  1199  	)
  1200  	p.Session = p.Session.FromRef(js.Undefined)
  1201  	p.Added = p.Added.FromRef(js.Undefined)
  1202  	p.Removed = p.Removed.FromRef(js.Undefined)
  1203  }
  1204  
  1205  func NewXRInputSourcesChangeEvent(typ js.String, eventInitDict XRInputSourcesChangeEventInit) (ret XRInputSourcesChangeEvent) {
  1206  	ret.ref = bindings.NewXRInputSourcesChangeEventByXRInputSourcesChangeEvent(
  1207  		typ.Ref(),
  1208  		js.Pointer(&eventInitDict))
  1209  	return
  1210  }
  1211  
  1212  type XRInputSourcesChangeEvent struct {
  1213  	Event
  1214  }
  1215  
  1216  func (this XRInputSourcesChangeEvent) Once() XRInputSourcesChangeEvent {
  1217  	this.ref.Once()
  1218  	return this
  1219  }
  1220  
  1221  func (this XRInputSourcesChangeEvent) Ref() js.Ref {
  1222  	return this.Event.Ref()
  1223  }
  1224  
  1225  func (this XRInputSourcesChangeEvent) FromRef(ref js.Ref) XRInputSourcesChangeEvent {
  1226  	this.Event = this.Event.FromRef(ref)
  1227  	return this
  1228  }
  1229  
  1230  func (this XRInputSourcesChangeEvent) Free() {
  1231  	this.ref.Free()
  1232  }
  1233  
  1234  // Session returns the value of property "XRInputSourcesChangeEvent.session".
  1235  //
  1236  // It returns ok=false if there is no such property.
  1237  func (this XRInputSourcesChangeEvent) Session() (ret XRSession, ok bool) {
  1238  	ok = js.True == bindings.GetXRInputSourcesChangeEventSession(
  1239  		this.ref, js.Pointer(&ret),
  1240  	)
  1241  	return
  1242  }
  1243  
  1244  // Added returns the value of property "XRInputSourcesChangeEvent.added".
  1245  //
  1246  // It returns ok=false if there is no such property.
  1247  func (this XRInputSourcesChangeEvent) Added() (ret js.FrozenArray[XRInputSource], ok bool) {
  1248  	ok = js.True == bindings.GetXRInputSourcesChangeEventAdded(
  1249  		this.ref, js.Pointer(&ret),
  1250  	)
  1251  	return
  1252  }
  1253  
  1254  // Removed returns the value of property "XRInputSourcesChangeEvent.removed".
  1255  //
  1256  // It returns ok=false if there is no such property.
  1257  func (this XRInputSourcesChangeEvent) Removed() (ret js.FrozenArray[XRInputSource], ok bool) {
  1258  	ok = js.True == bindings.GetXRInputSourcesChangeEventRemoved(
  1259  		this.ref, js.Pointer(&ret),
  1260  	)
  1261  	return
  1262  }
  1263  
  1264  type XRLayerEventInit struct {
  1265  	// Layer is "XRLayerEventInit.layer"
  1266  	//
  1267  	// Required
  1268  	Layer XRLayer
  1269  	// Bubbles is "XRLayerEventInit.bubbles"
  1270  	//
  1271  	// Optional, defaults to false.
  1272  	//
  1273  	// NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective.
  1274  	Bubbles bool
  1275  	// Cancelable is "XRLayerEventInit.cancelable"
  1276  	//
  1277  	// Optional, defaults to false.
  1278  	//
  1279  	// NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective.
  1280  	Cancelable bool
  1281  	// Composed is "XRLayerEventInit.composed"
  1282  	//
  1283  	// Optional, defaults to false.
  1284  	//
  1285  	// NOTE: FFI_USE_Composed MUST be set to true to make this field effective.
  1286  	Composed bool
  1287  
  1288  	FFI_USE_Bubbles    bool // for Bubbles.
  1289  	FFI_USE_Cancelable bool // for Cancelable.
  1290  	FFI_USE_Composed   bool // for Composed.
  1291  
  1292  	FFI_USE bool
  1293  }
  1294  
  1295  // FromRef calls UpdateFrom and returns a XRLayerEventInit with all fields set.
  1296  func (p XRLayerEventInit) FromRef(ref js.Ref) XRLayerEventInit {
  1297  	p.UpdateFrom(ref)
  1298  	return p
  1299  }
  1300  
  1301  // New creates a new XRLayerEventInit in the application heap.
  1302  func (p XRLayerEventInit) New() js.Ref {
  1303  	return bindings.XRLayerEventInitJSLoad(
  1304  		js.Pointer(&p), js.True, 0,
  1305  	)
  1306  }
  1307  
  1308  // UpdateFrom copies value of all fields of the heap object to p.
  1309  func (p *XRLayerEventInit) UpdateFrom(ref js.Ref) {
  1310  	bindings.XRLayerEventInitJSStore(
  1311  		js.Pointer(p), ref,
  1312  	)
  1313  }
  1314  
  1315  // Update writes all fields of the p to the heap object referenced by ref.
  1316  func (p *XRLayerEventInit) Update(ref js.Ref) {
  1317  	bindings.XRLayerEventInitJSLoad(
  1318  		js.Pointer(p), js.False, ref,
  1319  	)
  1320  }
  1321  
  1322  // FreeMembers frees fields with heap reference, if recursive is true
  1323  // free all heap references reachable from p.
  1324  func (p *XRLayerEventInit) FreeMembers(recursive bool) {
  1325  	js.Free(
  1326  		p.Layer.Ref(),
  1327  	)
  1328  	p.Layer = p.Layer.FromRef(js.Undefined)
  1329  }
  1330  
  1331  func NewXRLayerEvent(typ js.String, eventInitDict XRLayerEventInit) (ret XRLayerEvent) {
  1332  	ret.ref = bindings.NewXRLayerEventByXRLayerEvent(
  1333  		typ.Ref(),
  1334  		js.Pointer(&eventInitDict))
  1335  	return
  1336  }
  1337  
  1338  type XRLayerEvent struct {
  1339  	Event
  1340  }
  1341  
  1342  func (this XRLayerEvent) Once() XRLayerEvent {
  1343  	this.ref.Once()
  1344  	return this
  1345  }
  1346  
  1347  func (this XRLayerEvent) Ref() js.Ref {
  1348  	return this.Event.Ref()
  1349  }
  1350  
  1351  func (this XRLayerEvent) FromRef(ref js.Ref) XRLayerEvent {
  1352  	this.Event = this.Event.FromRef(ref)
  1353  	return this
  1354  }
  1355  
  1356  func (this XRLayerEvent) Free() {
  1357  	this.ref.Free()
  1358  }
  1359  
  1360  // Layer returns the value of property "XRLayerEvent.layer".
  1361  //
  1362  // It returns ok=false if there is no such property.
  1363  func (this XRLayerEvent) Layer() (ret XRLayer, ok bool) {
  1364  	ok = js.True == bindings.GetXRLayerEventLayer(
  1365  		this.ref, js.Pointer(&ret),
  1366  	)
  1367  	return
  1368  }
  1369  
  1370  type XRLayerInit struct {
  1371  	// Space is "XRLayerInit.space"
  1372  	//
  1373  	// Required
  1374  	Space XRSpace
  1375  	// ColorFormat is "XRLayerInit.colorFormat"
  1376  	//
  1377  	// Optional, defaults to 0x1908.
  1378  	//
  1379  	// NOTE: FFI_USE_ColorFormat MUST be set to true to make this field effective.
  1380  	ColorFormat GLenum
  1381  	// DepthFormat is "XRLayerInit.depthFormat"
  1382  	//
  1383  	// Optional
  1384  	//
  1385  	// NOTE: FFI_USE_DepthFormat MUST be set to true to make this field effective.
  1386  	DepthFormat GLenum
  1387  	// MipLevels is "XRLayerInit.mipLevels"
  1388  	//
  1389  	// Optional, defaults to 1.
  1390  	//
  1391  	// NOTE: FFI_USE_MipLevels MUST be set to true to make this field effective.
  1392  	MipLevels uint32
  1393  	// ViewPixelWidth is "XRLayerInit.viewPixelWidth"
  1394  	//
  1395  	// Required
  1396  	ViewPixelWidth uint32
  1397  	// ViewPixelHeight is "XRLayerInit.viewPixelHeight"
  1398  	//
  1399  	// Required
  1400  	ViewPixelHeight uint32
  1401  	// Layout is "XRLayerInit.layout"
  1402  	//
  1403  	// Optional, defaults to "mono".
  1404  	Layout XRLayerLayout
  1405  	// IsStatic is "XRLayerInit.isStatic"
  1406  	//
  1407  	// Optional, defaults to false.
  1408  	//
  1409  	// NOTE: FFI_USE_IsStatic MUST be set to true to make this field effective.
  1410  	IsStatic bool
  1411  	// ClearOnAccess is "XRLayerInit.clearOnAccess"
  1412  	//
  1413  	// Optional, defaults to true.
  1414  	//
  1415  	// NOTE: FFI_USE_ClearOnAccess MUST be set to true to make this field effective.
  1416  	ClearOnAccess bool
  1417  
  1418  	FFI_USE_ColorFormat   bool // for ColorFormat.
  1419  	FFI_USE_DepthFormat   bool // for DepthFormat.
  1420  	FFI_USE_MipLevels     bool // for MipLevels.
  1421  	FFI_USE_IsStatic      bool // for IsStatic.
  1422  	FFI_USE_ClearOnAccess bool // for ClearOnAccess.
  1423  
  1424  	FFI_USE bool
  1425  }
  1426  
  1427  // FromRef calls UpdateFrom and returns a XRLayerInit with all fields set.
  1428  func (p XRLayerInit) FromRef(ref js.Ref) XRLayerInit {
  1429  	p.UpdateFrom(ref)
  1430  	return p
  1431  }
  1432  
  1433  // New creates a new XRLayerInit in the application heap.
  1434  func (p XRLayerInit) New() js.Ref {
  1435  	return bindings.XRLayerInitJSLoad(
  1436  		js.Pointer(&p), js.True, 0,
  1437  	)
  1438  }
  1439  
  1440  // UpdateFrom copies value of all fields of the heap object to p.
  1441  func (p *XRLayerInit) UpdateFrom(ref js.Ref) {
  1442  	bindings.XRLayerInitJSStore(
  1443  		js.Pointer(p), ref,
  1444  	)
  1445  }
  1446  
  1447  // Update writes all fields of the p to the heap object referenced by ref.
  1448  func (p *XRLayerInit) Update(ref js.Ref) {
  1449  	bindings.XRLayerInitJSLoad(
  1450  		js.Pointer(p), js.False, ref,
  1451  	)
  1452  }
  1453  
  1454  // FreeMembers frees fields with heap reference, if recursive is true
  1455  // free all heap references reachable from p.
  1456  func (p *XRLayerInit) FreeMembers(recursive bool) {
  1457  	js.Free(
  1458  		p.Space.Ref(),
  1459  	)
  1460  	p.Space = p.Space.FromRef(js.Undefined)
  1461  }
  1462  
  1463  type XRQuadLayer struct {
  1464  	XRCompositionLayer
  1465  }
  1466  
  1467  func (this XRQuadLayer) Once() XRQuadLayer {
  1468  	this.ref.Once()
  1469  	return this
  1470  }
  1471  
  1472  func (this XRQuadLayer) Ref() js.Ref {
  1473  	return this.XRCompositionLayer.Ref()
  1474  }
  1475  
  1476  func (this XRQuadLayer) FromRef(ref js.Ref) XRQuadLayer {
  1477  	this.XRCompositionLayer = this.XRCompositionLayer.FromRef(ref)
  1478  	return this
  1479  }
  1480  
  1481  func (this XRQuadLayer) Free() {
  1482  	this.ref.Free()
  1483  }
  1484  
  1485  // Space returns the value of property "XRQuadLayer.space".
  1486  //
  1487  // It returns ok=false if there is no such property.
  1488  func (this XRQuadLayer) Space() (ret XRSpace, ok bool) {
  1489  	ok = js.True == bindings.GetXRQuadLayerSpace(
  1490  		this.ref, js.Pointer(&ret),
  1491  	)
  1492  	return
  1493  }
  1494  
  1495  // SetSpace sets the value of property "XRQuadLayer.space" to val.
  1496  //
  1497  // It returns false if the property cannot be set.
  1498  func (this XRQuadLayer) SetSpace(val XRSpace) bool {
  1499  	return js.True == bindings.SetXRQuadLayerSpace(
  1500  		this.ref,
  1501  		val.Ref(),
  1502  	)
  1503  }
  1504  
  1505  // Transform returns the value of property "XRQuadLayer.transform".
  1506  //
  1507  // It returns ok=false if there is no such property.
  1508  func (this XRQuadLayer) Transform() (ret XRRigidTransform, ok bool) {
  1509  	ok = js.True == bindings.GetXRQuadLayerTransform(
  1510  		this.ref, js.Pointer(&ret),
  1511  	)
  1512  	return
  1513  }
  1514  
  1515  // SetTransform sets the value of property "XRQuadLayer.transform" to val.
  1516  //
  1517  // It returns false if the property cannot be set.
  1518  func (this XRQuadLayer) SetTransform(val XRRigidTransform) bool {
  1519  	return js.True == bindings.SetXRQuadLayerTransform(
  1520  		this.ref,
  1521  		val.Ref(),
  1522  	)
  1523  }
  1524  
  1525  // Width returns the value of property "XRQuadLayer.width".
  1526  //
  1527  // It returns ok=false if there is no such property.
  1528  func (this XRQuadLayer) Width() (ret float32, ok bool) {
  1529  	ok = js.True == bindings.GetXRQuadLayerWidth(
  1530  		this.ref, js.Pointer(&ret),
  1531  	)
  1532  	return
  1533  }
  1534  
  1535  // SetWidth sets the value of property "XRQuadLayer.width" to val.
  1536  //
  1537  // It returns false if the property cannot be set.
  1538  func (this XRQuadLayer) SetWidth(val float32) bool {
  1539  	return js.True == bindings.SetXRQuadLayerWidth(
  1540  		this.ref,
  1541  		float32(val),
  1542  	)
  1543  }
  1544  
  1545  // Height returns the value of property "XRQuadLayer.height".
  1546  //
  1547  // It returns ok=false if there is no such property.
  1548  func (this XRQuadLayer) Height() (ret float32, ok bool) {
  1549  	ok = js.True == bindings.GetXRQuadLayerHeight(
  1550  		this.ref, js.Pointer(&ret),
  1551  	)
  1552  	return
  1553  }
  1554  
  1555  // SetHeight sets the value of property "XRQuadLayer.height" to val.
  1556  //
  1557  // It returns false if the property cannot be set.
  1558  func (this XRQuadLayer) SetHeight(val float32) bool {
  1559  	return js.True == bindings.SetXRQuadLayerHeight(
  1560  		this.ref,
  1561  		float32(val),
  1562  	)
  1563  }
  1564  
  1565  type XRMediaQuadLayerInit struct {
  1566  	// Transform is "XRMediaQuadLayerInit.transform"
  1567  	//
  1568  	// Optional
  1569  	Transform XRRigidTransform
  1570  	// Width is "XRMediaQuadLayerInit.width"
  1571  	//
  1572  	// Optional
  1573  	//
  1574  	// NOTE: FFI_USE_Width MUST be set to true to make this field effective.
  1575  	Width float32
  1576  	// Height is "XRMediaQuadLayerInit.height"
  1577  	//
  1578  	// Optional
  1579  	//
  1580  	// NOTE: FFI_USE_Height MUST be set to true to make this field effective.
  1581  	Height float32
  1582  	// Space is "XRMediaQuadLayerInit.space"
  1583  	//
  1584  	// Required
  1585  	Space XRSpace
  1586  	// Layout is "XRMediaQuadLayerInit.layout"
  1587  	//
  1588  	// Optional, defaults to "mono".
  1589  	Layout XRLayerLayout
  1590  	// InvertStereo is "XRMediaQuadLayerInit.invertStereo"
  1591  	//
  1592  	// Optional, defaults to false.
  1593  	//
  1594  	// NOTE: FFI_USE_InvertStereo MUST be set to true to make this field effective.
  1595  	InvertStereo bool
  1596  
  1597  	FFI_USE_Width        bool // for Width.
  1598  	FFI_USE_Height       bool // for Height.
  1599  	FFI_USE_InvertStereo bool // for InvertStereo.
  1600  
  1601  	FFI_USE bool
  1602  }
  1603  
  1604  // FromRef calls UpdateFrom and returns a XRMediaQuadLayerInit with all fields set.
  1605  func (p XRMediaQuadLayerInit) FromRef(ref js.Ref) XRMediaQuadLayerInit {
  1606  	p.UpdateFrom(ref)
  1607  	return p
  1608  }
  1609  
  1610  // New creates a new XRMediaQuadLayerInit in the application heap.
  1611  func (p XRMediaQuadLayerInit) New() js.Ref {
  1612  	return bindings.XRMediaQuadLayerInitJSLoad(
  1613  		js.Pointer(&p), js.True, 0,
  1614  	)
  1615  }
  1616  
  1617  // UpdateFrom copies value of all fields of the heap object to p.
  1618  func (p *XRMediaQuadLayerInit) UpdateFrom(ref js.Ref) {
  1619  	bindings.XRMediaQuadLayerInitJSStore(
  1620  		js.Pointer(p), ref,
  1621  	)
  1622  }
  1623  
  1624  // Update writes all fields of the p to the heap object referenced by ref.
  1625  func (p *XRMediaQuadLayerInit) Update(ref js.Ref) {
  1626  	bindings.XRMediaQuadLayerInitJSLoad(
  1627  		js.Pointer(p), js.False, ref,
  1628  	)
  1629  }
  1630  
  1631  // FreeMembers frees fields with heap reference, if recursive is true
  1632  // free all heap references reachable from p.
  1633  func (p *XRMediaQuadLayerInit) FreeMembers(recursive bool) {
  1634  	js.Free(
  1635  		p.Transform.Ref(),
  1636  		p.Space.Ref(),
  1637  	)
  1638  	p.Transform = p.Transform.FromRef(js.Undefined)
  1639  	p.Space = p.Space.FromRef(js.Undefined)
  1640  }
  1641  
  1642  type XRMediaCylinderLayerInit struct {
  1643  	// Transform is "XRMediaCylinderLayerInit.transform"
  1644  	//
  1645  	// Optional
  1646  	Transform XRRigidTransform
  1647  	// Radius is "XRMediaCylinderLayerInit.radius"
  1648  	//
  1649  	// Optional, defaults to 2.0.
  1650  	//
  1651  	// NOTE: FFI_USE_Radius MUST be set to true to make this field effective.
  1652  	Radius float32
  1653  	// CentralAngle is "XRMediaCylinderLayerInit.centralAngle"
  1654  	//
  1655  	// Optional, defaults to 0.78539.
  1656  	//
  1657  	// NOTE: FFI_USE_CentralAngle MUST be set to true to make this field effective.
  1658  	CentralAngle float32
  1659  	// AspectRatio is "XRMediaCylinderLayerInit.aspectRatio"
  1660  	//
  1661  	// Optional
  1662  	//
  1663  	// NOTE: FFI_USE_AspectRatio MUST be set to true to make this field effective.
  1664  	AspectRatio float32
  1665  	// Space is "XRMediaCylinderLayerInit.space"
  1666  	//
  1667  	// Required
  1668  	Space XRSpace
  1669  	// Layout is "XRMediaCylinderLayerInit.layout"
  1670  	//
  1671  	// Optional, defaults to "mono".
  1672  	Layout XRLayerLayout
  1673  	// InvertStereo is "XRMediaCylinderLayerInit.invertStereo"
  1674  	//
  1675  	// Optional, defaults to false.
  1676  	//
  1677  	// NOTE: FFI_USE_InvertStereo MUST be set to true to make this field effective.
  1678  	InvertStereo bool
  1679  
  1680  	FFI_USE_Radius       bool // for Radius.
  1681  	FFI_USE_CentralAngle bool // for CentralAngle.
  1682  	FFI_USE_AspectRatio  bool // for AspectRatio.
  1683  	FFI_USE_InvertStereo bool // for InvertStereo.
  1684  
  1685  	FFI_USE bool
  1686  }
  1687  
  1688  // FromRef calls UpdateFrom and returns a XRMediaCylinderLayerInit with all fields set.
  1689  func (p XRMediaCylinderLayerInit) FromRef(ref js.Ref) XRMediaCylinderLayerInit {
  1690  	p.UpdateFrom(ref)
  1691  	return p
  1692  }
  1693  
  1694  // New creates a new XRMediaCylinderLayerInit in the application heap.
  1695  func (p XRMediaCylinderLayerInit) New() js.Ref {
  1696  	return bindings.XRMediaCylinderLayerInitJSLoad(
  1697  		js.Pointer(&p), js.True, 0,
  1698  	)
  1699  }
  1700  
  1701  // UpdateFrom copies value of all fields of the heap object to p.
  1702  func (p *XRMediaCylinderLayerInit) UpdateFrom(ref js.Ref) {
  1703  	bindings.XRMediaCylinderLayerInitJSStore(
  1704  		js.Pointer(p), ref,
  1705  	)
  1706  }
  1707  
  1708  // Update writes all fields of the p to the heap object referenced by ref.
  1709  func (p *XRMediaCylinderLayerInit) Update(ref js.Ref) {
  1710  	bindings.XRMediaCylinderLayerInitJSLoad(
  1711  		js.Pointer(p), js.False, ref,
  1712  	)
  1713  }
  1714  
  1715  // FreeMembers frees fields with heap reference, if recursive is true
  1716  // free all heap references reachable from p.
  1717  func (p *XRMediaCylinderLayerInit) FreeMembers(recursive bool) {
  1718  	js.Free(
  1719  		p.Transform.Ref(),
  1720  		p.Space.Ref(),
  1721  	)
  1722  	p.Transform = p.Transform.FromRef(js.Undefined)
  1723  	p.Space = p.Space.FromRef(js.Undefined)
  1724  }
  1725  
  1726  type XRMediaEquirectLayerInit struct {
  1727  	// Transform is "XRMediaEquirectLayerInit.transform"
  1728  	//
  1729  	// Optional
  1730  	Transform XRRigidTransform
  1731  	// Radius is "XRMediaEquirectLayerInit.radius"
  1732  	//
  1733  	// Optional, defaults to 0.0.
  1734  	//
  1735  	// NOTE: FFI_USE_Radius MUST be set to true to make this field effective.
  1736  	Radius float32
  1737  	// CentralHorizontalAngle is "XRMediaEquirectLayerInit.centralHorizontalAngle"
  1738  	//
  1739  	// Optional, defaults to 6.28318.
  1740  	//
  1741  	// NOTE: FFI_USE_CentralHorizontalAngle MUST be set to true to make this field effective.
  1742  	CentralHorizontalAngle float32
  1743  	// UpperVerticalAngle is "XRMediaEquirectLayerInit.upperVerticalAngle"
  1744  	//
  1745  	// Optional, defaults to 1.570795.
  1746  	//
  1747  	// NOTE: FFI_USE_UpperVerticalAngle MUST be set to true to make this field effective.
  1748  	UpperVerticalAngle float32
  1749  	// LowerVerticalAngle is "XRMediaEquirectLayerInit.lowerVerticalAngle"
  1750  	//
  1751  	// Optional, defaults to -1.570795.
  1752  	//
  1753  	// NOTE: FFI_USE_LowerVerticalAngle MUST be set to true to make this field effective.
  1754  	LowerVerticalAngle float32
  1755  	// Space is "XRMediaEquirectLayerInit.space"
  1756  	//
  1757  	// Required
  1758  	Space XRSpace
  1759  	// Layout is "XRMediaEquirectLayerInit.layout"
  1760  	//
  1761  	// Optional, defaults to "mono".
  1762  	Layout XRLayerLayout
  1763  	// InvertStereo is "XRMediaEquirectLayerInit.invertStereo"
  1764  	//
  1765  	// Optional, defaults to false.
  1766  	//
  1767  	// NOTE: FFI_USE_InvertStereo MUST be set to true to make this field effective.
  1768  	InvertStereo bool
  1769  
  1770  	FFI_USE_Radius                 bool // for Radius.
  1771  	FFI_USE_CentralHorizontalAngle bool // for CentralHorizontalAngle.
  1772  	FFI_USE_UpperVerticalAngle     bool // for UpperVerticalAngle.
  1773  	FFI_USE_LowerVerticalAngle     bool // for LowerVerticalAngle.
  1774  	FFI_USE_InvertStereo           bool // for InvertStereo.
  1775  
  1776  	FFI_USE bool
  1777  }
  1778  
  1779  // FromRef calls UpdateFrom and returns a XRMediaEquirectLayerInit with all fields set.
  1780  func (p XRMediaEquirectLayerInit) FromRef(ref js.Ref) XRMediaEquirectLayerInit {
  1781  	p.UpdateFrom(ref)
  1782  	return p
  1783  }
  1784  
  1785  // New creates a new XRMediaEquirectLayerInit in the application heap.
  1786  func (p XRMediaEquirectLayerInit) New() js.Ref {
  1787  	return bindings.XRMediaEquirectLayerInitJSLoad(
  1788  		js.Pointer(&p), js.True, 0,
  1789  	)
  1790  }
  1791  
  1792  // UpdateFrom copies value of all fields of the heap object to p.
  1793  func (p *XRMediaEquirectLayerInit) UpdateFrom(ref js.Ref) {
  1794  	bindings.XRMediaEquirectLayerInitJSStore(
  1795  		js.Pointer(p), ref,
  1796  	)
  1797  }
  1798  
  1799  // Update writes all fields of the p to the heap object referenced by ref.
  1800  func (p *XRMediaEquirectLayerInit) Update(ref js.Ref) {
  1801  	bindings.XRMediaEquirectLayerInitJSLoad(
  1802  		js.Pointer(p), js.False, ref,
  1803  	)
  1804  }
  1805  
  1806  // FreeMembers frees fields with heap reference, if recursive is true
  1807  // free all heap references reachable from p.
  1808  func (p *XRMediaEquirectLayerInit) FreeMembers(recursive bool) {
  1809  	js.Free(
  1810  		p.Transform.Ref(),
  1811  		p.Space.Ref(),
  1812  	)
  1813  	p.Transform = p.Transform.FromRef(js.Undefined)
  1814  	p.Space = p.Space.FromRef(js.Undefined)
  1815  }
  1816  
  1817  func NewXRMediaBinding(session XRSession) (ret XRMediaBinding) {
  1818  	ret.ref = bindings.NewXRMediaBindingByXRMediaBinding(
  1819  		session.Ref())
  1820  	return
  1821  }
  1822  
  1823  type XRMediaBinding struct {
  1824  	ref js.Ref
  1825  }
  1826  
  1827  func (this XRMediaBinding) Once() XRMediaBinding {
  1828  	this.ref.Once()
  1829  	return this
  1830  }
  1831  
  1832  func (this XRMediaBinding) Ref() js.Ref {
  1833  	return this.ref
  1834  }
  1835  
  1836  func (this XRMediaBinding) FromRef(ref js.Ref) XRMediaBinding {
  1837  	this.ref = ref
  1838  	return this
  1839  }
  1840  
  1841  func (this XRMediaBinding) Free() {
  1842  	this.ref.Free()
  1843  }
  1844  
  1845  // HasFuncCreateQuadLayer returns true if the method "XRMediaBinding.createQuadLayer" exists.
  1846  func (this XRMediaBinding) HasFuncCreateQuadLayer() bool {
  1847  	return js.True == bindings.HasFuncXRMediaBindingCreateQuadLayer(
  1848  		this.ref,
  1849  	)
  1850  }
  1851  
  1852  // FuncCreateQuadLayer returns the method "XRMediaBinding.createQuadLayer".
  1853  func (this XRMediaBinding) FuncCreateQuadLayer() (fn js.Func[func(video HTMLVideoElement, init XRMediaQuadLayerInit) XRQuadLayer]) {
  1854  	bindings.FuncXRMediaBindingCreateQuadLayer(
  1855  		this.ref, js.Pointer(&fn),
  1856  	)
  1857  	return
  1858  }
  1859  
  1860  // CreateQuadLayer calls the method "XRMediaBinding.createQuadLayer".
  1861  func (this XRMediaBinding) CreateQuadLayer(video HTMLVideoElement, init XRMediaQuadLayerInit) (ret XRQuadLayer) {
  1862  	bindings.CallXRMediaBindingCreateQuadLayer(
  1863  		this.ref, js.Pointer(&ret),
  1864  		video.Ref(),
  1865  		js.Pointer(&init),
  1866  	)
  1867  
  1868  	return
  1869  }
  1870  
  1871  // TryCreateQuadLayer calls the method "XRMediaBinding.createQuadLayer"
  1872  // in a try/catch block and returns (_, err, ok = false) when it went through
  1873  // the catch clause.
  1874  func (this XRMediaBinding) TryCreateQuadLayer(video HTMLVideoElement, init XRMediaQuadLayerInit) (ret XRQuadLayer, exception js.Any, ok bool) {
  1875  	ok = js.True == bindings.TryXRMediaBindingCreateQuadLayer(
  1876  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1877  		video.Ref(),
  1878  		js.Pointer(&init),
  1879  	)
  1880  
  1881  	return
  1882  }
  1883  
  1884  // HasFuncCreateQuadLayer1 returns true if the method "XRMediaBinding.createQuadLayer" exists.
  1885  func (this XRMediaBinding) HasFuncCreateQuadLayer1() bool {
  1886  	return js.True == bindings.HasFuncXRMediaBindingCreateQuadLayer1(
  1887  		this.ref,
  1888  	)
  1889  }
  1890  
  1891  // FuncCreateQuadLayer1 returns the method "XRMediaBinding.createQuadLayer".
  1892  func (this XRMediaBinding) FuncCreateQuadLayer1() (fn js.Func[func(video HTMLVideoElement) XRQuadLayer]) {
  1893  	bindings.FuncXRMediaBindingCreateQuadLayer1(
  1894  		this.ref, js.Pointer(&fn),
  1895  	)
  1896  	return
  1897  }
  1898  
  1899  // CreateQuadLayer1 calls the method "XRMediaBinding.createQuadLayer".
  1900  func (this XRMediaBinding) CreateQuadLayer1(video HTMLVideoElement) (ret XRQuadLayer) {
  1901  	bindings.CallXRMediaBindingCreateQuadLayer1(
  1902  		this.ref, js.Pointer(&ret),
  1903  		video.Ref(),
  1904  	)
  1905  
  1906  	return
  1907  }
  1908  
  1909  // TryCreateQuadLayer1 calls the method "XRMediaBinding.createQuadLayer"
  1910  // in a try/catch block and returns (_, err, ok = false) when it went through
  1911  // the catch clause.
  1912  func (this XRMediaBinding) TryCreateQuadLayer1(video HTMLVideoElement) (ret XRQuadLayer, exception js.Any, ok bool) {
  1913  	ok = js.True == bindings.TryXRMediaBindingCreateQuadLayer1(
  1914  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1915  		video.Ref(),
  1916  	)
  1917  
  1918  	return
  1919  }
  1920  
  1921  // HasFuncCreateCylinderLayer returns true if the method "XRMediaBinding.createCylinderLayer" exists.
  1922  func (this XRMediaBinding) HasFuncCreateCylinderLayer() bool {
  1923  	return js.True == bindings.HasFuncXRMediaBindingCreateCylinderLayer(
  1924  		this.ref,
  1925  	)
  1926  }
  1927  
  1928  // FuncCreateCylinderLayer returns the method "XRMediaBinding.createCylinderLayer".
  1929  func (this XRMediaBinding) FuncCreateCylinderLayer() (fn js.Func[func(video HTMLVideoElement, init XRMediaCylinderLayerInit) XRCylinderLayer]) {
  1930  	bindings.FuncXRMediaBindingCreateCylinderLayer(
  1931  		this.ref, js.Pointer(&fn),
  1932  	)
  1933  	return
  1934  }
  1935  
  1936  // CreateCylinderLayer calls the method "XRMediaBinding.createCylinderLayer".
  1937  func (this XRMediaBinding) CreateCylinderLayer(video HTMLVideoElement, init XRMediaCylinderLayerInit) (ret XRCylinderLayer) {
  1938  	bindings.CallXRMediaBindingCreateCylinderLayer(
  1939  		this.ref, js.Pointer(&ret),
  1940  		video.Ref(),
  1941  		js.Pointer(&init),
  1942  	)
  1943  
  1944  	return
  1945  }
  1946  
  1947  // TryCreateCylinderLayer calls the method "XRMediaBinding.createCylinderLayer"
  1948  // in a try/catch block and returns (_, err, ok = false) when it went through
  1949  // the catch clause.
  1950  func (this XRMediaBinding) TryCreateCylinderLayer(video HTMLVideoElement, init XRMediaCylinderLayerInit) (ret XRCylinderLayer, exception js.Any, ok bool) {
  1951  	ok = js.True == bindings.TryXRMediaBindingCreateCylinderLayer(
  1952  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1953  		video.Ref(),
  1954  		js.Pointer(&init),
  1955  	)
  1956  
  1957  	return
  1958  }
  1959  
  1960  // HasFuncCreateCylinderLayer1 returns true if the method "XRMediaBinding.createCylinderLayer" exists.
  1961  func (this XRMediaBinding) HasFuncCreateCylinderLayer1() bool {
  1962  	return js.True == bindings.HasFuncXRMediaBindingCreateCylinderLayer1(
  1963  		this.ref,
  1964  	)
  1965  }
  1966  
  1967  // FuncCreateCylinderLayer1 returns the method "XRMediaBinding.createCylinderLayer".
  1968  func (this XRMediaBinding) FuncCreateCylinderLayer1() (fn js.Func[func(video HTMLVideoElement) XRCylinderLayer]) {
  1969  	bindings.FuncXRMediaBindingCreateCylinderLayer1(
  1970  		this.ref, js.Pointer(&fn),
  1971  	)
  1972  	return
  1973  }
  1974  
  1975  // CreateCylinderLayer1 calls the method "XRMediaBinding.createCylinderLayer".
  1976  func (this XRMediaBinding) CreateCylinderLayer1(video HTMLVideoElement) (ret XRCylinderLayer) {
  1977  	bindings.CallXRMediaBindingCreateCylinderLayer1(
  1978  		this.ref, js.Pointer(&ret),
  1979  		video.Ref(),
  1980  	)
  1981  
  1982  	return
  1983  }
  1984  
  1985  // TryCreateCylinderLayer1 calls the method "XRMediaBinding.createCylinderLayer"
  1986  // in a try/catch block and returns (_, err, ok = false) when it went through
  1987  // the catch clause.
  1988  func (this XRMediaBinding) TryCreateCylinderLayer1(video HTMLVideoElement) (ret XRCylinderLayer, exception js.Any, ok bool) {
  1989  	ok = js.True == bindings.TryXRMediaBindingCreateCylinderLayer1(
  1990  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1991  		video.Ref(),
  1992  	)
  1993  
  1994  	return
  1995  }
  1996  
  1997  // HasFuncCreateEquirectLayer returns true if the method "XRMediaBinding.createEquirectLayer" exists.
  1998  func (this XRMediaBinding) HasFuncCreateEquirectLayer() bool {
  1999  	return js.True == bindings.HasFuncXRMediaBindingCreateEquirectLayer(
  2000  		this.ref,
  2001  	)
  2002  }
  2003  
  2004  // FuncCreateEquirectLayer returns the method "XRMediaBinding.createEquirectLayer".
  2005  func (this XRMediaBinding) FuncCreateEquirectLayer() (fn js.Func[func(video HTMLVideoElement, init XRMediaEquirectLayerInit) XREquirectLayer]) {
  2006  	bindings.FuncXRMediaBindingCreateEquirectLayer(
  2007  		this.ref, js.Pointer(&fn),
  2008  	)
  2009  	return
  2010  }
  2011  
  2012  // CreateEquirectLayer calls the method "XRMediaBinding.createEquirectLayer".
  2013  func (this XRMediaBinding) CreateEquirectLayer(video HTMLVideoElement, init XRMediaEquirectLayerInit) (ret XREquirectLayer) {
  2014  	bindings.CallXRMediaBindingCreateEquirectLayer(
  2015  		this.ref, js.Pointer(&ret),
  2016  		video.Ref(),
  2017  		js.Pointer(&init),
  2018  	)
  2019  
  2020  	return
  2021  }
  2022  
  2023  // TryCreateEquirectLayer calls the method "XRMediaBinding.createEquirectLayer"
  2024  // in a try/catch block and returns (_, err, ok = false) when it went through
  2025  // the catch clause.
  2026  func (this XRMediaBinding) TryCreateEquirectLayer(video HTMLVideoElement, init XRMediaEquirectLayerInit) (ret XREquirectLayer, exception js.Any, ok bool) {
  2027  	ok = js.True == bindings.TryXRMediaBindingCreateEquirectLayer(
  2028  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2029  		video.Ref(),
  2030  		js.Pointer(&init),
  2031  	)
  2032  
  2033  	return
  2034  }
  2035  
  2036  // HasFuncCreateEquirectLayer1 returns true if the method "XRMediaBinding.createEquirectLayer" exists.
  2037  func (this XRMediaBinding) HasFuncCreateEquirectLayer1() bool {
  2038  	return js.True == bindings.HasFuncXRMediaBindingCreateEquirectLayer1(
  2039  		this.ref,
  2040  	)
  2041  }
  2042  
  2043  // FuncCreateEquirectLayer1 returns the method "XRMediaBinding.createEquirectLayer".
  2044  func (this XRMediaBinding) FuncCreateEquirectLayer1() (fn js.Func[func(video HTMLVideoElement) XREquirectLayer]) {
  2045  	bindings.FuncXRMediaBindingCreateEquirectLayer1(
  2046  		this.ref, js.Pointer(&fn),
  2047  	)
  2048  	return
  2049  }
  2050  
  2051  // CreateEquirectLayer1 calls the method "XRMediaBinding.createEquirectLayer".
  2052  func (this XRMediaBinding) CreateEquirectLayer1(video HTMLVideoElement) (ret XREquirectLayer) {
  2053  	bindings.CallXRMediaBindingCreateEquirectLayer1(
  2054  		this.ref, js.Pointer(&ret),
  2055  		video.Ref(),
  2056  	)
  2057  
  2058  	return
  2059  }
  2060  
  2061  // TryCreateEquirectLayer1 calls the method "XRMediaBinding.createEquirectLayer"
  2062  // in a try/catch block and returns (_, err, ok = false) when it went through
  2063  // the catch clause.
  2064  func (this XRMediaBinding) TryCreateEquirectLayer1(video HTMLVideoElement) (ret XREquirectLayer, exception js.Any, ok bool) {
  2065  	ok = js.True == bindings.TryXRMediaBindingCreateEquirectLayer1(
  2066  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2067  		video.Ref(),
  2068  	)
  2069  
  2070  	return
  2071  }
  2072  
  2073  type XRMediaLayerInit struct {
  2074  	// Space is "XRMediaLayerInit.space"
  2075  	//
  2076  	// Required
  2077  	Space XRSpace
  2078  	// Layout is "XRMediaLayerInit.layout"
  2079  	//
  2080  	// Optional, defaults to "mono".
  2081  	Layout XRLayerLayout
  2082  	// InvertStereo is "XRMediaLayerInit.invertStereo"
  2083  	//
  2084  	// Optional, defaults to false.
  2085  	//
  2086  	// NOTE: FFI_USE_InvertStereo MUST be set to true to make this field effective.
  2087  	InvertStereo bool
  2088  
  2089  	FFI_USE_InvertStereo bool // for InvertStereo.
  2090  
  2091  	FFI_USE bool
  2092  }
  2093  
  2094  // FromRef calls UpdateFrom and returns a XRMediaLayerInit with all fields set.
  2095  func (p XRMediaLayerInit) FromRef(ref js.Ref) XRMediaLayerInit {
  2096  	p.UpdateFrom(ref)
  2097  	return p
  2098  }
  2099  
  2100  // New creates a new XRMediaLayerInit in the application heap.
  2101  func (p XRMediaLayerInit) New() js.Ref {
  2102  	return bindings.XRMediaLayerInitJSLoad(
  2103  		js.Pointer(&p), js.True, 0,
  2104  	)
  2105  }
  2106  
  2107  // UpdateFrom copies value of all fields of the heap object to p.
  2108  func (p *XRMediaLayerInit) UpdateFrom(ref js.Ref) {
  2109  	bindings.XRMediaLayerInitJSStore(
  2110  		js.Pointer(p), ref,
  2111  	)
  2112  }
  2113  
  2114  // Update writes all fields of the p to the heap object referenced by ref.
  2115  func (p *XRMediaLayerInit) Update(ref js.Ref) {
  2116  	bindings.XRMediaLayerInitJSLoad(
  2117  		js.Pointer(p), js.False, ref,
  2118  	)
  2119  }
  2120  
  2121  // FreeMembers frees fields with heap reference, if recursive is true
  2122  // free all heap references reachable from p.
  2123  func (p *XRMediaLayerInit) FreeMembers(recursive bool) {
  2124  	js.Free(
  2125  		p.Space.Ref(),
  2126  	)
  2127  	p.Space = p.Space.FromRef(js.Undefined)
  2128  }
  2129  
  2130  type XRMesh struct {
  2131  	ref js.Ref
  2132  }
  2133  
  2134  func (this XRMesh) Once() XRMesh {
  2135  	this.ref.Once()
  2136  	return this
  2137  }
  2138  
  2139  func (this XRMesh) Ref() js.Ref {
  2140  	return this.ref
  2141  }
  2142  
  2143  func (this XRMesh) FromRef(ref js.Ref) XRMesh {
  2144  	this.ref = ref
  2145  	return this
  2146  }
  2147  
  2148  func (this XRMesh) Free() {
  2149  	this.ref.Free()
  2150  }
  2151  
  2152  // MeshSpace returns the value of property "XRMesh.meshSpace".
  2153  //
  2154  // It returns ok=false if there is no such property.
  2155  func (this XRMesh) MeshSpace() (ret XRSpace, ok bool) {
  2156  	ok = js.True == bindings.GetXRMeshMeshSpace(
  2157  		this.ref, js.Pointer(&ret),
  2158  	)
  2159  	return
  2160  }
  2161  
  2162  // Vertices returns the value of property "XRMesh.vertices".
  2163  //
  2164  // It returns ok=false if there is no such property.
  2165  func (this XRMesh) Vertices() (ret js.FrozenArray[js.TypedArray[float32]], ok bool) {
  2166  	ok = js.True == bindings.GetXRMeshVertices(
  2167  		this.ref, js.Pointer(&ret),
  2168  	)
  2169  	return
  2170  }
  2171  
  2172  // Indices returns the value of property "XRMesh.indices".
  2173  //
  2174  // It returns ok=false if there is no such property.
  2175  func (this XRMesh) Indices() (ret js.TypedArray[uint32], ok bool) {
  2176  	ok = js.True == bindings.GetXRMeshIndices(
  2177  		this.ref, js.Pointer(&ret),
  2178  	)
  2179  	return
  2180  }
  2181  
  2182  // LastChangedTime returns the value of property "XRMesh.lastChangedTime".
  2183  //
  2184  // It returns ok=false if there is no such property.
  2185  func (this XRMesh) LastChangedTime() (ret DOMHighResTimeStamp, ok bool) {
  2186  	ok = js.True == bindings.GetXRMeshLastChangedTime(
  2187  		this.ref, js.Pointer(&ret),
  2188  	)
  2189  	return
  2190  }
  2191  
  2192  // SemanticLabel returns the value of property "XRMesh.semanticLabel".
  2193  //
  2194  // It returns ok=false if there is no such property.
  2195  func (this XRMesh) SemanticLabel() (ret js.String, ok bool) {
  2196  	ok = js.True == bindings.GetXRMeshSemanticLabel(
  2197  		this.ref, js.Pointer(&ret),
  2198  	)
  2199  	return
  2200  }
  2201  
  2202  type XRPermissionDescriptor struct {
  2203  	// Mode is "XRPermissionDescriptor.mode"
  2204  	//
  2205  	// Optional
  2206  	Mode XRSessionMode
  2207  	// RequiredFeatures is "XRPermissionDescriptor.requiredFeatures"
  2208  	//
  2209  	// Optional
  2210  	RequiredFeatures js.Array[js.String]
  2211  	// OptionalFeatures is "XRPermissionDescriptor.optionalFeatures"
  2212  	//
  2213  	// Optional
  2214  	OptionalFeatures js.Array[js.String]
  2215  	// Name is "XRPermissionDescriptor.name"
  2216  	//
  2217  	// Required
  2218  	Name js.String
  2219  
  2220  	FFI_USE bool
  2221  }
  2222  
  2223  // FromRef calls UpdateFrom and returns a XRPermissionDescriptor with all fields set.
  2224  func (p XRPermissionDescriptor) FromRef(ref js.Ref) XRPermissionDescriptor {
  2225  	p.UpdateFrom(ref)
  2226  	return p
  2227  }
  2228  
  2229  // New creates a new XRPermissionDescriptor in the application heap.
  2230  func (p XRPermissionDescriptor) New() js.Ref {
  2231  	return bindings.XRPermissionDescriptorJSLoad(
  2232  		js.Pointer(&p), js.True, 0,
  2233  	)
  2234  }
  2235  
  2236  // UpdateFrom copies value of all fields of the heap object to p.
  2237  func (p *XRPermissionDescriptor) UpdateFrom(ref js.Ref) {
  2238  	bindings.XRPermissionDescriptorJSStore(
  2239  		js.Pointer(p), ref,
  2240  	)
  2241  }
  2242  
  2243  // Update writes all fields of the p to the heap object referenced by ref.
  2244  func (p *XRPermissionDescriptor) Update(ref js.Ref) {
  2245  	bindings.XRPermissionDescriptorJSLoad(
  2246  		js.Pointer(p), js.False, ref,
  2247  	)
  2248  }
  2249  
  2250  // FreeMembers frees fields with heap reference, if recursive is true
  2251  // free all heap references reachable from p.
  2252  func (p *XRPermissionDescriptor) FreeMembers(recursive bool) {
  2253  	js.Free(
  2254  		p.RequiredFeatures.Ref(),
  2255  		p.OptionalFeatures.Ref(),
  2256  		p.Name.Ref(),
  2257  	)
  2258  	p.RequiredFeatures = p.RequiredFeatures.FromRef(js.Undefined)
  2259  	p.OptionalFeatures = p.OptionalFeatures.FromRef(js.Undefined)
  2260  	p.Name = p.Name.FromRef(js.Undefined)
  2261  }
  2262  
  2263  type XRPermissionStatus struct {
  2264  	PermissionStatus
  2265  }
  2266  
  2267  func (this XRPermissionStatus) Once() XRPermissionStatus {
  2268  	this.ref.Once()
  2269  	return this
  2270  }
  2271  
  2272  func (this XRPermissionStatus) Ref() js.Ref {
  2273  	return this.PermissionStatus.Ref()
  2274  }
  2275  
  2276  func (this XRPermissionStatus) FromRef(ref js.Ref) XRPermissionStatus {
  2277  	this.PermissionStatus = this.PermissionStatus.FromRef(ref)
  2278  	return this
  2279  }
  2280  
  2281  func (this XRPermissionStatus) Free() {
  2282  	this.ref.Free()
  2283  }
  2284  
  2285  // Granted returns the value of property "XRPermissionStatus.granted".
  2286  //
  2287  // It returns ok=false if there is no such property.
  2288  func (this XRPermissionStatus) Granted() (ret js.FrozenArray[js.String], ok bool) {
  2289  	ok = js.True == bindings.GetXRPermissionStatusGranted(
  2290  		this.ref, js.Pointer(&ret),
  2291  	)
  2292  	return
  2293  }
  2294  
  2295  // SetGranted sets the value of property "XRPermissionStatus.granted" to val.
  2296  //
  2297  // It returns false if the property cannot be set.
  2298  func (this XRPermissionStatus) SetGranted(val js.FrozenArray[js.String]) bool {
  2299  	return js.True == bindings.SetXRPermissionStatusGranted(
  2300  		this.ref,
  2301  		val.Ref(),
  2302  	)
  2303  }
  2304  
  2305  type XRProjectionLayer struct {
  2306  	XRCompositionLayer
  2307  }
  2308  
  2309  func (this XRProjectionLayer) Once() XRProjectionLayer {
  2310  	this.ref.Once()
  2311  	return this
  2312  }
  2313  
  2314  func (this XRProjectionLayer) Ref() js.Ref {
  2315  	return this.XRCompositionLayer.Ref()
  2316  }
  2317  
  2318  func (this XRProjectionLayer) FromRef(ref js.Ref) XRProjectionLayer {
  2319  	this.XRCompositionLayer = this.XRCompositionLayer.FromRef(ref)
  2320  	return this
  2321  }
  2322  
  2323  func (this XRProjectionLayer) Free() {
  2324  	this.ref.Free()
  2325  }
  2326  
  2327  // TextureWidth returns the value of property "XRProjectionLayer.textureWidth".
  2328  //
  2329  // It returns ok=false if there is no such property.
  2330  func (this XRProjectionLayer) TextureWidth() (ret uint32, ok bool) {
  2331  	ok = js.True == bindings.GetXRProjectionLayerTextureWidth(
  2332  		this.ref, js.Pointer(&ret),
  2333  	)
  2334  	return
  2335  }
  2336  
  2337  // TextureHeight returns the value of property "XRProjectionLayer.textureHeight".
  2338  //
  2339  // It returns ok=false if there is no such property.
  2340  func (this XRProjectionLayer) TextureHeight() (ret uint32, ok bool) {
  2341  	ok = js.True == bindings.GetXRProjectionLayerTextureHeight(
  2342  		this.ref, js.Pointer(&ret),
  2343  	)
  2344  	return
  2345  }
  2346  
  2347  // TextureArrayLength returns the value of property "XRProjectionLayer.textureArrayLength".
  2348  //
  2349  // It returns ok=false if there is no such property.
  2350  func (this XRProjectionLayer) TextureArrayLength() (ret uint32, ok bool) {
  2351  	ok = js.True == bindings.GetXRProjectionLayerTextureArrayLength(
  2352  		this.ref, js.Pointer(&ret),
  2353  	)
  2354  	return
  2355  }
  2356  
  2357  // IgnoreDepthValues returns the value of property "XRProjectionLayer.ignoreDepthValues".
  2358  //
  2359  // It returns ok=false if there is no such property.
  2360  func (this XRProjectionLayer) IgnoreDepthValues() (ret bool, ok bool) {
  2361  	ok = js.True == bindings.GetXRProjectionLayerIgnoreDepthValues(
  2362  		this.ref, js.Pointer(&ret),
  2363  	)
  2364  	return
  2365  }
  2366  
  2367  // FixedFoveation returns the value of property "XRProjectionLayer.fixedFoveation".
  2368  //
  2369  // It returns ok=false if there is no such property.
  2370  func (this XRProjectionLayer) FixedFoveation() (ret float32, ok bool) {
  2371  	ok = js.True == bindings.GetXRProjectionLayerFixedFoveation(
  2372  		this.ref, js.Pointer(&ret),
  2373  	)
  2374  	return
  2375  }
  2376  
  2377  // SetFixedFoveation sets the value of property "XRProjectionLayer.fixedFoveation" to val.
  2378  //
  2379  // It returns false if the property cannot be set.
  2380  func (this XRProjectionLayer) SetFixedFoveation(val float32) bool {
  2381  	return js.True == bindings.SetXRProjectionLayerFixedFoveation(
  2382  		this.ref,
  2383  		float32(val),
  2384  	)
  2385  }
  2386  
  2387  // DeltaPose returns the value of property "XRProjectionLayer.deltaPose".
  2388  //
  2389  // It returns ok=false if there is no such property.
  2390  func (this XRProjectionLayer) DeltaPose() (ret XRRigidTransform, ok bool) {
  2391  	ok = js.True == bindings.GetXRProjectionLayerDeltaPose(
  2392  		this.ref, js.Pointer(&ret),
  2393  	)
  2394  	return
  2395  }
  2396  
  2397  // SetDeltaPose sets the value of property "XRProjectionLayer.deltaPose" to val.
  2398  //
  2399  // It returns false if the property cannot be set.
  2400  func (this XRProjectionLayer) SetDeltaPose(val XRRigidTransform) bool {
  2401  	return js.True == bindings.SetXRProjectionLayerDeltaPose(
  2402  		this.ref,
  2403  		val.Ref(),
  2404  	)
  2405  }
  2406  
  2407  type XRProjectionLayerInit struct {
  2408  	// TextureType is "XRProjectionLayerInit.textureType"
  2409  	//
  2410  	// Optional, defaults to "texture".
  2411  	TextureType XRTextureType
  2412  	// ColorFormat is "XRProjectionLayerInit.colorFormat"
  2413  	//
  2414  	// Optional, defaults to 0x1908.
  2415  	//
  2416  	// NOTE: FFI_USE_ColorFormat MUST be set to true to make this field effective.
  2417  	ColorFormat GLenum
  2418  	// DepthFormat is "XRProjectionLayerInit.depthFormat"
  2419  	//
  2420  	// Optional, defaults to 0x1902.
  2421  	//
  2422  	// NOTE: FFI_USE_DepthFormat MUST be set to true to make this field effective.
  2423  	DepthFormat GLenum
  2424  	// ScaleFactor is "XRProjectionLayerInit.scaleFactor"
  2425  	//
  2426  	// Optional, defaults to 1.0.
  2427  	//
  2428  	// NOTE: FFI_USE_ScaleFactor MUST be set to true to make this field effective.
  2429  	ScaleFactor float64
  2430  	// ClearOnAccess is "XRProjectionLayerInit.clearOnAccess"
  2431  	//
  2432  	// Optional, defaults to true.
  2433  	//
  2434  	// NOTE: FFI_USE_ClearOnAccess MUST be set to true to make this field effective.
  2435  	ClearOnAccess bool
  2436  
  2437  	FFI_USE_ColorFormat   bool // for ColorFormat.
  2438  	FFI_USE_DepthFormat   bool // for DepthFormat.
  2439  	FFI_USE_ScaleFactor   bool // for ScaleFactor.
  2440  	FFI_USE_ClearOnAccess bool // for ClearOnAccess.
  2441  
  2442  	FFI_USE bool
  2443  }
  2444  
  2445  // FromRef calls UpdateFrom and returns a XRProjectionLayerInit with all fields set.
  2446  func (p XRProjectionLayerInit) FromRef(ref js.Ref) XRProjectionLayerInit {
  2447  	p.UpdateFrom(ref)
  2448  	return p
  2449  }
  2450  
  2451  // New creates a new XRProjectionLayerInit in the application heap.
  2452  func (p XRProjectionLayerInit) New() js.Ref {
  2453  	return bindings.XRProjectionLayerInitJSLoad(
  2454  		js.Pointer(&p), js.True, 0,
  2455  	)
  2456  }
  2457  
  2458  // UpdateFrom copies value of all fields of the heap object to p.
  2459  func (p *XRProjectionLayerInit) UpdateFrom(ref js.Ref) {
  2460  	bindings.XRProjectionLayerInitJSStore(
  2461  		js.Pointer(p), ref,
  2462  	)
  2463  }
  2464  
  2465  // Update writes all fields of the p to the heap object referenced by ref.
  2466  func (p *XRProjectionLayerInit) Update(ref js.Ref) {
  2467  	bindings.XRProjectionLayerInitJSLoad(
  2468  		js.Pointer(p), js.False, ref,
  2469  	)
  2470  }
  2471  
  2472  // FreeMembers frees fields with heap reference, if recursive is true
  2473  // free all heap references reachable from p.
  2474  func (p *XRProjectionLayerInit) FreeMembers(recursive bool) {
  2475  }
  2476  
  2477  type XRQuadLayerInit struct {
  2478  	// TextureType is "XRQuadLayerInit.textureType"
  2479  	//
  2480  	// Optional, defaults to "texture".
  2481  	TextureType XRTextureType
  2482  	// Transform is "XRQuadLayerInit.transform"
  2483  	//
  2484  	// Optional
  2485  	Transform XRRigidTransform
  2486  	// Width is "XRQuadLayerInit.width"
  2487  	//
  2488  	// Optional, defaults to 1.0.
  2489  	//
  2490  	// NOTE: FFI_USE_Width MUST be set to true to make this field effective.
  2491  	Width float32
  2492  	// Height is "XRQuadLayerInit.height"
  2493  	//
  2494  	// Optional, defaults to 1.0.
  2495  	//
  2496  	// NOTE: FFI_USE_Height MUST be set to true to make this field effective.
  2497  	Height float32
  2498  	// Space is "XRQuadLayerInit.space"
  2499  	//
  2500  	// Required
  2501  	Space XRSpace
  2502  	// ColorFormat is "XRQuadLayerInit.colorFormat"
  2503  	//
  2504  	// Optional, defaults to 0x1908.
  2505  	//
  2506  	// NOTE: FFI_USE_ColorFormat MUST be set to true to make this field effective.
  2507  	ColorFormat GLenum
  2508  	// DepthFormat is "XRQuadLayerInit.depthFormat"
  2509  	//
  2510  	// Optional
  2511  	//
  2512  	// NOTE: FFI_USE_DepthFormat MUST be set to true to make this field effective.
  2513  	DepthFormat GLenum
  2514  	// MipLevels is "XRQuadLayerInit.mipLevels"
  2515  	//
  2516  	// Optional, defaults to 1.
  2517  	//
  2518  	// NOTE: FFI_USE_MipLevels MUST be set to true to make this field effective.
  2519  	MipLevels uint32
  2520  	// ViewPixelWidth is "XRQuadLayerInit.viewPixelWidth"
  2521  	//
  2522  	// Required
  2523  	ViewPixelWidth uint32
  2524  	// ViewPixelHeight is "XRQuadLayerInit.viewPixelHeight"
  2525  	//
  2526  	// Required
  2527  	ViewPixelHeight uint32
  2528  	// Layout is "XRQuadLayerInit.layout"
  2529  	//
  2530  	// Optional, defaults to "mono".
  2531  	Layout XRLayerLayout
  2532  	// IsStatic is "XRQuadLayerInit.isStatic"
  2533  	//
  2534  	// Optional, defaults to false.
  2535  	//
  2536  	// NOTE: FFI_USE_IsStatic MUST be set to true to make this field effective.
  2537  	IsStatic bool
  2538  	// ClearOnAccess is "XRQuadLayerInit.clearOnAccess"
  2539  	//
  2540  	// Optional, defaults to true.
  2541  	//
  2542  	// NOTE: FFI_USE_ClearOnAccess MUST be set to true to make this field effective.
  2543  	ClearOnAccess bool
  2544  
  2545  	FFI_USE_Width         bool // for Width.
  2546  	FFI_USE_Height        bool // for Height.
  2547  	FFI_USE_ColorFormat   bool // for ColorFormat.
  2548  	FFI_USE_DepthFormat   bool // for DepthFormat.
  2549  	FFI_USE_MipLevels     bool // for MipLevels.
  2550  	FFI_USE_IsStatic      bool // for IsStatic.
  2551  	FFI_USE_ClearOnAccess bool // for ClearOnAccess.
  2552  
  2553  	FFI_USE bool
  2554  }
  2555  
  2556  // FromRef calls UpdateFrom and returns a XRQuadLayerInit with all fields set.
  2557  func (p XRQuadLayerInit) FromRef(ref js.Ref) XRQuadLayerInit {
  2558  	p.UpdateFrom(ref)
  2559  	return p
  2560  }
  2561  
  2562  // New creates a new XRQuadLayerInit in the application heap.
  2563  func (p XRQuadLayerInit) New() js.Ref {
  2564  	return bindings.XRQuadLayerInitJSLoad(
  2565  		js.Pointer(&p), js.True, 0,
  2566  	)
  2567  }
  2568  
  2569  // UpdateFrom copies value of all fields of the heap object to p.
  2570  func (p *XRQuadLayerInit) UpdateFrom(ref js.Ref) {
  2571  	bindings.XRQuadLayerInitJSStore(
  2572  		js.Pointer(p), ref,
  2573  	)
  2574  }
  2575  
  2576  // Update writes all fields of the p to the heap object referenced by ref.
  2577  func (p *XRQuadLayerInit) Update(ref js.Ref) {
  2578  	bindings.XRQuadLayerInitJSLoad(
  2579  		js.Pointer(p), js.False, ref,
  2580  	)
  2581  }
  2582  
  2583  // FreeMembers frees fields with heap reference, if recursive is true
  2584  // free all heap references reachable from p.
  2585  func (p *XRQuadLayerInit) FreeMembers(recursive bool) {
  2586  	js.Free(
  2587  		p.Transform.Ref(),
  2588  		p.Space.Ref(),
  2589  	)
  2590  	p.Transform = p.Transform.FromRef(js.Undefined)
  2591  	p.Space = p.Space.FromRef(js.Undefined)
  2592  }
  2593  
  2594  type XRReferenceSpaceEventInit struct {
  2595  	// ReferenceSpace is "XRReferenceSpaceEventInit.referenceSpace"
  2596  	//
  2597  	// Required
  2598  	ReferenceSpace XRReferenceSpace
  2599  	// Transform is "XRReferenceSpaceEventInit.transform"
  2600  	//
  2601  	// Optional, defaults to null.
  2602  	Transform XRRigidTransform
  2603  	// Bubbles is "XRReferenceSpaceEventInit.bubbles"
  2604  	//
  2605  	// Optional, defaults to false.
  2606  	//
  2607  	// NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective.
  2608  	Bubbles bool
  2609  	// Cancelable is "XRReferenceSpaceEventInit.cancelable"
  2610  	//
  2611  	// Optional, defaults to false.
  2612  	//
  2613  	// NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective.
  2614  	Cancelable bool
  2615  	// Composed is "XRReferenceSpaceEventInit.composed"
  2616  	//
  2617  	// Optional, defaults to false.
  2618  	//
  2619  	// NOTE: FFI_USE_Composed MUST be set to true to make this field effective.
  2620  	Composed bool
  2621  
  2622  	FFI_USE_Bubbles    bool // for Bubbles.
  2623  	FFI_USE_Cancelable bool // for Cancelable.
  2624  	FFI_USE_Composed   bool // for Composed.
  2625  
  2626  	FFI_USE bool
  2627  }
  2628  
  2629  // FromRef calls UpdateFrom and returns a XRReferenceSpaceEventInit with all fields set.
  2630  func (p XRReferenceSpaceEventInit) FromRef(ref js.Ref) XRReferenceSpaceEventInit {
  2631  	p.UpdateFrom(ref)
  2632  	return p
  2633  }
  2634  
  2635  // New creates a new XRReferenceSpaceEventInit in the application heap.
  2636  func (p XRReferenceSpaceEventInit) New() js.Ref {
  2637  	return bindings.XRReferenceSpaceEventInitJSLoad(
  2638  		js.Pointer(&p), js.True, 0,
  2639  	)
  2640  }
  2641  
  2642  // UpdateFrom copies value of all fields of the heap object to p.
  2643  func (p *XRReferenceSpaceEventInit) UpdateFrom(ref js.Ref) {
  2644  	bindings.XRReferenceSpaceEventInitJSStore(
  2645  		js.Pointer(p), ref,
  2646  	)
  2647  }
  2648  
  2649  // Update writes all fields of the p to the heap object referenced by ref.
  2650  func (p *XRReferenceSpaceEventInit) Update(ref js.Ref) {
  2651  	bindings.XRReferenceSpaceEventInitJSLoad(
  2652  		js.Pointer(p), js.False, ref,
  2653  	)
  2654  }
  2655  
  2656  // FreeMembers frees fields with heap reference, if recursive is true
  2657  // free all heap references reachable from p.
  2658  func (p *XRReferenceSpaceEventInit) FreeMembers(recursive bool) {
  2659  	js.Free(
  2660  		p.ReferenceSpace.Ref(),
  2661  		p.Transform.Ref(),
  2662  	)
  2663  	p.ReferenceSpace = p.ReferenceSpace.FromRef(js.Undefined)
  2664  	p.Transform = p.Transform.FromRef(js.Undefined)
  2665  }
  2666  
  2667  func NewXRReferenceSpaceEvent(typ js.String, eventInitDict XRReferenceSpaceEventInit) (ret XRReferenceSpaceEvent) {
  2668  	ret.ref = bindings.NewXRReferenceSpaceEventByXRReferenceSpaceEvent(
  2669  		typ.Ref(),
  2670  		js.Pointer(&eventInitDict))
  2671  	return
  2672  }
  2673  
  2674  type XRReferenceSpaceEvent struct {
  2675  	Event
  2676  }
  2677  
  2678  func (this XRReferenceSpaceEvent) Once() XRReferenceSpaceEvent {
  2679  	this.ref.Once()
  2680  	return this
  2681  }
  2682  
  2683  func (this XRReferenceSpaceEvent) Ref() js.Ref {
  2684  	return this.Event.Ref()
  2685  }
  2686  
  2687  func (this XRReferenceSpaceEvent) FromRef(ref js.Ref) XRReferenceSpaceEvent {
  2688  	this.Event = this.Event.FromRef(ref)
  2689  	return this
  2690  }
  2691  
  2692  func (this XRReferenceSpaceEvent) Free() {
  2693  	this.ref.Free()
  2694  }
  2695  
  2696  // ReferenceSpace returns the value of property "XRReferenceSpaceEvent.referenceSpace".
  2697  //
  2698  // It returns ok=false if there is no such property.
  2699  func (this XRReferenceSpaceEvent) ReferenceSpace() (ret XRReferenceSpace, ok bool) {
  2700  	ok = js.True == bindings.GetXRReferenceSpaceEventReferenceSpace(
  2701  		this.ref, js.Pointer(&ret),
  2702  	)
  2703  	return
  2704  }
  2705  
  2706  // Transform returns the value of property "XRReferenceSpaceEvent.transform".
  2707  //
  2708  // It returns ok=false if there is no such property.
  2709  func (this XRReferenceSpaceEvent) Transform() (ret XRRigidTransform, ok bool) {
  2710  	ok = js.True == bindings.GetXRReferenceSpaceEventTransform(
  2711  		this.ref, js.Pointer(&ret),
  2712  	)
  2713  	return
  2714  }
  2715  
  2716  type XRSessionEventInit struct {
  2717  	// Session is "XRSessionEventInit.session"
  2718  	//
  2719  	// Required
  2720  	Session XRSession
  2721  	// Bubbles is "XRSessionEventInit.bubbles"
  2722  	//
  2723  	// Optional, defaults to false.
  2724  	//
  2725  	// NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective.
  2726  	Bubbles bool
  2727  	// Cancelable is "XRSessionEventInit.cancelable"
  2728  	//
  2729  	// Optional, defaults to false.
  2730  	//
  2731  	// NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective.
  2732  	Cancelable bool
  2733  	// Composed is "XRSessionEventInit.composed"
  2734  	//
  2735  	// Optional, defaults to false.
  2736  	//
  2737  	// NOTE: FFI_USE_Composed MUST be set to true to make this field effective.
  2738  	Composed bool
  2739  
  2740  	FFI_USE_Bubbles    bool // for Bubbles.
  2741  	FFI_USE_Cancelable bool // for Cancelable.
  2742  	FFI_USE_Composed   bool // for Composed.
  2743  
  2744  	FFI_USE bool
  2745  }
  2746  
  2747  // FromRef calls UpdateFrom and returns a XRSessionEventInit with all fields set.
  2748  func (p XRSessionEventInit) FromRef(ref js.Ref) XRSessionEventInit {
  2749  	p.UpdateFrom(ref)
  2750  	return p
  2751  }
  2752  
  2753  // New creates a new XRSessionEventInit in the application heap.
  2754  func (p XRSessionEventInit) New() js.Ref {
  2755  	return bindings.XRSessionEventInitJSLoad(
  2756  		js.Pointer(&p), js.True, 0,
  2757  	)
  2758  }
  2759  
  2760  // UpdateFrom copies value of all fields of the heap object to p.
  2761  func (p *XRSessionEventInit) UpdateFrom(ref js.Ref) {
  2762  	bindings.XRSessionEventInitJSStore(
  2763  		js.Pointer(p), ref,
  2764  	)
  2765  }
  2766  
  2767  // Update writes all fields of the p to the heap object referenced by ref.
  2768  func (p *XRSessionEventInit) Update(ref js.Ref) {
  2769  	bindings.XRSessionEventInitJSLoad(
  2770  		js.Pointer(p), js.False, ref,
  2771  	)
  2772  }
  2773  
  2774  // FreeMembers frees fields with heap reference, if recursive is true
  2775  // free all heap references reachable from p.
  2776  func (p *XRSessionEventInit) FreeMembers(recursive bool) {
  2777  	js.Free(
  2778  		p.Session.Ref(),
  2779  	)
  2780  	p.Session = p.Session.FromRef(js.Undefined)
  2781  }
  2782  
  2783  func NewXRSessionEvent(typ js.String, eventInitDict XRSessionEventInit) (ret XRSessionEvent) {
  2784  	ret.ref = bindings.NewXRSessionEventByXRSessionEvent(
  2785  		typ.Ref(),
  2786  		js.Pointer(&eventInitDict))
  2787  	return
  2788  }
  2789  
  2790  type XRSessionEvent struct {
  2791  	Event
  2792  }
  2793  
  2794  func (this XRSessionEvent) Once() XRSessionEvent {
  2795  	this.ref.Once()
  2796  	return this
  2797  }
  2798  
  2799  func (this XRSessionEvent) Ref() js.Ref {
  2800  	return this.Event.Ref()
  2801  }
  2802  
  2803  func (this XRSessionEvent) FromRef(ref js.Ref) XRSessionEvent {
  2804  	this.Event = this.Event.FromRef(ref)
  2805  	return this
  2806  }
  2807  
  2808  func (this XRSessionEvent) Free() {
  2809  	this.ref.Free()
  2810  }
  2811  
  2812  // Session returns the value of property "XRSessionEvent.session".
  2813  //
  2814  // It returns ok=false if there is no such property.
  2815  func (this XRSessionEvent) Session() (ret XRSession, ok bool) {
  2816  	ok = js.True == bindings.GetXRSessionEventSession(
  2817  		this.ref, js.Pointer(&ret),
  2818  	)
  2819  	return
  2820  }
  2821  
  2822  type XRSessionSupportedPermissionDescriptor struct {
  2823  	// Mode is "XRSessionSupportedPermissionDescriptor.mode"
  2824  	//
  2825  	// Optional
  2826  	Mode XRSessionMode
  2827  	// Name is "XRSessionSupportedPermissionDescriptor.name"
  2828  	//
  2829  	// Required
  2830  	Name js.String
  2831  
  2832  	FFI_USE bool
  2833  }
  2834  
  2835  // FromRef calls UpdateFrom and returns a XRSessionSupportedPermissionDescriptor with all fields set.
  2836  func (p XRSessionSupportedPermissionDescriptor) FromRef(ref js.Ref) XRSessionSupportedPermissionDescriptor {
  2837  	p.UpdateFrom(ref)
  2838  	return p
  2839  }
  2840  
  2841  // New creates a new XRSessionSupportedPermissionDescriptor in the application heap.
  2842  func (p XRSessionSupportedPermissionDescriptor) New() js.Ref {
  2843  	return bindings.XRSessionSupportedPermissionDescriptorJSLoad(
  2844  		js.Pointer(&p), js.True, 0,
  2845  	)
  2846  }
  2847  
  2848  // UpdateFrom copies value of all fields of the heap object to p.
  2849  func (p *XRSessionSupportedPermissionDescriptor) UpdateFrom(ref js.Ref) {
  2850  	bindings.XRSessionSupportedPermissionDescriptorJSStore(
  2851  		js.Pointer(p), ref,
  2852  	)
  2853  }
  2854  
  2855  // Update writes all fields of the p to the heap object referenced by ref.
  2856  func (p *XRSessionSupportedPermissionDescriptor) Update(ref js.Ref) {
  2857  	bindings.XRSessionSupportedPermissionDescriptorJSLoad(
  2858  		js.Pointer(p), js.False, ref,
  2859  	)
  2860  }
  2861  
  2862  // FreeMembers frees fields with heap reference, if recursive is true
  2863  // free all heap references reachable from p.
  2864  func (p *XRSessionSupportedPermissionDescriptor) FreeMembers(recursive bool) {
  2865  	js.Free(
  2866  		p.Name.Ref(),
  2867  	)
  2868  	p.Name = p.Name.FromRef(js.Undefined)
  2869  }
  2870  
  2871  type XRSubImage struct {
  2872  	ref js.Ref
  2873  }
  2874  
  2875  func (this XRSubImage) Once() XRSubImage {
  2876  	this.ref.Once()
  2877  	return this
  2878  }
  2879  
  2880  func (this XRSubImage) Ref() js.Ref {
  2881  	return this.ref
  2882  }
  2883  
  2884  func (this XRSubImage) FromRef(ref js.Ref) XRSubImage {
  2885  	this.ref = ref
  2886  	return this
  2887  }
  2888  
  2889  func (this XRSubImage) Free() {
  2890  	this.ref.Free()
  2891  }
  2892  
  2893  // Viewport returns the value of property "XRSubImage.viewport".
  2894  //
  2895  // It returns ok=false if there is no such property.
  2896  func (this XRSubImage) Viewport() (ret XRViewport, ok bool) {
  2897  	ok = js.True == bindings.GetXRSubImageViewport(
  2898  		this.ref, js.Pointer(&ret),
  2899  	)
  2900  	return
  2901  }
  2902  
  2903  type XRWebGLSubImage struct {
  2904  	XRSubImage
  2905  }
  2906  
  2907  func (this XRWebGLSubImage) Once() XRWebGLSubImage {
  2908  	this.ref.Once()
  2909  	return this
  2910  }
  2911  
  2912  func (this XRWebGLSubImage) Ref() js.Ref {
  2913  	return this.XRSubImage.Ref()
  2914  }
  2915  
  2916  func (this XRWebGLSubImage) FromRef(ref js.Ref) XRWebGLSubImage {
  2917  	this.XRSubImage = this.XRSubImage.FromRef(ref)
  2918  	return this
  2919  }
  2920  
  2921  func (this XRWebGLSubImage) Free() {
  2922  	this.ref.Free()
  2923  }
  2924  
  2925  // ColorTexture returns the value of property "XRWebGLSubImage.colorTexture".
  2926  //
  2927  // It returns ok=false if there is no such property.
  2928  func (this XRWebGLSubImage) ColorTexture() (ret WebGLTexture, ok bool) {
  2929  	ok = js.True == bindings.GetXRWebGLSubImageColorTexture(
  2930  		this.ref, js.Pointer(&ret),
  2931  	)
  2932  	return
  2933  }
  2934  
  2935  // DepthStencilTexture returns the value of property "XRWebGLSubImage.depthStencilTexture".
  2936  //
  2937  // It returns ok=false if there is no such property.
  2938  func (this XRWebGLSubImage) DepthStencilTexture() (ret WebGLTexture, ok bool) {
  2939  	ok = js.True == bindings.GetXRWebGLSubImageDepthStencilTexture(
  2940  		this.ref, js.Pointer(&ret),
  2941  	)
  2942  	return
  2943  }
  2944  
  2945  // MotionVectorTexture returns the value of property "XRWebGLSubImage.motionVectorTexture".
  2946  //
  2947  // It returns ok=false if there is no such property.
  2948  func (this XRWebGLSubImage) MotionVectorTexture() (ret WebGLTexture, ok bool) {
  2949  	ok = js.True == bindings.GetXRWebGLSubImageMotionVectorTexture(
  2950  		this.ref, js.Pointer(&ret),
  2951  	)
  2952  	return
  2953  }
  2954  
  2955  // ImageIndex returns the value of property "XRWebGLSubImage.imageIndex".
  2956  //
  2957  // It returns ok=false if there is no such property.
  2958  func (this XRWebGLSubImage) ImageIndex() (ret uint32, ok bool) {
  2959  	ok = js.True == bindings.GetXRWebGLSubImageImageIndex(
  2960  		this.ref, js.Pointer(&ret),
  2961  	)
  2962  	return
  2963  }
  2964  
  2965  // ColorTextureWidth returns the value of property "XRWebGLSubImage.colorTextureWidth".
  2966  //
  2967  // It returns ok=false if there is no such property.
  2968  func (this XRWebGLSubImage) ColorTextureWidth() (ret uint32, ok bool) {
  2969  	ok = js.True == bindings.GetXRWebGLSubImageColorTextureWidth(
  2970  		this.ref, js.Pointer(&ret),
  2971  	)
  2972  	return
  2973  }
  2974  
  2975  // ColorTextureHeight returns the value of property "XRWebGLSubImage.colorTextureHeight".
  2976  //
  2977  // It returns ok=false if there is no such property.
  2978  func (this XRWebGLSubImage) ColorTextureHeight() (ret uint32, ok bool) {
  2979  	ok = js.True == bindings.GetXRWebGLSubImageColorTextureHeight(
  2980  		this.ref, js.Pointer(&ret),
  2981  	)
  2982  	return
  2983  }
  2984  
  2985  // DepthStencilTextureWidth returns the value of property "XRWebGLSubImage.depthStencilTextureWidth".
  2986  //
  2987  // It returns ok=false if there is no such property.
  2988  func (this XRWebGLSubImage) DepthStencilTextureWidth() (ret uint32, ok bool) {
  2989  	ok = js.True == bindings.GetXRWebGLSubImageDepthStencilTextureWidth(
  2990  		this.ref, js.Pointer(&ret),
  2991  	)
  2992  	return
  2993  }
  2994  
  2995  // DepthStencilTextureHeight returns the value of property "XRWebGLSubImage.depthStencilTextureHeight".
  2996  //
  2997  // It returns ok=false if there is no such property.
  2998  func (this XRWebGLSubImage) DepthStencilTextureHeight() (ret uint32, ok bool) {
  2999  	ok = js.True == bindings.GetXRWebGLSubImageDepthStencilTextureHeight(
  3000  		this.ref, js.Pointer(&ret),
  3001  	)
  3002  	return
  3003  }
  3004  
  3005  // MotionVectorTextureWidth returns the value of property "XRWebGLSubImage.motionVectorTextureWidth".
  3006  //
  3007  // It returns ok=false if there is no such property.
  3008  func (this XRWebGLSubImage) MotionVectorTextureWidth() (ret uint32, ok bool) {
  3009  	ok = js.True == bindings.GetXRWebGLSubImageMotionVectorTextureWidth(
  3010  		this.ref, js.Pointer(&ret),
  3011  	)
  3012  	return
  3013  }
  3014  
  3015  // MotionVectorTextureHeight returns the value of property "XRWebGLSubImage.motionVectorTextureHeight".
  3016  //
  3017  // It returns ok=false if there is no such property.
  3018  func (this XRWebGLSubImage) MotionVectorTextureHeight() (ret uint32, ok bool) {
  3019  	ok = js.True == bindings.GetXRWebGLSubImageMotionVectorTextureHeight(
  3020  		this.ref, js.Pointer(&ret),
  3021  	)
  3022  	return
  3023  }
  3024  
  3025  type XRWebGLDepthInformation struct {
  3026  	XRDepthInformation
  3027  }
  3028  
  3029  func (this XRWebGLDepthInformation) Once() XRWebGLDepthInformation {
  3030  	this.ref.Once()
  3031  	return this
  3032  }
  3033  
  3034  func (this XRWebGLDepthInformation) Ref() js.Ref {
  3035  	return this.XRDepthInformation.Ref()
  3036  }
  3037  
  3038  func (this XRWebGLDepthInformation) FromRef(ref js.Ref) XRWebGLDepthInformation {
  3039  	this.XRDepthInformation = this.XRDepthInformation.FromRef(ref)
  3040  	return this
  3041  }
  3042  
  3043  func (this XRWebGLDepthInformation) Free() {
  3044  	this.ref.Free()
  3045  }
  3046  
  3047  // Texture returns the value of property "XRWebGLDepthInformation.texture".
  3048  //
  3049  // It returns ok=false if there is no such property.
  3050  func (this XRWebGLDepthInformation) Texture() (ret WebGLTexture, ok bool) {
  3051  	ok = js.True == bindings.GetXRWebGLDepthInformationTexture(
  3052  		this.ref, js.Pointer(&ret),
  3053  	)
  3054  	return
  3055  }
  3056  
  3057  func NewXRWebGLBinding(session XRSession, context XRWebGLRenderingContext) (ret XRWebGLBinding) {
  3058  	ret.ref = bindings.NewXRWebGLBindingByXRWebGLBinding(
  3059  		session.Ref(),
  3060  		context.Ref())
  3061  	return
  3062  }
  3063  
  3064  type XRWebGLBinding struct {
  3065  	ref js.Ref
  3066  }
  3067  
  3068  func (this XRWebGLBinding) Once() XRWebGLBinding {
  3069  	this.ref.Once()
  3070  	return this
  3071  }
  3072  
  3073  func (this XRWebGLBinding) Ref() js.Ref {
  3074  	return this.ref
  3075  }
  3076  
  3077  func (this XRWebGLBinding) FromRef(ref js.Ref) XRWebGLBinding {
  3078  	this.ref = ref
  3079  	return this
  3080  }
  3081  
  3082  func (this XRWebGLBinding) Free() {
  3083  	this.ref.Free()
  3084  }
  3085  
  3086  // NativeProjectionScaleFactor returns the value of property "XRWebGLBinding.nativeProjectionScaleFactor".
  3087  //
  3088  // It returns ok=false if there is no such property.
  3089  func (this XRWebGLBinding) NativeProjectionScaleFactor() (ret float64, ok bool) {
  3090  	ok = js.True == bindings.GetXRWebGLBindingNativeProjectionScaleFactor(
  3091  		this.ref, js.Pointer(&ret),
  3092  	)
  3093  	return
  3094  }
  3095  
  3096  // UsesDepthValues returns the value of property "XRWebGLBinding.usesDepthValues".
  3097  //
  3098  // It returns ok=false if there is no such property.
  3099  func (this XRWebGLBinding) UsesDepthValues() (ret bool, ok bool) {
  3100  	ok = js.True == bindings.GetXRWebGLBindingUsesDepthValues(
  3101  		this.ref, js.Pointer(&ret),
  3102  	)
  3103  	return
  3104  }
  3105  
  3106  // HasFuncCreateProjectionLayer returns true if the method "XRWebGLBinding.createProjectionLayer" exists.
  3107  func (this XRWebGLBinding) HasFuncCreateProjectionLayer() bool {
  3108  	return js.True == bindings.HasFuncXRWebGLBindingCreateProjectionLayer(
  3109  		this.ref,
  3110  	)
  3111  }
  3112  
  3113  // FuncCreateProjectionLayer returns the method "XRWebGLBinding.createProjectionLayer".
  3114  func (this XRWebGLBinding) FuncCreateProjectionLayer() (fn js.Func[func(init XRProjectionLayerInit) XRProjectionLayer]) {
  3115  	bindings.FuncXRWebGLBindingCreateProjectionLayer(
  3116  		this.ref, js.Pointer(&fn),
  3117  	)
  3118  	return
  3119  }
  3120  
  3121  // CreateProjectionLayer calls the method "XRWebGLBinding.createProjectionLayer".
  3122  func (this XRWebGLBinding) CreateProjectionLayer(init XRProjectionLayerInit) (ret XRProjectionLayer) {
  3123  	bindings.CallXRWebGLBindingCreateProjectionLayer(
  3124  		this.ref, js.Pointer(&ret),
  3125  		js.Pointer(&init),
  3126  	)
  3127  
  3128  	return
  3129  }
  3130  
  3131  // TryCreateProjectionLayer calls the method "XRWebGLBinding.createProjectionLayer"
  3132  // in a try/catch block and returns (_, err, ok = false) when it went through
  3133  // the catch clause.
  3134  func (this XRWebGLBinding) TryCreateProjectionLayer(init XRProjectionLayerInit) (ret XRProjectionLayer, exception js.Any, ok bool) {
  3135  	ok = js.True == bindings.TryXRWebGLBindingCreateProjectionLayer(
  3136  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3137  		js.Pointer(&init),
  3138  	)
  3139  
  3140  	return
  3141  }
  3142  
  3143  // HasFuncCreateProjectionLayer1 returns true if the method "XRWebGLBinding.createProjectionLayer" exists.
  3144  func (this XRWebGLBinding) HasFuncCreateProjectionLayer1() bool {
  3145  	return js.True == bindings.HasFuncXRWebGLBindingCreateProjectionLayer1(
  3146  		this.ref,
  3147  	)
  3148  }
  3149  
  3150  // FuncCreateProjectionLayer1 returns the method "XRWebGLBinding.createProjectionLayer".
  3151  func (this XRWebGLBinding) FuncCreateProjectionLayer1() (fn js.Func[func() XRProjectionLayer]) {
  3152  	bindings.FuncXRWebGLBindingCreateProjectionLayer1(
  3153  		this.ref, js.Pointer(&fn),
  3154  	)
  3155  	return
  3156  }
  3157  
  3158  // CreateProjectionLayer1 calls the method "XRWebGLBinding.createProjectionLayer".
  3159  func (this XRWebGLBinding) CreateProjectionLayer1() (ret XRProjectionLayer) {
  3160  	bindings.CallXRWebGLBindingCreateProjectionLayer1(
  3161  		this.ref, js.Pointer(&ret),
  3162  	)
  3163  
  3164  	return
  3165  }
  3166  
  3167  // TryCreateProjectionLayer1 calls the method "XRWebGLBinding.createProjectionLayer"
  3168  // in a try/catch block and returns (_, err, ok = false) when it went through
  3169  // the catch clause.
  3170  func (this XRWebGLBinding) TryCreateProjectionLayer1() (ret XRProjectionLayer, exception js.Any, ok bool) {
  3171  	ok = js.True == bindings.TryXRWebGLBindingCreateProjectionLayer1(
  3172  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3173  	)
  3174  
  3175  	return
  3176  }
  3177  
  3178  // HasFuncCreateQuadLayer returns true if the method "XRWebGLBinding.createQuadLayer" exists.
  3179  func (this XRWebGLBinding) HasFuncCreateQuadLayer() bool {
  3180  	return js.True == bindings.HasFuncXRWebGLBindingCreateQuadLayer(
  3181  		this.ref,
  3182  	)
  3183  }
  3184  
  3185  // FuncCreateQuadLayer returns the method "XRWebGLBinding.createQuadLayer".
  3186  func (this XRWebGLBinding) FuncCreateQuadLayer() (fn js.Func[func(init XRQuadLayerInit) XRQuadLayer]) {
  3187  	bindings.FuncXRWebGLBindingCreateQuadLayer(
  3188  		this.ref, js.Pointer(&fn),
  3189  	)
  3190  	return
  3191  }
  3192  
  3193  // CreateQuadLayer calls the method "XRWebGLBinding.createQuadLayer".
  3194  func (this XRWebGLBinding) CreateQuadLayer(init XRQuadLayerInit) (ret XRQuadLayer) {
  3195  	bindings.CallXRWebGLBindingCreateQuadLayer(
  3196  		this.ref, js.Pointer(&ret),
  3197  		js.Pointer(&init),
  3198  	)
  3199  
  3200  	return
  3201  }
  3202  
  3203  // TryCreateQuadLayer calls the method "XRWebGLBinding.createQuadLayer"
  3204  // in a try/catch block and returns (_, err, ok = false) when it went through
  3205  // the catch clause.
  3206  func (this XRWebGLBinding) TryCreateQuadLayer(init XRQuadLayerInit) (ret XRQuadLayer, exception js.Any, ok bool) {
  3207  	ok = js.True == bindings.TryXRWebGLBindingCreateQuadLayer(
  3208  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3209  		js.Pointer(&init),
  3210  	)
  3211  
  3212  	return
  3213  }
  3214  
  3215  // HasFuncCreateQuadLayer1 returns true if the method "XRWebGLBinding.createQuadLayer" exists.
  3216  func (this XRWebGLBinding) HasFuncCreateQuadLayer1() bool {
  3217  	return js.True == bindings.HasFuncXRWebGLBindingCreateQuadLayer1(
  3218  		this.ref,
  3219  	)
  3220  }
  3221  
  3222  // FuncCreateQuadLayer1 returns the method "XRWebGLBinding.createQuadLayer".
  3223  func (this XRWebGLBinding) FuncCreateQuadLayer1() (fn js.Func[func() XRQuadLayer]) {
  3224  	bindings.FuncXRWebGLBindingCreateQuadLayer1(
  3225  		this.ref, js.Pointer(&fn),
  3226  	)
  3227  	return
  3228  }
  3229  
  3230  // CreateQuadLayer1 calls the method "XRWebGLBinding.createQuadLayer".
  3231  func (this XRWebGLBinding) CreateQuadLayer1() (ret XRQuadLayer) {
  3232  	bindings.CallXRWebGLBindingCreateQuadLayer1(
  3233  		this.ref, js.Pointer(&ret),
  3234  	)
  3235  
  3236  	return
  3237  }
  3238  
  3239  // TryCreateQuadLayer1 calls the method "XRWebGLBinding.createQuadLayer"
  3240  // in a try/catch block and returns (_, err, ok = false) when it went through
  3241  // the catch clause.
  3242  func (this XRWebGLBinding) TryCreateQuadLayer1() (ret XRQuadLayer, exception js.Any, ok bool) {
  3243  	ok = js.True == bindings.TryXRWebGLBindingCreateQuadLayer1(
  3244  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3245  	)
  3246  
  3247  	return
  3248  }
  3249  
  3250  // HasFuncCreateCylinderLayer returns true if the method "XRWebGLBinding.createCylinderLayer" exists.
  3251  func (this XRWebGLBinding) HasFuncCreateCylinderLayer() bool {
  3252  	return js.True == bindings.HasFuncXRWebGLBindingCreateCylinderLayer(
  3253  		this.ref,
  3254  	)
  3255  }
  3256  
  3257  // FuncCreateCylinderLayer returns the method "XRWebGLBinding.createCylinderLayer".
  3258  func (this XRWebGLBinding) FuncCreateCylinderLayer() (fn js.Func[func(init XRCylinderLayerInit) XRCylinderLayer]) {
  3259  	bindings.FuncXRWebGLBindingCreateCylinderLayer(
  3260  		this.ref, js.Pointer(&fn),
  3261  	)
  3262  	return
  3263  }
  3264  
  3265  // CreateCylinderLayer calls the method "XRWebGLBinding.createCylinderLayer".
  3266  func (this XRWebGLBinding) CreateCylinderLayer(init XRCylinderLayerInit) (ret XRCylinderLayer) {
  3267  	bindings.CallXRWebGLBindingCreateCylinderLayer(
  3268  		this.ref, js.Pointer(&ret),
  3269  		js.Pointer(&init),
  3270  	)
  3271  
  3272  	return
  3273  }
  3274  
  3275  // TryCreateCylinderLayer calls the method "XRWebGLBinding.createCylinderLayer"
  3276  // in a try/catch block and returns (_, err, ok = false) when it went through
  3277  // the catch clause.
  3278  func (this XRWebGLBinding) TryCreateCylinderLayer(init XRCylinderLayerInit) (ret XRCylinderLayer, exception js.Any, ok bool) {
  3279  	ok = js.True == bindings.TryXRWebGLBindingCreateCylinderLayer(
  3280  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3281  		js.Pointer(&init),
  3282  	)
  3283  
  3284  	return
  3285  }
  3286  
  3287  // HasFuncCreateCylinderLayer1 returns true if the method "XRWebGLBinding.createCylinderLayer" exists.
  3288  func (this XRWebGLBinding) HasFuncCreateCylinderLayer1() bool {
  3289  	return js.True == bindings.HasFuncXRWebGLBindingCreateCylinderLayer1(
  3290  		this.ref,
  3291  	)
  3292  }
  3293  
  3294  // FuncCreateCylinderLayer1 returns the method "XRWebGLBinding.createCylinderLayer".
  3295  func (this XRWebGLBinding) FuncCreateCylinderLayer1() (fn js.Func[func() XRCylinderLayer]) {
  3296  	bindings.FuncXRWebGLBindingCreateCylinderLayer1(
  3297  		this.ref, js.Pointer(&fn),
  3298  	)
  3299  	return
  3300  }
  3301  
  3302  // CreateCylinderLayer1 calls the method "XRWebGLBinding.createCylinderLayer".
  3303  func (this XRWebGLBinding) CreateCylinderLayer1() (ret XRCylinderLayer) {
  3304  	bindings.CallXRWebGLBindingCreateCylinderLayer1(
  3305  		this.ref, js.Pointer(&ret),
  3306  	)
  3307  
  3308  	return
  3309  }
  3310  
  3311  // TryCreateCylinderLayer1 calls the method "XRWebGLBinding.createCylinderLayer"
  3312  // in a try/catch block and returns (_, err, ok = false) when it went through
  3313  // the catch clause.
  3314  func (this XRWebGLBinding) TryCreateCylinderLayer1() (ret XRCylinderLayer, exception js.Any, ok bool) {
  3315  	ok = js.True == bindings.TryXRWebGLBindingCreateCylinderLayer1(
  3316  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3317  	)
  3318  
  3319  	return
  3320  }
  3321  
  3322  // HasFuncCreateEquirectLayer returns true if the method "XRWebGLBinding.createEquirectLayer" exists.
  3323  func (this XRWebGLBinding) HasFuncCreateEquirectLayer() bool {
  3324  	return js.True == bindings.HasFuncXRWebGLBindingCreateEquirectLayer(
  3325  		this.ref,
  3326  	)
  3327  }
  3328  
  3329  // FuncCreateEquirectLayer returns the method "XRWebGLBinding.createEquirectLayer".
  3330  func (this XRWebGLBinding) FuncCreateEquirectLayer() (fn js.Func[func(init XREquirectLayerInit) XREquirectLayer]) {
  3331  	bindings.FuncXRWebGLBindingCreateEquirectLayer(
  3332  		this.ref, js.Pointer(&fn),
  3333  	)
  3334  	return
  3335  }
  3336  
  3337  // CreateEquirectLayer calls the method "XRWebGLBinding.createEquirectLayer".
  3338  func (this XRWebGLBinding) CreateEquirectLayer(init XREquirectLayerInit) (ret XREquirectLayer) {
  3339  	bindings.CallXRWebGLBindingCreateEquirectLayer(
  3340  		this.ref, js.Pointer(&ret),
  3341  		js.Pointer(&init),
  3342  	)
  3343  
  3344  	return
  3345  }
  3346  
  3347  // TryCreateEquirectLayer calls the method "XRWebGLBinding.createEquirectLayer"
  3348  // in a try/catch block and returns (_, err, ok = false) when it went through
  3349  // the catch clause.
  3350  func (this XRWebGLBinding) TryCreateEquirectLayer(init XREquirectLayerInit) (ret XREquirectLayer, exception js.Any, ok bool) {
  3351  	ok = js.True == bindings.TryXRWebGLBindingCreateEquirectLayer(
  3352  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3353  		js.Pointer(&init),
  3354  	)
  3355  
  3356  	return
  3357  }
  3358  
  3359  // HasFuncCreateEquirectLayer1 returns true if the method "XRWebGLBinding.createEquirectLayer" exists.
  3360  func (this XRWebGLBinding) HasFuncCreateEquirectLayer1() bool {
  3361  	return js.True == bindings.HasFuncXRWebGLBindingCreateEquirectLayer1(
  3362  		this.ref,
  3363  	)
  3364  }
  3365  
  3366  // FuncCreateEquirectLayer1 returns the method "XRWebGLBinding.createEquirectLayer".
  3367  func (this XRWebGLBinding) FuncCreateEquirectLayer1() (fn js.Func[func() XREquirectLayer]) {
  3368  	bindings.FuncXRWebGLBindingCreateEquirectLayer1(
  3369  		this.ref, js.Pointer(&fn),
  3370  	)
  3371  	return
  3372  }
  3373  
  3374  // CreateEquirectLayer1 calls the method "XRWebGLBinding.createEquirectLayer".
  3375  func (this XRWebGLBinding) CreateEquirectLayer1() (ret XREquirectLayer) {
  3376  	bindings.CallXRWebGLBindingCreateEquirectLayer1(
  3377  		this.ref, js.Pointer(&ret),
  3378  	)
  3379  
  3380  	return
  3381  }
  3382  
  3383  // TryCreateEquirectLayer1 calls the method "XRWebGLBinding.createEquirectLayer"
  3384  // in a try/catch block and returns (_, err, ok = false) when it went through
  3385  // the catch clause.
  3386  func (this XRWebGLBinding) TryCreateEquirectLayer1() (ret XREquirectLayer, exception js.Any, ok bool) {
  3387  	ok = js.True == bindings.TryXRWebGLBindingCreateEquirectLayer1(
  3388  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3389  	)
  3390  
  3391  	return
  3392  }
  3393  
  3394  // HasFuncCreateCubeLayer returns true if the method "XRWebGLBinding.createCubeLayer" exists.
  3395  func (this XRWebGLBinding) HasFuncCreateCubeLayer() bool {
  3396  	return js.True == bindings.HasFuncXRWebGLBindingCreateCubeLayer(
  3397  		this.ref,
  3398  	)
  3399  }
  3400  
  3401  // FuncCreateCubeLayer returns the method "XRWebGLBinding.createCubeLayer".
  3402  func (this XRWebGLBinding) FuncCreateCubeLayer() (fn js.Func[func(init XRCubeLayerInit) XRCubeLayer]) {
  3403  	bindings.FuncXRWebGLBindingCreateCubeLayer(
  3404  		this.ref, js.Pointer(&fn),
  3405  	)
  3406  	return
  3407  }
  3408  
  3409  // CreateCubeLayer calls the method "XRWebGLBinding.createCubeLayer".
  3410  func (this XRWebGLBinding) CreateCubeLayer(init XRCubeLayerInit) (ret XRCubeLayer) {
  3411  	bindings.CallXRWebGLBindingCreateCubeLayer(
  3412  		this.ref, js.Pointer(&ret),
  3413  		js.Pointer(&init),
  3414  	)
  3415  
  3416  	return
  3417  }
  3418  
  3419  // TryCreateCubeLayer calls the method "XRWebGLBinding.createCubeLayer"
  3420  // in a try/catch block and returns (_, err, ok = false) when it went through
  3421  // the catch clause.
  3422  func (this XRWebGLBinding) TryCreateCubeLayer(init XRCubeLayerInit) (ret XRCubeLayer, exception js.Any, ok bool) {
  3423  	ok = js.True == bindings.TryXRWebGLBindingCreateCubeLayer(
  3424  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3425  		js.Pointer(&init),
  3426  	)
  3427  
  3428  	return
  3429  }
  3430  
  3431  // HasFuncCreateCubeLayer1 returns true if the method "XRWebGLBinding.createCubeLayer" exists.
  3432  func (this XRWebGLBinding) HasFuncCreateCubeLayer1() bool {
  3433  	return js.True == bindings.HasFuncXRWebGLBindingCreateCubeLayer1(
  3434  		this.ref,
  3435  	)
  3436  }
  3437  
  3438  // FuncCreateCubeLayer1 returns the method "XRWebGLBinding.createCubeLayer".
  3439  func (this XRWebGLBinding) FuncCreateCubeLayer1() (fn js.Func[func() XRCubeLayer]) {
  3440  	bindings.FuncXRWebGLBindingCreateCubeLayer1(
  3441  		this.ref, js.Pointer(&fn),
  3442  	)
  3443  	return
  3444  }
  3445  
  3446  // CreateCubeLayer1 calls the method "XRWebGLBinding.createCubeLayer".
  3447  func (this XRWebGLBinding) CreateCubeLayer1() (ret XRCubeLayer) {
  3448  	bindings.CallXRWebGLBindingCreateCubeLayer1(
  3449  		this.ref, js.Pointer(&ret),
  3450  	)
  3451  
  3452  	return
  3453  }
  3454  
  3455  // TryCreateCubeLayer1 calls the method "XRWebGLBinding.createCubeLayer"
  3456  // in a try/catch block and returns (_, err, ok = false) when it went through
  3457  // the catch clause.
  3458  func (this XRWebGLBinding) TryCreateCubeLayer1() (ret XRCubeLayer, exception js.Any, ok bool) {
  3459  	ok = js.True == bindings.TryXRWebGLBindingCreateCubeLayer1(
  3460  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3461  	)
  3462  
  3463  	return
  3464  }
  3465  
  3466  // HasFuncGetSubImage returns true if the method "XRWebGLBinding.getSubImage" exists.
  3467  func (this XRWebGLBinding) HasFuncGetSubImage() bool {
  3468  	return js.True == bindings.HasFuncXRWebGLBindingGetSubImage(
  3469  		this.ref,
  3470  	)
  3471  }
  3472  
  3473  // FuncGetSubImage returns the method "XRWebGLBinding.getSubImage".
  3474  func (this XRWebGLBinding) FuncGetSubImage() (fn js.Func[func(layer XRCompositionLayer, frame XRFrame, eye XREye) XRWebGLSubImage]) {
  3475  	bindings.FuncXRWebGLBindingGetSubImage(
  3476  		this.ref, js.Pointer(&fn),
  3477  	)
  3478  	return
  3479  }
  3480  
  3481  // GetSubImage calls the method "XRWebGLBinding.getSubImage".
  3482  func (this XRWebGLBinding) GetSubImage(layer XRCompositionLayer, frame XRFrame, eye XREye) (ret XRWebGLSubImage) {
  3483  	bindings.CallXRWebGLBindingGetSubImage(
  3484  		this.ref, js.Pointer(&ret),
  3485  		layer.Ref(),
  3486  		frame.Ref(),
  3487  		uint32(eye),
  3488  	)
  3489  
  3490  	return
  3491  }
  3492  
  3493  // TryGetSubImage calls the method "XRWebGLBinding.getSubImage"
  3494  // in a try/catch block and returns (_, err, ok = false) when it went through
  3495  // the catch clause.
  3496  func (this XRWebGLBinding) TryGetSubImage(layer XRCompositionLayer, frame XRFrame, eye XREye) (ret XRWebGLSubImage, exception js.Any, ok bool) {
  3497  	ok = js.True == bindings.TryXRWebGLBindingGetSubImage(
  3498  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3499  		layer.Ref(),
  3500  		frame.Ref(),
  3501  		uint32(eye),
  3502  	)
  3503  
  3504  	return
  3505  }
  3506  
  3507  // HasFuncGetSubImage1 returns true if the method "XRWebGLBinding.getSubImage" exists.
  3508  func (this XRWebGLBinding) HasFuncGetSubImage1() bool {
  3509  	return js.True == bindings.HasFuncXRWebGLBindingGetSubImage1(
  3510  		this.ref,
  3511  	)
  3512  }
  3513  
  3514  // FuncGetSubImage1 returns the method "XRWebGLBinding.getSubImage".
  3515  func (this XRWebGLBinding) FuncGetSubImage1() (fn js.Func[func(layer XRCompositionLayer, frame XRFrame) XRWebGLSubImage]) {
  3516  	bindings.FuncXRWebGLBindingGetSubImage1(
  3517  		this.ref, js.Pointer(&fn),
  3518  	)
  3519  	return
  3520  }
  3521  
  3522  // GetSubImage1 calls the method "XRWebGLBinding.getSubImage".
  3523  func (this XRWebGLBinding) GetSubImage1(layer XRCompositionLayer, frame XRFrame) (ret XRWebGLSubImage) {
  3524  	bindings.CallXRWebGLBindingGetSubImage1(
  3525  		this.ref, js.Pointer(&ret),
  3526  		layer.Ref(),
  3527  		frame.Ref(),
  3528  	)
  3529  
  3530  	return
  3531  }
  3532  
  3533  // TryGetSubImage1 calls the method "XRWebGLBinding.getSubImage"
  3534  // in a try/catch block and returns (_, err, ok = false) when it went through
  3535  // the catch clause.
  3536  func (this XRWebGLBinding) TryGetSubImage1(layer XRCompositionLayer, frame XRFrame) (ret XRWebGLSubImage, exception js.Any, ok bool) {
  3537  	ok = js.True == bindings.TryXRWebGLBindingGetSubImage1(
  3538  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3539  		layer.Ref(),
  3540  		frame.Ref(),
  3541  	)
  3542  
  3543  	return
  3544  }
  3545  
  3546  // HasFuncGetViewSubImage returns true if the method "XRWebGLBinding.getViewSubImage" exists.
  3547  func (this XRWebGLBinding) HasFuncGetViewSubImage() bool {
  3548  	return js.True == bindings.HasFuncXRWebGLBindingGetViewSubImage(
  3549  		this.ref,
  3550  	)
  3551  }
  3552  
  3553  // FuncGetViewSubImage returns the method "XRWebGLBinding.getViewSubImage".
  3554  func (this XRWebGLBinding) FuncGetViewSubImage() (fn js.Func[func(layer XRProjectionLayer, view XRView) XRWebGLSubImage]) {
  3555  	bindings.FuncXRWebGLBindingGetViewSubImage(
  3556  		this.ref, js.Pointer(&fn),
  3557  	)
  3558  	return
  3559  }
  3560  
  3561  // GetViewSubImage calls the method "XRWebGLBinding.getViewSubImage".
  3562  func (this XRWebGLBinding) GetViewSubImage(layer XRProjectionLayer, view XRView) (ret XRWebGLSubImage) {
  3563  	bindings.CallXRWebGLBindingGetViewSubImage(
  3564  		this.ref, js.Pointer(&ret),
  3565  		layer.Ref(),
  3566  		view.Ref(),
  3567  	)
  3568  
  3569  	return
  3570  }
  3571  
  3572  // TryGetViewSubImage calls the method "XRWebGLBinding.getViewSubImage"
  3573  // in a try/catch block and returns (_, err, ok = false) when it went through
  3574  // the catch clause.
  3575  func (this XRWebGLBinding) TryGetViewSubImage(layer XRProjectionLayer, view XRView) (ret XRWebGLSubImage, exception js.Any, ok bool) {
  3576  	ok = js.True == bindings.TryXRWebGLBindingGetViewSubImage(
  3577  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3578  		layer.Ref(),
  3579  		view.Ref(),
  3580  	)
  3581  
  3582  	return
  3583  }
  3584  
  3585  // HasFuncGetCameraImage returns true if the method "XRWebGLBinding.getCameraImage" exists.
  3586  func (this XRWebGLBinding) HasFuncGetCameraImage() bool {
  3587  	return js.True == bindings.HasFuncXRWebGLBindingGetCameraImage(
  3588  		this.ref,
  3589  	)
  3590  }
  3591  
  3592  // FuncGetCameraImage returns the method "XRWebGLBinding.getCameraImage".
  3593  func (this XRWebGLBinding) FuncGetCameraImage() (fn js.Func[func(camera XRCamera) WebGLTexture]) {
  3594  	bindings.FuncXRWebGLBindingGetCameraImage(
  3595  		this.ref, js.Pointer(&fn),
  3596  	)
  3597  	return
  3598  }
  3599  
  3600  // GetCameraImage calls the method "XRWebGLBinding.getCameraImage".
  3601  func (this XRWebGLBinding) GetCameraImage(camera XRCamera) (ret WebGLTexture) {
  3602  	bindings.CallXRWebGLBindingGetCameraImage(
  3603  		this.ref, js.Pointer(&ret),
  3604  		camera.Ref(),
  3605  	)
  3606  
  3607  	return
  3608  }
  3609  
  3610  // TryGetCameraImage calls the method "XRWebGLBinding.getCameraImage"
  3611  // in a try/catch block and returns (_, err, ok = false) when it went through
  3612  // the catch clause.
  3613  func (this XRWebGLBinding) TryGetCameraImage(camera XRCamera) (ret WebGLTexture, exception js.Any, ok bool) {
  3614  	ok = js.True == bindings.TryXRWebGLBindingGetCameraImage(
  3615  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3616  		camera.Ref(),
  3617  	)
  3618  
  3619  	return
  3620  }
  3621  
  3622  // HasFuncGetDepthInformation returns true if the method "XRWebGLBinding.getDepthInformation" exists.
  3623  func (this XRWebGLBinding) HasFuncGetDepthInformation() bool {
  3624  	return js.True == bindings.HasFuncXRWebGLBindingGetDepthInformation(
  3625  		this.ref,
  3626  	)
  3627  }
  3628  
  3629  // FuncGetDepthInformation returns the method "XRWebGLBinding.getDepthInformation".
  3630  func (this XRWebGLBinding) FuncGetDepthInformation() (fn js.Func[func(view XRView) XRWebGLDepthInformation]) {
  3631  	bindings.FuncXRWebGLBindingGetDepthInformation(
  3632  		this.ref, js.Pointer(&fn),
  3633  	)
  3634  	return
  3635  }
  3636  
  3637  // GetDepthInformation calls the method "XRWebGLBinding.getDepthInformation".
  3638  func (this XRWebGLBinding) GetDepthInformation(view XRView) (ret XRWebGLDepthInformation) {
  3639  	bindings.CallXRWebGLBindingGetDepthInformation(
  3640  		this.ref, js.Pointer(&ret),
  3641  		view.Ref(),
  3642  	)
  3643  
  3644  	return
  3645  }
  3646  
  3647  // TryGetDepthInformation calls the method "XRWebGLBinding.getDepthInformation"
  3648  // in a try/catch block and returns (_, err, ok = false) when it went through
  3649  // the catch clause.
  3650  func (this XRWebGLBinding) TryGetDepthInformation(view XRView) (ret XRWebGLDepthInformation, exception js.Any, ok bool) {
  3651  	ok = js.True == bindings.TryXRWebGLBindingGetDepthInformation(
  3652  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3653  		view.Ref(),
  3654  	)
  3655  
  3656  	return
  3657  }
  3658  
  3659  // HasFuncGetReflectionCubeMap returns true if the method "XRWebGLBinding.getReflectionCubeMap" exists.
  3660  func (this XRWebGLBinding) HasFuncGetReflectionCubeMap() bool {
  3661  	return js.True == bindings.HasFuncXRWebGLBindingGetReflectionCubeMap(
  3662  		this.ref,
  3663  	)
  3664  }
  3665  
  3666  // FuncGetReflectionCubeMap returns the method "XRWebGLBinding.getReflectionCubeMap".
  3667  func (this XRWebGLBinding) FuncGetReflectionCubeMap() (fn js.Func[func(lightProbe XRLightProbe) WebGLTexture]) {
  3668  	bindings.FuncXRWebGLBindingGetReflectionCubeMap(
  3669  		this.ref, js.Pointer(&fn),
  3670  	)
  3671  	return
  3672  }
  3673  
  3674  // GetReflectionCubeMap calls the method "XRWebGLBinding.getReflectionCubeMap".
  3675  func (this XRWebGLBinding) GetReflectionCubeMap(lightProbe XRLightProbe) (ret WebGLTexture) {
  3676  	bindings.CallXRWebGLBindingGetReflectionCubeMap(
  3677  		this.ref, js.Pointer(&ret),
  3678  		lightProbe.Ref(),
  3679  	)
  3680  
  3681  	return
  3682  }
  3683  
  3684  // TryGetReflectionCubeMap calls the method "XRWebGLBinding.getReflectionCubeMap"
  3685  // in a try/catch block and returns (_, err, ok = false) when it went through
  3686  // the catch clause.
  3687  func (this XRWebGLBinding) TryGetReflectionCubeMap(lightProbe XRLightProbe) (ret WebGLTexture, exception js.Any, ok bool) {
  3688  	ok = js.True == bindings.TryXRWebGLBindingGetReflectionCubeMap(
  3689  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3690  		lightProbe.Ref(),
  3691  	)
  3692  
  3693  	return
  3694  }
  3695  
  3696  type XSLTProcessor struct {
  3697  	ref js.Ref
  3698  }
  3699  
  3700  func (this XSLTProcessor) Once() XSLTProcessor {
  3701  	this.ref.Once()
  3702  	return this
  3703  }
  3704  
  3705  func (this XSLTProcessor) Ref() js.Ref {
  3706  	return this.ref
  3707  }
  3708  
  3709  func (this XSLTProcessor) FromRef(ref js.Ref) XSLTProcessor {
  3710  	this.ref = ref
  3711  	return this
  3712  }
  3713  
  3714  func (this XSLTProcessor) Free() {
  3715  	this.ref.Free()
  3716  }
  3717  
  3718  // HasFuncImportStylesheet returns true if the method "XSLTProcessor.importStylesheet" exists.
  3719  func (this XSLTProcessor) HasFuncImportStylesheet() bool {
  3720  	return js.True == bindings.HasFuncXSLTProcessorImportStylesheet(
  3721  		this.ref,
  3722  	)
  3723  }
  3724  
  3725  // FuncImportStylesheet returns the method "XSLTProcessor.importStylesheet".
  3726  func (this XSLTProcessor) FuncImportStylesheet() (fn js.Func[func(style Node)]) {
  3727  	bindings.FuncXSLTProcessorImportStylesheet(
  3728  		this.ref, js.Pointer(&fn),
  3729  	)
  3730  	return
  3731  }
  3732  
  3733  // ImportStylesheet calls the method "XSLTProcessor.importStylesheet".
  3734  func (this XSLTProcessor) ImportStylesheet(style Node) (ret js.Void) {
  3735  	bindings.CallXSLTProcessorImportStylesheet(
  3736  		this.ref, js.Pointer(&ret),
  3737  		style.Ref(),
  3738  	)
  3739  
  3740  	return
  3741  }
  3742  
  3743  // TryImportStylesheet calls the method "XSLTProcessor.importStylesheet"
  3744  // in a try/catch block and returns (_, err, ok = false) when it went through
  3745  // the catch clause.
  3746  func (this XSLTProcessor) TryImportStylesheet(style Node) (ret js.Void, exception js.Any, ok bool) {
  3747  	ok = js.True == bindings.TryXSLTProcessorImportStylesheet(
  3748  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3749  		style.Ref(),
  3750  	)
  3751  
  3752  	return
  3753  }
  3754  
  3755  // HasFuncTransformToFragment returns true if the method "XSLTProcessor.transformToFragment" exists.
  3756  func (this XSLTProcessor) HasFuncTransformToFragment() bool {
  3757  	return js.True == bindings.HasFuncXSLTProcessorTransformToFragment(
  3758  		this.ref,
  3759  	)
  3760  }
  3761  
  3762  // FuncTransformToFragment returns the method "XSLTProcessor.transformToFragment".
  3763  func (this XSLTProcessor) FuncTransformToFragment() (fn js.Func[func(source Node, output Document) DocumentFragment]) {
  3764  	bindings.FuncXSLTProcessorTransformToFragment(
  3765  		this.ref, js.Pointer(&fn),
  3766  	)
  3767  	return
  3768  }
  3769  
  3770  // TransformToFragment calls the method "XSLTProcessor.transformToFragment".
  3771  func (this XSLTProcessor) TransformToFragment(source Node, output Document) (ret DocumentFragment) {
  3772  	bindings.CallXSLTProcessorTransformToFragment(
  3773  		this.ref, js.Pointer(&ret),
  3774  		source.Ref(),
  3775  		output.Ref(),
  3776  	)
  3777  
  3778  	return
  3779  }
  3780  
  3781  // TryTransformToFragment calls the method "XSLTProcessor.transformToFragment"
  3782  // in a try/catch block and returns (_, err, ok = false) when it went through
  3783  // the catch clause.
  3784  func (this XSLTProcessor) TryTransformToFragment(source Node, output Document) (ret DocumentFragment, exception js.Any, ok bool) {
  3785  	ok = js.True == bindings.TryXSLTProcessorTransformToFragment(
  3786  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3787  		source.Ref(),
  3788  		output.Ref(),
  3789  	)
  3790  
  3791  	return
  3792  }
  3793  
  3794  // HasFuncTransformToDocument returns true if the method "XSLTProcessor.transformToDocument" exists.
  3795  func (this XSLTProcessor) HasFuncTransformToDocument() bool {
  3796  	return js.True == bindings.HasFuncXSLTProcessorTransformToDocument(
  3797  		this.ref,
  3798  	)
  3799  }
  3800  
  3801  // FuncTransformToDocument returns the method "XSLTProcessor.transformToDocument".
  3802  func (this XSLTProcessor) FuncTransformToDocument() (fn js.Func[func(source Node) Document]) {
  3803  	bindings.FuncXSLTProcessorTransformToDocument(
  3804  		this.ref, js.Pointer(&fn),
  3805  	)
  3806  	return
  3807  }
  3808  
  3809  // TransformToDocument calls the method "XSLTProcessor.transformToDocument".
  3810  func (this XSLTProcessor) TransformToDocument(source Node) (ret Document) {
  3811  	bindings.CallXSLTProcessorTransformToDocument(
  3812  		this.ref, js.Pointer(&ret),
  3813  		source.Ref(),
  3814  	)
  3815  
  3816  	return
  3817  }
  3818  
  3819  // TryTransformToDocument calls the method "XSLTProcessor.transformToDocument"
  3820  // in a try/catch block and returns (_, err, ok = false) when it went through
  3821  // the catch clause.
  3822  func (this XSLTProcessor) TryTransformToDocument(source Node) (ret Document, exception js.Any, ok bool) {
  3823  	ok = js.True == bindings.TryXSLTProcessorTransformToDocument(
  3824  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3825  		source.Ref(),
  3826  	)
  3827  
  3828  	return
  3829  }
  3830  
  3831  // HasFuncSetParameter returns true if the method "XSLTProcessor.setParameter" exists.
  3832  func (this XSLTProcessor) HasFuncSetParameter() bool {
  3833  	return js.True == bindings.HasFuncXSLTProcessorSetParameter(
  3834  		this.ref,
  3835  	)
  3836  }
  3837  
  3838  // FuncSetParameter returns the method "XSLTProcessor.setParameter".
  3839  func (this XSLTProcessor) FuncSetParameter() (fn js.Func[func(namespaceURI js.String, localName js.String, value js.Any)]) {
  3840  	bindings.FuncXSLTProcessorSetParameter(
  3841  		this.ref, js.Pointer(&fn),
  3842  	)
  3843  	return
  3844  }
  3845  
  3846  // SetParameter calls the method "XSLTProcessor.setParameter".
  3847  func (this XSLTProcessor) SetParameter(namespaceURI js.String, localName js.String, value js.Any) (ret js.Void) {
  3848  	bindings.CallXSLTProcessorSetParameter(
  3849  		this.ref, js.Pointer(&ret),
  3850  		namespaceURI.Ref(),
  3851  		localName.Ref(),
  3852  		value.Ref(),
  3853  	)
  3854  
  3855  	return
  3856  }
  3857  
  3858  // TrySetParameter calls the method "XSLTProcessor.setParameter"
  3859  // in a try/catch block and returns (_, err, ok = false) when it went through
  3860  // the catch clause.
  3861  func (this XSLTProcessor) TrySetParameter(namespaceURI js.String, localName js.String, value js.Any) (ret js.Void, exception js.Any, ok bool) {
  3862  	ok = js.True == bindings.TryXSLTProcessorSetParameter(
  3863  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3864  		namespaceURI.Ref(),
  3865  		localName.Ref(),
  3866  		value.Ref(),
  3867  	)
  3868  
  3869  	return
  3870  }
  3871  
  3872  // HasFuncGetParameter returns true if the method "XSLTProcessor.getParameter" exists.
  3873  func (this XSLTProcessor) HasFuncGetParameter() bool {
  3874  	return js.True == bindings.HasFuncXSLTProcessorGetParameter(
  3875  		this.ref,
  3876  	)
  3877  }
  3878  
  3879  // FuncGetParameter returns the method "XSLTProcessor.getParameter".
  3880  func (this XSLTProcessor) FuncGetParameter() (fn js.Func[func(namespaceURI js.String, localName js.String) js.Any]) {
  3881  	bindings.FuncXSLTProcessorGetParameter(
  3882  		this.ref, js.Pointer(&fn),
  3883  	)
  3884  	return
  3885  }
  3886  
  3887  // GetParameter calls the method "XSLTProcessor.getParameter".
  3888  func (this XSLTProcessor) GetParameter(namespaceURI js.String, localName js.String) (ret js.Any) {
  3889  	bindings.CallXSLTProcessorGetParameter(
  3890  		this.ref, js.Pointer(&ret),
  3891  		namespaceURI.Ref(),
  3892  		localName.Ref(),
  3893  	)
  3894  
  3895  	return
  3896  }
  3897  
  3898  // TryGetParameter calls the method "XSLTProcessor.getParameter"
  3899  // in a try/catch block and returns (_, err, ok = false) when it went through
  3900  // the catch clause.
  3901  func (this XSLTProcessor) TryGetParameter(namespaceURI js.String, localName js.String) (ret js.Any, exception js.Any, ok bool) {
  3902  	ok = js.True == bindings.TryXSLTProcessorGetParameter(
  3903  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3904  		namespaceURI.Ref(),
  3905  		localName.Ref(),
  3906  	)
  3907  
  3908  	return
  3909  }
  3910  
  3911  // HasFuncRemoveParameter returns true if the method "XSLTProcessor.removeParameter" exists.
  3912  func (this XSLTProcessor) HasFuncRemoveParameter() bool {
  3913  	return js.True == bindings.HasFuncXSLTProcessorRemoveParameter(
  3914  		this.ref,
  3915  	)
  3916  }
  3917  
  3918  // FuncRemoveParameter returns the method "XSLTProcessor.removeParameter".
  3919  func (this XSLTProcessor) FuncRemoveParameter() (fn js.Func[func(namespaceURI js.String, localName js.String)]) {
  3920  	bindings.FuncXSLTProcessorRemoveParameter(
  3921  		this.ref, js.Pointer(&fn),
  3922  	)
  3923  	return
  3924  }
  3925  
  3926  // RemoveParameter calls the method "XSLTProcessor.removeParameter".
  3927  func (this XSLTProcessor) RemoveParameter(namespaceURI js.String, localName js.String) (ret js.Void) {
  3928  	bindings.CallXSLTProcessorRemoveParameter(
  3929  		this.ref, js.Pointer(&ret),
  3930  		namespaceURI.Ref(),
  3931  		localName.Ref(),
  3932  	)
  3933  
  3934  	return
  3935  }
  3936  
  3937  // TryRemoveParameter calls the method "XSLTProcessor.removeParameter"
  3938  // in a try/catch block and returns (_, err, ok = false) when it went through
  3939  // the catch clause.
  3940  func (this XSLTProcessor) TryRemoveParameter(namespaceURI js.String, localName js.String) (ret js.Void, exception js.Any, ok bool) {
  3941  	ok = js.True == bindings.TryXSLTProcessorRemoveParameter(
  3942  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3943  		namespaceURI.Ref(),
  3944  		localName.Ref(),
  3945  	)
  3946  
  3947  	return
  3948  }
  3949  
  3950  // HasFuncClearParameters returns true if the method "XSLTProcessor.clearParameters" exists.
  3951  func (this XSLTProcessor) HasFuncClearParameters() bool {
  3952  	return js.True == bindings.HasFuncXSLTProcessorClearParameters(
  3953  		this.ref,
  3954  	)
  3955  }
  3956  
  3957  // FuncClearParameters returns the method "XSLTProcessor.clearParameters".
  3958  func (this XSLTProcessor) FuncClearParameters() (fn js.Func[func()]) {
  3959  	bindings.FuncXSLTProcessorClearParameters(
  3960  		this.ref, js.Pointer(&fn),
  3961  	)
  3962  	return
  3963  }
  3964  
  3965  // ClearParameters calls the method "XSLTProcessor.clearParameters".
  3966  func (this XSLTProcessor) ClearParameters() (ret js.Void) {
  3967  	bindings.CallXSLTProcessorClearParameters(
  3968  		this.ref, js.Pointer(&ret),
  3969  	)
  3970  
  3971  	return
  3972  }
  3973  
  3974  // TryClearParameters calls the method "XSLTProcessor.clearParameters"
  3975  // in a try/catch block and returns (_, err, ok = false) when it went through
  3976  // the catch clause.
  3977  func (this XSLTProcessor) TryClearParameters() (ret js.Void, exception js.Any, ok bool) {
  3978  	ok = js.True == bindings.TryXSLTProcessorClearParameters(
  3979  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  3980  	)
  3981  
  3982  	return
  3983  }
  3984  
  3985  // HasFuncReset returns true if the method "XSLTProcessor.reset" exists.
  3986  func (this XSLTProcessor) HasFuncReset() bool {
  3987  	return js.True == bindings.HasFuncXSLTProcessorReset(
  3988  		this.ref,
  3989  	)
  3990  }
  3991  
  3992  // FuncReset returns the method "XSLTProcessor.reset".
  3993  func (this XSLTProcessor) FuncReset() (fn js.Func[func()]) {
  3994  	bindings.FuncXSLTProcessorReset(
  3995  		this.ref, js.Pointer(&fn),
  3996  	)
  3997  	return
  3998  }
  3999  
  4000  // Reset calls the method "XSLTProcessor.reset".
  4001  func (this XSLTProcessor) Reset() (ret js.Void) {
  4002  	bindings.CallXSLTProcessorReset(
  4003  		this.ref, js.Pointer(&ret),
  4004  	)
  4005  
  4006  	return
  4007  }
  4008  
  4009  // TryReset calls the method "XSLTProcessor.reset"
  4010  // in a try/catch block and returns (_, err, ok = false) when it went through
  4011  // the catch clause.
  4012  func (this XSLTProcessor) TryReset() (ret js.Void, exception js.Any, ok bool) {
  4013  	ok = js.True == bindings.TryXSLTProcessorReset(
  4014  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  4015  	)
  4016  
  4017  	return
  4018  }
  4019  
  4020  type Console struct{}
  4021  
  4022  // HasFuncAssert returns ture if the function "console.assert" exists.
  4023  func (Console) HasFuncAssert() bool {
  4024  	return js.True == bindings.HasFuncConsoleAssert()
  4025  }
  4026  
  4027  // FuncAssert returns the function "console.assert".
  4028  func (Console) FuncAssert() (fn js.Func[func(condition bool, data ...js.Any)]) {
  4029  	bindings.FuncConsoleAssert(
  4030  		js.Pointer(&fn),
  4031  	)
  4032  	return
  4033  }
  4034  
  4035  // Assert calls the function "console.assert".
  4036  func (Console) Assert(condition bool, data ...js.Any) (ret js.Void) {
  4037  	bindings.CallConsoleAssert(
  4038  		js.Pointer(&ret),
  4039  		js.Bool(bool(condition)),
  4040  		js.SliceData(data),
  4041  		js.SizeU(len(data)),
  4042  	)
  4043  	return
  4044  }
  4045  
  4046  // TryAssert calls the function "console.assert"
  4047  // in a try/catch block and returns (_, err, ok = true) when it went through
  4048  // the catch clause.
  4049  func (Console) TryAssert(condition bool, data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4050  	ok = js.True == bindings.TryConsoleAssert(
  4051  		js.Pointer(&ret), js.Pointer(&exception),
  4052  		js.Bool(bool(condition)),
  4053  		js.SliceData(data),
  4054  		js.SizeU(len(data)),
  4055  	)
  4056  	return
  4057  }
  4058  
  4059  // HasFuncAssert1 returns ture if the function "console.assert" exists.
  4060  func (Console) HasFuncAssert1() bool {
  4061  	return js.True == bindings.HasFuncConsoleAssert1()
  4062  }
  4063  
  4064  // FuncAssert1 returns the function "console.assert".
  4065  func (Console) FuncAssert1() (fn js.Func[func()]) {
  4066  	bindings.FuncConsoleAssert1(
  4067  		js.Pointer(&fn),
  4068  	)
  4069  	return
  4070  }
  4071  
  4072  // Assert1 calls the function "console.assert".
  4073  func (Console) Assert1() (ret js.Void) {
  4074  	bindings.CallConsoleAssert1(
  4075  		js.Pointer(&ret),
  4076  	)
  4077  	return
  4078  }
  4079  
  4080  // TryAssert1 calls the function "console.assert"
  4081  // in a try/catch block and returns (_, err, ok = true) when it went through
  4082  // the catch clause.
  4083  func (Console) TryAssert1() (ret js.Void, exception js.Any, ok bool) {
  4084  	ok = js.True == bindings.TryConsoleAssert1(
  4085  		js.Pointer(&ret), js.Pointer(&exception),
  4086  	)
  4087  	return
  4088  }
  4089  
  4090  // HasFuncClear returns ture if the function "console.clear" exists.
  4091  func (Console) HasFuncClear() bool {
  4092  	return js.True == bindings.HasFuncConsoleClear()
  4093  }
  4094  
  4095  // FuncClear returns the function "console.clear".
  4096  func (Console) FuncClear() (fn js.Func[func()]) {
  4097  	bindings.FuncConsoleClear(
  4098  		js.Pointer(&fn),
  4099  	)
  4100  	return
  4101  }
  4102  
  4103  // Clear calls the function "console.clear".
  4104  func (Console) Clear() (ret js.Void) {
  4105  	bindings.CallConsoleClear(
  4106  		js.Pointer(&ret),
  4107  	)
  4108  	return
  4109  }
  4110  
  4111  // TryClear calls the function "console.clear"
  4112  // in a try/catch block and returns (_, err, ok = true) when it went through
  4113  // the catch clause.
  4114  func (Console) TryClear() (ret js.Void, exception js.Any, ok bool) {
  4115  	ok = js.True == bindings.TryConsoleClear(
  4116  		js.Pointer(&ret), js.Pointer(&exception),
  4117  	)
  4118  	return
  4119  }
  4120  
  4121  // HasFuncDebug returns ture if the function "console.debug" exists.
  4122  func (Console) HasFuncDebug() bool {
  4123  	return js.True == bindings.HasFuncConsoleDebug()
  4124  }
  4125  
  4126  // FuncDebug returns the function "console.debug".
  4127  func (Console) FuncDebug() (fn js.Func[func(data ...js.Any)]) {
  4128  	bindings.FuncConsoleDebug(
  4129  		js.Pointer(&fn),
  4130  	)
  4131  	return
  4132  }
  4133  
  4134  // Debug calls the function "console.debug".
  4135  func (Console) Debug(data ...js.Any) (ret js.Void) {
  4136  	bindings.CallConsoleDebug(
  4137  		js.Pointer(&ret),
  4138  		js.SliceData(data),
  4139  		js.SizeU(len(data)),
  4140  	)
  4141  	return
  4142  }
  4143  
  4144  // TryDebug calls the function "console.debug"
  4145  // in a try/catch block and returns (_, err, ok = true) when it went through
  4146  // the catch clause.
  4147  func (Console) TryDebug(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4148  	ok = js.True == bindings.TryConsoleDebug(
  4149  		js.Pointer(&ret), js.Pointer(&exception),
  4150  		js.SliceData(data),
  4151  		js.SizeU(len(data)),
  4152  	)
  4153  	return
  4154  }
  4155  
  4156  // HasFuncError returns ture if the function "console.error" exists.
  4157  func (Console) HasFuncError() bool {
  4158  	return js.True == bindings.HasFuncConsoleError()
  4159  }
  4160  
  4161  // FuncError returns the function "console.error".
  4162  func (Console) FuncError() (fn js.Func[func(data ...js.Any)]) {
  4163  	bindings.FuncConsoleError(
  4164  		js.Pointer(&fn),
  4165  	)
  4166  	return
  4167  }
  4168  
  4169  // Error calls the function "console.error".
  4170  func (Console) Error(data ...js.Any) (ret js.Void) {
  4171  	bindings.CallConsoleError(
  4172  		js.Pointer(&ret),
  4173  		js.SliceData(data),
  4174  		js.SizeU(len(data)),
  4175  	)
  4176  	return
  4177  }
  4178  
  4179  // TryError calls the function "console.error"
  4180  // in a try/catch block and returns (_, err, ok = true) when it went through
  4181  // the catch clause.
  4182  func (Console) TryError(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4183  	ok = js.True == bindings.TryConsoleError(
  4184  		js.Pointer(&ret), js.Pointer(&exception),
  4185  		js.SliceData(data),
  4186  		js.SizeU(len(data)),
  4187  	)
  4188  	return
  4189  }
  4190  
  4191  // HasFuncInfo returns ture if the function "console.info" exists.
  4192  func (Console) HasFuncInfo() bool {
  4193  	return js.True == bindings.HasFuncConsoleInfo()
  4194  }
  4195  
  4196  // FuncInfo returns the function "console.info".
  4197  func (Console) FuncInfo() (fn js.Func[func(data ...js.Any)]) {
  4198  	bindings.FuncConsoleInfo(
  4199  		js.Pointer(&fn),
  4200  	)
  4201  	return
  4202  }
  4203  
  4204  // Info calls the function "console.info".
  4205  func (Console) Info(data ...js.Any) (ret js.Void) {
  4206  	bindings.CallConsoleInfo(
  4207  		js.Pointer(&ret),
  4208  		js.SliceData(data),
  4209  		js.SizeU(len(data)),
  4210  	)
  4211  	return
  4212  }
  4213  
  4214  // TryInfo calls the function "console.info"
  4215  // in a try/catch block and returns (_, err, ok = true) when it went through
  4216  // the catch clause.
  4217  func (Console) TryInfo(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4218  	ok = js.True == bindings.TryConsoleInfo(
  4219  		js.Pointer(&ret), js.Pointer(&exception),
  4220  		js.SliceData(data),
  4221  		js.SizeU(len(data)),
  4222  	)
  4223  	return
  4224  }
  4225  
  4226  // HasFuncLog returns ture if the function "console.log" exists.
  4227  func (Console) HasFuncLog() bool {
  4228  	return js.True == bindings.HasFuncConsoleLog()
  4229  }
  4230  
  4231  // FuncLog returns the function "console.log".
  4232  func (Console) FuncLog() (fn js.Func[func(data ...js.Any)]) {
  4233  	bindings.FuncConsoleLog(
  4234  		js.Pointer(&fn),
  4235  	)
  4236  	return
  4237  }
  4238  
  4239  // Log calls the function "console.log".
  4240  func (Console) Log(data ...js.Any) (ret js.Void) {
  4241  	bindings.CallConsoleLog(
  4242  		js.Pointer(&ret),
  4243  		js.SliceData(data),
  4244  		js.SizeU(len(data)),
  4245  	)
  4246  	return
  4247  }
  4248  
  4249  // TryLog calls the function "console.log"
  4250  // in a try/catch block and returns (_, err, ok = true) when it went through
  4251  // the catch clause.
  4252  func (Console) TryLog(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4253  	ok = js.True == bindings.TryConsoleLog(
  4254  		js.Pointer(&ret), js.Pointer(&exception),
  4255  		js.SliceData(data),
  4256  		js.SizeU(len(data)),
  4257  	)
  4258  	return
  4259  }
  4260  
  4261  // HasFuncTable returns ture if the function "console.table" exists.
  4262  func (Console) HasFuncTable() bool {
  4263  	return js.True == bindings.HasFuncConsoleTable()
  4264  }
  4265  
  4266  // FuncTable returns the function "console.table".
  4267  func (Console) FuncTable() (fn js.Func[func(tabularData js.Any, properties js.Array[js.String])]) {
  4268  	bindings.FuncConsoleTable(
  4269  		js.Pointer(&fn),
  4270  	)
  4271  	return
  4272  }
  4273  
  4274  // Table calls the function "console.table".
  4275  func (Console) Table(tabularData js.Any, properties js.Array[js.String]) (ret js.Void) {
  4276  	bindings.CallConsoleTable(
  4277  		js.Pointer(&ret),
  4278  		tabularData.Ref(),
  4279  		properties.Ref(),
  4280  	)
  4281  	return
  4282  }
  4283  
  4284  // TryTable calls the function "console.table"
  4285  // in a try/catch block and returns (_, err, ok = true) when it went through
  4286  // the catch clause.
  4287  func (Console) TryTable(tabularData js.Any, properties js.Array[js.String]) (ret js.Void, exception js.Any, ok bool) {
  4288  	ok = js.True == bindings.TryConsoleTable(
  4289  		js.Pointer(&ret), js.Pointer(&exception),
  4290  		tabularData.Ref(),
  4291  		properties.Ref(),
  4292  	)
  4293  	return
  4294  }
  4295  
  4296  // HasFuncTable1 returns ture if the function "console.table" exists.
  4297  func (Console) HasFuncTable1() bool {
  4298  	return js.True == bindings.HasFuncConsoleTable1()
  4299  }
  4300  
  4301  // FuncTable1 returns the function "console.table".
  4302  func (Console) FuncTable1() (fn js.Func[func(tabularData js.Any)]) {
  4303  	bindings.FuncConsoleTable1(
  4304  		js.Pointer(&fn),
  4305  	)
  4306  	return
  4307  }
  4308  
  4309  // Table1 calls the function "console.table".
  4310  func (Console) Table1(tabularData js.Any) (ret js.Void) {
  4311  	bindings.CallConsoleTable1(
  4312  		js.Pointer(&ret),
  4313  		tabularData.Ref(),
  4314  	)
  4315  	return
  4316  }
  4317  
  4318  // TryTable1 calls the function "console.table"
  4319  // in a try/catch block and returns (_, err, ok = true) when it went through
  4320  // the catch clause.
  4321  func (Console) TryTable1(tabularData js.Any) (ret js.Void, exception js.Any, ok bool) {
  4322  	ok = js.True == bindings.TryConsoleTable1(
  4323  		js.Pointer(&ret), js.Pointer(&exception),
  4324  		tabularData.Ref(),
  4325  	)
  4326  	return
  4327  }
  4328  
  4329  // HasFuncTable2 returns ture if the function "console.table" exists.
  4330  func (Console) HasFuncTable2() bool {
  4331  	return js.True == bindings.HasFuncConsoleTable2()
  4332  }
  4333  
  4334  // FuncTable2 returns the function "console.table".
  4335  func (Console) FuncTable2() (fn js.Func[func()]) {
  4336  	bindings.FuncConsoleTable2(
  4337  		js.Pointer(&fn),
  4338  	)
  4339  	return
  4340  }
  4341  
  4342  // Table2 calls the function "console.table".
  4343  func (Console) Table2() (ret js.Void) {
  4344  	bindings.CallConsoleTable2(
  4345  		js.Pointer(&ret),
  4346  	)
  4347  	return
  4348  }
  4349  
  4350  // TryTable2 calls the function "console.table"
  4351  // in a try/catch block and returns (_, err, ok = true) when it went through
  4352  // the catch clause.
  4353  func (Console) TryTable2() (ret js.Void, exception js.Any, ok bool) {
  4354  	ok = js.True == bindings.TryConsoleTable2(
  4355  		js.Pointer(&ret), js.Pointer(&exception),
  4356  	)
  4357  	return
  4358  }
  4359  
  4360  // HasFuncTrace returns ture if the function "console.trace" exists.
  4361  func (Console) HasFuncTrace() bool {
  4362  	return js.True == bindings.HasFuncConsoleTrace()
  4363  }
  4364  
  4365  // FuncTrace returns the function "console.trace".
  4366  func (Console) FuncTrace() (fn js.Func[func(data ...js.Any)]) {
  4367  	bindings.FuncConsoleTrace(
  4368  		js.Pointer(&fn),
  4369  	)
  4370  	return
  4371  }
  4372  
  4373  // Trace calls the function "console.trace".
  4374  func (Console) Trace(data ...js.Any) (ret js.Void) {
  4375  	bindings.CallConsoleTrace(
  4376  		js.Pointer(&ret),
  4377  		js.SliceData(data),
  4378  		js.SizeU(len(data)),
  4379  	)
  4380  	return
  4381  }
  4382  
  4383  // TryTrace calls the function "console.trace"
  4384  // in a try/catch block and returns (_, err, ok = true) when it went through
  4385  // the catch clause.
  4386  func (Console) TryTrace(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4387  	ok = js.True == bindings.TryConsoleTrace(
  4388  		js.Pointer(&ret), js.Pointer(&exception),
  4389  		js.SliceData(data),
  4390  		js.SizeU(len(data)),
  4391  	)
  4392  	return
  4393  }
  4394  
  4395  // HasFuncWarn returns ture if the function "console.warn" exists.
  4396  func (Console) HasFuncWarn() bool {
  4397  	return js.True == bindings.HasFuncConsoleWarn()
  4398  }
  4399  
  4400  // FuncWarn returns the function "console.warn".
  4401  func (Console) FuncWarn() (fn js.Func[func(data ...js.Any)]) {
  4402  	bindings.FuncConsoleWarn(
  4403  		js.Pointer(&fn),
  4404  	)
  4405  	return
  4406  }
  4407  
  4408  // Warn calls the function "console.warn".
  4409  func (Console) Warn(data ...js.Any) (ret js.Void) {
  4410  	bindings.CallConsoleWarn(
  4411  		js.Pointer(&ret),
  4412  		js.SliceData(data),
  4413  		js.SizeU(len(data)),
  4414  	)
  4415  	return
  4416  }
  4417  
  4418  // TryWarn calls the function "console.warn"
  4419  // in a try/catch block and returns (_, err, ok = true) when it went through
  4420  // the catch clause.
  4421  func (Console) TryWarn(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4422  	ok = js.True == bindings.TryConsoleWarn(
  4423  		js.Pointer(&ret), js.Pointer(&exception),
  4424  		js.SliceData(data),
  4425  		js.SizeU(len(data)),
  4426  	)
  4427  	return
  4428  }
  4429  
  4430  // HasFuncDir returns ture if the function "console.dir" exists.
  4431  func (Console) HasFuncDir() bool {
  4432  	return js.True == bindings.HasFuncConsoleDir()
  4433  }
  4434  
  4435  // FuncDir returns the function "console.dir".
  4436  func (Console) FuncDir() (fn js.Func[func(item js.Any, options js.Object)]) {
  4437  	bindings.FuncConsoleDir(
  4438  		js.Pointer(&fn),
  4439  	)
  4440  	return
  4441  }
  4442  
  4443  // Dir calls the function "console.dir".
  4444  func (Console) Dir(item js.Any, options js.Object) (ret js.Void) {
  4445  	bindings.CallConsoleDir(
  4446  		js.Pointer(&ret),
  4447  		item.Ref(),
  4448  		options.Ref(),
  4449  	)
  4450  	return
  4451  }
  4452  
  4453  // TryDir calls the function "console.dir"
  4454  // in a try/catch block and returns (_, err, ok = true) when it went through
  4455  // the catch clause.
  4456  func (Console) TryDir(item js.Any, options js.Object) (ret js.Void, exception js.Any, ok bool) {
  4457  	ok = js.True == bindings.TryConsoleDir(
  4458  		js.Pointer(&ret), js.Pointer(&exception),
  4459  		item.Ref(),
  4460  		options.Ref(),
  4461  	)
  4462  	return
  4463  }
  4464  
  4465  // HasFuncDir1 returns ture if the function "console.dir" exists.
  4466  func (Console) HasFuncDir1() bool {
  4467  	return js.True == bindings.HasFuncConsoleDir1()
  4468  }
  4469  
  4470  // FuncDir1 returns the function "console.dir".
  4471  func (Console) FuncDir1() (fn js.Func[func(item js.Any)]) {
  4472  	bindings.FuncConsoleDir1(
  4473  		js.Pointer(&fn),
  4474  	)
  4475  	return
  4476  }
  4477  
  4478  // Dir1 calls the function "console.dir".
  4479  func (Console) Dir1(item js.Any) (ret js.Void) {
  4480  	bindings.CallConsoleDir1(
  4481  		js.Pointer(&ret),
  4482  		item.Ref(),
  4483  	)
  4484  	return
  4485  }
  4486  
  4487  // TryDir1 calls the function "console.dir"
  4488  // in a try/catch block and returns (_, err, ok = true) when it went through
  4489  // the catch clause.
  4490  func (Console) TryDir1(item js.Any) (ret js.Void, exception js.Any, ok bool) {
  4491  	ok = js.True == bindings.TryConsoleDir1(
  4492  		js.Pointer(&ret), js.Pointer(&exception),
  4493  		item.Ref(),
  4494  	)
  4495  	return
  4496  }
  4497  
  4498  // HasFuncDir2 returns ture if the function "console.dir" exists.
  4499  func (Console) HasFuncDir2() bool {
  4500  	return js.True == bindings.HasFuncConsoleDir2()
  4501  }
  4502  
  4503  // FuncDir2 returns the function "console.dir".
  4504  func (Console) FuncDir2() (fn js.Func[func()]) {
  4505  	bindings.FuncConsoleDir2(
  4506  		js.Pointer(&fn),
  4507  	)
  4508  	return
  4509  }
  4510  
  4511  // Dir2 calls the function "console.dir".
  4512  func (Console) Dir2() (ret js.Void) {
  4513  	bindings.CallConsoleDir2(
  4514  		js.Pointer(&ret),
  4515  	)
  4516  	return
  4517  }
  4518  
  4519  // TryDir2 calls the function "console.dir"
  4520  // in a try/catch block and returns (_, err, ok = true) when it went through
  4521  // the catch clause.
  4522  func (Console) TryDir2() (ret js.Void, exception js.Any, ok bool) {
  4523  	ok = js.True == bindings.TryConsoleDir2(
  4524  		js.Pointer(&ret), js.Pointer(&exception),
  4525  	)
  4526  	return
  4527  }
  4528  
  4529  // HasFuncDirxml returns ture if the function "console.dirxml" exists.
  4530  func (Console) HasFuncDirxml() bool {
  4531  	return js.True == bindings.HasFuncConsoleDirxml()
  4532  }
  4533  
  4534  // FuncDirxml returns the function "console.dirxml".
  4535  func (Console) FuncDirxml() (fn js.Func[func(data ...js.Any)]) {
  4536  	bindings.FuncConsoleDirxml(
  4537  		js.Pointer(&fn),
  4538  	)
  4539  	return
  4540  }
  4541  
  4542  // Dirxml calls the function "console.dirxml".
  4543  func (Console) Dirxml(data ...js.Any) (ret js.Void) {
  4544  	bindings.CallConsoleDirxml(
  4545  		js.Pointer(&ret),
  4546  		js.SliceData(data),
  4547  		js.SizeU(len(data)),
  4548  	)
  4549  	return
  4550  }
  4551  
  4552  // TryDirxml calls the function "console.dirxml"
  4553  // in a try/catch block and returns (_, err, ok = true) when it went through
  4554  // the catch clause.
  4555  func (Console) TryDirxml(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4556  	ok = js.True == bindings.TryConsoleDirxml(
  4557  		js.Pointer(&ret), js.Pointer(&exception),
  4558  		js.SliceData(data),
  4559  		js.SizeU(len(data)),
  4560  	)
  4561  	return
  4562  }
  4563  
  4564  // HasFuncCount returns ture if the function "console.count" exists.
  4565  func (Console) HasFuncCount() bool {
  4566  	return js.True == bindings.HasFuncConsoleCount()
  4567  }
  4568  
  4569  // FuncCount returns the function "console.count".
  4570  func (Console) FuncCount() (fn js.Func[func(label js.String)]) {
  4571  	bindings.FuncConsoleCount(
  4572  		js.Pointer(&fn),
  4573  	)
  4574  	return
  4575  }
  4576  
  4577  // Count calls the function "console.count".
  4578  func (Console) Count(label js.String) (ret js.Void) {
  4579  	bindings.CallConsoleCount(
  4580  		js.Pointer(&ret),
  4581  		label.Ref(),
  4582  	)
  4583  	return
  4584  }
  4585  
  4586  // TryCount calls the function "console.count"
  4587  // in a try/catch block and returns (_, err, ok = true) when it went through
  4588  // the catch clause.
  4589  func (Console) TryCount(label js.String) (ret js.Void, exception js.Any, ok bool) {
  4590  	ok = js.True == bindings.TryConsoleCount(
  4591  		js.Pointer(&ret), js.Pointer(&exception),
  4592  		label.Ref(),
  4593  	)
  4594  	return
  4595  }
  4596  
  4597  // HasFuncCount1 returns ture if the function "console.count" exists.
  4598  func (Console) HasFuncCount1() bool {
  4599  	return js.True == bindings.HasFuncConsoleCount1()
  4600  }
  4601  
  4602  // FuncCount1 returns the function "console.count".
  4603  func (Console) FuncCount1() (fn js.Func[func()]) {
  4604  	bindings.FuncConsoleCount1(
  4605  		js.Pointer(&fn),
  4606  	)
  4607  	return
  4608  }
  4609  
  4610  // Count1 calls the function "console.count".
  4611  func (Console) Count1() (ret js.Void) {
  4612  	bindings.CallConsoleCount1(
  4613  		js.Pointer(&ret),
  4614  	)
  4615  	return
  4616  }
  4617  
  4618  // TryCount1 calls the function "console.count"
  4619  // in a try/catch block and returns (_, err, ok = true) when it went through
  4620  // the catch clause.
  4621  func (Console) TryCount1() (ret js.Void, exception js.Any, ok bool) {
  4622  	ok = js.True == bindings.TryConsoleCount1(
  4623  		js.Pointer(&ret), js.Pointer(&exception),
  4624  	)
  4625  	return
  4626  }
  4627  
  4628  // HasFuncCountReset returns ture if the function "console.countReset" exists.
  4629  func (Console) HasFuncCountReset() bool {
  4630  	return js.True == bindings.HasFuncConsoleCountReset()
  4631  }
  4632  
  4633  // FuncCountReset returns the function "console.countReset".
  4634  func (Console) FuncCountReset() (fn js.Func[func(label js.String)]) {
  4635  	bindings.FuncConsoleCountReset(
  4636  		js.Pointer(&fn),
  4637  	)
  4638  	return
  4639  }
  4640  
  4641  // CountReset calls the function "console.countReset".
  4642  func (Console) CountReset(label js.String) (ret js.Void) {
  4643  	bindings.CallConsoleCountReset(
  4644  		js.Pointer(&ret),
  4645  		label.Ref(),
  4646  	)
  4647  	return
  4648  }
  4649  
  4650  // TryCountReset calls the function "console.countReset"
  4651  // in a try/catch block and returns (_, err, ok = true) when it went through
  4652  // the catch clause.
  4653  func (Console) TryCountReset(label js.String) (ret js.Void, exception js.Any, ok bool) {
  4654  	ok = js.True == bindings.TryConsoleCountReset(
  4655  		js.Pointer(&ret), js.Pointer(&exception),
  4656  		label.Ref(),
  4657  	)
  4658  	return
  4659  }
  4660  
  4661  // HasFuncCountReset1 returns ture if the function "console.countReset" exists.
  4662  func (Console) HasFuncCountReset1() bool {
  4663  	return js.True == bindings.HasFuncConsoleCountReset1()
  4664  }
  4665  
  4666  // FuncCountReset1 returns the function "console.countReset".
  4667  func (Console) FuncCountReset1() (fn js.Func[func()]) {
  4668  	bindings.FuncConsoleCountReset1(
  4669  		js.Pointer(&fn),
  4670  	)
  4671  	return
  4672  }
  4673  
  4674  // CountReset1 calls the function "console.countReset".
  4675  func (Console) CountReset1() (ret js.Void) {
  4676  	bindings.CallConsoleCountReset1(
  4677  		js.Pointer(&ret),
  4678  	)
  4679  	return
  4680  }
  4681  
  4682  // TryCountReset1 calls the function "console.countReset"
  4683  // in a try/catch block and returns (_, err, ok = true) when it went through
  4684  // the catch clause.
  4685  func (Console) TryCountReset1() (ret js.Void, exception js.Any, ok bool) {
  4686  	ok = js.True == bindings.TryConsoleCountReset1(
  4687  		js.Pointer(&ret), js.Pointer(&exception),
  4688  	)
  4689  	return
  4690  }
  4691  
  4692  // HasFuncGroup returns ture if the function "console.group" exists.
  4693  func (Console) HasFuncGroup() bool {
  4694  	return js.True == bindings.HasFuncConsoleGroup()
  4695  }
  4696  
  4697  // FuncGroup returns the function "console.group".
  4698  func (Console) FuncGroup() (fn js.Func[func(data ...js.Any)]) {
  4699  	bindings.FuncConsoleGroup(
  4700  		js.Pointer(&fn),
  4701  	)
  4702  	return
  4703  }
  4704  
  4705  // Group calls the function "console.group".
  4706  func (Console) Group(data ...js.Any) (ret js.Void) {
  4707  	bindings.CallConsoleGroup(
  4708  		js.Pointer(&ret),
  4709  		js.SliceData(data),
  4710  		js.SizeU(len(data)),
  4711  	)
  4712  	return
  4713  }
  4714  
  4715  // TryGroup calls the function "console.group"
  4716  // in a try/catch block and returns (_, err, ok = true) when it went through
  4717  // the catch clause.
  4718  func (Console) TryGroup(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4719  	ok = js.True == bindings.TryConsoleGroup(
  4720  		js.Pointer(&ret), js.Pointer(&exception),
  4721  		js.SliceData(data),
  4722  		js.SizeU(len(data)),
  4723  	)
  4724  	return
  4725  }
  4726  
  4727  // HasFuncGroupCollapsed returns ture if the function "console.groupCollapsed" exists.
  4728  func (Console) HasFuncGroupCollapsed() bool {
  4729  	return js.True == bindings.HasFuncConsoleGroupCollapsed()
  4730  }
  4731  
  4732  // FuncGroupCollapsed returns the function "console.groupCollapsed".
  4733  func (Console) FuncGroupCollapsed() (fn js.Func[func(data ...js.Any)]) {
  4734  	bindings.FuncConsoleGroupCollapsed(
  4735  		js.Pointer(&fn),
  4736  	)
  4737  	return
  4738  }
  4739  
  4740  // GroupCollapsed calls the function "console.groupCollapsed".
  4741  func (Console) GroupCollapsed(data ...js.Any) (ret js.Void) {
  4742  	bindings.CallConsoleGroupCollapsed(
  4743  		js.Pointer(&ret),
  4744  		js.SliceData(data),
  4745  		js.SizeU(len(data)),
  4746  	)
  4747  	return
  4748  }
  4749  
  4750  // TryGroupCollapsed calls the function "console.groupCollapsed"
  4751  // in a try/catch block and returns (_, err, ok = true) when it went through
  4752  // the catch clause.
  4753  func (Console) TryGroupCollapsed(data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4754  	ok = js.True == bindings.TryConsoleGroupCollapsed(
  4755  		js.Pointer(&ret), js.Pointer(&exception),
  4756  		js.SliceData(data),
  4757  		js.SizeU(len(data)),
  4758  	)
  4759  	return
  4760  }
  4761  
  4762  // HasFuncGroupEnd returns ture if the function "console.groupEnd" exists.
  4763  func (Console) HasFuncGroupEnd() bool {
  4764  	return js.True == bindings.HasFuncConsoleGroupEnd()
  4765  }
  4766  
  4767  // FuncGroupEnd returns the function "console.groupEnd".
  4768  func (Console) FuncGroupEnd() (fn js.Func[func()]) {
  4769  	bindings.FuncConsoleGroupEnd(
  4770  		js.Pointer(&fn),
  4771  	)
  4772  	return
  4773  }
  4774  
  4775  // GroupEnd calls the function "console.groupEnd".
  4776  func (Console) GroupEnd() (ret js.Void) {
  4777  	bindings.CallConsoleGroupEnd(
  4778  		js.Pointer(&ret),
  4779  	)
  4780  	return
  4781  }
  4782  
  4783  // TryGroupEnd calls the function "console.groupEnd"
  4784  // in a try/catch block and returns (_, err, ok = true) when it went through
  4785  // the catch clause.
  4786  func (Console) TryGroupEnd() (ret js.Void, exception js.Any, ok bool) {
  4787  	ok = js.True == bindings.TryConsoleGroupEnd(
  4788  		js.Pointer(&ret), js.Pointer(&exception),
  4789  	)
  4790  	return
  4791  }
  4792  
  4793  // HasFuncTime returns ture if the function "console.time" exists.
  4794  func (Console) HasFuncTime() bool {
  4795  	return js.True == bindings.HasFuncConsoleTime()
  4796  }
  4797  
  4798  // FuncTime returns the function "console.time".
  4799  func (Console) FuncTime() (fn js.Func[func(label js.String)]) {
  4800  	bindings.FuncConsoleTime(
  4801  		js.Pointer(&fn),
  4802  	)
  4803  	return
  4804  }
  4805  
  4806  // Time calls the function "console.time".
  4807  func (Console) Time(label js.String) (ret js.Void) {
  4808  	bindings.CallConsoleTime(
  4809  		js.Pointer(&ret),
  4810  		label.Ref(),
  4811  	)
  4812  	return
  4813  }
  4814  
  4815  // TryTime calls the function "console.time"
  4816  // in a try/catch block and returns (_, err, ok = true) when it went through
  4817  // the catch clause.
  4818  func (Console) TryTime(label js.String) (ret js.Void, exception js.Any, ok bool) {
  4819  	ok = js.True == bindings.TryConsoleTime(
  4820  		js.Pointer(&ret), js.Pointer(&exception),
  4821  		label.Ref(),
  4822  	)
  4823  	return
  4824  }
  4825  
  4826  // HasFuncTime1 returns ture if the function "console.time" exists.
  4827  func (Console) HasFuncTime1() bool {
  4828  	return js.True == bindings.HasFuncConsoleTime1()
  4829  }
  4830  
  4831  // FuncTime1 returns the function "console.time".
  4832  func (Console) FuncTime1() (fn js.Func[func()]) {
  4833  	bindings.FuncConsoleTime1(
  4834  		js.Pointer(&fn),
  4835  	)
  4836  	return
  4837  }
  4838  
  4839  // Time1 calls the function "console.time".
  4840  func (Console) Time1() (ret js.Void) {
  4841  	bindings.CallConsoleTime1(
  4842  		js.Pointer(&ret),
  4843  	)
  4844  	return
  4845  }
  4846  
  4847  // TryTime1 calls the function "console.time"
  4848  // in a try/catch block and returns (_, err, ok = true) when it went through
  4849  // the catch clause.
  4850  func (Console) TryTime1() (ret js.Void, exception js.Any, ok bool) {
  4851  	ok = js.True == bindings.TryConsoleTime1(
  4852  		js.Pointer(&ret), js.Pointer(&exception),
  4853  	)
  4854  	return
  4855  }
  4856  
  4857  // HasFuncTimeLog returns ture if the function "console.timeLog" exists.
  4858  func (Console) HasFuncTimeLog() bool {
  4859  	return js.True == bindings.HasFuncConsoleTimeLog()
  4860  }
  4861  
  4862  // FuncTimeLog returns the function "console.timeLog".
  4863  func (Console) FuncTimeLog() (fn js.Func[func(label js.String, data ...js.Any)]) {
  4864  	bindings.FuncConsoleTimeLog(
  4865  		js.Pointer(&fn),
  4866  	)
  4867  	return
  4868  }
  4869  
  4870  // TimeLog calls the function "console.timeLog".
  4871  func (Console) TimeLog(label js.String, data ...js.Any) (ret js.Void) {
  4872  	bindings.CallConsoleTimeLog(
  4873  		js.Pointer(&ret),
  4874  		label.Ref(),
  4875  		js.SliceData(data),
  4876  		js.SizeU(len(data)),
  4877  	)
  4878  	return
  4879  }
  4880  
  4881  // TryTimeLog calls the function "console.timeLog"
  4882  // in a try/catch block and returns (_, err, ok = true) when it went through
  4883  // the catch clause.
  4884  func (Console) TryTimeLog(label js.String, data ...js.Any) (ret js.Void, exception js.Any, ok bool) {
  4885  	ok = js.True == bindings.TryConsoleTimeLog(
  4886  		js.Pointer(&ret), js.Pointer(&exception),
  4887  		label.Ref(),
  4888  		js.SliceData(data),
  4889  		js.SizeU(len(data)),
  4890  	)
  4891  	return
  4892  }
  4893  
  4894  // HasFuncTimeLog1 returns ture if the function "console.timeLog" exists.
  4895  func (Console) HasFuncTimeLog1() bool {
  4896  	return js.True == bindings.HasFuncConsoleTimeLog1()
  4897  }
  4898  
  4899  // FuncTimeLog1 returns the function "console.timeLog".
  4900  func (Console) FuncTimeLog1() (fn js.Func[func()]) {
  4901  	bindings.FuncConsoleTimeLog1(
  4902  		js.Pointer(&fn),
  4903  	)
  4904  	return
  4905  }
  4906  
  4907  // TimeLog1 calls the function "console.timeLog".
  4908  func (Console) TimeLog1() (ret js.Void) {
  4909  	bindings.CallConsoleTimeLog1(
  4910  		js.Pointer(&ret),
  4911  	)
  4912  	return
  4913  }
  4914  
  4915  // TryTimeLog1 calls the function "console.timeLog"
  4916  // in a try/catch block and returns (_, err, ok = true) when it went through
  4917  // the catch clause.
  4918  func (Console) TryTimeLog1() (ret js.Void, exception js.Any, ok bool) {
  4919  	ok = js.True == bindings.TryConsoleTimeLog1(
  4920  		js.Pointer(&ret), js.Pointer(&exception),
  4921  	)
  4922  	return
  4923  }
  4924  
  4925  // HasFuncTimeEnd returns ture if the function "console.timeEnd" exists.
  4926  func (Console) HasFuncTimeEnd() bool {
  4927  	return js.True == bindings.HasFuncConsoleTimeEnd()
  4928  }
  4929  
  4930  // FuncTimeEnd returns the function "console.timeEnd".
  4931  func (Console) FuncTimeEnd() (fn js.Func[func(label js.String)]) {
  4932  	bindings.FuncConsoleTimeEnd(
  4933  		js.Pointer(&fn),
  4934  	)
  4935  	return
  4936  }
  4937  
  4938  // TimeEnd calls the function "console.timeEnd".
  4939  func (Console) TimeEnd(label js.String) (ret js.Void) {
  4940  	bindings.CallConsoleTimeEnd(
  4941  		js.Pointer(&ret),
  4942  		label.Ref(),
  4943  	)
  4944  	return
  4945  }
  4946  
  4947  // TryTimeEnd calls the function "console.timeEnd"
  4948  // in a try/catch block and returns (_, err, ok = true) when it went through
  4949  // the catch clause.
  4950  func (Console) TryTimeEnd(label js.String) (ret js.Void, exception js.Any, ok bool) {
  4951  	ok = js.True == bindings.TryConsoleTimeEnd(
  4952  		js.Pointer(&ret), js.Pointer(&exception),
  4953  		label.Ref(),
  4954  	)
  4955  	return
  4956  }
  4957  
  4958  // HasFuncTimeEnd1 returns ture if the function "console.timeEnd" exists.
  4959  func (Console) HasFuncTimeEnd1() bool {
  4960  	return js.True == bindings.HasFuncConsoleTimeEnd1()
  4961  }
  4962  
  4963  // FuncTimeEnd1 returns the function "console.timeEnd".
  4964  func (Console) FuncTimeEnd1() (fn js.Func[func()]) {
  4965  	bindings.FuncConsoleTimeEnd1(
  4966  		js.Pointer(&fn),
  4967  	)
  4968  	return
  4969  }
  4970  
  4971  // TimeEnd1 calls the function "console.timeEnd".
  4972  func (Console) TimeEnd1() (ret js.Void) {
  4973  	bindings.CallConsoleTimeEnd1(
  4974  		js.Pointer(&ret),
  4975  	)
  4976  	return
  4977  }
  4978  
  4979  // TryTimeEnd1 calls the function "console.timeEnd"
  4980  // in a try/catch block and returns (_, err, ok = true) when it went through
  4981  // the catch clause.
  4982  func (Console) TryTimeEnd1() (ret js.Void, exception js.Any, ok bool) {
  4983  	ok = js.True == bindings.TryConsoleTimeEnd1(
  4984  		js.Pointer(&ret), js.Pointer(&exception),
  4985  	)
  4986  	return
  4987  }