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

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package web
     5  
     6  import (
     7  	"github.com/primecitizens/pcz/std/core/abi"
     8  	"github.com/primecitizens/pcz/std/ffi/js"
     9  	"github.com/primecitizens/pcz/std/plat/js/web/bindings"
    10  )
    11  
    12  type BluetoothServiceDataFilterInit struct {
    13  	// Service is "BluetoothServiceDataFilterInit.service"
    14  	//
    15  	// Required
    16  	Service BluetoothServiceUUID
    17  	// DataPrefix is "BluetoothServiceDataFilterInit.dataPrefix"
    18  	//
    19  	// Optional
    20  	DataPrefix BufferSource
    21  	// Mask is "BluetoothServiceDataFilterInit.mask"
    22  	//
    23  	// Optional
    24  	Mask BufferSource
    25  
    26  	FFI_USE bool
    27  }
    28  
    29  // FromRef calls UpdateFrom and returns a BluetoothServiceDataFilterInit with all fields set.
    30  func (p BluetoothServiceDataFilterInit) FromRef(ref js.Ref) BluetoothServiceDataFilterInit {
    31  	p.UpdateFrom(ref)
    32  	return p
    33  }
    34  
    35  // New creates a new BluetoothServiceDataFilterInit in the application heap.
    36  func (p BluetoothServiceDataFilterInit) New() js.Ref {
    37  	return bindings.BluetoothServiceDataFilterInitJSLoad(
    38  		js.Pointer(&p), js.True, 0,
    39  	)
    40  }
    41  
    42  // UpdateFrom copies value of all fields of the heap object to p.
    43  func (p *BluetoothServiceDataFilterInit) UpdateFrom(ref js.Ref) {
    44  	bindings.BluetoothServiceDataFilterInitJSStore(
    45  		js.Pointer(p), ref,
    46  	)
    47  }
    48  
    49  // Update writes all fields of the p to the heap object referenced by ref.
    50  func (p *BluetoothServiceDataFilterInit) Update(ref js.Ref) {
    51  	bindings.BluetoothServiceDataFilterInitJSLoad(
    52  		js.Pointer(p), js.False, ref,
    53  	)
    54  }
    55  
    56  // FreeMembers frees fields with heap reference, if recursive is true
    57  // free all heap references reachable from p.
    58  func (p *BluetoothServiceDataFilterInit) FreeMembers(recursive bool) {
    59  	js.Free(
    60  		p.Service.Ref(),
    61  		p.DataPrefix.Ref(),
    62  		p.Mask.Ref(),
    63  	)
    64  	p.Service = p.Service.FromRef(js.Undefined)
    65  	p.DataPrefix = p.DataPrefix.FromRef(js.Undefined)
    66  	p.Mask = p.Mask.FromRef(js.Undefined)
    67  }
    68  
    69  type BluetoothLEScanFilterInit struct {
    70  	// Services is "BluetoothLEScanFilterInit.services"
    71  	//
    72  	// Optional
    73  	Services js.Array[BluetoothServiceUUID]
    74  	// Name is "BluetoothLEScanFilterInit.name"
    75  	//
    76  	// Optional
    77  	Name js.String
    78  	// NamePrefix is "BluetoothLEScanFilterInit.namePrefix"
    79  	//
    80  	// Optional
    81  	NamePrefix js.String
    82  	// ManufacturerData is "BluetoothLEScanFilterInit.manufacturerData"
    83  	//
    84  	// Optional
    85  	ManufacturerData js.Array[BluetoothManufacturerDataFilterInit]
    86  	// ServiceData is "BluetoothLEScanFilterInit.serviceData"
    87  	//
    88  	// Optional
    89  	ServiceData js.Array[BluetoothServiceDataFilterInit]
    90  
    91  	FFI_USE bool
    92  }
    93  
    94  // FromRef calls UpdateFrom and returns a BluetoothLEScanFilterInit with all fields set.
    95  func (p BluetoothLEScanFilterInit) FromRef(ref js.Ref) BluetoothLEScanFilterInit {
    96  	p.UpdateFrom(ref)
    97  	return p
    98  }
    99  
   100  // New creates a new BluetoothLEScanFilterInit in the application heap.
   101  func (p BluetoothLEScanFilterInit) New() js.Ref {
   102  	return bindings.BluetoothLEScanFilterInitJSLoad(
   103  		js.Pointer(&p), js.True, 0,
   104  	)
   105  }
   106  
   107  // UpdateFrom copies value of all fields of the heap object to p.
   108  func (p *BluetoothLEScanFilterInit) UpdateFrom(ref js.Ref) {
   109  	bindings.BluetoothLEScanFilterInitJSStore(
   110  		js.Pointer(p), ref,
   111  	)
   112  }
   113  
   114  // Update writes all fields of the p to the heap object referenced by ref.
   115  func (p *BluetoothLEScanFilterInit) Update(ref js.Ref) {
   116  	bindings.BluetoothLEScanFilterInitJSLoad(
   117  		js.Pointer(p), js.False, ref,
   118  	)
   119  }
   120  
   121  // FreeMembers frees fields with heap reference, if recursive is true
   122  // free all heap references reachable from p.
   123  func (p *BluetoothLEScanFilterInit) FreeMembers(recursive bool) {
   124  	js.Free(
   125  		p.Services.Ref(),
   126  		p.Name.Ref(),
   127  		p.NamePrefix.Ref(),
   128  		p.ManufacturerData.Ref(),
   129  		p.ServiceData.Ref(),
   130  	)
   131  	p.Services = p.Services.FromRef(js.Undefined)
   132  	p.Name = p.Name.FromRef(js.Undefined)
   133  	p.NamePrefix = p.NamePrefix.FromRef(js.Undefined)
   134  	p.ManufacturerData = p.ManufacturerData.FromRef(js.Undefined)
   135  	p.ServiceData = p.ServiceData.FromRef(js.Undefined)
   136  }
   137  
   138  type RequestDeviceOptions struct {
   139  	// Filters is "RequestDeviceOptions.filters"
   140  	//
   141  	// Optional
   142  	Filters js.Array[BluetoothLEScanFilterInit]
   143  	// ExclusionFilters is "RequestDeviceOptions.exclusionFilters"
   144  	//
   145  	// Optional
   146  	ExclusionFilters js.Array[BluetoothLEScanFilterInit]
   147  	// OptionalServices is "RequestDeviceOptions.optionalServices"
   148  	//
   149  	// Optional, defaults to [].
   150  	OptionalServices js.Array[BluetoothServiceUUID]
   151  	// OptionalManufacturerData is "RequestDeviceOptions.optionalManufacturerData"
   152  	//
   153  	// Optional, defaults to [].
   154  	OptionalManufacturerData js.Array[uint16]
   155  	// AcceptAllDevices is "RequestDeviceOptions.acceptAllDevices"
   156  	//
   157  	// Optional, defaults to false.
   158  	//
   159  	// NOTE: FFI_USE_AcceptAllDevices MUST be set to true to make this field effective.
   160  	AcceptAllDevices bool
   161  
   162  	FFI_USE_AcceptAllDevices bool // for AcceptAllDevices.
   163  
   164  	FFI_USE bool
   165  }
   166  
   167  // FromRef calls UpdateFrom and returns a RequestDeviceOptions with all fields set.
   168  func (p RequestDeviceOptions) FromRef(ref js.Ref) RequestDeviceOptions {
   169  	p.UpdateFrom(ref)
   170  	return p
   171  }
   172  
   173  // New creates a new RequestDeviceOptions in the application heap.
   174  func (p RequestDeviceOptions) New() js.Ref {
   175  	return bindings.RequestDeviceOptionsJSLoad(
   176  		js.Pointer(&p), js.True, 0,
   177  	)
   178  }
   179  
   180  // UpdateFrom copies value of all fields of the heap object to p.
   181  func (p *RequestDeviceOptions) UpdateFrom(ref js.Ref) {
   182  	bindings.RequestDeviceOptionsJSStore(
   183  		js.Pointer(p), ref,
   184  	)
   185  }
   186  
   187  // Update writes all fields of the p to the heap object referenced by ref.
   188  func (p *RequestDeviceOptions) Update(ref js.Ref) {
   189  	bindings.RequestDeviceOptionsJSLoad(
   190  		js.Pointer(p), js.False, ref,
   191  	)
   192  }
   193  
   194  // FreeMembers frees fields with heap reference, if recursive is true
   195  // free all heap references reachable from p.
   196  func (p *RequestDeviceOptions) FreeMembers(recursive bool) {
   197  	js.Free(
   198  		p.Filters.Ref(),
   199  		p.ExclusionFilters.Ref(),
   200  		p.OptionalServices.Ref(),
   201  		p.OptionalManufacturerData.Ref(),
   202  	)
   203  	p.Filters = p.Filters.FromRef(js.Undefined)
   204  	p.ExclusionFilters = p.ExclusionFilters.FromRef(js.Undefined)
   205  	p.OptionalServices = p.OptionalServices.FromRef(js.Undefined)
   206  	p.OptionalManufacturerData = p.OptionalManufacturerData.FromRef(js.Undefined)
   207  }
   208  
   209  type Bluetooth struct {
   210  	EventTarget
   211  }
   212  
   213  func (this Bluetooth) Once() Bluetooth {
   214  	this.ref.Once()
   215  	return this
   216  }
   217  
   218  func (this Bluetooth) Ref() js.Ref {
   219  	return this.EventTarget.Ref()
   220  }
   221  
   222  func (this Bluetooth) FromRef(ref js.Ref) Bluetooth {
   223  	this.EventTarget = this.EventTarget.FromRef(ref)
   224  	return this
   225  }
   226  
   227  func (this Bluetooth) Free() {
   228  	this.ref.Free()
   229  }
   230  
   231  // ReferringDevice returns the value of property "Bluetooth.referringDevice".
   232  //
   233  // It returns ok=false if there is no such property.
   234  func (this Bluetooth) ReferringDevice() (ret BluetoothDevice, ok bool) {
   235  	ok = js.True == bindings.GetBluetoothReferringDevice(
   236  		this.ref, js.Pointer(&ret),
   237  	)
   238  	return
   239  }
   240  
   241  // HasFuncGetAvailability returns true if the method "Bluetooth.getAvailability" exists.
   242  func (this Bluetooth) HasFuncGetAvailability() bool {
   243  	return js.True == bindings.HasFuncBluetoothGetAvailability(
   244  		this.ref,
   245  	)
   246  }
   247  
   248  // FuncGetAvailability returns the method "Bluetooth.getAvailability".
   249  func (this Bluetooth) FuncGetAvailability() (fn js.Func[func() js.Promise[js.Boolean]]) {
   250  	bindings.FuncBluetoothGetAvailability(
   251  		this.ref, js.Pointer(&fn),
   252  	)
   253  	return
   254  }
   255  
   256  // GetAvailability calls the method "Bluetooth.getAvailability".
   257  func (this Bluetooth) GetAvailability() (ret js.Promise[js.Boolean]) {
   258  	bindings.CallBluetoothGetAvailability(
   259  		this.ref, js.Pointer(&ret),
   260  	)
   261  
   262  	return
   263  }
   264  
   265  // TryGetAvailability calls the method "Bluetooth.getAvailability"
   266  // in a try/catch block and returns (_, err, ok = false) when it went through
   267  // the catch clause.
   268  func (this Bluetooth) TryGetAvailability() (ret js.Promise[js.Boolean], exception js.Any, ok bool) {
   269  	ok = js.True == bindings.TryBluetoothGetAvailability(
   270  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   271  	)
   272  
   273  	return
   274  }
   275  
   276  // HasFuncGetDevices returns true if the method "Bluetooth.getDevices" exists.
   277  func (this Bluetooth) HasFuncGetDevices() bool {
   278  	return js.True == bindings.HasFuncBluetoothGetDevices(
   279  		this.ref,
   280  	)
   281  }
   282  
   283  // FuncGetDevices returns the method "Bluetooth.getDevices".
   284  func (this Bluetooth) FuncGetDevices() (fn js.Func[func() js.Promise[js.Array[BluetoothDevice]]]) {
   285  	bindings.FuncBluetoothGetDevices(
   286  		this.ref, js.Pointer(&fn),
   287  	)
   288  	return
   289  }
   290  
   291  // GetDevices calls the method "Bluetooth.getDevices".
   292  func (this Bluetooth) GetDevices() (ret js.Promise[js.Array[BluetoothDevice]]) {
   293  	bindings.CallBluetoothGetDevices(
   294  		this.ref, js.Pointer(&ret),
   295  	)
   296  
   297  	return
   298  }
   299  
   300  // TryGetDevices calls the method "Bluetooth.getDevices"
   301  // in a try/catch block and returns (_, err, ok = false) when it went through
   302  // the catch clause.
   303  func (this Bluetooth) TryGetDevices() (ret js.Promise[js.Array[BluetoothDevice]], exception js.Any, ok bool) {
   304  	ok = js.True == bindings.TryBluetoothGetDevices(
   305  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   306  	)
   307  
   308  	return
   309  }
   310  
   311  // HasFuncRequestDevice returns true if the method "Bluetooth.requestDevice" exists.
   312  func (this Bluetooth) HasFuncRequestDevice() bool {
   313  	return js.True == bindings.HasFuncBluetoothRequestDevice(
   314  		this.ref,
   315  	)
   316  }
   317  
   318  // FuncRequestDevice returns the method "Bluetooth.requestDevice".
   319  func (this Bluetooth) FuncRequestDevice() (fn js.Func[func(options RequestDeviceOptions) js.Promise[BluetoothDevice]]) {
   320  	bindings.FuncBluetoothRequestDevice(
   321  		this.ref, js.Pointer(&fn),
   322  	)
   323  	return
   324  }
   325  
   326  // RequestDevice calls the method "Bluetooth.requestDevice".
   327  func (this Bluetooth) RequestDevice(options RequestDeviceOptions) (ret js.Promise[BluetoothDevice]) {
   328  	bindings.CallBluetoothRequestDevice(
   329  		this.ref, js.Pointer(&ret),
   330  		js.Pointer(&options),
   331  	)
   332  
   333  	return
   334  }
   335  
   336  // TryRequestDevice calls the method "Bluetooth.requestDevice"
   337  // in a try/catch block and returns (_, err, ok = false) when it went through
   338  // the catch clause.
   339  func (this Bluetooth) TryRequestDevice(options RequestDeviceOptions) (ret js.Promise[BluetoothDevice], exception js.Any, ok bool) {
   340  	ok = js.True == bindings.TryBluetoothRequestDevice(
   341  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   342  		js.Pointer(&options),
   343  	)
   344  
   345  	return
   346  }
   347  
   348  // HasFuncRequestDevice1 returns true if the method "Bluetooth.requestDevice" exists.
   349  func (this Bluetooth) HasFuncRequestDevice1() bool {
   350  	return js.True == bindings.HasFuncBluetoothRequestDevice1(
   351  		this.ref,
   352  	)
   353  }
   354  
   355  // FuncRequestDevice1 returns the method "Bluetooth.requestDevice".
   356  func (this Bluetooth) FuncRequestDevice1() (fn js.Func[func() js.Promise[BluetoothDevice]]) {
   357  	bindings.FuncBluetoothRequestDevice1(
   358  		this.ref, js.Pointer(&fn),
   359  	)
   360  	return
   361  }
   362  
   363  // RequestDevice1 calls the method "Bluetooth.requestDevice".
   364  func (this Bluetooth) RequestDevice1() (ret js.Promise[BluetoothDevice]) {
   365  	bindings.CallBluetoothRequestDevice1(
   366  		this.ref, js.Pointer(&ret),
   367  	)
   368  
   369  	return
   370  }
   371  
   372  // TryRequestDevice1 calls the method "Bluetooth.requestDevice"
   373  // in a try/catch block and returns (_, err, ok = false) when it went through
   374  // the catch clause.
   375  func (this Bluetooth) TryRequestDevice1() (ret js.Promise[BluetoothDevice], exception js.Any, ok bool) {
   376  	ok = js.True == bindings.TryBluetoothRequestDevice1(
   377  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   378  	)
   379  
   380  	return
   381  }
   382  
   383  type BluetoothManufacturerDataMap struct {
   384  	ref js.Ref
   385  }
   386  
   387  func (this BluetoothManufacturerDataMap) Once() BluetoothManufacturerDataMap {
   388  	this.ref.Once()
   389  	return this
   390  }
   391  
   392  func (this BluetoothManufacturerDataMap) Ref() js.Ref {
   393  	return this.ref
   394  }
   395  
   396  func (this BluetoothManufacturerDataMap) FromRef(ref js.Ref) BluetoothManufacturerDataMap {
   397  	this.ref = ref
   398  	return this
   399  }
   400  
   401  func (this BluetoothManufacturerDataMap) Free() {
   402  	this.ref.Free()
   403  }
   404  
   405  type BluetoothServiceDataMap struct {
   406  	ref js.Ref
   407  }
   408  
   409  func (this BluetoothServiceDataMap) Once() BluetoothServiceDataMap {
   410  	this.ref.Once()
   411  	return this
   412  }
   413  
   414  func (this BluetoothServiceDataMap) Ref() js.Ref {
   415  	return this.ref
   416  }
   417  
   418  func (this BluetoothServiceDataMap) FromRef(ref js.Ref) BluetoothServiceDataMap {
   419  	this.ref = ref
   420  	return this
   421  }
   422  
   423  func (this BluetoothServiceDataMap) Free() {
   424  	this.ref.Free()
   425  }
   426  
   427  type BluetoothAdvertisingEventInit struct {
   428  	// Device is "BluetoothAdvertisingEventInit.device"
   429  	//
   430  	// Required
   431  	Device BluetoothDevice
   432  	// Uuids is "BluetoothAdvertisingEventInit.uuids"
   433  	//
   434  	// Optional
   435  	Uuids js.Array[OneOf_String_Uint32]
   436  	// Name is "BluetoothAdvertisingEventInit.name"
   437  	//
   438  	// Optional
   439  	Name js.String
   440  	// Appearance is "BluetoothAdvertisingEventInit.appearance"
   441  	//
   442  	// Optional
   443  	//
   444  	// NOTE: FFI_USE_Appearance MUST be set to true to make this field effective.
   445  	Appearance uint16
   446  	// TxPower is "BluetoothAdvertisingEventInit.txPower"
   447  	//
   448  	// Optional
   449  	//
   450  	// NOTE: FFI_USE_TxPower MUST be set to true to make this field effective.
   451  	TxPower int8
   452  	// Rssi is "BluetoothAdvertisingEventInit.rssi"
   453  	//
   454  	// Optional
   455  	//
   456  	// NOTE: FFI_USE_Rssi MUST be set to true to make this field effective.
   457  	Rssi int8
   458  	// ManufacturerData is "BluetoothAdvertisingEventInit.manufacturerData"
   459  	//
   460  	// Optional
   461  	ManufacturerData BluetoothManufacturerDataMap
   462  	// ServiceData is "BluetoothAdvertisingEventInit.serviceData"
   463  	//
   464  	// Optional
   465  	ServiceData BluetoothServiceDataMap
   466  	// Bubbles is "BluetoothAdvertisingEventInit.bubbles"
   467  	//
   468  	// Optional, defaults to false.
   469  	//
   470  	// NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective.
   471  	Bubbles bool
   472  	// Cancelable is "BluetoothAdvertisingEventInit.cancelable"
   473  	//
   474  	// Optional, defaults to false.
   475  	//
   476  	// NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective.
   477  	Cancelable bool
   478  	// Composed is "BluetoothAdvertisingEventInit.composed"
   479  	//
   480  	// Optional, defaults to false.
   481  	//
   482  	// NOTE: FFI_USE_Composed MUST be set to true to make this field effective.
   483  	Composed bool
   484  
   485  	FFI_USE_Appearance bool // for Appearance.
   486  	FFI_USE_TxPower    bool // for TxPower.
   487  	FFI_USE_Rssi       bool // for Rssi.
   488  	FFI_USE_Bubbles    bool // for Bubbles.
   489  	FFI_USE_Cancelable bool // for Cancelable.
   490  	FFI_USE_Composed   bool // for Composed.
   491  
   492  	FFI_USE bool
   493  }
   494  
   495  // FromRef calls UpdateFrom and returns a BluetoothAdvertisingEventInit with all fields set.
   496  func (p BluetoothAdvertisingEventInit) FromRef(ref js.Ref) BluetoothAdvertisingEventInit {
   497  	p.UpdateFrom(ref)
   498  	return p
   499  }
   500  
   501  // New creates a new BluetoothAdvertisingEventInit in the application heap.
   502  func (p BluetoothAdvertisingEventInit) New() js.Ref {
   503  	return bindings.BluetoothAdvertisingEventInitJSLoad(
   504  		js.Pointer(&p), js.True, 0,
   505  	)
   506  }
   507  
   508  // UpdateFrom copies value of all fields of the heap object to p.
   509  func (p *BluetoothAdvertisingEventInit) UpdateFrom(ref js.Ref) {
   510  	bindings.BluetoothAdvertisingEventInitJSStore(
   511  		js.Pointer(p), ref,
   512  	)
   513  }
   514  
   515  // Update writes all fields of the p to the heap object referenced by ref.
   516  func (p *BluetoothAdvertisingEventInit) Update(ref js.Ref) {
   517  	bindings.BluetoothAdvertisingEventInitJSLoad(
   518  		js.Pointer(p), js.False, ref,
   519  	)
   520  }
   521  
   522  // FreeMembers frees fields with heap reference, if recursive is true
   523  // free all heap references reachable from p.
   524  func (p *BluetoothAdvertisingEventInit) FreeMembers(recursive bool) {
   525  	js.Free(
   526  		p.Device.Ref(),
   527  		p.Uuids.Ref(),
   528  		p.Name.Ref(),
   529  		p.ManufacturerData.Ref(),
   530  		p.ServiceData.Ref(),
   531  	)
   532  	p.Device = p.Device.FromRef(js.Undefined)
   533  	p.Uuids = p.Uuids.FromRef(js.Undefined)
   534  	p.Name = p.Name.FromRef(js.Undefined)
   535  	p.ManufacturerData = p.ManufacturerData.FromRef(js.Undefined)
   536  	p.ServiceData = p.ServiceData.FromRef(js.Undefined)
   537  }
   538  
   539  func NewBluetoothAdvertisingEvent(typ js.String, init BluetoothAdvertisingEventInit) (ret BluetoothAdvertisingEvent) {
   540  	ret.ref = bindings.NewBluetoothAdvertisingEventByBluetoothAdvertisingEvent(
   541  		typ.Ref(),
   542  		js.Pointer(&init))
   543  	return
   544  }
   545  
   546  type BluetoothAdvertisingEvent struct {
   547  	Event
   548  }
   549  
   550  func (this BluetoothAdvertisingEvent) Once() BluetoothAdvertisingEvent {
   551  	this.ref.Once()
   552  	return this
   553  }
   554  
   555  func (this BluetoothAdvertisingEvent) Ref() js.Ref {
   556  	return this.Event.Ref()
   557  }
   558  
   559  func (this BluetoothAdvertisingEvent) FromRef(ref js.Ref) BluetoothAdvertisingEvent {
   560  	this.Event = this.Event.FromRef(ref)
   561  	return this
   562  }
   563  
   564  func (this BluetoothAdvertisingEvent) Free() {
   565  	this.ref.Free()
   566  }
   567  
   568  // Device returns the value of property "BluetoothAdvertisingEvent.device".
   569  //
   570  // It returns ok=false if there is no such property.
   571  func (this BluetoothAdvertisingEvent) Device() (ret BluetoothDevice, ok bool) {
   572  	ok = js.True == bindings.GetBluetoothAdvertisingEventDevice(
   573  		this.ref, js.Pointer(&ret),
   574  	)
   575  	return
   576  }
   577  
   578  // Uuids returns the value of property "BluetoothAdvertisingEvent.uuids".
   579  //
   580  // It returns ok=false if there is no such property.
   581  func (this BluetoothAdvertisingEvent) Uuids() (ret js.FrozenArray[UUID], ok bool) {
   582  	ok = js.True == bindings.GetBluetoothAdvertisingEventUuids(
   583  		this.ref, js.Pointer(&ret),
   584  	)
   585  	return
   586  }
   587  
   588  // Name returns the value of property "BluetoothAdvertisingEvent.name".
   589  //
   590  // It returns ok=false if there is no such property.
   591  func (this BluetoothAdvertisingEvent) Name() (ret js.String, ok bool) {
   592  	ok = js.True == bindings.GetBluetoothAdvertisingEventName(
   593  		this.ref, js.Pointer(&ret),
   594  	)
   595  	return
   596  }
   597  
   598  // Appearance returns the value of property "BluetoothAdvertisingEvent.appearance".
   599  //
   600  // It returns ok=false if there is no such property.
   601  func (this BluetoothAdvertisingEvent) Appearance() (ret uint16, ok bool) {
   602  	ok = js.True == bindings.GetBluetoothAdvertisingEventAppearance(
   603  		this.ref, js.Pointer(&ret),
   604  	)
   605  	return
   606  }
   607  
   608  // TxPower returns the value of property "BluetoothAdvertisingEvent.txPower".
   609  //
   610  // It returns ok=false if there is no such property.
   611  func (this BluetoothAdvertisingEvent) TxPower() (ret int8, ok bool) {
   612  	ok = js.True == bindings.GetBluetoothAdvertisingEventTxPower(
   613  		this.ref, js.Pointer(&ret),
   614  	)
   615  	return
   616  }
   617  
   618  // Rssi returns the value of property "BluetoothAdvertisingEvent.rssi".
   619  //
   620  // It returns ok=false if there is no such property.
   621  func (this BluetoothAdvertisingEvent) Rssi() (ret int8, ok bool) {
   622  	ok = js.True == bindings.GetBluetoothAdvertisingEventRssi(
   623  		this.ref, js.Pointer(&ret),
   624  	)
   625  	return
   626  }
   627  
   628  // ManufacturerData returns the value of property "BluetoothAdvertisingEvent.manufacturerData".
   629  //
   630  // It returns ok=false if there is no such property.
   631  func (this BluetoothAdvertisingEvent) ManufacturerData() (ret BluetoothManufacturerDataMap, ok bool) {
   632  	ok = js.True == bindings.GetBluetoothAdvertisingEventManufacturerData(
   633  		this.ref, js.Pointer(&ret),
   634  	)
   635  	return
   636  }
   637  
   638  // ServiceData returns the value of property "BluetoothAdvertisingEvent.serviceData".
   639  //
   640  // It returns ok=false if there is no such property.
   641  func (this BluetoothAdvertisingEvent) ServiceData() (ret BluetoothServiceDataMap, ok bool) {
   642  	ok = js.True == bindings.GetBluetoothAdvertisingEventServiceData(
   643  		this.ref, js.Pointer(&ret),
   644  	)
   645  	return
   646  }
   647  
   648  type BluetoothDataFilterInit struct {
   649  	// DataPrefix is "BluetoothDataFilterInit.dataPrefix"
   650  	//
   651  	// Optional
   652  	DataPrefix BufferSource
   653  	// Mask is "BluetoothDataFilterInit.mask"
   654  	//
   655  	// Optional
   656  	Mask BufferSource
   657  
   658  	FFI_USE bool
   659  }
   660  
   661  // FromRef calls UpdateFrom and returns a BluetoothDataFilterInit with all fields set.
   662  func (p BluetoothDataFilterInit) FromRef(ref js.Ref) BluetoothDataFilterInit {
   663  	p.UpdateFrom(ref)
   664  	return p
   665  }
   666  
   667  // New creates a new BluetoothDataFilterInit in the application heap.
   668  func (p BluetoothDataFilterInit) New() js.Ref {
   669  	return bindings.BluetoothDataFilterInitJSLoad(
   670  		js.Pointer(&p), js.True, 0,
   671  	)
   672  }
   673  
   674  // UpdateFrom copies value of all fields of the heap object to p.
   675  func (p *BluetoothDataFilterInit) UpdateFrom(ref js.Ref) {
   676  	bindings.BluetoothDataFilterInitJSStore(
   677  		js.Pointer(p), ref,
   678  	)
   679  }
   680  
   681  // Update writes all fields of the p to the heap object referenced by ref.
   682  func (p *BluetoothDataFilterInit) Update(ref js.Ref) {
   683  	bindings.BluetoothDataFilterInitJSLoad(
   684  		js.Pointer(p), js.False, ref,
   685  	)
   686  }
   687  
   688  // FreeMembers frees fields with heap reference, if recursive is true
   689  // free all heap references reachable from p.
   690  func (p *BluetoothDataFilterInit) FreeMembers(recursive bool) {
   691  	js.Free(
   692  		p.DataPrefix.Ref(),
   693  		p.Mask.Ref(),
   694  	)
   695  	p.DataPrefix = p.DataPrefix.FromRef(js.Undefined)
   696  	p.Mask = p.Mask.FromRef(js.Undefined)
   697  }
   698  
   699  type BluetoothPermissionDescriptor struct {
   700  	// DeviceId is "BluetoothPermissionDescriptor.deviceId"
   701  	//
   702  	// Optional
   703  	DeviceId js.String
   704  	// Filters is "BluetoothPermissionDescriptor.filters"
   705  	//
   706  	// Optional
   707  	Filters js.Array[BluetoothLEScanFilterInit]
   708  	// OptionalServices is "BluetoothPermissionDescriptor.optionalServices"
   709  	//
   710  	// Optional, defaults to [].
   711  	OptionalServices js.Array[BluetoothServiceUUID]
   712  	// OptionalManufacturerData is "BluetoothPermissionDescriptor.optionalManufacturerData"
   713  	//
   714  	// Optional, defaults to [].
   715  	OptionalManufacturerData js.Array[uint16]
   716  	// AcceptAllDevices is "BluetoothPermissionDescriptor.acceptAllDevices"
   717  	//
   718  	// Optional, defaults to false.
   719  	//
   720  	// NOTE: FFI_USE_AcceptAllDevices MUST be set to true to make this field effective.
   721  	AcceptAllDevices bool
   722  	// Name is "BluetoothPermissionDescriptor.name"
   723  	//
   724  	// Required
   725  	Name js.String
   726  
   727  	FFI_USE_AcceptAllDevices bool // for AcceptAllDevices.
   728  
   729  	FFI_USE bool
   730  }
   731  
   732  // FromRef calls UpdateFrom and returns a BluetoothPermissionDescriptor with all fields set.
   733  func (p BluetoothPermissionDescriptor) FromRef(ref js.Ref) BluetoothPermissionDescriptor {
   734  	p.UpdateFrom(ref)
   735  	return p
   736  }
   737  
   738  // New creates a new BluetoothPermissionDescriptor in the application heap.
   739  func (p BluetoothPermissionDescriptor) New() js.Ref {
   740  	return bindings.BluetoothPermissionDescriptorJSLoad(
   741  		js.Pointer(&p), js.True, 0,
   742  	)
   743  }
   744  
   745  // UpdateFrom copies value of all fields of the heap object to p.
   746  func (p *BluetoothPermissionDescriptor) UpdateFrom(ref js.Ref) {
   747  	bindings.BluetoothPermissionDescriptorJSStore(
   748  		js.Pointer(p), ref,
   749  	)
   750  }
   751  
   752  // Update writes all fields of the p to the heap object referenced by ref.
   753  func (p *BluetoothPermissionDescriptor) Update(ref js.Ref) {
   754  	bindings.BluetoothPermissionDescriptorJSLoad(
   755  		js.Pointer(p), js.False, ref,
   756  	)
   757  }
   758  
   759  // FreeMembers frees fields with heap reference, if recursive is true
   760  // free all heap references reachable from p.
   761  func (p *BluetoothPermissionDescriptor) FreeMembers(recursive bool) {
   762  	js.Free(
   763  		p.DeviceId.Ref(),
   764  		p.Filters.Ref(),
   765  		p.OptionalServices.Ref(),
   766  		p.OptionalManufacturerData.Ref(),
   767  		p.Name.Ref(),
   768  	)
   769  	p.DeviceId = p.DeviceId.FromRef(js.Undefined)
   770  	p.Filters = p.Filters.FromRef(js.Undefined)
   771  	p.OptionalServices = p.OptionalServices.FromRef(js.Undefined)
   772  	p.OptionalManufacturerData = p.OptionalManufacturerData.FromRef(js.Undefined)
   773  	p.Name = p.Name.FromRef(js.Undefined)
   774  }
   775  
   776  type BluetoothPermissionResult struct {
   777  	PermissionStatus
   778  }
   779  
   780  func (this BluetoothPermissionResult) Once() BluetoothPermissionResult {
   781  	this.ref.Once()
   782  	return this
   783  }
   784  
   785  func (this BluetoothPermissionResult) Ref() js.Ref {
   786  	return this.PermissionStatus.Ref()
   787  }
   788  
   789  func (this BluetoothPermissionResult) FromRef(ref js.Ref) BluetoothPermissionResult {
   790  	this.PermissionStatus = this.PermissionStatus.FromRef(ref)
   791  	return this
   792  }
   793  
   794  func (this BluetoothPermissionResult) Free() {
   795  	this.ref.Free()
   796  }
   797  
   798  // Devices returns the value of property "BluetoothPermissionResult.devices".
   799  //
   800  // It returns ok=false if there is no such property.
   801  func (this BluetoothPermissionResult) Devices() (ret js.FrozenArray[BluetoothDevice], ok bool) {
   802  	ok = js.True == bindings.GetBluetoothPermissionResultDevices(
   803  		this.ref, js.Pointer(&ret),
   804  	)
   805  	return
   806  }
   807  
   808  // SetDevices sets the value of property "BluetoothPermissionResult.devices" to val.
   809  //
   810  // It returns false if the property cannot be set.
   811  func (this BluetoothPermissionResult) SetDevices(val js.FrozenArray[BluetoothDevice]) bool {
   812  	return js.True == bindings.SetBluetoothPermissionResultDevices(
   813  		this.ref,
   814  		val.Ref(),
   815  	)
   816  }
   817  
   818  type BluetoothPermissionStorage struct {
   819  	// AllowedDevices is "BluetoothPermissionStorage.allowedDevices"
   820  	//
   821  	// Required
   822  	AllowedDevices js.Array[AllowedBluetoothDevice]
   823  
   824  	FFI_USE bool
   825  }
   826  
   827  // FromRef calls UpdateFrom and returns a BluetoothPermissionStorage with all fields set.
   828  func (p BluetoothPermissionStorage) FromRef(ref js.Ref) BluetoothPermissionStorage {
   829  	p.UpdateFrom(ref)
   830  	return p
   831  }
   832  
   833  // New creates a new BluetoothPermissionStorage in the application heap.
   834  func (p BluetoothPermissionStorage) New() js.Ref {
   835  	return bindings.BluetoothPermissionStorageJSLoad(
   836  		js.Pointer(&p), js.True, 0,
   837  	)
   838  }
   839  
   840  // UpdateFrom copies value of all fields of the heap object to p.
   841  func (p *BluetoothPermissionStorage) UpdateFrom(ref js.Ref) {
   842  	bindings.BluetoothPermissionStorageJSStore(
   843  		js.Pointer(p), ref,
   844  	)
   845  }
   846  
   847  // Update writes all fields of the p to the heap object referenced by ref.
   848  func (p *BluetoothPermissionStorage) Update(ref js.Ref) {
   849  	bindings.BluetoothPermissionStorageJSLoad(
   850  		js.Pointer(p), js.False, ref,
   851  	)
   852  }
   853  
   854  // FreeMembers frees fields with heap reference, if recursive is true
   855  // free all heap references reachable from p.
   856  func (p *BluetoothPermissionStorage) FreeMembers(recursive bool) {
   857  	js.Free(
   858  		p.AllowedDevices.Ref(),
   859  	)
   860  	p.AllowedDevices = p.AllowedDevices.FromRef(js.Undefined)
   861  }
   862  
   863  type BluetoothUUID struct {
   864  	ref js.Ref
   865  }
   866  
   867  func (this BluetoothUUID) Once() BluetoothUUID {
   868  	this.ref.Once()
   869  	return this
   870  }
   871  
   872  func (this BluetoothUUID) Ref() js.Ref {
   873  	return this.ref
   874  }
   875  
   876  func (this BluetoothUUID) FromRef(ref js.Ref) BluetoothUUID {
   877  	this.ref = ref
   878  	return this
   879  }
   880  
   881  func (this BluetoothUUID) Free() {
   882  	this.ref.Free()
   883  }
   884  
   885  // HasFuncGetService returns true if the static method "BluetoothUUID.getService" exists.
   886  func (this BluetoothUUID) HasFuncGetService() bool {
   887  	return js.True == bindings.HasFuncBluetoothUUIDGetService(
   888  		this.ref,
   889  	)
   890  }
   891  
   892  // FuncGetService returns the static method "BluetoothUUID.getService".
   893  func (this BluetoothUUID) FuncGetService() (fn js.Func[func(name OneOf_String_Uint32) UUID]) {
   894  	bindings.FuncBluetoothUUIDGetService(
   895  		this.ref, js.Pointer(&fn),
   896  	)
   897  	return
   898  }
   899  
   900  // GetService calls the static method "BluetoothUUID.getService".
   901  func (this BluetoothUUID) GetService(name OneOf_String_Uint32) (ret UUID) {
   902  	bindings.CallBluetoothUUIDGetService(
   903  		this.ref, js.Pointer(&ret),
   904  		name.Ref(),
   905  	)
   906  
   907  	return
   908  }
   909  
   910  // TryGetService calls the static method "BluetoothUUID.getService"
   911  // in a try/catch block and returns (_, err, ok = false) when it went through
   912  // the catch clause.
   913  func (this BluetoothUUID) TryGetService(name OneOf_String_Uint32) (ret UUID, exception js.Any, ok bool) {
   914  	ok = js.True == bindings.TryBluetoothUUIDGetService(
   915  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   916  		name.Ref(),
   917  	)
   918  
   919  	return
   920  }
   921  
   922  // HasFuncGetCharacteristic returns true if the static method "BluetoothUUID.getCharacteristic" exists.
   923  func (this BluetoothUUID) HasFuncGetCharacteristic() bool {
   924  	return js.True == bindings.HasFuncBluetoothUUIDGetCharacteristic(
   925  		this.ref,
   926  	)
   927  }
   928  
   929  // FuncGetCharacteristic returns the static method "BluetoothUUID.getCharacteristic".
   930  func (this BluetoothUUID) FuncGetCharacteristic() (fn js.Func[func(name OneOf_String_Uint32) UUID]) {
   931  	bindings.FuncBluetoothUUIDGetCharacteristic(
   932  		this.ref, js.Pointer(&fn),
   933  	)
   934  	return
   935  }
   936  
   937  // GetCharacteristic calls the static method "BluetoothUUID.getCharacteristic".
   938  func (this BluetoothUUID) GetCharacteristic(name OneOf_String_Uint32) (ret UUID) {
   939  	bindings.CallBluetoothUUIDGetCharacteristic(
   940  		this.ref, js.Pointer(&ret),
   941  		name.Ref(),
   942  	)
   943  
   944  	return
   945  }
   946  
   947  // TryGetCharacteristic calls the static method "BluetoothUUID.getCharacteristic"
   948  // in a try/catch block and returns (_, err, ok = false) when it went through
   949  // the catch clause.
   950  func (this BluetoothUUID) TryGetCharacteristic(name OneOf_String_Uint32) (ret UUID, exception js.Any, ok bool) {
   951  	ok = js.True == bindings.TryBluetoothUUIDGetCharacteristic(
   952  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   953  		name.Ref(),
   954  	)
   955  
   956  	return
   957  }
   958  
   959  // HasFuncGetDescriptor returns true if the static method "BluetoothUUID.getDescriptor" exists.
   960  func (this BluetoothUUID) HasFuncGetDescriptor() bool {
   961  	return js.True == bindings.HasFuncBluetoothUUIDGetDescriptor(
   962  		this.ref,
   963  	)
   964  }
   965  
   966  // FuncGetDescriptor returns the static method "BluetoothUUID.getDescriptor".
   967  func (this BluetoothUUID) FuncGetDescriptor() (fn js.Func[func(name OneOf_String_Uint32) UUID]) {
   968  	bindings.FuncBluetoothUUIDGetDescriptor(
   969  		this.ref, js.Pointer(&fn),
   970  	)
   971  	return
   972  }
   973  
   974  // GetDescriptor calls the static method "BluetoothUUID.getDescriptor".
   975  func (this BluetoothUUID) GetDescriptor(name OneOf_String_Uint32) (ret UUID) {
   976  	bindings.CallBluetoothUUIDGetDescriptor(
   977  		this.ref, js.Pointer(&ret),
   978  		name.Ref(),
   979  	)
   980  
   981  	return
   982  }
   983  
   984  // TryGetDescriptor calls the static method "BluetoothUUID.getDescriptor"
   985  // in a try/catch block and returns (_, err, ok = false) when it went through
   986  // the catch clause.
   987  func (this BluetoothUUID) TryGetDescriptor(name OneOf_String_Uint32) (ret UUID, exception js.Any, ok bool) {
   988  	ok = js.True == bindings.TryBluetoothUUIDGetDescriptor(
   989  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   990  		name.Ref(),
   991  	)
   992  
   993  	return
   994  }
   995  
   996  // HasFuncCanonicalUUID returns true if the static method "BluetoothUUID.canonicalUUID" exists.
   997  func (this BluetoothUUID) HasFuncCanonicalUUID() bool {
   998  	return js.True == bindings.HasFuncBluetoothUUIDCanonicalUUID(
   999  		this.ref,
  1000  	)
  1001  }
  1002  
  1003  // FuncCanonicalUUID returns the static method "BluetoothUUID.canonicalUUID".
  1004  func (this BluetoothUUID) FuncCanonicalUUID() (fn js.Func[func(alias uint32) UUID]) {
  1005  	bindings.FuncBluetoothUUIDCanonicalUUID(
  1006  		this.ref, js.Pointer(&fn),
  1007  	)
  1008  	return
  1009  }
  1010  
  1011  // CanonicalUUID calls the static method "BluetoothUUID.canonicalUUID".
  1012  func (this BluetoothUUID) CanonicalUUID(alias uint32) (ret UUID) {
  1013  	bindings.CallBluetoothUUIDCanonicalUUID(
  1014  		this.ref, js.Pointer(&ret),
  1015  		uint32(alias),
  1016  	)
  1017  
  1018  	return
  1019  }
  1020  
  1021  // TryCanonicalUUID calls the static method "BluetoothUUID.canonicalUUID"
  1022  // in a try/catch block and returns (_, err, ok = false) when it went through
  1023  // the catch clause.
  1024  func (this BluetoothUUID) TryCanonicalUUID(alias uint32) (ret UUID, exception js.Any, ok bool) {
  1025  	ok = js.True == bindings.TryBluetoothUUIDCanonicalUUID(
  1026  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1027  		uint32(alias),
  1028  	)
  1029  
  1030  	return
  1031  }
  1032  
  1033  type BreakType uint32
  1034  
  1035  const (
  1036  	_ BreakType = iota
  1037  
  1038  	BreakType_NONE
  1039  	BreakType_LINE
  1040  	BreakType_COLUMN
  1041  	BreakType_PAGE
  1042  	BreakType_REGION
  1043  )
  1044  
  1045  func (BreakType) FromRef(str js.Ref) BreakType {
  1046  	return BreakType(bindings.ConstOfBreakType(str))
  1047  }
  1048  
  1049  func (x BreakType) String() (string, bool) {
  1050  	switch x {
  1051  	case BreakType_NONE:
  1052  		return "none", true
  1053  	case BreakType_LINE:
  1054  		return "line", true
  1055  	case BreakType_COLUMN:
  1056  		return "column", true
  1057  	case BreakType_PAGE:
  1058  		return "page", true
  1059  	case BreakType_REGION:
  1060  		return "region", true
  1061  	default:
  1062  		return "", false
  1063  	}
  1064  }
  1065  
  1066  type IntrinsicSizes struct {
  1067  	ref js.Ref
  1068  }
  1069  
  1070  func (this IntrinsicSizes) Once() IntrinsicSizes {
  1071  	this.ref.Once()
  1072  	return this
  1073  }
  1074  
  1075  func (this IntrinsicSizes) Ref() js.Ref {
  1076  	return this.ref
  1077  }
  1078  
  1079  func (this IntrinsicSizes) FromRef(ref js.Ref) IntrinsicSizes {
  1080  	this.ref = ref
  1081  	return this
  1082  }
  1083  
  1084  func (this IntrinsicSizes) Free() {
  1085  	this.ref.Free()
  1086  }
  1087  
  1088  // MinContentSize returns the value of property "IntrinsicSizes.minContentSize".
  1089  //
  1090  // It returns ok=false if there is no such property.
  1091  func (this IntrinsicSizes) MinContentSize() (ret float64, ok bool) {
  1092  	ok = js.True == bindings.GetIntrinsicSizesMinContentSize(
  1093  		this.ref, js.Pointer(&ret),
  1094  	)
  1095  	return
  1096  }
  1097  
  1098  // MaxContentSize returns the value of property "IntrinsicSizes.maxContentSize".
  1099  //
  1100  // It returns ok=false if there is no such property.
  1101  func (this IntrinsicSizes) MaxContentSize() (ret float64, ok bool) {
  1102  	ok = js.True == bindings.GetIntrinsicSizesMaxContentSize(
  1103  		this.ref, js.Pointer(&ret),
  1104  	)
  1105  	return
  1106  }
  1107  
  1108  type LayoutFragment struct {
  1109  	ref js.Ref
  1110  }
  1111  
  1112  func (this LayoutFragment) Once() LayoutFragment {
  1113  	this.ref.Once()
  1114  	return this
  1115  }
  1116  
  1117  func (this LayoutFragment) Ref() js.Ref {
  1118  	return this.ref
  1119  }
  1120  
  1121  func (this LayoutFragment) FromRef(ref js.Ref) LayoutFragment {
  1122  	this.ref = ref
  1123  	return this
  1124  }
  1125  
  1126  func (this LayoutFragment) Free() {
  1127  	this.ref.Free()
  1128  }
  1129  
  1130  // InlineSize returns the value of property "LayoutFragment.inlineSize".
  1131  //
  1132  // It returns ok=false if there is no such property.
  1133  func (this LayoutFragment) InlineSize() (ret float64, ok bool) {
  1134  	ok = js.True == bindings.GetLayoutFragmentInlineSize(
  1135  		this.ref, js.Pointer(&ret),
  1136  	)
  1137  	return
  1138  }
  1139  
  1140  // BlockSize returns the value of property "LayoutFragment.blockSize".
  1141  //
  1142  // It returns ok=false if there is no such property.
  1143  func (this LayoutFragment) BlockSize() (ret float64, ok bool) {
  1144  	ok = js.True == bindings.GetLayoutFragmentBlockSize(
  1145  		this.ref, js.Pointer(&ret),
  1146  	)
  1147  	return
  1148  }
  1149  
  1150  // InlineOffset returns the value of property "LayoutFragment.inlineOffset".
  1151  //
  1152  // It returns ok=false if there is no such property.
  1153  func (this LayoutFragment) InlineOffset() (ret float64, ok bool) {
  1154  	ok = js.True == bindings.GetLayoutFragmentInlineOffset(
  1155  		this.ref, js.Pointer(&ret),
  1156  	)
  1157  	return
  1158  }
  1159  
  1160  // SetInlineOffset sets the value of property "LayoutFragment.inlineOffset" to val.
  1161  //
  1162  // It returns false if the property cannot be set.
  1163  func (this LayoutFragment) SetInlineOffset(val float64) bool {
  1164  	return js.True == bindings.SetLayoutFragmentInlineOffset(
  1165  		this.ref,
  1166  		float64(val),
  1167  	)
  1168  }
  1169  
  1170  // BlockOffset returns the value of property "LayoutFragment.blockOffset".
  1171  //
  1172  // It returns ok=false if there is no such property.
  1173  func (this LayoutFragment) BlockOffset() (ret float64, ok bool) {
  1174  	ok = js.True == bindings.GetLayoutFragmentBlockOffset(
  1175  		this.ref, js.Pointer(&ret),
  1176  	)
  1177  	return
  1178  }
  1179  
  1180  // SetBlockOffset sets the value of property "LayoutFragment.blockOffset" to val.
  1181  //
  1182  // It returns false if the property cannot be set.
  1183  func (this LayoutFragment) SetBlockOffset(val float64) bool {
  1184  	return js.True == bindings.SetLayoutFragmentBlockOffset(
  1185  		this.ref,
  1186  		float64(val),
  1187  	)
  1188  }
  1189  
  1190  // Data returns the value of property "LayoutFragment.data".
  1191  //
  1192  // It returns ok=false if there is no such property.
  1193  func (this LayoutFragment) Data() (ret js.Any, ok bool) {
  1194  	ok = js.True == bindings.GetLayoutFragmentData(
  1195  		this.ref, js.Pointer(&ret),
  1196  	)
  1197  	return
  1198  }
  1199  
  1200  // BreakToken returns the value of property "LayoutFragment.breakToken".
  1201  //
  1202  // It returns ok=false if there is no such property.
  1203  func (this LayoutFragment) BreakToken() (ret ChildBreakToken, ok bool) {
  1204  	ok = js.True == bindings.GetLayoutFragmentBreakToken(
  1205  		this.ref, js.Pointer(&ret),
  1206  	)
  1207  	return
  1208  }
  1209  
  1210  type LayoutConstraintsOptions struct {
  1211  	// AvailableInlineSize is "LayoutConstraintsOptions.availableInlineSize"
  1212  	//
  1213  	// Optional
  1214  	//
  1215  	// NOTE: FFI_USE_AvailableInlineSize MUST be set to true to make this field effective.
  1216  	AvailableInlineSize float64
  1217  	// AvailableBlockSize is "LayoutConstraintsOptions.availableBlockSize"
  1218  	//
  1219  	// Optional
  1220  	//
  1221  	// NOTE: FFI_USE_AvailableBlockSize MUST be set to true to make this field effective.
  1222  	AvailableBlockSize float64
  1223  	// FixedInlineSize is "LayoutConstraintsOptions.fixedInlineSize"
  1224  	//
  1225  	// Optional
  1226  	//
  1227  	// NOTE: FFI_USE_FixedInlineSize MUST be set to true to make this field effective.
  1228  	FixedInlineSize float64
  1229  	// FixedBlockSize is "LayoutConstraintsOptions.fixedBlockSize"
  1230  	//
  1231  	// Optional
  1232  	//
  1233  	// NOTE: FFI_USE_FixedBlockSize MUST be set to true to make this field effective.
  1234  	FixedBlockSize float64
  1235  	// PercentageInlineSize is "LayoutConstraintsOptions.percentageInlineSize"
  1236  	//
  1237  	// Optional
  1238  	//
  1239  	// NOTE: FFI_USE_PercentageInlineSize MUST be set to true to make this field effective.
  1240  	PercentageInlineSize float64
  1241  	// PercentageBlockSize is "LayoutConstraintsOptions.percentageBlockSize"
  1242  	//
  1243  	// Optional
  1244  	//
  1245  	// NOTE: FFI_USE_PercentageBlockSize MUST be set to true to make this field effective.
  1246  	PercentageBlockSize float64
  1247  	// BlockFragmentationOffset is "LayoutConstraintsOptions.blockFragmentationOffset"
  1248  	//
  1249  	// Optional
  1250  	//
  1251  	// NOTE: FFI_USE_BlockFragmentationOffset MUST be set to true to make this field effective.
  1252  	BlockFragmentationOffset float64
  1253  	// BlockFragmentationType is "LayoutConstraintsOptions.blockFragmentationType"
  1254  	//
  1255  	// Optional, defaults to "none".
  1256  	BlockFragmentationType BlockFragmentationType
  1257  	// Data is "LayoutConstraintsOptions.data"
  1258  	//
  1259  	// Optional
  1260  	Data js.Any
  1261  
  1262  	FFI_USE_AvailableInlineSize      bool // for AvailableInlineSize.
  1263  	FFI_USE_AvailableBlockSize       bool // for AvailableBlockSize.
  1264  	FFI_USE_FixedInlineSize          bool // for FixedInlineSize.
  1265  	FFI_USE_FixedBlockSize           bool // for FixedBlockSize.
  1266  	FFI_USE_PercentageInlineSize     bool // for PercentageInlineSize.
  1267  	FFI_USE_PercentageBlockSize      bool // for PercentageBlockSize.
  1268  	FFI_USE_BlockFragmentationOffset bool // for BlockFragmentationOffset.
  1269  
  1270  	FFI_USE bool
  1271  }
  1272  
  1273  // FromRef calls UpdateFrom and returns a LayoutConstraintsOptions with all fields set.
  1274  func (p LayoutConstraintsOptions) FromRef(ref js.Ref) LayoutConstraintsOptions {
  1275  	p.UpdateFrom(ref)
  1276  	return p
  1277  }
  1278  
  1279  // New creates a new LayoutConstraintsOptions in the application heap.
  1280  func (p LayoutConstraintsOptions) New() js.Ref {
  1281  	return bindings.LayoutConstraintsOptionsJSLoad(
  1282  		js.Pointer(&p), js.True, 0,
  1283  	)
  1284  }
  1285  
  1286  // UpdateFrom copies value of all fields of the heap object to p.
  1287  func (p *LayoutConstraintsOptions) UpdateFrom(ref js.Ref) {
  1288  	bindings.LayoutConstraintsOptionsJSStore(
  1289  		js.Pointer(p), ref,
  1290  	)
  1291  }
  1292  
  1293  // Update writes all fields of the p to the heap object referenced by ref.
  1294  func (p *LayoutConstraintsOptions) Update(ref js.Ref) {
  1295  	bindings.LayoutConstraintsOptionsJSLoad(
  1296  		js.Pointer(p), js.False, ref,
  1297  	)
  1298  }
  1299  
  1300  // FreeMembers frees fields with heap reference, if recursive is true
  1301  // free all heap references reachable from p.
  1302  func (p *LayoutConstraintsOptions) FreeMembers(recursive bool) {
  1303  	js.Free(
  1304  		p.Data.Ref(),
  1305  	)
  1306  	p.Data = p.Data.FromRef(js.Undefined)
  1307  }
  1308  
  1309  type LayoutChild struct {
  1310  	ref js.Ref
  1311  }
  1312  
  1313  func (this LayoutChild) Once() LayoutChild {
  1314  	this.ref.Once()
  1315  	return this
  1316  }
  1317  
  1318  func (this LayoutChild) Ref() js.Ref {
  1319  	return this.ref
  1320  }
  1321  
  1322  func (this LayoutChild) FromRef(ref js.Ref) LayoutChild {
  1323  	this.ref = ref
  1324  	return this
  1325  }
  1326  
  1327  func (this LayoutChild) Free() {
  1328  	this.ref.Free()
  1329  }
  1330  
  1331  // StyleMap returns the value of property "LayoutChild.styleMap".
  1332  //
  1333  // It returns ok=false if there is no such property.
  1334  func (this LayoutChild) StyleMap() (ret StylePropertyMapReadOnly, ok bool) {
  1335  	ok = js.True == bindings.GetLayoutChildStyleMap(
  1336  		this.ref, js.Pointer(&ret),
  1337  	)
  1338  	return
  1339  }
  1340  
  1341  // HasFuncIntrinsicSizes returns true if the method "LayoutChild.intrinsicSizes" exists.
  1342  func (this LayoutChild) HasFuncIntrinsicSizes() bool {
  1343  	return js.True == bindings.HasFuncLayoutChildIntrinsicSizes(
  1344  		this.ref,
  1345  	)
  1346  }
  1347  
  1348  // FuncIntrinsicSizes returns the method "LayoutChild.intrinsicSizes".
  1349  func (this LayoutChild) FuncIntrinsicSizes() (fn js.Func[func() js.Promise[IntrinsicSizes]]) {
  1350  	bindings.FuncLayoutChildIntrinsicSizes(
  1351  		this.ref, js.Pointer(&fn),
  1352  	)
  1353  	return
  1354  }
  1355  
  1356  // IntrinsicSizes calls the method "LayoutChild.intrinsicSizes".
  1357  func (this LayoutChild) IntrinsicSizes() (ret js.Promise[IntrinsicSizes]) {
  1358  	bindings.CallLayoutChildIntrinsicSizes(
  1359  		this.ref, js.Pointer(&ret),
  1360  	)
  1361  
  1362  	return
  1363  }
  1364  
  1365  // TryIntrinsicSizes calls the method "LayoutChild.intrinsicSizes"
  1366  // in a try/catch block and returns (_, err, ok = false) when it went through
  1367  // the catch clause.
  1368  func (this LayoutChild) TryIntrinsicSizes() (ret js.Promise[IntrinsicSizes], exception js.Any, ok bool) {
  1369  	ok = js.True == bindings.TryLayoutChildIntrinsicSizes(
  1370  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1371  	)
  1372  
  1373  	return
  1374  }
  1375  
  1376  // HasFuncLayoutNextFragment returns true if the method "LayoutChild.layoutNextFragment" exists.
  1377  func (this LayoutChild) HasFuncLayoutNextFragment() bool {
  1378  	return js.True == bindings.HasFuncLayoutChildLayoutNextFragment(
  1379  		this.ref,
  1380  	)
  1381  }
  1382  
  1383  // FuncLayoutNextFragment returns the method "LayoutChild.layoutNextFragment".
  1384  func (this LayoutChild) FuncLayoutNextFragment() (fn js.Func[func(constraints LayoutConstraintsOptions, breakToken ChildBreakToken) js.Promise[LayoutFragment]]) {
  1385  	bindings.FuncLayoutChildLayoutNextFragment(
  1386  		this.ref, js.Pointer(&fn),
  1387  	)
  1388  	return
  1389  }
  1390  
  1391  // LayoutNextFragment calls the method "LayoutChild.layoutNextFragment".
  1392  func (this LayoutChild) LayoutNextFragment(constraints LayoutConstraintsOptions, breakToken ChildBreakToken) (ret js.Promise[LayoutFragment]) {
  1393  	bindings.CallLayoutChildLayoutNextFragment(
  1394  		this.ref, js.Pointer(&ret),
  1395  		js.Pointer(&constraints),
  1396  		breakToken.Ref(),
  1397  	)
  1398  
  1399  	return
  1400  }
  1401  
  1402  // TryLayoutNextFragment calls the method "LayoutChild.layoutNextFragment"
  1403  // in a try/catch block and returns (_, err, ok = false) when it went through
  1404  // the catch clause.
  1405  func (this LayoutChild) TryLayoutNextFragment(constraints LayoutConstraintsOptions, breakToken ChildBreakToken) (ret js.Promise[LayoutFragment], exception js.Any, ok bool) {
  1406  	ok = js.True == bindings.TryLayoutChildLayoutNextFragment(
  1407  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1408  		js.Pointer(&constraints),
  1409  		breakToken.Ref(),
  1410  	)
  1411  
  1412  	return
  1413  }
  1414  
  1415  type ChildBreakToken struct {
  1416  	ref js.Ref
  1417  }
  1418  
  1419  func (this ChildBreakToken) Once() ChildBreakToken {
  1420  	this.ref.Once()
  1421  	return this
  1422  }
  1423  
  1424  func (this ChildBreakToken) Ref() js.Ref {
  1425  	return this.ref
  1426  }
  1427  
  1428  func (this ChildBreakToken) FromRef(ref js.Ref) ChildBreakToken {
  1429  	this.ref = ref
  1430  	return this
  1431  }
  1432  
  1433  func (this ChildBreakToken) Free() {
  1434  	this.ref.Free()
  1435  }
  1436  
  1437  // BreakType returns the value of property "ChildBreakToken.breakType".
  1438  //
  1439  // It returns ok=false if there is no such property.
  1440  func (this ChildBreakToken) BreakType() (ret BreakType, ok bool) {
  1441  	ok = js.True == bindings.GetChildBreakTokenBreakType(
  1442  		this.ref, js.Pointer(&ret),
  1443  	)
  1444  	return
  1445  }
  1446  
  1447  // Child returns the value of property "ChildBreakToken.child".
  1448  //
  1449  // It returns ok=false if there is no such property.
  1450  func (this ChildBreakToken) Child() (ret LayoutChild, ok bool) {
  1451  	ok = js.True == bindings.GetChildBreakTokenChild(
  1452  		this.ref, js.Pointer(&ret),
  1453  	)
  1454  	return
  1455  }
  1456  
  1457  type BreakToken struct {
  1458  	ref js.Ref
  1459  }
  1460  
  1461  func (this BreakToken) Once() BreakToken {
  1462  	this.ref.Once()
  1463  	return this
  1464  }
  1465  
  1466  func (this BreakToken) Ref() js.Ref {
  1467  	return this.ref
  1468  }
  1469  
  1470  func (this BreakToken) FromRef(ref js.Ref) BreakToken {
  1471  	this.ref = ref
  1472  	return this
  1473  }
  1474  
  1475  func (this BreakToken) Free() {
  1476  	this.ref.Free()
  1477  }
  1478  
  1479  // ChildBreakTokens returns the value of property "BreakToken.childBreakTokens".
  1480  //
  1481  // It returns ok=false if there is no such property.
  1482  func (this BreakToken) ChildBreakTokens() (ret js.FrozenArray[ChildBreakToken], ok bool) {
  1483  	ok = js.True == bindings.GetBreakTokenChildBreakTokens(
  1484  		this.ref, js.Pointer(&ret),
  1485  	)
  1486  	return
  1487  }
  1488  
  1489  // Data returns the value of property "BreakToken.data".
  1490  //
  1491  // It returns ok=false if there is no such property.
  1492  func (this BreakToken) Data() (ret js.Any, ok bool) {
  1493  	ok = js.True == bindings.GetBreakTokenData(
  1494  		this.ref, js.Pointer(&ret),
  1495  	)
  1496  	return
  1497  }
  1498  
  1499  type BreakTokenOptions struct {
  1500  	// ChildBreakTokens is "BreakTokenOptions.childBreakTokens"
  1501  	//
  1502  	// Optional
  1503  	ChildBreakTokens js.Array[ChildBreakToken]
  1504  	// Data is "BreakTokenOptions.data"
  1505  	//
  1506  	// Optional, defaults to null.
  1507  	Data js.Any
  1508  
  1509  	FFI_USE bool
  1510  }
  1511  
  1512  // FromRef calls UpdateFrom and returns a BreakTokenOptions with all fields set.
  1513  func (p BreakTokenOptions) FromRef(ref js.Ref) BreakTokenOptions {
  1514  	p.UpdateFrom(ref)
  1515  	return p
  1516  }
  1517  
  1518  // New creates a new BreakTokenOptions in the application heap.
  1519  func (p BreakTokenOptions) New() js.Ref {
  1520  	return bindings.BreakTokenOptionsJSLoad(
  1521  		js.Pointer(&p), js.True, 0,
  1522  	)
  1523  }
  1524  
  1525  // UpdateFrom copies value of all fields of the heap object to p.
  1526  func (p *BreakTokenOptions) UpdateFrom(ref js.Ref) {
  1527  	bindings.BreakTokenOptionsJSStore(
  1528  		js.Pointer(p), ref,
  1529  	)
  1530  }
  1531  
  1532  // Update writes all fields of the p to the heap object referenced by ref.
  1533  func (p *BreakTokenOptions) Update(ref js.Ref) {
  1534  	bindings.BreakTokenOptionsJSLoad(
  1535  		js.Pointer(p), js.False, ref,
  1536  	)
  1537  }
  1538  
  1539  // FreeMembers frees fields with heap reference, if recursive is true
  1540  // free all heap references reachable from p.
  1541  func (p *BreakTokenOptions) FreeMembers(recursive bool) {
  1542  	js.Free(
  1543  		p.ChildBreakTokens.Ref(),
  1544  		p.Data.Ref(),
  1545  	)
  1546  	p.ChildBreakTokens = p.ChildBreakTokens.FromRef(js.Undefined)
  1547  	p.Data = p.Data.FromRef(js.Undefined)
  1548  }
  1549  
  1550  func NewBroadcastChannel(name js.String) (ret BroadcastChannel) {
  1551  	ret.ref = bindings.NewBroadcastChannelByBroadcastChannel(
  1552  		name.Ref())
  1553  	return
  1554  }
  1555  
  1556  type BroadcastChannel struct {
  1557  	EventTarget
  1558  }
  1559  
  1560  func (this BroadcastChannel) Once() BroadcastChannel {
  1561  	this.ref.Once()
  1562  	return this
  1563  }
  1564  
  1565  func (this BroadcastChannel) Ref() js.Ref {
  1566  	return this.EventTarget.Ref()
  1567  }
  1568  
  1569  func (this BroadcastChannel) FromRef(ref js.Ref) BroadcastChannel {
  1570  	this.EventTarget = this.EventTarget.FromRef(ref)
  1571  	return this
  1572  }
  1573  
  1574  func (this BroadcastChannel) Free() {
  1575  	this.ref.Free()
  1576  }
  1577  
  1578  // Name returns the value of property "BroadcastChannel.name".
  1579  //
  1580  // It returns ok=false if there is no such property.
  1581  func (this BroadcastChannel) Name() (ret js.String, ok bool) {
  1582  	ok = js.True == bindings.GetBroadcastChannelName(
  1583  		this.ref, js.Pointer(&ret),
  1584  	)
  1585  	return
  1586  }
  1587  
  1588  // HasFuncPostMessage returns true if the method "BroadcastChannel.postMessage" exists.
  1589  func (this BroadcastChannel) HasFuncPostMessage() bool {
  1590  	return js.True == bindings.HasFuncBroadcastChannelPostMessage(
  1591  		this.ref,
  1592  	)
  1593  }
  1594  
  1595  // FuncPostMessage returns the method "BroadcastChannel.postMessage".
  1596  func (this BroadcastChannel) FuncPostMessage() (fn js.Func[func(message js.Any)]) {
  1597  	bindings.FuncBroadcastChannelPostMessage(
  1598  		this.ref, js.Pointer(&fn),
  1599  	)
  1600  	return
  1601  }
  1602  
  1603  // PostMessage calls the method "BroadcastChannel.postMessage".
  1604  func (this BroadcastChannel) PostMessage(message js.Any) (ret js.Void) {
  1605  	bindings.CallBroadcastChannelPostMessage(
  1606  		this.ref, js.Pointer(&ret),
  1607  		message.Ref(),
  1608  	)
  1609  
  1610  	return
  1611  }
  1612  
  1613  // TryPostMessage calls the method "BroadcastChannel.postMessage"
  1614  // in a try/catch block and returns (_, err, ok = false) when it went through
  1615  // the catch clause.
  1616  func (this BroadcastChannel) TryPostMessage(message js.Any) (ret js.Void, exception js.Any, ok bool) {
  1617  	ok = js.True == bindings.TryBroadcastChannelPostMessage(
  1618  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1619  		message.Ref(),
  1620  	)
  1621  
  1622  	return
  1623  }
  1624  
  1625  // HasFuncClose returns true if the method "BroadcastChannel.close" exists.
  1626  func (this BroadcastChannel) HasFuncClose() bool {
  1627  	return js.True == bindings.HasFuncBroadcastChannelClose(
  1628  		this.ref,
  1629  	)
  1630  }
  1631  
  1632  // FuncClose returns the method "BroadcastChannel.close".
  1633  func (this BroadcastChannel) FuncClose() (fn js.Func[func()]) {
  1634  	bindings.FuncBroadcastChannelClose(
  1635  		this.ref, js.Pointer(&fn),
  1636  	)
  1637  	return
  1638  }
  1639  
  1640  // Close calls the method "BroadcastChannel.close".
  1641  func (this BroadcastChannel) Close() (ret js.Void) {
  1642  	bindings.CallBroadcastChannelClose(
  1643  		this.ref, js.Pointer(&ret),
  1644  	)
  1645  
  1646  	return
  1647  }
  1648  
  1649  // TryClose calls the method "BroadcastChannel.close"
  1650  // in a try/catch block and returns (_, err, ok = false) when it went through
  1651  // the catch clause.
  1652  func (this BroadcastChannel) TryClose() (ret js.Void, exception js.Any, ok bool) {
  1653  	ok = js.True == bindings.TryBroadcastChannelClose(
  1654  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1655  	)
  1656  
  1657  	return
  1658  }
  1659  
  1660  type CropTarget struct {
  1661  	ref js.Ref
  1662  }
  1663  
  1664  func (this CropTarget) Once() CropTarget {
  1665  	this.ref.Once()
  1666  	return this
  1667  }
  1668  
  1669  func (this CropTarget) Ref() js.Ref {
  1670  	return this.ref
  1671  }
  1672  
  1673  func (this CropTarget) FromRef(ref js.Ref) CropTarget {
  1674  	this.ref = ref
  1675  	return this
  1676  }
  1677  
  1678  func (this CropTarget) Free() {
  1679  	this.ref.Free()
  1680  }
  1681  
  1682  // HasFuncFromElement returns true if the static method "CropTarget.fromElement" exists.
  1683  func (this CropTarget) HasFuncFromElement() bool {
  1684  	return js.True == bindings.HasFuncCropTargetFromElement(
  1685  		this.ref,
  1686  	)
  1687  }
  1688  
  1689  // FuncFromElement returns the static method "CropTarget.fromElement".
  1690  func (this CropTarget) FuncFromElement() (fn js.Func[func(element Element) js.Promise[CropTarget]]) {
  1691  	bindings.FuncCropTargetFromElement(
  1692  		this.ref, js.Pointer(&fn),
  1693  	)
  1694  	return
  1695  }
  1696  
  1697  // FromElement calls the static method "CropTarget.fromElement".
  1698  func (this CropTarget) FromElement(element Element) (ret js.Promise[CropTarget]) {
  1699  	bindings.CallCropTargetFromElement(
  1700  		this.ref, js.Pointer(&ret),
  1701  		element.Ref(),
  1702  	)
  1703  
  1704  	return
  1705  }
  1706  
  1707  // TryFromElement calls the static method "CropTarget.fromElement"
  1708  // in a try/catch block and returns (_, err, ok = false) when it went through
  1709  // the catch clause.
  1710  func (this CropTarget) TryFromElement(element Element) (ret js.Promise[CropTarget], exception js.Any, ok bool) {
  1711  	ok = js.True == bindings.TryCropTargetFromElement(
  1712  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1713  		element.Ref(),
  1714  	)
  1715  
  1716  	return
  1717  }
  1718  
  1719  type RestrictionTarget struct {
  1720  	ref js.Ref
  1721  }
  1722  
  1723  func (this RestrictionTarget) Once() RestrictionTarget {
  1724  	this.ref.Once()
  1725  	return this
  1726  }
  1727  
  1728  func (this RestrictionTarget) Ref() js.Ref {
  1729  	return this.ref
  1730  }
  1731  
  1732  func (this RestrictionTarget) FromRef(ref js.Ref) RestrictionTarget {
  1733  	this.ref = ref
  1734  	return this
  1735  }
  1736  
  1737  func (this RestrictionTarget) Free() {
  1738  	this.ref.Free()
  1739  }
  1740  
  1741  // HasFuncFromElement returns true if the static method "RestrictionTarget.fromElement" exists.
  1742  func (this RestrictionTarget) HasFuncFromElement() bool {
  1743  	return js.True == bindings.HasFuncRestrictionTargetFromElement(
  1744  		this.ref,
  1745  	)
  1746  }
  1747  
  1748  // FuncFromElement returns the static method "RestrictionTarget.fromElement".
  1749  func (this RestrictionTarget) FuncFromElement() (fn js.Func[func(element Element) js.Promise[RestrictionTarget]]) {
  1750  	bindings.FuncRestrictionTargetFromElement(
  1751  		this.ref, js.Pointer(&fn),
  1752  	)
  1753  	return
  1754  }
  1755  
  1756  // FromElement calls the static method "RestrictionTarget.fromElement".
  1757  func (this RestrictionTarget) FromElement(element Element) (ret js.Promise[RestrictionTarget]) {
  1758  	bindings.CallRestrictionTargetFromElement(
  1759  		this.ref, js.Pointer(&ret),
  1760  		element.Ref(),
  1761  	)
  1762  
  1763  	return
  1764  }
  1765  
  1766  // TryFromElement calls the static method "RestrictionTarget.fromElement"
  1767  // in a try/catch block and returns (_, err, ok = false) when it went through
  1768  // the catch clause.
  1769  func (this RestrictionTarget) TryFromElement(element Element) (ret js.Promise[RestrictionTarget], exception js.Any, ok bool) {
  1770  	ok = js.True == bindings.TryRestrictionTargetFromElement(
  1771  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1772  		element.Ref(),
  1773  	)
  1774  
  1775  	return
  1776  }
  1777  
  1778  type BrowserCaptureMediaStreamTrack struct {
  1779  	MediaStreamTrack
  1780  }
  1781  
  1782  func (this BrowserCaptureMediaStreamTrack) Once() BrowserCaptureMediaStreamTrack {
  1783  	this.ref.Once()
  1784  	return this
  1785  }
  1786  
  1787  func (this BrowserCaptureMediaStreamTrack) Ref() js.Ref {
  1788  	return this.MediaStreamTrack.Ref()
  1789  }
  1790  
  1791  func (this BrowserCaptureMediaStreamTrack) FromRef(ref js.Ref) BrowserCaptureMediaStreamTrack {
  1792  	this.MediaStreamTrack = this.MediaStreamTrack.FromRef(ref)
  1793  	return this
  1794  }
  1795  
  1796  func (this BrowserCaptureMediaStreamTrack) Free() {
  1797  	this.ref.Free()
  1798  }
  1799  
  1800  // HasFuncCropTo returns true if the method "BrowserCaptureMediaStreamTrack.cropTo" exists.
  1801  func (this BrowserCaptureMediaStreamTrack) HasFuncCropTo() bool {
  1802  	return js.True == bindings.HasFuncBrowserCaptureMediaStreamTrackCropTo(
  1803  		this.ref,
  1804  	)
  1805  }
  1806  
  1807  // FuncCropTo returns the method "BrowserCaptureMediaStreamTrack.cropTo".
  1808  func (this BrowserCaptureMediaStreamTrack) FuncCropTo() (fn js.Func[func(cropTarget CropTarget) js.Promise[js.Void]]) {
  1809  	bindings.FuncBrowserCaptureMediaStreamTrackCropTo(
  1810  		this.ref, js.Pointer(&fn),
  1811  	)
  1812  	return
  1813  }
  1814  
  1815  // CropTo calls the method "BrowserCaptureMediaStreamTrack.cropTo".
  1816  func (this BrowserCaptureMediaStreamTrack) CropTo(cropTarget CropTarget) (ret js.Promise[js.Void]) {
  1817  	bindings.CallBrowserCaptureMediaStreamTrackCropTo(
  1818  		this.ref, js.Pointer(&ret),
  1819  		cropTarget.Ref(),
  1820  	)
  1821  
  1822  	return
  1823  }
  1824  
  1825  // TryCropTo calls the method "BrowserCaptureMediaStreamTrack.cropTo"
  1826  // in a try/catch block and returns (_, err, ok = false) when it went through
  1827  // the catch clause.
  1828  func (this BrowserCaptureMediaStreamTrack) TryCropTo(cropTarget CropTarget) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  1829  	ok = js.True == bindings.TryBrowserCaptureMediaStreamTrackCropTo(
  1830  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1831  		cropTarget.Ref(),
  1832  	)
  1833  
  1834  	return
  1835  }
  1836  
  1837  // HasFuncClone returns true if the method "BrowserCaptureMediaStreamTrack.clone" exists.
  1838  func (this BrowserCaptureMediaStreamTrack) HasFuncClone() bool {
  1839  	return js.True == bindings.HasFuncBrowserCaptureMediaStreamTrackClone(
  1840  		this.ref,
  1841  	)
  1842  }
  1843  
  1844  // FuncClone returns the method "BrowserCaptureMediaStreamTrack.clone".
  1845  func (this BrowserCaptureMediaStreamTrack) FuncClone() (fn js.Func[func() BrowserCaptureMediaStreamTrack]) {
  1846  	bindings.FuncBrowserCaptureMediaStreamTrackClone(
  1847  		this.ref, js.Pointer(&fn),
  1848  	)
  1849  	return
  1850  }
  1851  
  1852  // Clone calls the method "BrowserCaptureMediaStreamTrack.clone".
  1853  func (this BrowserCaptureMediaStreamTrack) Clone() (ret BrowserCaptureMediaStreamTrack) {
  1854  	bindings.CallBrowserCaptureMediaStreamTrackClone(
  1855  		this.ref, js.Pointer(&ret),
  1856  	)
  1857  
  1858  	return
  1859  }
  1860  
  1861  // TryClone calls the method "BrowserCaptureMediaStreamTrack.clone"
  1862  // in a try/catch block and returns (_, err, ok = false) when it went through
  1863  // the catch clause.
  1864  func (this BrowserCaptureMediaStreamTrack) TryClone() (ret BrowserCaptureMediaStreamTrack, exception js.Any, ok bool) {
  1865  	ok = js.True == bindings.TryBrowserCaptureMediaStreamTrackClone(
  1866  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1867  	)
  1868  
  1869  	return
  1870  }
  1871  
  1872  // HasFuncRestrictTo returns true if the method "BrowserCaptureMediaStreamTrack.restrictTo" exists.
  1873  func (this BrowserCaptureMediaStreamTrack) HasFuncRestrictTo() bool {
  1874  	return js.True == bindings.HasFuncBrowserCaptureMediaStreamTrackRestrictTo(
  1875  		this.ref,
  1876  	)
  1877  }
  1878  
  1879  // FuncRestrictTo returns the method "BrowserCaptureMediaStreamTrack.restrictTo".
  1880  func (this BrowserCaptureMediaStreamTrack) FuncRestrictTo() (fn js.Func[func(RestrictionTarget RestrictionTarget) js.Promise[js.Void]]) {
  1881  	bindings.FuncBrowserCaptureMediaStreamTrackRestrictTo(
  1882  		this.ref, js.Pointer(&fn),
  1883  	)
  1884  	return
  1885  }
  1886  
  1887  // RestrictTo calls the method "BrowserCaptureMediaStreamTrack.restrictTo".
  1888  func (this BrowserCaptureMediaStreamTrack) RestrictTo(RestrictionTarget RestrictionTarget) (ret js.Promise[js.Void]) {
  1889  	bindings.CallBrowserCaptureMediaStreamTrackRestrictTo(
  1890  		this.ref, js.Pointer(&ret),
  1891  		RestrictionTarget.Ref(),
  1892  	)
  1893  
  1894  	return
  1895  }
  1896  
  1897  // TryRestrictTo calls the method "BrowserCaptureMediaStreamTrack.restrictTo"
  1898  // in a try/catch block and returns (_, err, ok = false) when it went through
  1899  // the catch clause.
  1900  func (this BrowserCaptureMediaStreamTrack) TryRestrictTo(RestrictionTarget RestrictionTarget) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  1901  	ok = js.True == bindings.TryBrowserCaptureMediaStreamTrackRestrictTo(
  1902  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1903  		RestrictionTarget.Ref(),
  1904  	)
  1905  
  1906  	return
  1907  }
  1908  
  1909  type QueuingStrategyInit struct {
  1910  	// HighWaterMark is "QueuingStrategyInit.highWaterMark"
  1911  	//
  1912  	// Required
  1913  	HighWaterMark float64
  1914  
  1915  	FFI_USE bool
  1916  }
  1917  
  1918  // FromRef calls UpdateFrom and returns a QueuingStrategyInit with all fields set.
  1919  func (p QueuingStrategyInit) FromRef(ref js.Ref) QueuingStrategyInit {
  1920  	p.UpdateFrom(ref)
  1921  	return p
  1922  }
  1923  
  1924  // New creates a new QueuingStrategyInit in the application heap.
  1925  func (p QueuingStrategyInit) New() js.Ref {
  1926  	return bindings.QueuingStrategyInitJSLoad(
  1927  		js.Pointer(&p), js.True, 0,
  1928  	)
  1929  }
  1930  
  1931  // UpdateFrom copies value of all fields of the heap object to p.
  1932  func (p *QueuingStrategyInit) UpdateFrom(ref js.Ref) {
  1933  	bindings.QueuingStrategyInitJSStore(
  1934  		js.Pointer(p), ref,
  1935  	)
  1936  }
  1937  
  1938  // Update writes all fields of the p to the heap object referenced by ref.
  1939  func (p *QueuingStrategyInit) Update(ref js.Ref) {
  1940  	bindings.QueuingStrategyInitJSLoad(
  1941  		js.Pointer(p), js.False, ref,
  1942  	)
  1943  }
  1944  
  1945  // FreeMembers frees fields with heap reference, if recursive is true
  1946  // free all heap references reachable from p.
  1947  func (p *QueuingStrategyInit) FreeMembers(recursive bool) {
  1948  }
  1949  
  1950  type FunctionFunc func(this js.Ref, arguments ...js.Any) js.Ref
  1951  
  1952  func (fn FunctionFunc) Register() js.Func[func(arguments ...js.Any) js.Any] {
  1953  	return js.RegisterCallback[func(arguments ...js.Any) js.Any](
  1954  		fn, abi.FuncPCABIInternal(fn),
  1955  	)
  1956  }
  1957  
  1958  func (fn FunctionFunc) DispatchCallback(
  1959  	targetPC uintptr, ctx *js.CallbackContext,
  1960  ) {
  1961  	args := ctx.Args()
  1962  	if len(args) != 1+1 /* js this */ ||
  1963  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  1964  		js.ThrowInvalidCallbackInvocation()
  1965  	}
  1966  
  1967  	if ctx.Return(fn(
  1968  		args[0],
  1969  
  1970  		js.Any{}.FromRef(args[0+1]),
  1971  	)) {
  1972  		return
  1973  	}
  1974  
  1975  	js.ThrowCallbackValueNotReturned()
  1976  }
  1977  
  1978  type Function[T any] struct {
  1979  	Fn  func(arg T, this js.Ref, arguments ...js.Any) js.Ref
  1980  	Arg T
  1981  }
  1982  
  1983  func (cb *Function[T]) Register() js.Func[func(arguments ...js.Any) js.Any] {
  1984  	return js.RegisterCallback[func(arguments ...js.Any) js.Any](
  1985  		cb, abi.FuncPCABIInternal(cb.Fn),
  1986  	)
  1987  }
  1988  
  1989  func (cb *Function[T]) DispatchCallback(
  1990  	targetPC uintptr, ctx *js.CallbackContext,
  1991  ) {
  1992  	args := ctx.Args()
  1993  	if len(args) != 1+1 /* js this */ ||
  1994  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  1995  		js.ThrowInvalidCallbackInvocation()
  1996  	}
  1997  
  1998  	if ctx.Return(cb.Fn(
  1999  		cb.Arg,
  2000  		args[0],
  2001  
  2002  		js.Any{}.FromRef(args[0+1]),
  2003  	)) {
  2004  		return
  2005  	}
  2006  
  2007  	js.ThrowCallbackValueNotReturned()
  2008  }
  2009  
  2010  func NewByteLengthQueuingStrategy(init QueuingStrategyInit) (ret ByteLengthQueuingStrategy) {
  2011  	ret.ref = bindings.NewByteLengthQueuingStrategyByByteLengthQueuingStrategy(
  2012  		js.Pointer(&init))
  2013  	return
  2014  }
  2015  
  2016  type ByteLengthQueuingStrategy struct {
  2017  	ref js.Ref
  2018  }
  2019  
  2020  func (this ByteLengthQueuingStrategy) Once() ByteLengthQueuingStrategy {
  2021  	this.ref.Once()
  2022  	return this
  2023  }
  2024  
  2025  func (this ByteLengthQueuingStrategy) Ref() js.Ref {
  2026  	return this.ref
  2027  }
  2028  
  2029  func (this ByteLengthQueuingStrategy) FromRef(ref js.Ref) ByteLengthQueuingStrategy {
  2030  	this.ref = ref
  2031  	return this
  2032  }
  2033  
  2034  func (this ByteLengthQueuingStrategy) Free() {
  2035  	this.ref.Free()
  2036  }
  2037  
  2038  // HighWaterMark returns the value of property "ByteLengthQueuingStrategy.highWaterMark".
  2039  //
  2040  // It returns ok=false if there is no such property.
  2041  func (this ByteLengthQueuingStrategy) HighWaterMark() (ret float64, ok bool) {
  2042  	ok = js.True == bindings.GetByteLengthQueuingStrategyHighWaterMark(
  2043  		this.ref, js.Pointer(&ret),
  2044  	)
  2045  	return
  2046  }
  2047  
  2048  // Size returns the value of property "ByteLengthQueuingStrategy.size".
  2049  //
  2050  // It returns ok=false if there is no such property.
  2051  func (this ByteLengthQueuingStrategy) Size() (ret js.Func[func(arguments ...js.Any) js.Any], ok bool) {
  2052  	ok = js.True == bindings.GetByteLengthQueuingStrategySize(
  2053  		this.ref, js.Pointer(&ret),
  2054  	)
  2055  	return
  2056  }
  2057  
  2058  type SecurityPolicyViolationEventDisposition uint32
  2059  
  2060  const (
  2061  	_ SecurityPolicyViolationEventDisposition = iota
  2062  
  2063  	SecurityPolicyViolationEventDisposition_ENFORCE
  2064  	SecurityPolicyViolationEventDisposition_REPORT
  2065  )
  2066  
  2067  func (SecurityPolicyViolationEventDisposition) FromRef(str js.Ref) SecurityPolicyViolationEventDisposition {
  2068  	return SecurityPolicyViolationEventDisposition(bindings.ConstOfSecurityPolicyViolationEventDisposition(str))
  2069  }
  2070  
  2071  func (x SecurityPolicyViolationEventDisposition) String() (string, bool) {
  2072  	switch x {
  2073  	case SecurityPolicyViolationEventDisposition_ENFORCE:
  2074  		return "enforce", true
  2075  	case SecurityPolicyViolationEventDisposition_REPORT:
  2076  		return "report", true
  2077  	default:
  2078  		return "", false
  2079  	}
  2080  }
  2081  
  2082  type CSPViolationReportBody struct {
  2083  	ReportBody
  2084  }
  2085  
  2086  func (this CSPViolationReportBody) Once() CSPViolationReportBody {
  2087  	this.ref.Once()
  2088  	return this
  2089  }
  2090  
  2091  func (this CSPViolationReportBody) Ref() js.Ref {
  2092  	return this.ReportBody.Ref()
  2093  }
  2094  
  2095  func (this CSPViolationReportBody) FromRef(ref js.Ref) CSPViolationReportBody {
  2096  	this.ReportBody = this.ReportBody.FromRef(ref)
  2097  	return this
  2098  }
  2099  
  2100  func (this CSPViolationReportBody) Free() {
  2101  	this.ref.Free()
  2102  }
  2103  
  2104  // DocumentURL returns the value of property "CSPViolationReportBody.documentURL".
  2105  //
  2106  // It returns ok=false if there is no such property.
  2107  func (this CSPViolationReportBody) DocumentURL() (ret js.String, ok bool) {
  2108  	ok = js.True == bindings.GetCSPViolationReportBodyDocumentURL(
  2109  		this.ref, js.Pointer(&ret),
  2110  	)
  2111  	return
  2112  }
  2113  
  2114  // Referrer returns the value of property "CSPViolationReportBody.referrer".
  2115  //
  2116  // It returns ok=false if there is no such property.
  2117  func (this CSPViolationReportBody) Referrer() (ret js.String, ok bool) {
  2118  	ok = js.True == bindings.GetCSPViolationReportBodyReferrer(
  2119  		this.ref, js.Pointer(&ret),
  2120  	)
  2121  	return
  2122  }
  2123  
  2124  // BlockedURL returns the value of property "CSPViolationReportBody.blockedURL".
  2125  //
  2126  // It returns ok=false if there is no such property.
  2127  func (this CSPViolationReportBody) BlockedURL() (ret js.String, ok bool) {
  2128  	ok = js.True == bindings.GetCSPViolationReportBodyBlockedURL(
  2129  		this.ref, js.Pointer(&ret),
  2130  	)
  2131  	return
  2132  }
  2133  
  2134  // EffectiveDirective returns the value of property "CSPViolationReportBody.effectiveDirective".
  2135  //
  2136  // It returns ok=false if there is no such property.
  2137  func (this CSPViolationReportBody) EffectiveDirective() (ret js.String, ok bool) {
  2138  	ok = js.True == bindings.GetCSPViolationReportBodyEffectiveDirective(
  2139  		this.ref, js.Pointer(&ret),
  2140  	)
  2141  	return
  2142  }
  2143  
  2144  // OriginalPolicy returns the value of property "CSPViolationReportBody.originalPolicy".
  2145  //
  2146  // It returns ok=false if there is no such property.
  2147  func (this CSPViolationReportBody) OriginalPolicy() (ret js.String, ok bool) {
  2148  	ok = js.True == bindings.GetCSPViolationReportBodyOriginalPolicy(
  2149  		this.ref, js.Pointer(&ret),
  2150  	)
  2151  	return
  2152  }
  2153  
  2154  // SourceFile returns the value of property "CSPViolationReportBody.sourceFile".
  2155  //
  2156  // It returns ok=false if there is no such property.
  2157  func (this CSPViolationReportBody) SourceFile() (ret js.String, ok bool) {
  2158  	ok = js.True == bindings.GetCSPViolationReportBodySourceFile(
  2159  		this.ref, js.Pointer(&ret),
  2160  	)
  2161  	return
  2162  }
  2163  
  2164  // Sample returns the value of property "CSPViolationReportBody.sample".
  2165  //
  2166  // It returns ok=false if there is no such property.
  2167  func (this CSPViolationReportBody) Sample() (ret js.String, ok bool) {
  2168  	ok = js.True == bindings.GetCSPViolationReportBodySample(
  2169  		this.ref, js.Pointer(&ret),
  2170  	)
  2171  	return
  2172  }
  2173  
  2174  // Disposition returns the value of property "CSPViolationReportBody.disposition".
  2175  //
  2176  // It returns ok=false if there is no such property.
  2177  func (this CSPViolationReportBody) Disposition() (ret SecurityPolicyViolationEventDisposition, ok bool) {
  2178  	ok = js.True == bindings.GetCSPViolationReportBodyDisposition(
  2179  		this.ref, js.Pointer(&ret),
  2180  	)
  2181  	return
  2182  }
  2183  
  2184  // StatusCode returns the value of property "CSPViolationReportBody.statusCode".
  2185  //
  2186  // It returns ok=false if there is no such property.
  2187  func (this CSPViolationReportBody) StatusCode() (ret uint16, ok bool) {
  2188  	ok = js.True == bindings.GetCSPViolationReportBodyStatusCode(
  2189  		this.ref, js.Pointer(&ret),
  2190  	)
  2191  	return
  2192  }
  2193  
  2194  // LineNumber returns the value of property "CSPViolationReportBody.lineNumber".
  2195  //
  2196  // It returns ok=false if there is no such property.
  2197  func (this CSPViolationReportBody) LineNumber() (ret uint32, ok bool) {
  2198  	ok = js.True == bindings.GetCSPViolationReportBodyLineNumber(
  2199  		this.ref, js.Pointer(&ret),
  2200  	)
  2201  	return
  2202  }
  2203  
  2204  // ColumnNumber returns the value of property "CSPViolationReportBody.columnNumber".
  2205  //
  2206  // It returns ok=false if there is no such property.
  2207  func (this CSPViolationReportBody) ColumnNumber() (ret uint32, ok bool) {
  2208  	ok = js.True == bindings.GetCSPViolationReportBodyColumnNumber(
  2209  		this.ref, js.Pointer(&ret),
  2210  	)
  2211  	return
  2212  }
  2213  
  2214  // HasFuncToJSON returns true if the method "CSPViolationReportBody.toJSON" exists.
  2215  func (this CSPViolationReportBody) HasFuncToJSON() bool {
  2216  	return js.True == bindings.HasFuncCSPViolationReportBodyToJSON(
  2217  		this.ref,
  2218  	)
  2219  }
  2220  
  2221  // FuncToJSON returns the method "CSPViolationReportBody.toJSON".
  2222  func (this CSPViolationReportBody) FuncToJSON() (fn js.Func[func() js.Object]) {
  2223  	bindings.FuncCSPViolationReportBodyToJSON(
  2224  		this.ref, js.Pointer(&fn),
  2225  	)
  2226  	return
  2227  }
  2228  
  2229  // ToJSON calls the method "CSPViolationReportBody.toJSON".
  2230  func (this CSPViolationReportBody) ToJSON() (ret js.Object) {
  2231  	bindings.CallCSPViolationReportBodyToJSON(
  2232  		this.ref, js.Pointer(&ret),
  2233  	)
  2234  
  2235  	return
  2236  }
  2237  
  2238  // TryToJSON calls the method "CSPViolationReportBody.toJSON"
  2239  // in a try/catch block and returns (_, err, ok = false) when it went through
  2240  // the catch clause.
  2241  func (this CSPViolationReportBody) TryToJSON() (ret js.Object, exception js.Any, ok bool) {
  2242  	ok = js.True == bindings.TryCSPViolationReportBodyToJSON(
  2243  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2244  	)
  2245  
  2246  	return
  2247  }
  2248  
  2249  type PropertyDefinition struct {
  2250  	// Name is "PropertyDefinition.name"
  2251  	//
  2252  	// Required
  2253  	Name js.String
  2254  	// Syntax is "PropertyDefinition.syntax"
  2255  	//
  2256  	// Optional, defaults to "*".
  2257  	Syntax js.String
  2258  	// Inherits is "PropertyDefinition.inherits"
  2259  	//
  2260  	// Required
  2261  	Inherits bool
  2262  	// InitialValue is "PropertyDefinition.initialValue"
  2263  	//
  2264  	// Optional
  2265  	InitialValue js.String
  2266  
  2267  	FFI_USE bool
  2268  }
  2269  
  2270  // FromRef calls UpdateFrom and returns a PropertyDefinition with all fields set.
  2271  func (p PropertyDefinition) FromRef(ref js.Ref) PropertyDefinition {
  2272  	p.UpdateFrom(ref)
  2273  	return p
  2274  }
  2275  
  2276  // New creates a new PropertyDefinition in the application heap.
  2277  func (p PropertyDefinition) New() js.Ref {
  2278  	return bindings.PropertyDefinitionJSLoad(
  2279  		js.Pointer(&p), js.True, 0,
  2280  	)
  2281  }
  2282  
  2283  // UpdateFrom copies value of all fields of the heap object to p.
  2284  func (p *PropertyDefinition) UpdateFrom(ref js.Ref) {
  2285  	bindings.PropertyDefinitionJSStore(
  2286  		js.Pointer(p), ref,
  2287  	)
  2288  }
  2289  
  2290  // Update writes all fields of the p to the heap object referenced by ref.
  2291  func (p *PropertyDefinition) Update(ref js.Ref) {
  2292  	bindings.PropertyDefinitionJSLoad(
  2293  		js.Pointer(p), js.False, ref,
  2294  	)
  2295  }
  2296  
  2297  // FreeMembers frees fields with heap reference, if recursive is true
  2298  // free all heap references reachable from p.
  2299  func (p *PropertyDefinition) FreeMembers(recursive bool) {
  2300  	js.Free(
  2301  		p.Name.Ref(),
  2302  		p.Syntax.Ref(),
  2303  		p.InitialValue.Ref(),
  2304  	)
  2305  	p.Name = p.Name.FromRef(js.Undefined)
  2306  	p.Syntax = p.Syntax.FromRef(js.Undefined)
  2307  	p.InitialValue = p.InitialValue.FromRef(js.Undefined)
  2308  }
  2309  
  2310  type CSSParserRule struct {
  2311  	ref js.Ref
  2312  }
  2313  
  2314  func (this CSSParserRule) Once() CSSParserRule {
  2315  	this.ref.Once()
  2316  	return this
  2317  }
  2318  
  2319  func (this CSSParserRule) Ref() js.Ref {
  2320  	return this.ref
  2321  }
  2322  
  2323  func (this CSSParserRule) FromRef(ref js.Ref) CSSParserRule {
  2324  	this.ref = ref
  2325  	return this
  2326  }
  2327  
  2328  func (this CSSParserRule) Free() {
  2329  	this.ref.Free()
  2330  }
  2331  
  2332  type OneOf_String_ReadableStream struct {
  2333  	ref js.Ref
  2334  }
  2335  
  2336  func (x OneOf_String_ReadableStream) Ref() js.Ref {
  2337  	return x.ref
  2338  }
  2339  
  2340  func (x OneOf_String_ReadableStream) Free() {
  2341  	x.ref.Free()
  2342  }
  2343  
  2344  func (x OneOf_String_ReadableStream) FromRef(ref js.Ref) OneOf_String_ReadableStream {
  2345  	return OneOf_String_ReadableStream{
  2346  		ref: ref,
  2347  	}
  2348  }
  2349  
  2350  func (x OneOf_String_ReadableStream) String() js.String {
  2351  	return js.String{}.FromRef(x.ref)
  2352  }
  2353  
  2354  func (x OneOf_String_ReadableStream) ReadableStream() ReadableStream {
  2355  	return ReadableStream{}.FromRef(x.ref)
  2356  }
  2357  
  2358  type CSSStringSource = OneOf_String_ReadableStream
  2359  
  2360  type CSSParserOptions struct {
  2361  	// AtRules is "CSSParserOptions.atRules"
  2362  	//
  2363  	// Optional
  2364  	AtRules js.Object
  2365  
  2366  	FFI_USE bool
  2367  }
  2368  
  2369  // FromRef calls UpdateFrom and returns a CSSParserOptions with all fields set.
  2370  func (p CSSParserOptions) FromRef(ref js.Ref) CSSParserOptions {
  2371  	p.UpdateFrom(ref)
  2372  	return p
  2373  }
  2374  
  2375  // New creates a new CSSParserOptions in the application heap.
  2376  func (p CSSParserOptions) New() js.Ref {
  2377  	return bindings.CSSParserOptionsJSLoad(
  2378  		js.Pointer(&p), js.True, 0,
  2379  	)
  2380  }
  2381  
  2382  // UpdateFrom copies value of all fields of the heap object to p.
  2383  func (p *CSSParserOptions) UpdateFrom(ref js.Ref) {
  2384  	bindings.CSSParserOptionsJSStore(
  2385  		js.Pointer(p), ref,
  2386  	)
  2387  }
  2388  
  2389  // Update writes all fields of the p to the heap object referenced by ref.
  2390  func (p *CSSParserOptions) Update(ref js.Ref) {
  2391  	bindings.CSSParserOptionsJSLoad(
  2392  		js.Pointer(p), js.False, ref,
  2393  	)
  2394  }
  2395  
  2396  // FreeMembers frees fields with heap reference, if recursive is true
  2397  // free all heap references reachable from p.
  2398  func (p *CSSParserOptions) FreeMembers(recursive bool) {
  2399  	js.Free(
  2400  		p.AtRules.Ref(),
  2401  	)
  2402  	p.AtRules = p.AtRules.FromRef(js.Undefined)
  2403  }
  2404  
  2405  type CSSParserValue struct {
  2406  	ref js.Ref
  2407  }
  2408  
  2409  func (this CSSParserValue) Once() CSSParserValue {
  2410  	this.ref.Once()
  2411  	return this
  2412  }
  2413  
  2414  func (this CSSParserValue) Ref() js.Ref {
  2415  	return this.ref
  2416  }
  2417  
  2418  func (this CSSParserValue) FromRef(ref js.Ref) CSSParserValue {
  2419  	this.ref = ref
  2420  	return this
  2421  }
  2422  
  2423  func (this CSSParserValue) Free() {
  2424  	this.ref.Free()
  2425  }
  2426  
  2427  func NewCSSParserDeclaration(name js.String, body js.Array[CSSParserRule]) (ret CSSParserDeclaration) {
  2428  	ret.ref = bindings.NewCSSParserDeclarationByCSSParserDeclaration(
  2429  		name.Ref(),
  2430  		body.Ref())
  2431  	return
  2432  }
  2433  
  2434  func NewCSSParserDeclarationByCSSParserDeclaration1(name js.String) (ret CSSParserDeclaration) {
  2435  	ret.ref = bindings.NewCSSParserDeclarationByCSSParserDeclaration1(
  2436  		name.Ref())
  2437  	return
  2438  }
  2439  
  2440  type CSSParserDeclaration struct {
  2441  	CSSParserRule
  2442  }
  2443  
  2444  func (this CSSParserDeclaration) Once() CSSParserDeclaration {
  2445  	this.ref.Once()
  2446  	return this
  2447  }
  2448  
  2449  func (this CSSParserDeclaration) Ref() js.Ref {
  2450  	return this.CSSParserRule.Ref()
  2451  }
  2452  
  2453  func (this CSSParserDeclaration) FromRef(ref js.Ref) CSSParserDeclaration {
  2454  	this.CSSParserRule = this.CSSParserRule.FromRef(ref)
  2455  	return this
  2456  }
  2457  
  2458  func (this CSSParserDeclaration) Free() {
  2459  	this.ref.Free()
  2460  }
  2461  
  2462  // Name returns the value of property "CSSParserDeclaration.name".
  2463  //
  2464  // It returns ok=false if there is no such property.
  2465  func (this CSSParserDeclaration) Name() (ret js.String, ok bool) {
  2466  	ok = js.True == bindings.GetCSSParserDeclarationName(
  2467  		this.ref, js.Pointer(&ret),
  2468  	)
  2469  	return
  2470  }
  2471  
  2472  // Body returns the value of property "CSSParserDeclaration.body".
  2473  //
  2474  // It returns ok=false if there is no such property.
  2475  func (this CSSParserDeclaration) Body() (ret js.FrozenArray[CSSParserValue], ok bool) {
  2476  	ok = js.True == bindings.GetCSSParserDeclarationBody(
  2477  		this.ref, js.Pointer(&ret),
  2478  	)
  2479  	return
  2480  }
  2481  
  2482  // HasFuncToString returns true if the method "CSSParserDeclaration.toString" exists.
  2483  func (this CSSParserDeclaration) HasFuncToString() bool {
  2484  	return js.True == bindings.HasFuncCSSParserDeclarationToString(
  2485  		this.ref,
  2486  	)
  2487  }
  2488  
  2489  // FuncToString returns the method "CSSParserDeclaration.toString".
  2490  func (this CSSParserDeclaration) FuncToString() (fn js.Func[func() js.String]) {
  2491  	bindings.FuncCSSParserDeclarationToString(
  2492  		this.ref, js.Pointer(&fn),
  2493  	)
  2494  	return
  2495  }
  2496  
  2497  // ToString calls the method "CSSParserDeclaration.toString".
  2498  func (this CSSParserDeclaration) ToString() (ret js.String) {
  2499  	bindings.CallCSSParserDeclarationToString(
  2500  		this.ref, js.Pointer(&ret),
  2501  	)
  2502  
  2503  	return
  2504  }
  2505  
  2506  // TryToString calls the method "CSSParserDeclaration.toString"
  2507  // in a try/catch block and returns (_, err, ok = false) when it went through
  2508  // the catch clause.
  2509  func (this CSSParserDeclaration) TryToString() (ret js.String, exception js.Any, ok bool) {
  2510  	ok = js.True == bindings.TryCSSParserDeclarationToString(
  2511  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2512  	)
  2513  
  2514  	return
  2515  }
  2516  
  2517  type OneOf_String_CSSStyleValue_CSSParserValue struct {
  2518  	ref js.Ref
  2519  }
  2520  
  2521  func (x OneOf_String_CSSStyleValue_CSSParserValue) Ref() js.Ref {
  2522  	return x.ref
  2523  }
  2524  
  2525  func (x OneOf_String_CSSStyleValue_CSSParserValue) Free() {
  2526  	x.ref.Free()
  2527  }
  2528  
  2529  func (x OneOf_String_CSSStyleValue_CSSParserValue) FromRef(ref js.Ref) OneOf_String_CSSStyleValue_CSSParserValue {
  2530  	return OneOf_String_CSSStyleValue_CSSParserValue{
  2531  		ref: ref,
  2532  	}
  2533  }
  2534  
  2535  func (x OneOf_String_CSSStyleValue_CSSParserValue) String() js.String {
  2536  	return js.String{}.FromRef(x.ref)
  2537  }
  2538  
  2539  func (x OneOf_String_CSSStyleValue_CSSParserValue) CSSStyleValue() CSSStyleValue {
  2540  	return CSSStyleValue{}.FromRef(x.ref)
  2541  }
  2542  
  2543  func (x OneOf_String_CSSStyleValue_CSSParserValue) CSSParserValue() CSSParserValue {
  2544  	return CSSParserValue{}.FromRef(x.ref)
  2545  }
  2546  
  2547  type CSSToken = OneOf_String_CSSStyleValue_CSSParserValue
  2548  
  2549  type WorkletOptions struct {
  2550  	// Credentials is "WorkletOptions.credentials"
  2551  	//
  2552  	// Optional, defaults to "same-origin".
  2553  	Credentials RequestCredentials
  2554  
  2555  	FFI_USE bool
  2556  }
  2557  
  2558  // FromRef calls UpdateFrom and returns a WorkletOptions with all fields set.
  2559  func (p WorkletOptions) FromRef(ref js.Ref) WorkletOptions {
  2560  	p.UpdateFrom(ref)
  2561  	return p
  2562  }
  2563  
  2564  // New creates a new WorkletOptions in the application heap.
  2565  func (p WorkletOptions) New() js.Ref {
  2566  	return bindings.WorkletOptionsJSLoad(
  2567  		js.Pointer(&p), js.True, 0,
  2568  	)
  2569  }
  2570  
  2571  // UpdateFrom copies value of all fields of the heap object to p.
  2572  func (p *WorkletOptions) UpdateFrom(ref js.Ref) {
  2573  	bindings.WorkletOptionsJSStore(
  2574  		js.Pointer(p), ref,
  2575  	)
  2576  }
  2577  
  2578  // Update writes all fields of the p to the heap object referenced by ref.
  2579  func (p *WorkletOptions) Update(ref js.Ref) {
  2580  	bindings.WorkletOptionsJSLoad(
  2581  		js.Pointer(p), js.False, ref,
  2582  	)
  2583  }
  2584  
  2585  // FreeMembers frees fields with heap reference, if recursive is true
  2586  // free all heap references reachable from p.
  2587  func (p *WorkletOptions) FreeMembers(recursive bool) {
  2588  }
  2589  
  2590  type Worklet struct {
  2591  	ref js.Ref
  2592  }
  2593  
  2594  func (this Worklet) Once() Worklet {
  2595  	this.ref.Once()
  2596  	return this
  2597  }
  2598  
  2599  func (this Worklet) Ref() js.Ref {
  2600  	return this.ref
  2601  }
  2602  
  2603  func (this Worklet) FromRef(ref js.Ref) Worklet {
  2604  	this.ref = ref
  2605  	return this
  2606  }
  2607  
  2608  func (this Worklet) Free() {
  2609  	this.ref.Free()
  2610  }
  2611  
  2612  // HasFuncAddModule returns true if the method "Worklet.addModule" exists.
  2613  func (this Worklet) HasFuncAddModule() bool {
  2614  	return js.True == bindings.HasFuncWorkletAddModule(
  2615  		this.ref,
  2616  	)
  2617  }
  2618  
  2619  // FuncAddModule returns the method "Worklet.addModule".
  2620  func (this Worklet) FuncAddModule() (fn js.Func[func(moduleURL js.String, options WorkletOptions) js.Promise[js.Void]]) {
  2621  	bindings.FuncWorkletAddModule(
  2622  		this.ref, js.Pointer(&fn),
  2623  	)
  2624  	return
  2625  }
  2626  
  2627  // AddModule calls the method "Worklet.addModule".
  2628  func (this Worklet) AddModule(moduleURL js.String, options WorkletOptions) (ret js.Promise[js.Void]) {
  2629  	bindings.CallWorkletAddModule(
  2630  		this.ref, js.Pointer(&ret),
  2631  		moduleURL.Ref(),
  2632  		js.Pointer(&options),
  2633  	)
  2634  
  2635  	return
  2636  }
  2637  
  2638  // TryAddModule calls the method "Worklet.addModule"
  2639  // in a try/catch block and returns (_, err, ok = false) when it went through
  2640  // the catch clause.
  2641  func (this Worklet) TryAddModule(moduleURL js.String, options WorkletOptions) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  2642  	ok = js.True == bindings.TryWorkletAddModule(
  2643  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2644  		moduleURL.Ref(),
  2645  		js.Pointer(&options),
  2646  	)
  2647  
  2648  	return
  2649  }
  2650  
  2651  // HasFuncAddModule1 returns true if the method "Worklet.addModule" exists.
  2652  func (this Worklet) HasFuncAddModule1() bool {
  2653  	return js.True == bindings.HasFuncWorkletAddModule1(
  2654  		this.ref,
  2655  	)
  2656  }
  2657  
  2658  // FuncAddModule1 returns the method "Worklet.addModule".
  2659  func (this Worklet) FuncAddModule1() (fn js.Func[func(moduleURL js.String) js.Promise[js.Void]]) {
  2660  	bindings.FuncWorkletAddModule1(
  2661  		this.ref, js.Pointer(&fn),
  2662  	)
  2663  	return
  2664  }
  2665  
  2666  // AddModule1 calls the method "Worklet.addModule".
  2667  func (this Worklet) AddModule1(moduleURL js.String) (ret js.Promise[js.Void]) {
  2668  	bindings.CallWorkletAddModule1(
  2669  		this.ref, js.Pointer(&ret),
  2670  		moduleURL.Ref(),
  2671  	)
  2672  
  2673  	return
  2674  }
  2675  
  2676  // TryAddModule1 calls the method "Worklet.addModule"
  2677  // in a try/catch block and returns (_, err, ok = false) when it went through
  2678  // the catch clause.
  2679  func (this Worklet) TryAddModule1(moduleURL js.String) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  2680  	ok = js.True == bindings.TryWorkletAddModule1(
  2681  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  2682  		moduleURL.Ref(),
  2683  	)
  2684  
  2685  	return
  2686  }
  2687  
  2688  type HighlightRegistry struct {
  2689  	ref js.Ref
  2690  }
  2691  
  2692  func (this HighlightRegistry) Once() HighlightRegistry {
  2693  	this.ref.Once()
  2694  	return this
  2695  }
  2696  
  2697  func (this HighlightRegistry) Ref() js.Ref {
  2698  	return this.ref
  2699  }
  2700  
  2701  func (this HighlightRegistry) FromRef(ref js.Ref) HighlightRegistry {
  2702  	this.ref = ref
  2703  	return this
  2704  }
  2705  
  2706  func (this HighlightRegistry) Free() {
  2707  	this.ref.Free()
  2708  }
  2709  
  2710  type CSS struct{}
  2711  
  2712  // ElementSources returns the value of property "CSS.elementSources".
  2713  //
  2714  // The returned bool will be false if there is no such property.
  2715  func (CSS) ElementSources() (ret js.Any, ok bool) {
  2716  	ok = js.True == bindings.GetCSSElementSources(
  2717  		js.Pointer(&ret),
  2718  	)
  2719  
  2720  	return
  2721  }
  2722  
  2723  // AnimationWorklet returns the value of property "CSS.animationWorklet".
  2724  //
  2725  // The returned bool will be false if there is no such property.
  2726  func (CSS) AnimationWorklet() (ret Worklet, ok bool) {
  2727  	ok = js.True == bindings.GetCSSAnimationWorklet(
  2728  		js.Pointer(&ret),
  2729  	)
  2730  
  2731  	return
  2732  }
  2733  
  2734  // PaintWorklet returns the value of property "CSS.paintWorklet".
  2735  //
  2736  // The returned bool will be false if there is no such property.
  2737  func (CSS) PaintWorklet() (ret Worklet, ok bool) {
  2738  	ok = js.True == bindings.GetCSSPaintWorklet(
  2739  		js.Pointer(&ret),
  2740  	)
  2741  
  2742  	return
  2743  }
  2744  
  2745  // LayoutWorklet returns the value of property "CSS.layoutWorklet".
  2746  //
  2747  // The returned bool will be false if there is no such property.
  2748  func (CSS) LayoutWorklet() (ret Worklet, ok bool) {
  2749  	ok = js.True == bindings.GetCSSLayoutWorklet(
  2750  		js.Pointer(&ret),
  2751  	)
  2752  
  2753  	return
  2754  }
  2755  
  2756  // Highlights returns the value of property "CSS.highlights".
  2757  //
  2758  // The returned bool will be false if there is no such property.
  2759  func (CSS) Highlights() (ret HighlightRegistry, ok bool) {
  2760  	ok = js.True == bindings.GetCSSHighlights(
  2761  		js.Pointer(&ret),
  2762  	)
  2763  
  2764  	return
  2765  }
  2766  
  2767  // HasFuncEscape returns ture if the function "CSS.escape" exists.
  2768  func (CSS) HasFuncEscape() bool {
  2769  	return js.True == bindings.HasFuncCSSEscape()
  2770  }
  2771  
  2772  // FuncEscape returns the function "CSS.escape".
  2773  func (CSS) FuncEscape() (fn js.Func[func(ident js.String) js.String]) {
  2774  	bindings.FuncCSSEscape(
  2775  		js.Pointer(&fn),
  2776  	)
  2777  	return
  2778  }
  2779  
  2780  // Escape calls the function "CSS.escape".
  2781  func (CSS) Escape(ident js.String) (ret js.String) {
  2782  	bindings.CallCSSEscape(
  2783  		js.Pointer(&ret),
  2784  		ident.Ref(),
  2785  	)
  2786  	return
  2787  }
  2788  
  2789  // TryEscape calls the function "CSS.escape"
  2790  // in a try/catch block and returns (_, err, ok = true) when it went through
  2791  // the catch clause.
  2792  func (CSS) TryEscape(ident js.String) (ret js.String, exception js.Any, ok bool) {
  2793  	ok = js.True == bindings.TryCSSEscape(
  2794  		js.Pointer(&ret), js.Pointer(&exception),
  2795  		ident.Ref(),
  2796  	)
  2797  	return
  2798  }
  2799  
  2800  // HasFuncRegisterProperty returns ture if the function "CSS.registerProperty" exists.
  2801  func (CSS) HasFuncRegisterProperty() bool {
  2802  	return js.True == bindings.HasFuncCSSRegisterProperty()
  2803  }
  2804  
  2805  // FuncRegisterProperty returns the function "CSS.registerProperty".
  2806  func (CSS) FuncRegisterProperty() (fn js.Func[func(definition PropertyDefinition)]) {
  2807  	bindings.FuncCSSRegisterProperty(
  2808  		js.Pointer(&fn),
  2809  	)
  2810  	return
  2811  }
  2812  
  2813  // RegisterProperty calls the function "CSS.registerProperty".
  2814  func (CSS) RegisterProperty(definition PropertyDefinition) (ret js.Void) {
  2815  	bindings.CallCSSRegisterProperty(
  2816  		js.Pointer(&ret),
  2817  		js.Pointer(&definition),
  2818  	)
  2819  	return
  2820  }
  2821  
  2822  // TryRegisterProperty calls the function "CSS.registerProperty"
  2823  // in a try/catch block and returns (_, err, ok = true) when it went through
  2824  // the catch clause.
  2825  func (CSS) TryRegisterProperty(definition PropertyDefinition) (ret js.Void, exception js.Any, ok bool) {
  2826  	ok = js.True == bindings.TryCSSRegisterProperty(
  2827  		js.Pointer(&ret), js.Pointer(&exception),
  2828  		js.Pointer(&definition),
  2829  	)
  2830  	return
  2831  }
  2832  
  2833  // HasFuncSupports returns ture if the function "CSS.supports" exists.
  2834  func (CSS) HasFuncSupports() bool {
  2835  	return js.True == bindings.HasFuncCSSSupports()
  2836  }
  2837  
  2838  // FuncSupports returns the function "CSS.supports".
  2839  func (CSS) FuncSupports() (fn js.Func[func(property js.String, value js.String) bool]) {
  2840  	bindings.FuncCSSSupports(
  2841  		js.Pointer(&fn),
  2842  	)
  2843  	return
  2844  }
  2845  
  2846  // Supports calls the function "CSS.supports".
  2847  func (CSS) Supports(property js.String, value js.String) (ret bool) {
  2848  	bindings.CallCSSSupports(
  2849  		js.Pointer(&ret),
  2850  		property.Ref(),
  2851  		value.Ref(),
  2852  	)
  2853  	return
  2854  }
  2855  
  2856  // TrySupports calls the function "CSS.supports"
  2857  // in a try/catch block and returns (_, err, ok = true) when it went through
  2858  // the catch clause.
  2859  func (CSS) TrySupports(property js.String, value js.String) (ret bool, exception js.Any, ok bool) {
  2860  	ok = js.True == bindings.TryCSSSupports(
  2861  		js.Pointer(&ret), js.Pointer(&exception),
  2862  		property.Ref(),
  2863  		value.Ref(),
  2864  	)
  2865  	return
  2866  }
  2867  
  2868  // HasFuncSupports1 returns ture if the function "CSS.supports" exists.
  2869  func (CSS) HasFuncSupports1() bool {
  2870  	return js.True == bindings.HasFuncCSSSupports1()
  2871  }
  2872  
  2873  // FuncSupports1 returns the function "CSS.supports".
  2874  func (CSS) FuncSupports1() (fn js.Func[func(conditionText js.String) bool]) {
  2875  	bindings.FuncCSSSupports1(
  2876  		js.Pointer(&fn),
  2877  	)
  2878  	return
  2879  }
  2880  
  2881  // Supports1 calls the function "CSS.supports".
  2882  func (CSS) Supports1(conditionText js.String) (ret bool) {
  2883  	bindings.CallCSSSupports1(
  2884  		js.Pointer(&ret),
  2885  		conditionText.Ref(),
  2886  	)
  2887  	return
  2888  }
  2889  
  2890  // TrySupports1 calls the function "CSS.supports"
  2891  // in a try/catch block and returns (_, err, ok = true) when it went through
  2892  // the catch clause.
  2893  func (CSS) TrySupports1(conditionText js.String) (ret bool, exception js.Any, ok bool) {
  2894  	ok = js.True == bindings.TryCSSSupports1(
  2895  		js.Pointer(&ret), js.Pointer(&exception),
  2896  		conditionText.Ref(),
  2897  	)
  2898  	return
  2899  }
  2900  
  2901  // HasFuncNumber returns ture if the function "CSS.number" exists.
  2902  func (CSS) HasFuncNumber() bool {
  2903  	return js.True == bindings.HasFuncCSSNumber()
  2904  }
  2905  
  2906  // FuncNumber returns the function "CSS.number".
  2907  func (CSS) FuncNumber() (fn js.Func[func(value float64) CSSUnitValue]) {
  2908  	bindings.FuncCSSNumber(
  2909  		js.Pointer(&fn),
  2910  	)
  2911  	return
  2912  }
  2913  
  2914  // Number calls the function "CSS.number".
  2915  func (CSS) Number(value float64) (ret CSSUnitValue) {
  2916  	bindings.CallCSSNumber(
  2917  		js.Pointer(&ret),
  2918  		float64(value),
  2919  	)
  2920  	return
  2921  }
  2922  
  2923  // TryNumber calls the function "CSS.number"
  2924  // in a try/catch block and returns (_, err, ok = true) when it went through
  2925  // the catch clause.
  2926  func (CSS) TryNumber(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  2927  	ok = js.True == bindings.TryCSSNumber(
  2928  		js.Pointer(&ret), js.Pointer(&exception),
  2929  		float64(value),
  2930  	)
  2931  	return
  2932  }
  2933  
  2934  // HasFuncPercent returns ture if the function "CSS.percent" exists.
  2935  func (CSS) HasFuncPercent() bool {
  2936  	return js.True == bindings.HasFuncCSSPercent()
  2937  }
  2938  
  2939  // FuncPercent returns the function "CSS.percent".
  2940  func (CSS) FuncPercent() (fn js.Func[func(value float64) CSSUnitValue]) {
  2941  	bindings.FuncCSSPercent(
  2942  		js.Pointer(&fn),
  2943  	)
  2944  	return
  2945  }
  2946  
  2947  // Percent calls the function "CSS.percent".
  2948  func (CSS) Percent(value float64) (ret CSSUnitValue) {
  2949  	bindings.CallCSSPercent(
  2950  		js.Pointer(&ret),
  2951  		float64(value),
  2952  	)
  2953  	return
  2954  }
  2955  
  2956  // TryPercent calls the function "CSS.percent"
  2957  // in a try/catch block and returns (_, err, ok = true) when it went through
  2958  // the catch clause.
  2959  func (CSS) TryPercent(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  2960  	ok = js.True == bindings.TryCSSPercent(
  2961  		js.Pointer(&ret), js.Pointer(&exception),
  2962  		float64(value),
  2963  	)
  2964  	return
  2965  }
  2966  
  2967  // HasFuncCap returns ture if the function "CSS.cap" exists.
  2968  func (CSS) HasFuncCap() bool {
  2969  	return js.True == bindings.HasFuncCSSCap()
  2970  }
  2971  
  2972  // FuncCap returns the function "CSS.cap".
  2973  func (CSS) FuncCap() (fn js.Func[func(value float64) CSSUnitValue]) {
  2974  	bindings.FuncCSSCap(
  2975  		js.Pointer(&fn),
  2976  	)
  2977  	return
  2978  }
  2979  
  2980  // Cap calls the function "CSS.cap".
  2981  func (CSS) Cap(value float64) (ret CSSUnitValue) {
  2982  	bindings.CallCSSCap(
  2983  		js.Pointer(&ret),
  2984  		float64(value),
  2985  	)
  2986  	return
  2987  }
  2988  
  2989  // TryCap calls the function "CSS.cap"
  2990  // in a try/catch block and returns (_, err, ok = true) when it went through
  2991  // the catch clause.
  2992  func (CSS) TryCap(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  2993  	ok = js.True == bindings.TryCSSCap(
  2994  		js.Pointer(&ret), js.Pointer(&exception),
  2995  		float64(value),
  2996  	)
  2997  	return
  2998  }
  2999  
  3000  // HasFuncCh returns ture if the function "CSS.ch" exists.
  3001  func (CSS) HasFuncCh() bool {
  3002  	return js.True == bindings.HasFuncCSSCh()
  3003  }
  3004  
  3005  // FuncCh returns the function "CSS.ch".
  3006  func (CSS) FuncCh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3007  	bindings.FuncCSSCh(
  3008  		js.Pointer(&fn),
  3009  	)
  3010  	return
  3011  }
  3012  
  3013  // Ch calls the function "CSS.ch".
  3014  func (CSS) Ch(value float64) (ret CSSUnitValue) {
  3015  	bindings.CallCSSCh(
  3016  		js.Pointer(&ret),
  3017  		float64(value),
  3018  	)
  3019  	return
  3020  }
  3021  
  3022  // TryCh calls the function "CSS.ch"
  3023  // in a try/catch block and returns (_, err, ok = true) when it went through
  3024  // the catch clause.
  3025  func (CSS) TryCh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3026  	ok = js.True == bindings.TryCSSCh(
  3027  		js.Pointer(&ret), js.Pointer(&exception),
  3028  		float64(value),
  3029  	)
  3030  	return
  3031  }
  3032  
  3033  // HasFuncEm returns ture if the function "CSS.em" exists.
  3034  func (CSS) HasFuncEm() bool {
  3035  	return js.True == bindings.HasFuncCSSEm()
  3036  }
  3037  
  3038  // FuncEm returns the function "CSS.em".
  3039  func (CSS) FuncEm() (fn js.Func[func(value float64) CSSUnitValue]) {
  3040  	bindings.FuncCSSEm(
  3041  		js.Pointer(&fn),
  3042  	)
  3043  	return
  3044  }
  3045  
  3046  // Em calls the function "CSS.em".
  3047  func (CSS) Em(value float64) (ret CSSUnitValue) {
  3048  	bindings.CallCSSEm(
  3049  		js.Pointer(&ret),
  3050  		float64(value),
  3051  	)
  3052  	return
  3053  }
  3054  
  3055  // TryEm calls the function "CSS.em"
  3056  // in a try/catch block and returns (_, err, ok = true) when it went through
  3057  // the catch clause.
  3058  func (CSS) TryEm(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3059  	ok = js.True == bindings.TryCSSEm(
  3060  		js.Pointer(&ret), js.Pointer(&exception),
  3061  		float64(value),
  3062  	)
  3063  	return
  3064  }
  3065  
  3066  // HasFuncEx returns ture if the function "CSS.ex" exists.
  3067  func (CSS) HasFuncEx() bool {
  3068  	return js.True == bindings.HasFuncCSSEx()
  3069  }
  3070  
  3071  // FuncEx returns the function "CSS.ex".
  3072  func (CSS) FuncEx() (fn js.Func[func(value float64) CSSUnitValue]) {
  3073  	bindings.FuncCSSEx(
  3074  		js.Pointer(&fn),
  3075  	)
  3076  	return
  3077  }
  3078  
  3079  // Ex calls the function "CSS.ex".
  3080  func (CSS) Ex(value float64) (ret CSSUnitValue) {
  3081  	bindings.CallCSSEx(
  3082  		js.Pointer(&ret),
  3083  		float64(value),
  3084  	)
  3085  	return
  3086  }
  3087  
  3088  // TryEx calls the function "CSS.ex"
  3089  // in a try/catch block and returns (_, err, ok = true) when it went through
  3090  // the catch clause.
  3091  func (CSS) TryEx(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3092  	ok = js.True == bindings.TryCSSEx(
  3093  		js.Pointer(&ret), js.Pointer(&exception),
  3094  		float64(value),
  3095  	)
  3096  	return
  3097  }
  3098  
  3099  // HasFuncIc returns ture if the function "CSS.ic" exists.
  3100  func (CSS) HasFuncIc() bool {
  3101  	return js.True == bindings.HasFuncCSSIc()
  3102  }
  3103  
  3104  // FuncIc returns the function "CSS.ic".
  3105  func (CSS) FuncIc() (fn js.Func[func(value float64) CSSUnitValue]) {
  3106  	bindings.FuncCSSIc(
  3107  		js.Pointer(&fn),
  3108  	)
  3109  	return
  3110  }
  3111  
  3112  // Ic calls the function "CSS.ic".
  3113  func (CSS) Ic(value float64) (ret CSSUnitValue) {
  3114  	bindings.CallCSSIc(
  3115  		js.Pointer(&ret),
  3116  		float64(value),
  3117  	)
  3118  	return
  3119  }
  3120  
  3121  // TryIc calls the function "CSS.ic"
  3122  // in a try/catch block and returns (_, err, ok = true) when it went through
  3123  // the catch clause.
  3124  func (CSS) TryIc(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3125  	ok = js.True == bindings.TryCSSIc(
  3126  		js.Pointer(&ret), js.Pointer(&exception),
  3127  		float64(value),
  3128  	)
  3129  	return
  3130  }
  3131  
  3132  // HasFuncLh returns ture if the function "CSS.lh" exists.
  3133  func (CSS) HasFuncLh() bool {
  3134  	return js.True == bindings.HasFuncCSSLh()
  3135  }
  3136  
  3137  // FuncLh returns the function "CSS.lh".
  3138  func (CSS) FuncLh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3139  	bindings.FuncCSSLh(
  3140  		js.Pointer(&fn),
  3141  	)
  3142  	return
  3143  }
  3144  
  3145  // Lh calls the function "CSS.lh".
  3146  func (CSS) Lh(value float64) (ret CSSUnitValue) {
  3147  	bindings.CallCSSLh(
  3148  		js.Pointer(&ret),
  3149  		float64(value),
  3150  	)
  3151  	return
  3152  }
  3153  
  3154  // TryLh calls the function "CSS.lh"
  3155  // in a try/catch block and returns (_, err, ok = true) when it went through
  3156  // the catch clause.
  3157  func (CSS) TryLh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3158  	ok = js.True == bindings.TryCSSLh(
  3159  		js.Pointer(&ret), js.Pointer(&exception),
  3160  		float64(value),
  3161  	)
  3162  	return
  3163  }
  3164  
  3165  // HasFuncRcap returns ture if the function "CSS.rcap" exists.
  3166  func (CSS) HasFuncRcap() bool {
  3167  	return js.True == bindings.HasFuncCSSRcap()
  3168  }
  3169  
  3170  // FuncRcap returns the function "CSS.rcap".
  3171  func (CSS) FuncRcap() (fn js.Func[func(value float64) CSSUnitValue]) {
  3172  	bindings.FuncCSSRcap(
  3173  		js.Pointer(&fn),
  3174  	)
  3175  	return
  3176  }
  3177  
  3178  // Rcap calls the function "CSS.rcap".
  3179  func (CSS) Rcap(value float64) (ret CSSUnitValue) {
  3180  	bindings.CallCSSRcap(
  3181  		js.Pointer(&ret),
  3182  		float64(value),
  3183  	)
  3184  	return
  3185  }
  3186  
  3187  // TryRcap calls the function "CSS.rcap"
  3188  // in a try/catch block and returns (_, err, ok = true) when it went through
  3189  // the catch clause.
  3190  func (CSS) TryRcap(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3191  	ok = js.True == bindings.TryCSSRcap(
  3192  		js.Pointer(&ret), js.Pointer(&exception),
  3193  		float64(value),
  3194  	)
  3195  	return
  3196  }
  3197  
  3198  // HasFuncRch returns ture if the function "CSS.rch" exists.
  3199  func (CSS) HasFuncRch() bool {
  3200  	return js.True == bindings.HasFuncCSSRch()
  3201  }
  3202  
  3203  // FuncRch returns the function "CSS.rch".
  3204  func (CSS) FuncRch() (fn js.Func[func(value float64) CSSUnitValue]) {
  3205  	bindings.FuncCSSRch(
  3206  		js.Pointer(&fn),
  3207  	)
  3208  	return
  3209  }
  3210  
  3211  // Rch calls the function "CSS.rch".
  3212  func (CSS) Rch(value float64) (ret CSSUnitValue) {
  3213  	bindings.CallCSSRch(
  3214  		js.Pointer(&ret),
  3215  		float64(value),
  3216  	)
  3217  	return
  3218  }
  3219  
  3220  // TryRch calls the function "CSS.rch"
  3221  // in a try/catch block and returns (_, err, ok = true) when it went through
  3222  // the catch clause.
  3223  func (CSS) TryRch(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3224  	ok = js.True == bindings.TryCSSRch(
  3225  		js.Pointer(&ret), js.Pointer(&exception),
  3226  		float64(value),
  3227  	)
  3228  	return
  3229  }
  3230  
  3231  // HasFuncRem returns ture if the function "CSS.rem" exists.
  3232  func (CSS) HasFuncRem() bool {
  3233  	return js.True == bindings.HasFuncCSSRem()
  3234  }
  3235  
  3236  // FuncRem returns the function "CSS.rem".
  3237  func (CSS) FuncRem() (fn js.Func[func(value float64) CSSUnitValue]) {
  3238  	bindings.FuncCSSRem(
  3239  		js.Pointer(&fn),
  3240  	)
  3241  	return
  3242  }
  3243  
  3244  // Rem calls the function "CSS.rem".
  3245  func (CSS) Rem(value float64) (ret CSSUnitValue) {
  3246  	bindings.CallCSSRem(
  3247  		js.Pointer(&ret),
  3248  		float64(value),
  3249  	)
  3250  	return
  3251  }
  3252  
  3253  // TryRem calls the function "CSS.rem"
  3254  // in a try/catch block and returns (_, err, ok = true) when it went through
  3255  // the catch clause.
  3256  func (CSS) TryRem(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3257  	ok = js.True == bindings.TryCSSRem(
  3258  		js.Pointer(&ret), js.Pointer(&exception),
  3259  		float64(value),
  3260  	)
  3261  	return
  3262  }
  3263  
  3264  // HasFuncRex returns ture if the function "CSS.rex" exists.
  3265  func (CSS) HasFuncRex() bool {
  3266  	return js.True == bindings.HasFuncCSSRex()
  3267  }
  3268  
  3269  // FuncRex returns the function "CSS.rex".
  3270  func (CSS) FuncRex() (fn js.Func[func(value float64) CSSUnitValue]) {
  3271  	bindings.FuncCSSRex(
  3272  		js.Pointer(&fn),
  3273  	)
  3274  	return
  3275  }
  3276  
  3277  // Rex calls the function "CSS.rex".
  3278  func (CSS) Rex(value float64) (ret CSSUnitValue) {
  3279  	bindings.CallCSSRex(
  3280  		js.Pointer(&ret),
  3281  		float64(value),
  3282  	)
  3283  	return
  3284  }
  3285  
  3286  // TryRex calls the function "CSS.rex"
  3287  // in a try/catch block and returns (_, err, ok = true) when it went through
  3288  // the catch clause.
  3289  func (CSS) TryRex(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3290  	ok = js.True == bindings.TryCSSRex(
  3291  		js.Pointer(&ret), js.Pointer(&exception),
  3292  		float64(value),
  3293  	)
  3294  	return
  3295  }
  3296  
  3297  // HasFuncRic returns ture if the function "CSS.ric" exists.
  3298  func (CSS) HasFuncRic() bool {
  3299  	return js.True == bindings.HasFuncCSSRic()
  3300  }
  3301  
  3302  // FuncRic returns the function "CSS.ric".
  3303  func (CSS) FuncRic() (fn js.Func[func(value float64) CSSUnitValue]) {
  3304  	bindings.FuncCSSRic(
  3305  		js.Pointer(&fn),
  3306  	)
  3307  	return
  3308  }
  3309  
  3310  // Ric calls the function "CSS.ric".
  3311  func (CSS) Ric(value float64) (ret CSSUnitValue) {
  3312  	bindings.CallCSSRic(
  3313  		js.Pointer(&ret),
  3314  		float64(value),
  3315  	)
  3316  	return
  3317  }
  3318  
  3319  // TryRic calls the function "CSS.ric"
  3320  // in a try/catch block and returns (_, err, ok = true) when it went through
  3321  // the catch clause.
  3322  func (CSS) TryRic(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3323  	ok = js.True == bindings.TryCSSRic(
  3324  		js.Pointer(&ret), js.Pointer(&exception),
  3325  		float64(value),
  3326  	)
  3327  	return
  3328  }
  3329  
  3330  // HasFuncRlh returns ture if the function "CSS.rlh" exists.
  3331  func (CSS) HasFuncRlh() bool {
  3332  	return js.True == bindings.HasFuncCSSRlh()
  3333  }
  3334  
  3335  // FuncRlh returns the function "CSS.rlh".
  3336  func (CSS) FuncRlh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3337  	bindings.FuncCSSRlh(
  3338  		js.Pointer(&fn),
  3339  	)
  3340  	return
  3341  }
  3342  
  3343  // Rlh calls the function "CSS.rlh".
  3344  func (CSS) Rlh(value float64) (ret CSSUnitValue) {
  3345  	bindings.CallCSSRlh(
  3346  		js.Pointer(&ret),
  3347  		float64(value),
  3348  	)
  3349  	return
  3350  }
  3351  
  3352  // TryRlh calls the function "CSS.rlh"
  3353  // in a try/catch block and returns (_, err, ok = true) when it went through
  3354  // the catch clause.
  3355  func (CSS) TryRlh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3356  	ok = js.True == bindings.TryCSSRlh(
  3357  		js.Pointer(&ret), js.Pointer(&exception),
  3358  		float64(value),
  3359  	)
  3360  	return
  3361  }
  3362  
  3363  // HasFuncVw returns ture if the function "CSS.vw" exists.
  3364  func (CSS) HasFuncVw() bool {
  3365  	return js.True == bindings.HasFuncCSSVw()
  3366  }
  3367  
  3368  // FuncVw returns the function "CSS.vw".
  3369  func (CSS) FuncVw() (fn js.Func[func(value float64) CSSUnitValue]) {
  3370  	bindings.FuncCSSVw(
  3371  		js.Pointer(&fn),
  3372  	)
  3373  	return
  3374  }
  3375  
  3376  // Vw calls the function "CSS.vw".
  3377  func (CSS) Vw(value float64) (ret CSSUnitValue) {
  3378  	bindings.CallCSSVw(
  3379  		js.Pointer(&ret),
  3380  		float64(value),
  3381  	)
  3382  	return
  3383  }
  3384  
  3385  // TryVw calls the function "CSS.vw"
  3386  // in a try/catch block and returns (_, err, ok = true) when it went through
  3387  // the catch clause.
  3388  func (CSS) TryVw(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3389  	ok = js.True == bindings.TryCSSVw(
  3390  		js.Pointer(&ret), js.Pointer(&exception),
  3391  		float64(value),
  3392  	)
  3393  	return
  3394  }
  3395  
  3396  // HasFuncVh returns ture if the function "CSS.vh" exists.
  3397  func (CSS) HasFuncVh() bool {
  3398  	return js.True == bindings.HasFuncCSSVh()
  3399  }
  3400  
  3401  // FuncVh returns the function "CSS.vh".
  3402  func (CSS) FuncVh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3403  	bindings.FuncCSSVh(
  3404  		js.Pointer(&fn),
  3405  	)
  3406  	return
  3407  }
  3408  
  3409  // Vh calls the function "CSS.vh".
  3410  func (CSS) Vh(value float64) (ret CSSUnitValue) {
  3411  	bindings.CallCSSVh(
  3412  		js.Pointer(&ret),
  3413  		float64(value),
  3414  	)
  3415  	return
  3416  }
  3417  
  3418  // TryVh calls the function "CSS.vh"
  3419  // in a try/catch block and returns (_, err, ok = true) when it went through
  3420  // the catch clause.
  3421  func (CSS) TryVh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3422  	ok = js.True == bindings.TryCSSVh(
  3423  		js.Pointer(&ret), js.Pointer(&exception),
  3424  		float64(value),
  3425  	)
  3426  	return
  3427  }
  3428  
  3429  // HasFuncVi returns ture if the function "CSS.vi" exists.
  3430  func (CSS) HasFuncVi() bool {
  3431  	return js.True == bindings.HasFuncCSSVi()
  3432  }
  3433  
  3434  // FuncVi returns the function "CSS.vi".
  3435  func (CSS) FuncVi() (fn js.Func[func(value float64) CSSUnitValue]) {
  3436  	bindings.FuncCSSVi(
  3437  		js.Pointer(&fn),
  3438  	)
  3439  	return
  3440  }
  3441  
  3442  // Vi calls the function "CSS.vi".
  3443  func (CSS) Vi(value float64) (ret CSSUnitValue) {
  3444  	bindings.CallCSSVi(
  3445  		js.Pointer(&ret),
  3446  		float64(value),
  3447  	)
  3448  	return
  3449  }
  3450  
  3451  // TryVi calls the function "CSS.vi"
  3452  // in a try/catch block and returns (_, err, ok = true) when it went through
  3453  // the catch clause.
  3454  func (CSS) TryVi(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3455  	ok = js.True == bindings.TryCSSVi(
  3456  		js.Pointer(&ret), js.Pointer(&exception),
  3457  		float64(value),
  3458  	)
  3459  	return
  3460  }
  3461  
  3462  // HasFuncVb returns ture if the function "CSS.vb" exists.
  3463  func (CSS) HasFuncVb() bool {
  3464  	return js.True == bindings.HasFuncCSSVb()
  3465  }
  3466  
  3467  // FuncVb returns the function "CSS.vb".
  3468  func (CSS) FuncVb() (fn js.Func[func(value float64) CSSUnitValue]) {
  3469  	bindings.FuncCSSVb(
  3470  		js.Pointer(&fn),
  3471  	)
  3472  	return
  3473  }
  3474  
  3475  // Vb calls the function "CSS.vb".
  3476  func (CSS) Vb(value float64) (ret CSSUnitValue) {
  3477  	bindings.CallCSSVb(
  3478  		js.Pointer(&ret),
  3479  		float64(value),
  3480  	)
  3481  	return
  3482  }
  3483  
  3484  // TryVb calls the function "CSS.vb"
  3485  // in a try/catch block and returns (_, err, ok = true) when it went through
  3486  // the catch clause.
  3487  func (CSS) TryVb(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3488  	ok = js.True == bindings.TryCSSVb(
  3489  		js.Pointer(&ret), js.Pointer(&exception),
  3490  		float64(value),
  3491  	)
  3492  	return
  3493  }
  3494  
  3495  // HasFuncVmin returns ture if the function "CSS.vmin" exists.
  3496  func (CSS) HasFuncVmin() bool {
  3497  	return js.True == bindings.HasFuncCSSVmin()
  3498  }
  3499  
  3500  // FuncVmin returns the function "CSS.vmin".
  3501  func (CSS) FuncVmin() (fn js.Func[func(value float64) CSSUnitValue]) {
  3502  	bindings.FuncCSSVmin(
  3503  		js.Pointer(&fn),
  3504  	)
  3505  	return
  3506  }
  3507  
  3508  // Vmin calls the function "CSS.vmin".
  3509  func (CSS) Vmin(value float64) (ret CSSUnitValue) {
  3510  	bindings.CallCSSVmin(
  3511  		js.Pointer(&ret),
  3512  		float64(value),
  3513  	)
  3514  	return
  3515  }
  3516  
  3517  // TryVmin calls the function "CSS.vmin"
  3518  // in a try/catch block and returns (_, err, ok = true) when it went through
  3519  // the catch clause.
  3520  func (CSS) TryVmin(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3521  	ok = js.True == bindings.TryCSSVmin(
  3522  		js.Pointer(&ret), js.Pointer(&exception),
  3523  		float64(value),
  3524  	)
  3525  	return
  3526  }
  3527  
  3528  // HasFuncVmax returns ture if the function "CSS.vmax" exists.
  3529  func (CSS) HasFuncVmax() bool {
  3530  	return js.True == bindings.HasFuncCSSVmax()
  3531  }
  3532  
  3533  // FuncVmax returns the function "CSS.vmax".
  3534  func (CSS) FuncVmax() (fn js.Func[func(value float64) CSSUnitValue]) {
  3535  	bindings.FuncCSSVmax(
  3536  		js.Pointer(&fn),
  3537  	)
  3538  	return
  3539  }
  3540  
  3541  // Vmax calls the function "CSS.vmax".
  3542  func (CSS) Vmax(value float64) (ret CSSUnitValue) {
  3543  	bindings.CallCSSVmax(
  3544  		js.Pointer(&ret),
  3545  		float64(value),
  3546  	)
  3547  	return
  3548  }
  3549  
  3550  // TryVmax calls the function "CSS.vmax"
  3551  // in a try/catch block and returns (_, err, ok = true) when it went through
  3552  // the catch clause.
  3553  func (CSS) TryVmax(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3554  	ok = js.True == bindings.TryCSSVmax(
  3555  		js.Pointer(&ret), js.Pointer(&exception),
  3556  		float64(value),
  3557  	)
  3558  	return
  3559  }
  3560  
  3561  // HasFuncSvw returns ture if the function "CSS.svw" exists.
  3562  func (CSS) HasFuncSvw() bool {
  3563  	return js.True == bindings.HasFuncCSSSvw()
  3564  }
  3565  
  3566  // FuncSvw returns the function "CSS.svw".
  3567  func (CSS) FuncSvw() (fn js.Func[func(value float64) CSSUnitValue]) {
  3568  	bindings.FuncCSSSvw(
  3569  		js.Pointer(&fn),
  3570  	)
  3571  	return
  3572  }
  3573  
  3574  // Svw calls the function "CSS.svw".
  3575  func (CSS) Svw(value float64) (ret CSSUnitValue) {
  3576  	bindings.CallCSSSvw(
  3577  		js.Pointer(&ret),
  3578  		float64(value),
  3579  	)
  3580  	return
  3581  }
  3582  
  3583  // TrySvw calls the function "CSS.svw"
  3584  // in a try/catch block and returns (_, err, ok = true) when it went through
  3585  // the catch clause.
  3586  func (CSS) TrySvw(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3587  	ok = js.True == bindings.TryCSSSvw(
  3588  		js.Pointer(&ret), js.Pointer(&exception),
  3589  		float64(value),
  3590  	)
  3591  	return
  3592  }
  3593  
  3594  // HasFuncSvh returns ture if the function "CSS.svh" exists.
  3595  func (CSS) HasFuncSvh() bool {
  3596  	return js.True == bindings.HasFuncCSSSvh()
  3597  }
  3598  
  3599  // FuncSvh returns the function "CSS.svh".
  3600  func (CSS) FuncSvh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3601  	bindings.FuncCSSSvh(
  3602  		js.Pointer(&fn),
  3603  	)
  3604  	return
  3605  }
  3606  
  3607  // Svh calls the function "CSS.svh".
  3608  func (CSS) Svh(value float64) (ret CSSUnitValue) {
  3609  	bindings.CallCSSSvh(
  3610  		js.Pointer(&ret),
  3611  		float64(value),
  3612  	)
  3613  	return
  3614  }
  3615  
  3616  // TrySvh calls the function "CSS.svh"
  3617  // in a try/catch block and returns (_, err, ok = true) when it went through
  3618  // the catch clause.
  3619  func (CSS) TrySvh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3620  	ok = js.True == bindings.TryCSSSvh(
  3621  		js.Pointer(&ret), js.Pointer(&exception),
  3622  		float64(value),
  3623  	)
  3624  	return
  3625  }
  3626  
  3627  // HasFuncSvi returns ture if the function "CSS.svi" exists.
  3628  func (CSS) HasFuncSvi() bool {
  3629  	return js.True == bindings.HasFuncCSSSvi()
  3630  }
  3631  
  3632  // FuncSvi returns the function "CSS.svi".
  3633  func (CSS) FuncSvi() (fn js.Func[func(value float64) CSSUnitValue]) {
  3634  	bindings.FuncCSSSvi(
  3635  		js.Pointer(&fn),
  3636  	)
  3637  	return
  3638  }
  3639  
  3640  // Svi calls the function "CSS.svi".
  3641  func (CSS) Svi(value float64) (ret CSSUnitValue) {
  3642  	bindings.CallCSSSvi(
  3643  		js.Pointer(&ret),
  3644  		float64(value),
  3645  	)
  3646  	return
  3647  }
  3648  
  3649  // TrySvi calls the function "CSS.svi"
  3650  // in a try/catch block and returns (_, err, ok = true) when it went through
  3651  // the catch clause.
  3652  func (CSS) TrySvi(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3653  	ok = js.True == bindings.TryCSSSvi(
  3654  		js.Pointer(&ret), js.Pointer(&exception),
  3655  		float64(value),
  3656  	)
  3657  	return
  3658  }
  3659  
  3660  // HasFuncSvb returns ture if the function "CSS.svb" exists.
  3661  func (CSS) HasFuncSvb() bool {
  3662  	return js.True == bindings.HasFuncCSSSvb()
  3663  }
  3664  
  3665  // FuncSvb returns the function "CSS.svb".
  3666  func (CSS) FuncSvb() (fn js.Func[func(value float64) CSSUnitValue]) {
  3667  	bindings.FuncCSSSvb(
  3668  		js.Pointer(&fn),
  3669  	)
  3670  	return
  3671  }
  3672  
  3673  // Svb calls the function "CSS.svb".
  3674  func (CSS) Svb(value float64) (ret CSSUnitValue) {
  3675  	bindings.CallCSSSvb(
  3676  		js.Pointer(&ret),
  3677  		float64(value),
  3678  	)
  3679  	return
  3680  }
  3681  
  3682  // TrySvb calls the function "CSS.svb"
  3683  // in a try/catch block and returns (_, err, ok = true) when it went through
  3684  // the catch clause.
  3685  func (CSS) TrySvb(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3686  	ok = js.True == bindings.TryCSSSvb(
  3687  		js.Pointer(&ret), js.Pointer(&exception),
  3688  		float64(value),
  3689  	)
  3690  	return
  3691  }
  3692  
  3693  // HasFuncSvmin returns ture if the function "CSS.svmin" exists.
  3694  func (CSS) HasFuncSvmin() bool {
  3695  	return js.True == bindings.HasFuncCSSSvmin()
  3696  }
  3697  
  3698  // FuncSvmin returns the function "CSS.svmin".
  3699  func (CSS) FuncSvmin() (fn js.Func[func(value float64) CSSUnitValue]) {
  3700  	bindings.FuncCSSSvmin(
  3701  		js.Pointer(&fn),
  3702  	)
  3703  	return
  3704  }
  3705  
  3706  // Svmin calls the function "CSS.svmin".
  3707  func (CSS) Svmin(value float64) (ret CSSUnitValue) {
  3708  	bindings.CallCSSSvmin(
  3709  		js.Pointer(&ret),
  3710  		float64(value),
  3711  	)
  3712  	return
  3713  }
  3714  
  3715  // TrySvmin calls the function "CSS.svmin"
  3716  // in a try/catch block and returns (_, err, ok = true) when it went through
  3717  // the catch clause.
  3718  func (CSS) TrySvmin(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3719  	ok = js.True == bindings.TryCSSSvmin(
  3720  		js.Pointer(&ret), js.Pointer(&exception),
  3721  		float64(value),
  3722  	)
  3723  	return
  3724  }
  3725  
  3726  // HasFuncSvmax returns ture if the function "CSS.svmax" exists.
  3727  func (CSS) HasFuncSvmax() bool {
  3728  	return js.True == bindings.HasFuncCSSSvmax()
  3729  }
  3730  
  3731  // FuncSvmax returns the function "CSS.svmax".
  3732  func (CSS) FuncSvmax() (fn js.Func[func(value float64) CSSUnitValue]) {
  3733  	bindings.FuncCSSSvmax(
  3734  		js.Pointer(&fn),
  3735  	)
  3736  	return
  3737  }
  3738  
  3739  // Svmax calls the function "CSS.svmax".
  3740  func (CSS) Svmax(value float64) (ret CSSUnitValue) {
  3741  	bindings.CallCSSSvmax(
  3742  		js.Pointer(&ret),
  3743  		float64(value),
  3744  	)
  3745  	return
  3746  }
  3747  
  3748  // TrySvmax calls the function "CSS.svmax"
  3749  // in a try/catch block and returns (_, err, ok = true) when it went through
  3750  // the catch clause.
  3751  func (CSS) TrySvmax(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3752  	ok = js.True == bindings.TryCSSSvmax(
  3753  		js.Pointer(&ret), js.Pointer(&exception),
  3754  		float64(value),
  3755  	)
  3756  	return
  3757  }
  3758  
  3759  // HasFuncLvw returns ture if the function "CSS.lvw" exists.
  3760  func (CSS) HasFuncLvw() bool {
  3761  	return js.True == bindings.HasFuncCSSLvw()
  3762  }
  3763  
  3764  // FuncLvw returns the function "CSS.lvw".
  3765  func (CSS) FuncLvw() (fn js.Func[func(value float64) CSSUnitValue]) {
  3766  	bindings.FuncCSSLvw(
  3767  		js.Pointer(&fn),
  3768  	)
  3769  	return
  3770  }
  3771  
  3772  // Lvw calls the function "CSS.lvw".
  3773  func (CSS) Lvw(value float64) (ret CSSUnitValue) {
  3774  	bindings.CallCSSLvw(
  3775  		js.Pointer(&ret),
  3776  		float64(value),
  3777  	)
  3778  	return
  3779  }
  3780  
  3781  // TryLvw calls the function "CSS.lvw"
  3782  // in a try/catch block and returns (_, err, ok = true) when it went through
  3783  // the catch clause.
  3784  func (CSS) TryLvw(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3785  	ok = js.True == bindings.TryCSSLvw(
  3786  		js.Pointer(&ret), js.Pointer(&exception),
  3787  		float64(value),
  3788  	)
  3789  	return
  3790  }
  3791  
  3792  // HasFuncLvh returns ture if the function "CSS.lvh" exists.
  3793  func (CSS) HasFuncLvh() bool {
  3794  	return js.True == bindings.HasFuncCSSLvh()
  3795  }
  3796  
  3797  // FuncLvh returns the function "CSS.lvh".
  3798  func (CSS) FuncLvh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3799  	bindings.FuncCSSLvh(
  3800  		js.Pointer(&fn),
  3801  	)
  3802  	return
  3803  }
  3804  
  3805  // Lvh calls the function "CSS.lvh".
  3806  func (CSS) Lvh(value float64) (ret CSSUnitValue) {
  3807  	bindings.CallCSSLvh(
  3808  		js.Pointer(&ret),
  3809  		float64(value),
  3810  	)
  3811  	return
  3812  }
  3813  
  3814  // TryLvh calls the function "CSS.lvh"
  3815  // in a try/catch block and returns (_, err, ok = true) when it went through
  3816  // the catch clause.
  3817  func (CSS) TryLvh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3818  	ok = js.True == bindings.TryCSSLvh(
  3819  		js.Pointer(&ret), js.Pointer(&exception),
  3820  		float64(value),
  3821  	)
  3822  	return
  3823  }
  3824  
  3825  // HasFuncLvi returns ture if the function "CSS.lvi" exists.
  3826  func (CSS) HasFuncLvi() bool {
  3827  	return js.True == bindings.HasFuncCSSLvi()
  3828  }
  3829  
  3830  // FuncLvi returns the function "CSS.lvi".
  3831  func (CSS) FuncLvi() (fn js.Func[func(value float64) CSSUnitValue]) {
  3832  	bindings.FuncCSSLvi(
  3833  		js.Pointer(&fn),
  3834  	)
  3835  	return
  3836  }
  3837  
  3838  // Lvi calls the function "CSS.lvi".
  3839  func (CSS) Lvi(value float64) (ret CSSUnitValue) {
  3840  	bindings.CallCSSLvi(
  3841  		js.Pointer(&ret),
  3842  		float64(value),
  3843  	)
  3844  	return
  3845  }
  3846  
  3847  // TryLvi calls the function "CSS.lvi"
  3848  // in a try/catch block and returns (_, err, ok = true) when it went through
  3849  // the catch clause.
  3850  func (CSS) TryLvi(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3851  	ok = js.True == bindings.TryCSSLvi(
  3852  		js.Pointer(&ret), js.Pointer(&exception),
  3853  		float64(value),
  3854  	)
  3855  	return
  3856  }
  3857  
  3858  // HasFuncLvb returns ture if the function "CSS.lvb" exists.
  3859  func (CSS) HasFuncLvb() bool {
  3860  	return js.True == bindings.HasFuncCSSLvb()
  3861  }
  3862  
  3863  // FuncLvb returns the function "CSS.lvb".
  3864  func (CSS) FuncLvb() (fn js.Func[func(value float64) CSSUnitValue]) {
  3865  	bindings.FuncCSSLvb(
  3866  		js.Pointer(&fn),
  3867  	)
  3868  	return
  3869  }
  3870  
  3871  // Lvb calls the function "CSS.lvb".
  3872  func (CSS) Lvb(value float64) (ret CSSUnitValue) {
  3873  	bindings.CallCSSLvb(
  3874  		js.Pointer(&ret),
  3875  		float64(value),
  3876  	)
  3877  	return
  3878  }
  3879  
  3880  // TryLvb calls the function "CSS.lvb"
  3881  // in a try/catch block and returns (_, err, ok = true) when it went through
  3882  // the catch clause.
  3883  func (CSS) TryLvb(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3884  	ok = js.True == bindings.TryCSSLvb(
  3885  		js.Pointer(&ret), js.Pointer(&exception),
  3886  		float64(value),
  3887  	)
  3888  	return
  3889  }
  3890  
  3891  // HasFuncLvmin returns ture if the function "CSS.lvmin" exists.
  3892  func (CSS) HasFuncLvmin() bool {
  3893  	return js.True == bindings.HasFuncCSSLvmin()
  3894  }
  3895  
  3896  // FuncLvmin returns the function "CSS.lvmin".
  3897  func (CSS) FuncLvmin() (fn js.Func[func(value float64) CSSUnitValue]) {
  3898  	bindings.FuncCSSLvmin(
  3899  		js.Pointer(&fn),
  3900  	)
  3901  	return
  3902  }
  3903  
  3904  // Lvmin calls the function "CSS.lvmin".
  3905  func (CSS) Lvmin(value float64) (ret CSSUnitValue) {
  3906  	bindings.CallCSSLvmin(
  3907  		js.Pointer(&ret),
  3908  		float64(value),
  3909  	)
  3910  	return
  3911  }
  3912  
  3913  // TryLvmin calls the function "CSS.lvmin"
  3914  // in a try/catch block and returns (_, err, ok = true) when it went through
  3915  // the catch clause.
  3916  func (CSS) TryLvmin(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3917  	ok = js.True == bindings.TryCSSLvmin(
  3918  		js.Pointer(&ret), js.Pointer(&exception),
  3919  		float64(value),
  3920  	)
  3921  	return
  3922  }
  3923  
  3924  // HasFuncLvmax returns ture if the function "CSS.lvmax" exists.
  3925  func (CSS) HasFuncLvmax() bool {
  3926  	return js.True == bindings.HasFuncCSSLvmax()
  3927  }
  3928  
  3929  // FuncLvmax returns the function "CSS.lvmax".
  3930  func (CSS) FuncLvmax() (fn js.Func[func(value float64) CSSUnitValue]) {
  3931  	bindings.FuncCSSLvmax(
  3932  		js.Pointer(&fn),
  3933  	)
  3934  	return
  3935  }
  3936  
  3937  // Lvmax calls the function "CSS.lvmax".
  3938  func (CSS) Lvmax(value float64) (ret CSSUnitValue) {
  3939  	bindings.CallCSSLvmax(
  3940  		js.Pointer(&ret),
  3941  		float64(value),
  3942  	)
  3943  	return
  3944  }
  3945  
  3946  // TryLvmax calls the function "CSS.lvmax"
  3947  // in a try/catch block and returns (_, err, ok = true) when it went through
  3948  // the catch clause.
  3949  func (CSS) TryLvmax(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3950  	ok = js.True == bindings.TryCSSLvmax(
  3951  		js.Pointer(&ret), js.Pointer(&exception),
  3952  		float64(value),
  3953  	)
  3954  	return
  3955  }
  3956  
  3957  // HasFuncDvw returns ture if the function "CSS.dvw" exists.
  3958  func (CSS) HasFuncDvw() bool {
  3959  	return js.True == bindings.HasFuncCSSDvw()
  3960  }
  3961  
  3962  // FuncDvw returns the function "CSS.dvw".
  3963  func (CSS) FuncDvw() (fn js.Func[func(value float64) CSSUnitValue]) {
  3964  	bindings.FuncCSSDvw(
  3965  		js.Pointer(&fn),
  3966  	)
  3967  	return
  3968  }
  3969  
  3970  // Dvw calls the function "CSS.dvw".
  3971  func (CSS) Dvw(value float64) (ret CSSUnitValue) {
  3972  	bindings.CallCSSDvw(
  3973  		js.Pointer(&ret),
  3974  		float64(value),
  3975  	)
  3976  	return
  3977  }
  3978  
  3979  // TryDvw calls the function "CSS.dvw"
  3980  // in a try/catch block and returns (_, err, ok = true) when it went through
  3981  // the catch clause.
  3982  func (CSS) TryDvw(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  3983  	ok = js.True == bindings.TryCSSDvw(
  3984  		js.Pointer(&ret), js.Pointer(&exception),
  3985  		float64(value),
  3986  	)
  3987  	return
  3988  }
  3989  
  3990  // HasFuncDvh returns ture if the function "CSS.dvh" exists.
  3991  func (CSS) HasFuncDvh() bool {
  3992  	return js.True == bindings.HasFuncCSSDvh()
  3993  }
  3994  
  3995  // FuncDvh returns the function "CSS.dvh".
  3996  func (CSS) FuncDvh() (fn js.Func[func(value float64) CSSUnitValue]) {
  3997  	bindings.FuncCSSDvh(
  3998  		js.Pointer(&fn),
  3999  	)
  4000  	return
  4001  }
  4002  
  4003  // Dvh calls the function "CSS.dvh".
  4004  func (CSS) Dvh(value float64) (ret CSSUnitValue) {
  4005  	bindings.CallCSSDvh(
  4006  		js.Pointer(&ret),
  4007  		float64(value),
  4008  	)
  4009  	return
  4010  }
  4011  
  4012  // TryDvh calls the function "CSS.dvh"
  4013  // in a try/catch block and returns (_, err, ok = true) when it went through
  4014  // the catch clause.
  4015  func (CSS) TryDvh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4016  	ok = js.True == bindings.TryCSSDvh(
  4017  		js.Pointer(&ret), js.Pointer(&exception),
  4018  		float64(value),
  4019  	)
  4020  	return
  4021  }
  4022  
  4023  // HasFuncDvi returns ture if the function "CSS.dvi" exists.
  4024  func (CSS) HasFuncDvi() bool {
  4025  	return js.True == bindings.HasFuncCSSDvi()
  4026  }
  4027  
  4028  // FuncDvi returns the function "CSS.dvi".
  4029  func (CSS) FuncDvi() (fn js.Func[func(value float64) CSSUnitValue]) {
  4030  	bindings.FuncCSSDvi(
  4031  		js.Pointer(&fn),
  4032  	)
  4033  	return
  4034  }
  4035  
  4036  // Dvi calls the function "CSS.dvi".
  4037  func (CSS) Dvi(value float64) (ret CSSUnitValue) {
  4038  	bindings.CallCSSDvi(
  4039  		js.Pointer(&ret),
  4040  		float64(value),
  4041  	)
  4042  	return
  4043  }
  4044  
  4045  // TryDvi calls the function "CSS.dvi"
  4046  // in a try/catch block and returns (_, err, ok = true) when it went through
  4047  // the catch clause.
  4048  func (CSS) TryDvi(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4049  	ok = js.True == bindings.TryCSSDvi(
  4050  		js.Pointer(&ret), js.Pointer(&exception),
  4051  		float64(value),
  4052  	)
  4053  	return
  4054  }
  4055  
  4056  // HasFuncDvb returns ture if the function "CSS.dvb" exists.
  4057  func (CSS) HasFuncDvb() bool {
  4058  	return js.True == bindings.HasFuncCSSDvb()
  4059  }
  4060  
  4061  // FuncDvb returns the function "CSS.dvb".
  4062  func (CSS) FuncDvb() (fn js.Func[func(value float64) CSSUnitValue]) {
  4063  	bindings.FuncCSSDvb(
  4064  		js.Pointer(&fn),
  4065  	)
  4066  	return
  4067  }
  4068  
  4069  // Dvb calls the function "CSS.dvb".
  4070  func (CSS) Dvb(value float64) (ret CSSUnitValue) {
  4071  	bindings.CallCSSDvb(
  4072  		js.Pointer(&ret),
  4073  		float64(value),
  4074  	)
  4075  	return
  4076  }
  4077  
  4078  // TryDvb calls the function "CSS.dvb"
  4079  // in a try/catch block and returns (_, err, ok = true) when it went through
  4080  // the catch clause.
  4081  func (CSS) TryDvb(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4082  	ok = js.True == bindings.TryCSSDvb(
  4083  		js.Pointer(&ret), js.Pointer(&exception),
  4084  		float64(value),
  4085  	)
  4086  	return
  4087  }
  4088  
  4089  // HasFuncDvmin returns ture if the function "CSS.dvmin" exists.
  4090  func (CSS) HasFuncDvmin() bool {
  4091  	return js.True == bindings.HasFuncCSSDvmin()
  4092  }
  4093  
  4094  // FuncDvmin returns the function "CSS.dvmin".
  4095  func (CSS) FuncDvmin() (fn js.Func[func(value float64) CSSUnitValue]) {
  4096  	bindings.FuncCSSDvmin(
  4097  		js.Pointer(&fn),
  4098  	)
  4099  	return
  4100  }
  4101  
  4102  // Dvmin calls the function "CSS.dvmin".
  4103  func (CSS) Dvmin(value float64) (ret CSSUnitValue) {
  4104  	bindings.CallCSSDvmin(
  4105  		js.Pointer(&ret),
  4106  		float64(value),
  4107  	)
  4108  	return
  4109  }
  4110  
  4111  // TryDvmin calls the function "CSS.dvmin"
  4112  // in a try/catch block and returns (_, err, ok = true) when it went through
  4113  // the catch clause.
  4114  func (CSS) TryDvmin(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4115  	ok = js.True == bindings.TryCSSDvmin(
  4116  		js.Pointer(&ret), js.Pointer(&exception),
  4117  		float64(value),
  4118  	)
  4119  	return
  4120  }
  4121  
  4122  // HasFuncDvmax returns ture if the function "CSS.dvmax" exists.
  4123  func (CSS) HasFuncDvmax() bool {
  4124  	return js.True == bindings.HasFuncCSSDvmax()
  4125  }
  4126  
  4127  // FuncDvmax returns the function "CSS.dvmax".
  4128  func (CSS) FuncDvmax() (fn js.Func[func(value float64) CSSUnitValue]) {
  4129  	bindings.FuncCSSDvmax(
  4130  		js.Pointer(&fn),
  4131  	)
  4132  	return
  4133  }
  4134  
  4135  // Dvmax calls the function "CSS.dvmax".
  4136  func (CSS) Dvmax(value float64) (ret CSSUnitValue) {
  4137  	bindings.CallCSSDvmax(
  4138  		js.Pointer(&ret),
  4139  		float64(value),
  4140  	)
  4141  	return
  4142  }
  4143  
  4144  // TryDvmax calls the function "CSS.dvmax"
  4145  // in a try/catch block and returns (_, err, ok = true) when it went through
  4146  // the catch clause.
  4147  func (CSS) TryDvmax(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4148  	ok = js.True == bindings.TryCSSDvmax(
  4149  		js.Pointer(&ret), js.Pointer(&exception),
  4150  		float64(value),
  4151  	)
  4152  	return
  4153  }
  4154  
  4155  // HasFuncCqw returns ture if the function "CSS.cqw" exists.
  4156  func (CSS) HasFuncCqw() bool {
  4157  	return js.True == bindings.HasFuncCSSCqw()
  4158  }
  4159  
  4160  // FuncCqw returns the function "CSS.cqw".
  4161  func (CSS) FuncCqw() (fn js.Func[func(value float64) CSSUnitValue]) {
  4162  	bindings.FuncCSSCqw(
  4163  		js.Pointer(&fn),
  4164  	)
  4165  	return
  4166  }
  4167  
  4168  // Cqw calls the function "CSS.cqw".
  4169  func (CSS) Cqw(value float64) (ret CSSUnitValue) {
  4170  	bindings.CallCSSCqw(
  4171  		js.Pointer(&ret),
  4172  		float64(value),
  4173  	)
  4174  	return
  4175  }
  4176  
  4177  // TryCqw calls the function "CSS.cqw"
  4178  // in a try/catch block and returns (_, err, ok = true) when it went through
  4179  // the catch clause.
  4180  func (CSS) TryCqw(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4181  	ok = js.True == bindings.TryCSSCqw(
  4182  		js.Pointer(&ret), js.Pointer(&exception),
  4183  		float64(value),
  4184  	)
  4185  	return
  4186  }
  4187  
  4188  // HasFuncCqh returns ture if the function "CSS.cqh" exists.
  4189  func (CSS) HasFuncCqh() bool {
  4190  	return js.True == bindings.HasFuncCSSCqh()
  4191  }
  4192  
  4193  // FuncCqh returns the function "CSS.cqh".
  4194  func (CSS) FuncCqh() (fn js.Func[func(value float64) CSSUnitValue]) {
  4195  	bindings.FuncCSSCqh(
  4196  		js.Pointer(&fn),
  4197  	)
  4198  	return
  4199  }
  4200  
  4201  // Cqh calls the function "CSS.cqh".
  4202  func (CSS) Cqh(value float64) (ret CSSUnitValue) {
  4203  	bindings.CallCSSCqh(
  4204  		js.Pointer(&ret),
  4205  		float64(value),
  4206  	)
  4207  	return
  4208  }
  4209  
  4210  // TryCqh calls the function "CSS.cqh"
  4211  // in a try/catch block and returns (_, err, ok = true) when it went through
  4212  // the catch clause.
  4213  func (CSS) TryCqh(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4214  	ok = js.True == bindings.TryCSSCqh(
  4215  		js.Pointer(&ret), js.Pointer(&exception),
  4216  		float64(value),
  4217  	)
  4218  	return
  4219  }
  4220  
  4221  // HasFuncCqi returns ture if the function "CSS.cqi" exists.
  4222  func (CSS) HasFuncCqi() bool {
  4223  	return js.True == bindings.HasFuncCSSCqi()
  4224  }
  4225  
  4226  // FuncCqi returns the function "CSS.cqi".
  4227  func (CSS) FuncCqi() (fn js.Func[func(value float64) CSSUnitValue]) {
  4228  	bindings.FuncCSSCqi(
  4229  		js.Pointer(&fn),
  4230  	)
  4231  	return
  4232  }
  4233  
  4234  // Cqi calls the function "CSS.cqi".
  4235  func (CSS) Cqi(value float64) (ret CSSUnitValue) {
  4236  	bindings.CallCSSCqi(
  4237  		js.Pointer(&ret),
  4238  		float64(value),
  4239  	)
  4240  	return
  4241  }
  4242  
  4243  // TryCqi calls the function "CSS.cqi"
  4244  // in a try/catch block and returns (_, err, ok = true) when it went through
  4245  // the catch clause.
  4246  func (CSS) TryCqi(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4247  	ok = js.True == bindings.TryCSSCqi(
  4248  		js.Pointer(&ret), js.Pointer(&exception),
  4249  		float64(value),
  4250  	)
  4251  	return
  4252  }
  4253  
  4254  // HasFuncCqb returns ture if the function "CSS.cqb" exists.
  4255  func (CSS) HasFuncCqb() bool {
  4256  	return js.True == bindings.HasFuncCSSCqb()
  4257  }
  4258  
  4259  // FuncCqb returns the function "CSS.cqb".
  4260  func (CSS) FuncCqb() (fn js.Func[func(value float64) CSSUnitValue]) {
  4261  	bindings.FuncCSSCqb(
  4262  		js.Pointer(&fn),
  4263  	)
  4264  	return
  4265  }
  4266  
  4267  // Cqb calls the function "CSS.cqb".
  4268  func (CSS) Cqb(value float64) (ret CSSUnitValue) {
  4269  	bindings.CallCSSCqb(
  4270  		js.Pointer(&ret),
  4271  		float64(value),
  4272  	)
  4273  	return
  4274  }
  4275  
  4276  // TryCqb calls the function "CSS.cqb"
  4277  // in a try/catch block and returns (_, err, ok = true) when it went through
  4278  // the catch clause.
  4279  func (CSS) TryCqb(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4280  	ok = js.True == bindings.TryCSSCqb(
  4281  		js.Pointer(&ret), js.Pointer(&exception),
  4282  		float64(value),
  4283  	)
  4284  	return
  4285  }
  4286  
  4287  // HasFuncCqmin returns ture if the function "CSS.cqmin" exists.
  4288  func (CSS) HasFuncCqmin() bool {
  4289  	return js.True == bindings.HasFuncCSSCqmin()
  4290  }
  4291  
  4292  // FuncCqmin returns the function "CSS.cqmin".
  4293  func (CSS) FuncCqmin() (fn js.Func[func(value float64) CSSUnitValue]) {
  4294  	bindings.FuncCSSCqmin(
  4295  		js.Pointer(&fn),
  4296  	)
  4297  	return
  4298  }
  4299  
  4300  // Cqmin calls the function "CSS.cqmin".
  4301  func (CSS) Cqmin(value float64) (ret CSSUnitValue) {
  4302  	bindings.CallCSSCqmin(
  4303  		js.Pointer(&ret),
  4304  		float64(value),
  4305  	)
  4306  	return
  4307  }
  4308  
  4309  // TryCqmin calls the function "CSS.cqmin"
  4310  // in a try/catch block and returns (_, err, ok = true) when it went through
  4311  // the catch clause.
  4312  func (CSS) TryCqmin(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4313  	ok = js.True == bindings.TryCSSCqmin(
  4314  		js.Pointer(&ret), js.Pointer(&exception),
  4315  		float64(value),
  4316  	)
  4317  	return
  4318  }
  4319  
  4320  // HasFuncCqmax returns ture if the function "CSS.cqmax" exists.
  4321  func (CSS) HasFuncCqmax() bool {
  4322  	return js.True == bindings.HasFuncCSSCqmax()
  4323  }
  4324  
  4325  // FuncCqmax returns the function "CSS.cqmax".
  4326  func (CSS) FuncCqmax() (fn js.Func[func(value float64) CSSUnitValue]) {
  4327  	bindings.FuncCSSCqmax(
  4328  		js.Pointer(&fn),
  4329  	)
  4330  	return
  4331  }
  4332  
  4333  // Cqmax calls the function "CSS.cqmax".
  4334  func (CSS) Cqmax(value float64) (ret CSSUnitValue) {
  4335  	bindings.CallCSSCqmax(
  4336  		js.Pointer(&ret),
  4337  		float64(value),
  4338  	)
  4339  	return
  4340  }
  4341  
  4342  // TryCqmax calls the function "CSS.cqmax"
  4343  // in a try/catch block and returns (_, err, ok = true) when it went through
  4344  // the catch clause.
  4345  func (CSS) TryCqmax(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4346  	ok = js.True == bindings.TryCSSCqmax(
  4347  		js.Pointer(&ret), js.Pointer(&exception),
  4348  		float64(value),
  4349  	)
  4350  	return
  4351  }
  4352  
  4353  // HasFuncCm returns ture if the function "CSS.cm" exists.
  4354  func (CSS) HasFuncCm() bool {
  4355  	return js.True == bindings.HasFuncCSSCm()
  4356  }
  4357  
  4358  // FuncCm returns the function "CSS.cm".
  4359  func (CSS) FuncCm() (fn js.Func[func(value float64) CSSUnitValue]) {
  4360  	bindings.FuncCSSCm(
  4361  		js.Pointer(&fn),
  4362  	)
  4363  	return
  4364  }
  4365  
  4366  // Cm calls the function "CSS.cm".
  4367  func (CSS) Cm(value float64) (ret CSSUnitValue) {
  4368  	bindings.CallCSSCm(
  4369  		js.Pointer(&ret),
  4370  		float64(value),
  4371  	)
  4372  	return
  4373  }
  4374  
  4375  // TryCm calls the function "CSS.cm"
  4376  // in a try/catch block and returns (_, err, ok = true) when it went through
  4377  // the catch clause.
  4378  func (CSS) TryCm(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4379  	ok = js.True == bindings.TryCSSCm(
  4380  		js.Pointer(&ret), js.Pointer(&exception),
  4381  		float64(value),
  4382  	)
  4383  	return
  4384  }
  4385  
  4386  // HasFuncMm returns ture if the function "CSS.mm" exists.
  4387  func (CSS) HasFuncMm() bool {
  4388  	return js.True == bindings.HasFuncCSSMm()
  4389  }
  4390  
  4391  // FuncMm returns the function "CSS.mm".
  4392  func (CSS) FuncMm() (fn js.Func[func(value float64) CSSUnitValue]) {
  4393  	bindings.FuncCSSMm(
  4394  		js.Pointer(&fn),
  4395  	)
  4396  	return
  4397  }
  4398  
  4399  // Mm calls the function "CSS.mm".
  4400  func (CSS) Mm(value float64) (ret CSSUnitValue) {
  4401  	bindings.CallCSSMm(
  4402  		js.Pointer(&ret),
  4403  		float64(value),
  4404  	)
  4405  	return
  4406  }
  4407  
  4408  // TryMm calls the function "CSS.mm"
  4409  // in a try/catch block and returns (_, err, ok = true) when it went through
  4410  // the catch clause.
  4411  func (CSS) TryMm(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4412  	ok = js.True == bindings.TryCSSMm(
  4413  		js.Pointer(&ret), js.Pointer(&exception),
  4414  		float64(value),
  4415  	)
  4416  	return
  4417  }
  4418  
  4419  // HasFuncQ returns ture if the function "CSS.Q" exists.
  4420  func (CSS) HasFuncQ() bool {
  4421  	return js.True == bindings.HasFuncCSSQ()
  4422  }
  4423  
  4424  // FuncQ returns the function "CSS.Q".
  4425  func (CSS) FuncQ() (fn js.Func[func(value float64) CSSUnitValue]) {
  4426  	bindings.FuncCSSQ(
  4427  		js.Pointer(&fn),
  4428  	)
  4429  	return
  4430  }
  4431  
  4432  // Q calls the function "CSS.Q".
  4433  func (CSS) Q(value float64) (ret CSSUnitValue) {
  4434  	bindings.CallCSSQ(
  4435  		js.Pointer(&ret),
  4436  		float64(value),
  4437  	)
  4438  	return
  4439  }
  4440  
  4441  // TryQ calls the function "CSS.Q"
  4442  // in a try/catch block and returns (_, err, ok = true) when it went through
  4443  // the catch clause.
  4444  func (CSS) TryQ(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4445  	ok = js.True == bindings.TryCSSQ(
  4446  		js.Pointer(&ret), js.Pointer(&exception),
  4447  		float64(value),
  4448  	)
  4449  	return
  4450  }
  4451  
  4452  // HasFuncIn returns ture if the function "CSS.in" exists.
  4453  func (CSS) HasFuncIn() bool {
  4454  	return js.True == bindings.HasFuncCSSIn()
  4455  }
  4456  
  4457  // FuncIn returns the function "CSS.in".
  4458  func (CSS) FuncIn() (fn js.Func[func(value float64) CSSUnitValue]) {
  4459  	bindings.FuncCSSIn(
  4460  		js.Pointer(&fn),
  4461  	)
  4462  	return
  4463  }
  4464  
  4465  // In calls the function "CSS.in".
  4466  func (CSS) In(value float64) (ret CSSUnitValue) {
  4467  	bindings.CallCSSIn(
  4468  		js.Pointer(&ret),
  4469  		float64(value),
  4470  	)
  4471  	return
  4472  }
  4473  
  4474  // TryIn calls the function "CSS.in"
  4475  // in a try/catch block and returns (_, err, ok = true) when it went through
  4476  // the catch clause.
  4477  func (CSS) TryIn(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4478  	ok = js.True == bindings.TryCSSIn(
  4479  		js.Pointer(&ret), js.Pointer(&exception),
  4480  		float64(value),
  4481  	)
  4482  	return
  4483  }
  4484  
  4485  // HasFuncPt returns ture if the function "CSS.pt" exists.
  4486  func (CSS) HasFuncPt() bool {
  4487  	return js.True == bindings.HasFuncCSSPt()
  4488  }
  4489  
  4490  // FuncPt returns the function "CSS.pt".
  4491  func (CSS) FuncPt() (fn js.Func[func(value float64) CSSUnitValue]) {
  4492  	bindings.FuncCSSPt(
  4493  		js.Pointer(&fn),
  4494  	)
  4495  	return
  4496  }
  4497  
  4498  // Pt calls the function "CSS.pt".
  4499  func (CSS) Pt(value float64) (ret CSSUnitValue) {
  4500  	bindings.CallCSSPt(
  4501  		js.Pointer(&ret),
  4502  		float64(value),
  4503  	)
  4504  	return
  4505  }
  4506  
  4507  // TryPt calls the function "CSS.pt"
  4508  // in a try/catch block and returns (_, err, ok = true) when it went through
  4509  // the catch clause.
  4510  func (CSS) TryPt(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4511  	ok = js.True == bindings.TryCSSPt(
  4512  		js.Pointer(&ret), js.Pointer(&exception),
  4513  		float64(value),
  4514  	)
  4515  	return
  4516  }
  4517  
  4518  // HasFuncPc returns ture if the function "CSS.pc" exists.
  4519  func (CSS) HasFuncPc() bool {
  4520  	return js.True == bindings.HasFuncCSSPc()
  4521  }
  4522  
  4523  // FuncPc returns the function "CSS.pc".
  4524  func (CSS) FuncPc() (fn js.Func[func(value float64) CSSUnitValue]) {
  4525  	bindings.FuncCSSPc(
  4526  		js.Pointer(&fn),
  4527  	)
  4528  	return
  4529  }
  4530  
  4531  // Pc calls the function "CSS.pc".
  4532  func (CSS) Pc(value float64) (ret CSSUnitValue) {
  4533  	bindings.CallCSSPc(
  4534  		js.Pointer(&ret),
  4535  		float64(value),
  4536  	)
  4537  	return
  4538  }
  4539  
  4540  // TryPc calls the function "CSS.pc"
  4541  // in a try/catch block and returns (_, err, ok = true) when it went through
  4542  // the catch clause.
  4543  func (CSS) TryPc(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4544  	ok = js.True == bindings.TryCSSPc(
  4545  		js.Pointer(&ret), js.Pointer(&exception),
  4546  		float64(value),
  4547  	)
  4548  	return
  4549  }
  4550  
  4551  // HasFuncPx returns ture if the function "CSS.px" exists.
  4552  func (CSS) HasFuncPx() bool {
  4553  	return js.True == bindings.HasFuncCSSPx()
  4554  }
  4555  
  4556  // FuncPx returns the function "CSS.px".
  4557  func (CSS) FuncPx() (fn js.Func[func(value float64) CSSUnitValue]) {
  4558  	bindings.FuncCSSPx(
  4559  		js.Pointer(&fn),
  4560  	)
  4561  	return
  4562  }
  4563  
  4564  // Px calls the function "CSS.px".
  4565  func (CSS) Px(value float64) (ret CSSUnitValue) {
  4566  	bindings.CallCSSPx(
  4567  		js.Pointer(&ret),
  4568  		float64(value),
  4569  	)
  4570  	return
  4571  }
  4572  
  4573  // TryPx calls the function "CSS.px"
  4574  // in a try/catch block and returns (_, err, ok = true) when it went through
  4575  // the catch clause.
  4576  func (CSS) TryPx(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4577  	ok = js.True == bindings.TryCSSPx(
  4578  		js.Pointer(&ret), js.Pointer(&exception),
  4579  		float64(value),
  4580  	)
  4581  	return
  4582  }
  4583  
  4584  // HasFuncDeg returns ture if the function "CSS.deg" exists.
  4585  func (CSS) HasFuncDeg() bool {
  4586  	return js.True == bindings.HasFuncCSSDeg()
  4587  }
  4588  
  4589  // FuncDeg returns the function "CSS.deg".
  4590  func (CSS) FuncDeg() (fn js.Func[func(value float64) CSSUnitValue]) {
  4591  	bindings.FuncCSSDeg(
  4592  		js.Pointer(&fn),
  4593  	)
  4594  	return
  4595  }
  4596  
  4597  // Deg calls the function "CSS.deg".
  4598  func (CSS) Deg(value float64) (ret CSSUnitValue) {
  4599  	bindings.CallCSSDeg(
  4600  		js.Pointer(&ret),
  4601  		float64(value),
  4602  	)
  4603  	return
  4604  }
  4605  
  4606  // TryDeg calls the function "CSS.deg"
  4607  // in a try/catch block and returns (_, err, ok = true) when it went through
  4608  // the catch clause.
  4609  func (CSS) TryDeg(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4610  	ok = js.True == bindings.TryCSSDeg(
  4611  		js.Pointer(&ret), js.Pointer(&exception),
  4612  		float64(value),
  4613  	)
  4614  	return
  4615  }
  4616  
  4617  // HasFuncGrad returns ture if the function "CSS.grad" exists.
  4618  func (CSS) HasFuncGrad() bool {
  4619  	return js.True == bindings.HasFuncCSSGrad()
  4620  }
  4621  
  4622  // FuncGrad returns the function "CSS.grad".
  4623  func (CSS) FuncGrad() (fn js.Func[func(value float64) CSSUnitValue]) {
  4624  	bindings.FuncCSSGrad(
  4625  		js.Pointer(&fn),
  4626  	)
  4627  	return
  4628  }
  4629  
  4630  // Grad calls the function "CSS.grad".
  4631  func (CSS) Grad(value float64) (ret CSSUnitValue) {
  4632  	bindings.CallCSSGrad(
  4633  		js.Pointer(&ret),
  4634  		float64(value),
  4635  	)
  4636  	return
  4637  }
  4638  
  4639  // TryGrad calls the function "CSS.grad"
  4640  // in a try/catch block and returns (_, err, ok = true) when it went through
  4641  // the catch clause.
  4642  func (CSS) TryGrad(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4643  	ok = js.True == bindings.TryCSSGrad(
  4644  		js.Pointer(&ret), js.Pointer(&exception),
  4645  		float64(value),
  4646  	)
  4647  	return
  4648  }
  4649  
  4650  // HasFuncRad returns ture if the function "CSS.rad" exists.
  4651  func (CSS) HasFuncRad() bool {
  4652  	return js.True == bindings.HasFuncCSSRad()
  4653  }
  4654  
  4655  // FuncRad returns the function "CSS.rad".
  4656  func (CSS) FuncRad() (fn js.Func[func(value float64) CSSUnitValue]) {
  4657  	bindings.FuncCSSRad(
  4658  		js.Pointer(&fn),
  4659  	)
  4660  	return
  4661  }
  4662  
  4663  // Rad calls the function "CSS.rad".
  4664  func (CSS) Rad(value float64) (ret CSSUnitValue) {
  4665  	bindings.CallCSSRad(
  4666  		js.Pointer(&ret),
  4667  		float64(value),
  4668  	)
  4669  	return
  4670  }
  4671  
  4672  // TryRad calls the function "CSS.rad"
  4673  // in a try/catch block and returns (_, err, ok = true) when it went through
  4674  // the catch clause.
  4675  func (CSS) TryRad(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4676  	ok = js.True == bindings.TryCSSRad(
  4677  		js.Pointer(&ret), js.Pointer(&exception),
  4678  		float64(value),
  4679  	)
  4680  	return
  4681  }
  4682  
  4683  // HasFuncTurn returns ture if the function "CSS.turn" exists.
  4684  func (CSS) HasFuncTurn() bool {
  4685  	return js.True == bindings.HasFuncCSSTurn()
  4686  }
  4687  
  4688  // FuncTurn returns the function "CSS.turn".
  4689  func (CSS) FuncTurn() (fn js.Func[func(value float64) CSSUnitValue]) {
  4690  	bindings.FuncCSSTurn(
  4691  		js.Pointer(&fn),
  4692  	)
  4693  	return
  4694  }
  4695  
  4696  // Turn calls the function "CSS.turn".
  4697  func (CSS) Turn(value float64) (ret CSSUnitValue) {
  4698  	bindings.CallCSSTurn(
  4699  		js.Pointer(&ret),
  4700  		float64(value),
  4701  	)
  4702  	return
  4703  }
  4704  
  4705  // TryTurn calls the function "CSS.turn"
  4706  // in a try/catch block and returns (_, err, ok = true) when it went through
  4707  // the catch clause.
  4708  func (CSS) TryTurn(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4709  	ok = js.True == bindings.TryCSSTurn(
  4710  		js.Pointer(&ret), js.Pointer(&exception),
  4711  		float64(value),
  4712  	)
  4713  	return
  4714  }
  4715  
  4716  // HasFuncS returns ture if the function "CSS.s" exists.
  4717  func (CSS) HasFuncS() bool {
  4718  	return js.True == bindings.HasFuncCSSS()
  4719  }
  4720  
  4721  // FuncS returns the function "CSS.s".
  4722  func (CSS) FuncS() (fn js.Func[func(value float64) CSSUnitValue]) {
  4723  	bindings.FuncCSSS(
  4724  		js.Pointer(&fn),
  4725  	)
  4726  	return
  4727  }
  4728  
  4729  // S calls the function "CSS.s".
  4730  func (CSS) S(value float64) (ret CSSUnitValue) {
  4731  	bindings.CallCSSS(
  4732  		js.Pointer(&ret),
  4733  		float64(value),
  4734  	)
  4735  	return
  4736  }
  4737  
  4738  // TryS calls the function "CSS.s"
  4739  // in a try/catch block and returns (_, err, ok = true) when it went through
  4740  // the catch clause.
  4741  func (CSS) TryS(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4742  	ok = js.True == bindings.TryCSSS(
  4743  		js.Pointer(&ret), js.Pointer(&exception),
  4744  		float64(value),
  4745  	)
  4746  	return
  4747  }
  4748  
  4749  // HasFuncMs returns ture if the function "CSS.ms" exists.
  4750  func (CSS) HasFuncMs() bool {
  4751  	return js.True == bindings.HasFuncCSSMs()
  4752  }
  4753  
  4754  // FuncMs returns the function "CSS.ms".
  4755  func (CSS) FuncMs() (fn js.Func[func(value float64) CSSUnitValue]) {
  4756  	bindings.FuncCSSMs(
  4757  		js.Pointer(&fn),
  4758  	)
  4759  	return
  4760  }
  4761  
  4762  // Ms calls the function "CSS.ms".
  4763  func (CSS) Ms(value float64) (ret CSSUnitValue) {
  4764  	bindings.CallCSSMs(
  4765  		js.Pointer(&ret),
  4766  		float64(value),
  4767  	)
  4768  	return
  4769  }
  4770  
  4771  // TryMs calls the function "CSS.ms"
  4772  // in a try/catch block and returns (_, err, ok = true) when it went through
  4773  // the catch clause.
  4774  func (CSS) TryMs(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4775  	ok = js.True == bindings.TryCSSMs(
  4776  		js.Pointer(&ret), js.Pointer(&exception),
  4777  		float64(value),
  4778  	)
  4779  	return
  4780  }
  4781  
  4782  // HasFuncHz returns ture if the function "CSS.Hz" exists.
  4783  func (CSS) HasFuncHz() bool {
  4784  	return js.True == bindings.HasFuncCSSHz()
  4785  }
  4786  
  4787  // FuncHz returns the function "CSS.Hz".
  4788  func (CSS) FuncHz() (fn js.Func[func(value float64) CSSUnitValue]) {
  4789  	bindings.FuncCSSHz(
  4790  		js.Pointer(&fn),
  4791  	)
  4792  	return
  4793  }
  4794  
  4795  // Hz calls the function "CSS.Hz".
  4796  func (CSS) Hz(value float64) (ret CSSUnitValue) {
  4797  	bindings.CallCSSHz(
  4798  		js.Pointer(&ret),
  4799  		float64(value),
  4800  	)
  4801  	return
  4802  }
  4803  
  4804  // TryHz calls the function "CSS.Hz"
  4805  // in a try/catch block and returns (_, err, ok = true) when it went through
  4806  // the catch clause.
  4807  func (CSS) TryHz(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4808  	ok = js.True == bindings.TryCSSHz(
  4809  		js.Pointer(&ret), js.Pointer(&exception),
  4810  		float64(value),
  4811  	)
  4812  	return
  4813  }
  4814  
  4815  // HasFuncKHz returns ture if the function "CSS.kHz" exists.
  4816  func (CSS) HasFuncKHz() bool {
  4817  	return js.True == bindings.HasFuncCSSKHz()
  4818  }
  4819  
  4820  // FuncKHz returns the function "CSS.kHz".
  4821  func (CSS) FuncKHz() (fn js.Func[func(value float64) CSSUnitValue]) {
  4822  	bindings.FuncCSSKHz(
  4823  		js.Pointer(&fn),
  4824  	)
  4825  	return
  4826  }
  4827  
  4828  // KHz calls the function "CSS.kHz".
  4829  func (CSS) KHz(value float64) (ret CSSUnitValue) {
  4830  	bindings.CallCSSKHz(
  4831  		js.Pointer(&ret),
  4832  		float64(value),
  4833  	)
  4834  	return
  4835  }
  4836  
  4837  // TryKHz calls the function "CSS.kHz"
  4838  // in a try/catch block and returns (_, err, ok = true) when it went through
  4839  // the catch clause.
  4840  func (CSS) TryKHz(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4841  	ok = js.True == bindings.TryCSSKHz(
  4842  		js.Pointer(&ret), js.Pointer(&exception),
  4843  		float64(value),
  4844  	)
  4845  	return
  4846  }
  4847  
  4848  // HasFuncDpi returns ture if the function "CSS.dpi" exists.
  4849  func (CSS) HasFuncDpi() bool {
  4850  	return js.True == bindings.HasFuncCSSDpi()
  4851  }
  4852  
  4853  // FuncDpi returns the function "CSS.dpi".
  4854  func (CSS) FuncDpi() (fn js.Func[func(value float64) CSSUnitValue]) {
  4855  	bindings.FuncCSSDpi(
  4856  		js.Pointer(&fn),
  4857  	)
  4858  	return
  4859  }
  4860  
  4861  // Dpi calls the function "CSS.dpi".
  4862  func (CSS) Dpi(value float64) (ret CSSUnitValue) {
  4863  	bindings.CallCSSDpi(
  4864  		js.Pointer(&ret),
  4865  		float64(value),
  4866  	)
  4867  	return
  4868  }
  4869  
  4870  // TryDpi calls the function "CSS.dpi"
  4871  // in a try/catch block and returns (_, err, ok = true) when it went through
  4872  // the catch clause.
  4873  func (CSS) TryDpi(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4874  	ok = js.True == bindings.TryCSSDpi(
  4875  		js.Pointer(&ret), js.Pointer(&exception),
  4876  		float64(value),
  4877  	)
  4878  	return
  4879  }
  4880  
  4881  // HasFuncDpcm returns ture if the function "CSS.dpcm" exists.
  4882  func (CSS) HasFuncDpcm() bool {
  4883  	return js.True == bindings.HasFuncCSSDpcm()
  4884  }
  4885  
  4886  // FuncDpcm returns the function "CSS.dpcm".
  4887  func (CSS) FuncDpcm() (fn js.Func[func(value float64) CSSUnitValue]) {
  4888  	bindings.FuncCSSDpcm(
  4889  		js.Pointer(&fn),
  4890  	)
  4891  	return
  4892  }
  4893  
  4894  // Dpcm calls the function "CSS.dpcm".
  4895  func (CSS) Dpcm(value float64) (ret CSSUnitValue) {
  4896  	bindings.CallCSSDpcm(
  4897  		js.Pointer(&ret),
  4898  		float64(value),
  4899  	)
  4900  	return
  4901  }
  4902  
  4903  // TryDpcm calls the function "CSS.dpcm"
  4904  // in a try/catch block and returns (_, err, ok = true) when it went through
  4905  // the catch clause.
  4906  func (CSS) TryDpcm(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4907  	ok = js.True == bindings.TryCSSDpcm(
  4908  		js.Pointer(&ret), js.Pointer(&exception),
  4909  		float64(value),
  4910  	)
  4911  	return
  4912  }
  4913  
  4914  // HasFuncDppx returns ture if the function "CSS.dppx" exists.
  4915  func (CSS) HasFuncDppx() bool {
  4916  	return js.True == bindings.HasFuncCSSDppx()
  4917  }
  4918  
  4919  // FuncDppx returns the function "CSS.dppx".
  4920  func (CSS) FuncDppx() (fn js.Func[func(value float64) CSSUnitValue]) {
  4921  	bindings.FuncCSSDppx(
  4922  		js.Pointer(&fn),
  4923  	)
  4924  	return
  4925  }
  4926  
  4927  // Dppx calls the function "CSS.dppx".
  4928  func (CSS) Dppx(value float64) (ret CSSUnitValue) {
  4929  	bindings.CallCSSDppx(
  4930  		js.Pointer(&ret),
  4931  		float64(value),
  4932  	)
  4933  	return
  4934  }
  4935  
  4936  // TryDppx calls the function "CSS.dppx"
  4937  // in a try/catch block and returns (_, err, ok = true) when it went through
  4938  // the catch clause.
  4939  func (CSS) TryDppx(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4940  	ok = js.True == bindings.TryCSSDppx(
  4941  		js.Pointer(&ret), js.Pointer(&exception),
  4942  		float64(value),
  4943  	)
  4944  	return
  4945  }
  4946  
  4947  // HasFuncFr returns ture if the function "CSS.fr" exists.
  4948  func (CSS) HasFuncFr() bool {
  4949  	return js.True == bindings.HasFuncCSSFr()
  4950  }
  4951  
  4952  // FuncFr returns the function "CSS.fr".
  4953  func (CSS) FuncFr() (fn js.Func[func(value float64) CSSUnitValue]) {
  4954  	bindings.FuncCSSFr(
  4955  		js.Pointer(&fn),
  4956  	)
  4957  	return
  4958  }
  4959  
  4960  // Fr calls the function "CSS.fr".
  4961  func (CSS) Fr(value float64) (ret CSSUnitValue) {
  4962  	bindings.CallCSSFr(
  4963  		js.Pointer(&ret),
  4964  		float64(value),
  4965  	)
  4966  	return
  4967  }
  4968  
  4969  // TryFr calls the function "CSS.fr"
  4970  // in a try/catch block and returns (_, err, ok = true) when it went through
  4971  // the catch clause.
  4972  func (CSS) TryFr(value float64) (ret CSSUnitValue, exception js.Any, ok bool) {
  4973  	ok = js.True == bindings.TryCSSFr(
  4974  		js.Pointer(&ret), js.Pointer(&exception),
  4975  		float64(value),
  4976  	)
  4977  	return
  4978  }
  4979  
  4980  // HasFuncParseStylesheet returns ture if the function "CSS.parseStylesheet" exists.
  4981  func (CSS) HasFuncParseStylesheet() bool {
  4982  	return js.True == bindings.HasFuncCSSParseStylesheet()
  4983  }
  4984  
  4985  // FuncParseStylesheet returns the function "CSS.parseStylesheet".
  4986  func (CSS) FuncParseStylesheet() (fn js.Func[func(css CSSStringSource, options CSSParserOptions) js.Promise[js.Array[CSSParserRule]]]) {
  4987  	bindings.FuncCSSParseStylesheet(
  4988  		js.Pointer(&fn),
  4989  	)
  4990  	return
  4991  }
  4992  
  4993  // ParseStylesheet calls the function "CSS.parseStylesheet".
  4994  func (CSS) ParseStylesheet(css CSSStringSource, options CSSParserOptions) (ret js.Promise[js.Array[CSSParserRule]]) {
  4995  	bindings.CallCSSParseStylesheet(
  4996  		js.Pointer(&ret),
  4997  		css.Ref(),
  4998  		js.Pointer(&options),
  4999  	)
  5000  	return
  5001  }
  5002  
  5003  // TryParseStylesheet calls the function "CSS.parseStylesheet"
  5004  // in a try/catch block and returns (_, err, ok = true) when it went through
  5005  // the catch clause.
  5006  func (CSS) TryParseStylesheet(css CSSStringSource, options CSSParserOptions) (ret js.Promise[js.Array[CSSParserRule]], exception js.Any, ok bool) {
  5007  	ok = js.True == bindings.TryCSSParseStylesheet(
  5008  		js.Pointer(&ret), js.Pointer(&exception),
  5009  		css.Ref(),
  5010  		js.Pointer(&options),
  5011  	)
  5012  	return
  5013  }
  5014  
  5015  // HasFuncParseStylesheet1 returns ture if the function "CSS.parseStylesheet" exists.
  5016  func (CSS) HasFuncParseStylesheet1() bool {
  5017  	return js.True == bindings.HasFuncCSSParseStylesheet1()
  5018  }
  5019  
  5020  // FuncParseStylesheet1 returns the function "CSS.parseStylesheet".
  5021  func (CSS) FuncParseStylesheet1() (fn js.Func[func(css CSSStringSource) js.Promise[js.Array[CSSParserRule]]]) {
  5022  	bindings.FuncCSSParseStylesheet1(
  5023  		js.Pointer(&fn),
  5024  	)
  5025  	return
  5026  }
  5027  
  5028  // ParseStylesheet1 calls the function "CSS.parseStylesheet".
  5029  func (CSS) ParseStylesheet1(css CSSStringSource) (ret js.Promise[js.Array[CSSParserRule]]) {
  5030  	bindings.CallCSSParseStylesheet1(
  5031  		js.Pointer(&ret),
  5032  		css.Ref(),
  5033  	)
  5034  	return
  5035  }
  5036  
  5037  // TryParseStylesheet1 calls the function "CSS.parseStylesheet"
  5038  // in a try/catch block and returns (_, err, ok = true) when it went through
  5039  // the catch clause.
  5040  func (CSS) TryParseStylesheet1(css CSSStringSource) (ret js.Promise[js.Array[CSSParserRule]], exception js.Any, ok bool) {
  5041  	ok = js.True == bindings.TryCSSParseStylesheet1(
  5042  		js.Pointer(&ret), js.Pointer(&exception),
  5043  		css.Ref(),
  5044  	)
  5045  	return
  5046  }
  5047  
  5048  // HasFuncParseRuleList returns ture if the function "CSS.parseRuleList" exists.
  5049  func (CSS) HasFuncParseRuleList() bool {
  5050  	return js.True == bindings.HasFuncCSSParseRuleList()
  5051  }
  5052  
  5053  // FuncParseRuleList returns the function "CSS.parseRuleList".
  5054  func (CSS) FuncParseRuleList() (fn js.Func[func(css CSSStringSource, options CSSParserOptions) js.Promise[js.Array[CSSParserRule]]]) {
  5055  	bindings.FuncCSSParseRuleList(
  5056  		js.Pointer(&fn),
  5057  	)
  5058  	return
  5059  }
  5060  
  5061  // ParseRuleList calls the function "CSS.parseRuleList".
  5062  func (CSS) ParseRuleList(css CSSStringSource, options CSSParserOptions) (ret js.Promise[js.Array[CSSParserRule]]) {
  5063  	bindings.CallCSSParseRuleList(
  5064  		js.Pointer(&ret),
  5065  		css.Ref(),
  5066  		js.Pointer(&options),
  5067  	)
  5068  	return
  5069  }
  5070  
  5071  // TryParseRuleList calls the function "CSS.parseRuleList"
  5072  // in a try/catch block and returns (_, err, ok = true) when it went through
  5073  // the catch clause.
  5074  func (CSS) TryParseRuleList(css CSSStringSource, options CSSParserOptions) (ret js.Promise[js.Array[CSSParserRule]], exception js.Any, ok bool) {
  5075  	ok = js.True == bindings.TryCSSParseRuleList(
  5076  		js.Pointer(&ret), js.Pointer(&exception),
  5077  		css.Ref(),
  5078  		js.Pointer(&options),
  5079  	)
  5080  	return
  5081  }
  5082  
  5083  // HasFuncParseRuleList1 returns ture if the function "CSS.parseRuleList" exists.
  5084  func (CSS) HasFuncParseRuleList1() bool {
  5085  	return js.True == bindings.HasFuncCSSParseRuleList1()
  5086  }
  5087  
  5088  // FuncParseRuleList1 returns the function "CSS.parseRuleList".
  5089  func (CSS) FuncParseRuleList1() (fn js.Func[func(css CSSStringSource) js.Promise[js.Array[CSSParserRule]]]) {
  5090  	bindings.FuncCSSParseRuleList1(
  5091  		js.Pointer(&fn),
  5092  	)
  5093  	return
  5094  }
  5095  
  5096  // ParseRuleList1 calls the function "CSS.parseRuleList".
  5097  func (CSS) ParseRuleList1(css CSSStringSource) (ret js.Promise[js.Array[CSSParserRule]]) {
  5098  	bindings.CallCSSParseRuleList1(
  5099  		js.Pointer(&ret),
  5100  		css.Ref(),
  5101  	)
  5102  	return
  5103  }
  5104  
  5105  // TryParseRuleList1 calls the function "CSS.parseRuleList"
  5106  // in a try/catch block and returns (_, err, ok = true) when it went through
  5107  // the catch clause.
  5108  func (CSS) TryParseRuleList1(css CSSStringSource) (ret js.Promise[js.Array[CSSParserRule]], exception js.Any, ok bool) {
  5109  	ok = js.True == bindings.TryCSSParseRuleList1(
  5110  		js.Pointer(&ret), js.Pointer(&exception),
  5111  		css.Ref(),
  5112  	)
  5113  	return
  5114  }
  5115  
  5116  // HasFuncParseRule returns ture if the function "CSS.parseRule" exists.
  5117  func (CSS) HasFuncParseRule() bool {
  5118  	return js.True == bindings.HasFuncCSSParseRule()
  5119  }
  5120  
  5121  // FuncParseRule returns the function "CSS.parseRule".
  5122  func (CSS) FuncParseRule() (fn js.Func[func(css CSSStringSource, options CSSParserOptions) js.Promise[CSSParserRule]]) {
  5123  	bindings.FuncCSSParseRule(
  5124  		js.Pointer(&fn),
  5125  	)
  5126  	return
  5127  }
  5128  
  5129  // ParseRule calls the function "CSS.parseRule".
  5130  func (CSS) ParseRule(css CSSStringSource, options CSSParserOptions) (ret js.Promise[CSSParserRule]) {
  5131  	bindings.CallCSSParseRule(
  5132  		js.Pointer(&ret),
  5133  		css.Ref(),
  5134  		js.Pointer(&options),
  5135  	)
  5136  	return
  5137  }
  5138  
  5139  // TryParseRule calls the function "CSS.parseRule"
  5140  // in a try/catch block and returns (_, err, ok = true) when it went through
  5141  // the catch clause.
  5142  func (CSS) TryParseRule(css CSSStringSource, options CSSParserOptions) (ret js.Promise[CSSParserRule], exception js.Any, ok bool) {
  5143  	ok = js.True == bindings.TryCSSParseRule(
  5144  		js.Pointer(&ret), js.Pointer(&exception),
  5145  		css.Ref(),
  5146  		js.Pointer(&options),
  5147  	)
  5148  	return
  5149  }
  5150  
  5151  // HasFuncParseRule1 returns ture if the function "CSS.parseRule" exists.
  5152  func (CSS) HasFuncParseRule1() bool {
  5153  	return js.True == bindings.HasFuncCSSParseRule1()
  5154  }
  5155  
  5156  // FuncParseRule1 returns the function "CSS.parseRule".
  5157  func (CSS) FuncParseRule1() (fn js.Func[func(css CSSStringSource) js.Promise[CSSParserRule]]) {
  5158  	bindings.FuncCSSParseRule1(
  5159  		js.Pointer(&fn),
  5160  	)
  5161  	return
  5162  }
  5163  
  5164  // ParseRule1 calls the function "CSS.parseRule".
  5165  func (CSS) ParseRule1(css CSSStringSource) (ret js.Promise[CSSParserRule]) {
  5166  	bindings.CallCSSParseRule1(
  5167  		js.Pointer(&ret),
  5168  		css.Ref(),
  5169  	)
  5170  	return
  5171  }
  5172  
  5173  // TryParseRule1 calls the function "CSS.parseRule"
  5174  // in a try/catch block and returns (_, err, ok = true) when it went through
  5175  // the catch clause.
  5176  func (CSS) TryParseRule1(css CSSStringSource) (ret js.Promise[CSSParserRule], exception js.Any, ok bool) {
  5177  	ok = js.True == bindings.TryCSSParseRule1(
  5178  		js.Pointer(&ret), js.Pointer(&exception),
  5179  		css.Ref(),
  5180  	)
  5181  	return
  5182  }
  5183  
  5184  // HasFuncParseDeclarationList returns ture if the function "CSS.parseDeclarationList" exists.
  5185  func (CSS) HasFuncParseDeclarationList() bool {
  5186  	return js.True == bindings.HasFuncCSSParseDeclarationList()
  5187  }
  5188  
  5189  // FuncParseDeclarationList returns the function "CSS.parseDeclarationList".
  5190  func (CSS) FuncParseDeclarationList() (fn js.Func[func(css CSSStringSource, options CSSParserOptions) js.Promise[js.Array[CSSParserRule]]]) {
  5191  	bindings.FuncCSSParseDeclarationList(
  5192  		js.Pointer(&fn),
  5193  	)
  5194  	return
  5195  }
  5196  
  5197  // ParseDeclarationList calls the function "CSS.parseDeclarationList".
  5198  func (CSS) ParseDeclarationList(css CSSStringSource, options CSSParserOptions) (ret js.Promise[js.Array[CSSParserRule]]) {
  5199  	bindings.CallCSSParseDeclarationList(
  5200  		js.Pointer(&ret),
  5201  		css.Ref(),
  5202  		js.Pointer(&options),
  5203  	)
  5204  	return
  5205  }
  5206  
  5207  // TryParseDeclarationList calls the function "CSS.parseDeclarationList"
  5208  // in a try/catch block and returns (_, err, ok = true) when it went through
  5209  // the catch clause.
  5210  func (CSS) TryParseDeclarationList(css CSSStringSource, options CSSParserOptions) (ret js.Promise[js.Array[CSSParserRule]], exception js.Any, ok bool) {
  5211  	ok = js.True == bindings.TryCSSParseDeclarationList(
  5212  		js.Pointer(&ret), js.Pointer(&exception),
  5213  		css.Ref(),
  5214  		js.Pointer(&options),
  5215  	)
  5216  	return
  5217  }
  5218  
  5219  // HasFuncParseDeclarationList1 returns ture if the function "CSS.parseDeclarationList" exists.
  5220  func (CSS) HasFuncParseDeclarationList1() bool {
  5221  	return js.True == bindings.HasFuncCSSParseDeclarationList1()
  5222  }
  5223  
  5224  // FuncParseDeclarationList1 returns the function "CSS.parseDeclarationList".
  5225  func (CSS) FuncParseDeclarationList1() (fn js.Func[func(css CSSStringSource) js.Promise[js.Array[CSSParserRule]]]) {
  5226  	bindings.FuncCSSParseDeclarationList1(
  5227  		js.Pointer(&fn),
  5228  	)
  5229  	return
  5230  }
  5231  
  5232  // ParseDeclarationList1 calls the function "CSS.parseDeclarationList".
  5233  func (CSS) ParseDeclarationList1(css CSSStringSource) (ret js.Promise[js.Array[CSSParserRule]]) {
  5234  	bindings.CallCSSParseDeclarationList1(
  5235  		js.Pointer(&ret),
  5236  		css.Ref(),
  5237  	)
  5238  	return
  5239  }
  5240  
  5241  // TryParseDeclarationList1 calls the function "CSS.parseDeclarationList"
  5242  // in a try/catch block and returns (_, err, ok = true) when it went through
  5243  // the catch clause.
  5244  func (CSS) TryParseDeclarationList1(css CSSStringSource) (ret js.Promise[js.Array[CSSParserRule]], exception js.Any, ok bool) {
  5245  	ok = js.True == bindings.TryCSSParseDeclarationList1(
  5246  		js.Pointer(&ret), js.Pointer(&exception),
  5247  		css.Ref(),
  5248  	)
  5249  	return
  5250  }
  5251  
  5252  // HasFuncParseDeclaration returns ture if the function "CSS.parseDeclaration" exists.
  5253  func (CSS) HasFuncParseDeclaration() bool {
  5254  	return js.True == bindings.HasFuncCSSParseDeclaration()
  5255  }
  5256  
  5257  // FuncParseDeclaration returns the function "CSS.parseDeclaration".
  5258  func (CSS) FuncParseDeclaration() (fn js.Func[func(css js.String, options CSSParserOptions) CSSParserDeclaration]) {
  5259  	bindings.FuncCSSParseDeclaration(
  5260  		js.Pointer(&fn),
  5261  	)
  5262  	return
  5263  }
  5264  
  5265  // ParseDeclaration calls the function "CSS.parseDeclaration".
  5266  func (CSS) ParseDeclaration(css js.String, options CSSParserOptions) (ret CSSParserDeclaration) {
  5267  	bindings.CallCSSParseDeclaration(
  5268  		js.Pointer(&ret),
  5269  		css.Ref(),
  5270  		js.Pointer(&options),
  5271  	)
  5272  	return
  5273  }
  5274  
  5275  // TryParseDeclaration calls the function "CSS.parseDeclaration"
  5276  // in a try/catch block and returns (_, err, ok = true) when it went through
  5277  // the catch clause.
  5278  func (CSS) TryParseDeclaration(css js.String, options CSSParserOptions) (ret CSSParserDeclaration, exception js.Any, ok bool) {
  5279  	ok = js.True == bindings.TryCSSParseDeclaration(
  5280  		js.Pointer(&ret), js.Pointer(&exception),
  5281  		css.Ref(),
  5282  		js.Pointer(&options),
  5283  	)
  5284  	return
  5285  }
  5286  
  5287  // HasFuncParseDeclaration1 returns ture if the function "CSS.parseDeclaration" exists.
  5288  func (CSS) HasFuncParseDeclaration1() bool {
  5289  	return js.True == bindings.HasFuncCSSParseDeclaration1()
  5290  }
  5291  
  5292  // FuncParseDeclaration1 returns the function "CSS.parseDeclaration".
  5293  func (CSS) FuncParseDeclaration1() (fn js.Func[func(css js.String) CSSParserDeclaration]) {
  5294  	bindings.FuncCSSParseDeclaration1(
  5295  		js.Pointer(&fn),
  5296  	)
  5297  	return
  5298  }
  5299  
  5300  // ParseDeclaration1 calls the function "CSS.parseDeclaration".
  5301  func (CSS) ParseDeclaration1(css js.String) (ret CSSParserDeclaration) {
  5302  	bindings.CallCSSParseDeclaration1(
  5303  		js.Pointer(&ret),
  5304  		css.Ref(),
  5305  	)
  5306  	return
  5307  }
  5308  
  5309  // TryParseDeclaration1 calls the function "CSS.parseDeclaration"
  5310  // in a try/catch block and returns (_, err, ok = true) when it went through
  5311  // the catch clause.
  5312  func (CSS) TryParseDeclaration1(css js.String) (ret CSSParserDeclaration, exception js.Any, ok bool) {
  5313  	ok = js.True == bindings.TryCSSParseDeclaration1(
  5314  		js.Pointer(&ret), js.Pointer(&exception),
  5315  		css.Ref(),
  5316  	)
  5317  	return
  5318  }
  5319  
  5320  // HasFuncParseValue returns ture if the function "CSS.parseValue" exists.
  5321  func (CSS) HasFuncParseValue() bool {
  5322  	return js.True == bindings.HasFuncCSSParseValue()
  5323  }
  5324  
  5325  // FuncParseValue returns the function "CSS.parseValue".
  5326  func (CSS) FuncParseValue() (fn js.Func[func(css js.String) CSSToken]) {
  5327  	bindings.FuncCSSParseValue(
  5328  		js.Pointer(&fn),
  5329  	)
  5330  	return
  5331  }
  5332  
  5333  // ParseValue calls the function "CSS.parseValue".
  5334  func (CSS) ParseValue(css js.String) (ret CSSToken) {
  5335  	bindings.CallCSSParseValue(
  5336  		js.Pointer(&ret),
  5337  		css.Ref(),
  5338  	)
  5339  	return
  5340  }
  5341  
  5342  // TryParseValue calls the function "CSS.parseValue"
  5343  // in a try/catch block and returns (_, err, ok = true) when it went through
  5344  // the catch clause.
  5345  func (CSS) TryParseValue(css js.String) (ret CSSToken, exception js.Any, ok bool) {
  5346  	ok = js.True == bindings.TryCSSParseValue(
  5347  		js.Pointer(&ret), js.Pointer(&exception),
  5348  		css.Ref(),
  5349  	)
  5350  	return
  5351  }
  5352  
  5353  // HasFuncParseValueList returns ture if the function "CSS.parseValueList" exists.
  5354  func (CSS) HasFuncParseValueList() bool {
  5355  	return js.True == bindings.HasFuncCSSParseValueList()
  5356  }
  5357  
  5358  // FuncParseValueList returns the function "CSS.parseValueList".
  5359  func (CSS) FuncParseValueList() (fn js.Func[func(css js.String) js.Array[CSSToken]]) {
  5360  	bindings.FuncCSSParseValueList(
  5361  		js.Pointer(&fn),
  5362  	)
  5363  	return
  5364  }
  5365  
  5366  // ParseValueList calls the function "CSS.parseValueList".
  5367  func (CSS) ParseValueList(css js.String) (ret js.Array[CSSToken]) {
  5368  	bindings.CallCSSParseValueList(
  5369  		js.Pointer(&ret),
  5370  		css.Ref(),
  5371  	)
  5372  	return
  5373  }
  5374  
  5375  // TryParseValueList calls the function "CSS.parseValueList"
  5376  // in a try/catch block and returns (_, err, ok = true) when it went through
  5377  // the catch clause.
  5378  func (CSS) TryParseValueList(css js.String) (ret js.Array[CSSToken], exception js.Any, ok bool) {
  5379  	ok = js.True == bindings.TryCSSParseValueList(
  5380  		js.Pointer(&ret), js.Pointer(&exception),
  5381  		css.Ref(),
  5382  	)
  5383  	return
  5384  }
  5385  
  5386  // HasFuncParseCommaValueList returns ture if the function "CSS.parseCommaValueList" exists.
  5387  func (CSS) HasFuncParseCommaValueList() bool {
  5388  	return js.True == bindings.HasFuncCSSParseCommaValueList()
  5389  }
  5390  
  5391  // FuncParseCommaValueList returns the function "CSS.parseCommaValueList".
  5392  func (CSS) FuncParseCommaValueList() (fn js.Func[func(css js.String) js.Array[js.Array[CSSToken]]]) {
  5393  	bindings.FuncCSSParseCommaValueList(
  5394  		js.Pointer(&fn),
  5395  	)
  5396  	return
  5397  }
  5398  
  5399  // ParseCommaValueList calls the function "CSS.parseCommaValueList".
  5400  func (CSS) ParseCommaValueList(css js.String) (ret js.Array[js.Array[CSSToken]]) {
  5401  	bindings.CallCSSParseCommaValueList(
  5402  		js.Pointer(&ret),
  5403  		css.Ref(),
  5404  	)
  5405  	return
  5406  }
  5407  
  5408  // TryParseCommaValueList calls the function "CSS.parseCommaValueList"
  5409  // in a try/catch block and returns (_, err, ok = true) when it went through
  5410  // the catch clause.
  5411  func (CSS) TryParseCommaValueList(css js.String) (ret js.Array[js.Array[CSSToken]], exception js.Any, ok bool) {
  5412  	ok = js.True == bindings.TryCSSParseCommaValueList(
  5413  		js.Pointer(&ret), js.Pointer(&exception),
  5414  		css.Ref(),
  5415  	)
  5416  	return
  5417  }
  5418  
  5419  func NewCSSAnimation(effect AnimationEffect, timeline AnimationTimeline) (ret CSSAnimation) {
  5420  	ret.ref = bindings.NewCSSAnimationByCSSAnimation(
  5421  		effect.Ref(),
  5422  		timeline.Ref())
  5423  	return
  5424  }
  5425  
  5426  func NewCSSAnimationByCSSAnimation1(effect AnimationEffect) (ret CSSAnimation) {
  5427  	ret.ref = bindings.NewCSSAnimationByCSSAnimation1(
  5428  		effect.Ref())
  5429  	return
  5430  }
  5431  
  5432  func NewCSSAnimationByCSSAnimation2() (ret CSSAnimation) {
  5433  	ret.ref = bindings.NewCSSAnimationByCSSAnimation2()
  5434  	return
  5435  }
  5436  
  5437  type CSSAnimation struct {
  5438  	Animation
  5439  }
  5440  
  5441  func (this CSSAnimation) Once() CSSAnimation {
  5442  	this.ref.Once()
  5443  	return this
  5444  }
  5445  
  5446  func (this CSSAnimation) Ref() js.Ref {
  5447  	return this.Animation.Ref()
  5448  }
  5449  
  5450  func (this CSSAnimation) FromRef(ref js.Ref) CSSAnimation {
  5451  	this.Animation = this.Animation.FromRef(ref)
  5452  	return this
  5453  }
  5454  
  5455  func (this CSSAnimation) Free() {
  5456  	this.ref.Free()
  5457  }
  5458  
  5459  // AnimationName returns the value of property "CSSAnimation.animationName".
  5460  //
  5461  // It returns ok=false if there is no such property.
  5462  func (this CSSAnimation) AnimationName() (ret js.String, ok bool) {
  5463  	ok = js.True == bindings.GetCSSAnimationAnimationName(
  5464  		this.ref, js.Pointer(&ret),
  5465  	)
  5466  	return
  5467  }
  5468  
  5469  type OneOf_String_CSSKeywordValue struct {
  5470  	ref js.Ref
  5471  }
  5472  
  5473  func (x OneOf_String_CSSKeywordValue) Ref() js.Ref {
  5474  	return x.ref
  5475  }
  5476  
  5477  func (x OneOf_String_CSSKeywordValue) Free() {
  5478  	x.ref.Free()
  5479  }
  5480  
  5481  func (x OneOf_String_CSSKeywordValue) FromRef(ref js.Ref) OneOf_String_CSSKeywordValue {
  5482  	return OneOf_String_CSSKeywordValue{
  5483  		ref: ref,
  5484  	}
  5485  }
  5486  
  5487  func (x OneOf_String_CSSKeywordValue) String() js.String {
  5488  	return js.String{}.FromRef(x.ref)
  5489  }
  5490  
  5491  func (x OneOf_String_CSSKeywordValue) CSSKeywordValue() CSSKeywordValue {
  5492  	return CSSKeywordValue{}.FromRef(x.ref)
  5493  }
  5494  
  5495  type CSSKeywordish = OneOf_String_CSSKeywordValue
  5496  
  5497  type OneOf_Float64_CSSNumericValue_String_CSSKeywordValue struct {
  5498  	ref js.Ref
  5499  }
  5500  
  5501  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) Ref() js.Ref {
  5502  	return x.ref
  5503  }
  5504  
  5505  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) Free() {
  5506  	x.ref.Free()
  5507  }
  5508  
  5509  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) FromRef(ref js.Ref) OneOf_Float64_CSSNumericValue_String_CSSKeywordValue {
  5510  	return OneOf_Float64_CSSNumericValue_String_CSSKeywordValue{
  5511  		ref: ref,
  5512  	}
  5513  }
  5514  
  5515  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) Float64() float64 {
  5516  	return js.Number[float64]{}.FromRef(x.ref).Get()
  5517  }
  5518  
  5519  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) CSSNumericValue() CSSNumericValue {
  5520  	return CSSNumericValue{}.FromRef(x.ref)
  5521  }
  5522  
  5523  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) String() js.String {
  5524  	return js.String{}.FromRef(x.ref)
  5525  }
  5526  
  5527  func (x OneOf_Float64_CSSNumericValue_String_CSSKeywordValue) CSSKeywordValue() CSSKeywordValue {
  5528  	return CSSKeywordValue{}.FromRef(x.ref)
  5529  }
  5530  
  5531  type CSSColorPercent = OneOf_Float64_CSSNumericValue_String_CSSKeywordValue