github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis05_js_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 package web 5 6 import ( 7 "github.com/primecitizens/pcz/std/ffi/js" 8 "github.com/primecitizens/pcz/std/plat/js/web/bindings" 9 ) 10 11 type DocumentVisibilityState uint32 12 13 const ( 14 _ DocumentVisibilityState = iota 15 16 DocumentVisibilityState_VISIBLE 17 DocumentVisibilityState_HIDDEN 18 ) 19 20 func (DocumentVisibilityState) FromRef(str js.Ref) DocumentVisibilityState { 21 return DocumentVisibilityState(bindings.ConstOfDocumentVisibilityState(str)) 22 } 23 24 func (x DocumentVisibilityState) String() (string, bool) { 25 switch x { 26 case DocumentVisibilityState_VISIBLE: 27 return "visible", true 28 case DocumentVisibilityState_HIDDEN: 29 return "hidden", true 30 default: 31 return "", false 32 } 33 } 34 35 type OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView struct { 36 ref js.Ref 37 } 38 39 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) Ref() js.Ref { 40 return x.ref 41 } 42 43 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) Free() { 44 x.ref.Free() 45 } 46 47 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) FromRef(ref js.Ref) OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView { 48 return OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView{ 49 ref: ref, 50 } 51 } 52 53 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) String() js.String { 54 return js.String{}.FromRef(x.ref) 55 } 56 57 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) ArrayBuffer() js.ArrayBuffer { 58 return js.ArrayBuffer{}.FromRef(x.ref) 59 } 60 61 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt8() js.TypedArray[int8] { 62 return js.TypedArray[int8]{}.FromRef(x.ref) 63 } 64 65 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt16() js.TypedArray[int16] { 66 return js.TypedArray[int16]{}.FromRef(x.ref) 67 } 68 69 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt32() js.TypedArray[int32] { 70 return js.TypedArray[int32]{}.FromRef(x.ref) 71 } 72 73 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint8() js.TypedArray[uint8] { 74 return js.TypedArray[uint8]{}.FromRef(x.ref) 75 } 76 77 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint16() js.TypedArray[uint16] { 78 return js.TypedArray[uint16]{}.FromRef(x.ref) 79 } 80 81 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint32() js.TypedArray[uint32] { 82 return js.TypedArray[uint32]{}.FromRef(x.ref) 83 } 84 85 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt64() js.TypedArray[int64] { 86 return js.TypedArray[int64]{}.FromRef(x.ref) 87 } 88 89 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint64() js.TypedArray[uint64] { 90 return js.TypedArray[uint64]{}.FromRef(x.ref) 91 } 92 93 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayFloat32() js.TypedArray[float32] { 94 return js.TypedArray[float32]{}.FromRef(x.ref) 95 } 96 97 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayFloat64() js.TypedArray[float64] { 98 return js.TypedArray[float64]{}.FromRef(x.ref) 99 } 100 101 func (x OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) DataView() js.DataView { 102 return js.DataView{}.FromRef(x.ref) 103 } 104 105 type FontFaceDescriptors struct { 106 // Style is "FontFaceDescriptors.style" 107 // 108 // Optional, defaults to "normal". 109 Style js.String 110 // Weight is "FontFaceDescriptors.weight" 111 // 112 // Optional, defaults to "normal". 113 Weight js.String 114 // Stretch is "FontFaceDescriptors.stretch" 115 // 116 // Optional, defaults to "normal". 117 Stretch js.String 118 // UnicodeRange is "FontFaceDescriptors.unicodeRange" 119 // 120 // Optional, defaults to "U+0-10FFFF". 121 UnicodeRange js.String 122 // Variant is "FontFaceDescriptors.variant" 123 // 124 // Optional, defaults to "normal". 125 Variant js.String 126 // FeatureSettings is "FontFaceDescriptors.featureSettings" 127 // 128 // Optional, defaults to "normal". 129 FeatureSettings js.String 130 // VariationSettings is "FontFaceDescriptors.variationSettings" 131 // 132 // Optional, defaults to "normal". 133 VariationSettings js.String 134 // Display is "FontFaceDescriptors.display" 135 // 136 // Optional, defaults to "auto". 137 Display js.String 138 // AscentOverride is "FontFaceDescriptors.ascentOverride" 139 // 140 // Optional, defaults to "normal". 141 AscentOverride js.String 142 // DescentOverride is "FontFaceDescriptors.descentOverride" 143 // 144 // Optional, defaults to "normal". 145 DescentOverride js.String 146 // LineGapOverride is "FontFaceDescriptors.lineGapOverride" 147 // 148 // Optional, defaults to "normal". 149 LineGapOverride js.String 150 151 FFI_USE bool 152 } 153 154 // FromRef calls UpdateFrom and returns a FontFaceDescriptors with all fields set. 155 func (p FontFaceDescriptors) FromRef(ref js.Ref) FontFaceDescriptors { 156 p.UpdateFrom(ref) 157 return p 158 } 159 160 // New creates a new FontFaceDescriptors in the application heap. 161 func (p FontFaceDescriptors) New() js.Ref { 162 return bindings.FontFaceDescriptorsJSLoad( 163 js.Pointer(&p), js.True, 0, 164 ) 165 } 166 167 // UpdateFrom copies value of all fields of the heap object to p. 168 func (p *FontFaceDescriptors) UpdateFrom(ref js.Ref) { 169 bindings.FontFaceDescriptorsJSStore( 170 js.Pointer(p), ref, 171 ) 172 } 173 174 // Update writes all fields of the p to the heap object referenced by ref. 175 func (p *FontFaceDescriptors) Update(ref js.Ref) { 176 bindings.FontFaceDescriptorsJSLoad( 177 js.Pointer(p), js.False, ref, 178 ) 179 } 180 181 // FreeMembers frees fields with heap reference, if recursive is true 182 // free all heap references reachable from p. 183 func (p *FontFaceDescriptors) FreeMembers(recursive bool) { 184 js.Free( 185 p.Style.Ref(), 186 p.Weight.Ref(), 187 p.Stretch.Ref(), 188 p.UnicodeRange.Ref(), 189 p.Variant.Ref(), 190 p.FeatureSettings.Ref(), 191 p.VariationSettings.Ref(), 192 p.Display.Ref(), 193 p.AscentOverride.Ref(), 194 p.DescentOverride.Ref(), 195 p.LineGapOverride.Ref(), 196 ) 197 p.Style = p.Style.FromRef(js.Undefined) 198 p.Weight = p.Weight.FromRef(js.Undefined) 199 p.Stretch = p.Stretch.FromRef(js.Undefined) 200 p.UnicodeRange = p.UnicodeRange.FromRef(js.Undefined) 201 p.Variant = p.Variant.FromRef(js.Undefined) 202 p.FeatureSettings = p.FeatureSettings.FromRef(js.Undefined) 203 p.VariationSettings = p.VariationSettings.FromRef(js.Undefined) 204 p.Display = p.Display.FromRef(js.Undefined) 205 p.AscentOverride = p.AscentOverride.FromRef(js.Undefined) 206 p.DescentOverride = p.DescentOverride.FromRef(js.Undefined) 207 p.LineGapOverride = p.LineGapOverride.FromRef(js.Undefined) 208 } 209 210 type FontFaceLoadStatus uint32 211 212 const ( 213 _ FontFaceLoadStatus = iota 214 215 FontFaceLoadStatus_UNLOADED 216 FontFaceLoadStatus_LOADING 217 FontFaceLoadStatus_LOADED 218 FontFaceLoadStatus_ERROR 219 ) 220 221 func (FontFaceLoadStatus) FromRef(str js.Ref) FontFaceLoadStatus { 222 return FontFaceLoadStatus(bindings.ConstOfFontFaceLoadStatus(str)) 223 } 224 225 func (x FontFaceLoadStatus) String() (string, bool) { 226 switch x { 227 case FontFaceLoadStatus_UNLOADED: 228 return "unloaded", true 229 case FontFaceLoadStatus_LOADING: 230 return "loading", true 231 case FontFaceLoadStatus_LOADED: 232 return "loaded", true 233 case FontFaceLoadStatus_ERROR: 234 return "error", true 235 default: 236 return "", false 237 } 238 } 239 240 type FontFaceFeatures struct { 241 ref js.Ref 242 } 243 244 func (this FontFaceFeatures) Once() FontFaceFeatures { 245 this.ref.Once() 246 return this 247 } 248 249 func (this FontFaceFeatures) Ref() js.Ref { 250 return this.ref 251 } 252 253 func (this FontFaceFeatures) FromRef(ref js.Ref) FontFaceFeatures { 254 this.ref = ref 255 return this 256 } 257 258 func (this FontFaceFeatures) Free() { 259 this.ref.Free() 260 } 261 262 type FontFaceVariations struct { 263 ref js.Ref 264 } 265 266 func (this FontFaceVariations) Once() FontFaceVariations { 267 this.ref.Once() 268 return this 269 } 270 271 func (this FontFaceVariations) Ref() js.Ref { 272 return this.ref 273 } 274 275 func (this FontFaceVariations) FromRef(ref js.Ref) FontFaceVariations { 276 this.ref = ref 277 return this 278 } 279 280 func (this FontFaceVariations) Free() { 281 this.ref.Free() 282 } 283 284 type FontFacePalette struct { 285 ref js.Ref 286 } 287 288 func (this FontFacePalette) Once() FontFacePalette { 289 this.ref.Once() 290 return this 291 } 292 293 func (this FontFacePalette) Ref() js.Ref { 294 return this.ref 295 } 296 297 func (this FontFacePalette) FromRef(ref js.Ref) FontFacePalette { 298 this.ref = ref 299 return this 300 } 301 302 func (this FontFacePalette) Free() { 303 this.ref.Free() 304 } 305 306 // Length returns the value of property "FontFacePalette.length". 307 // 308 // It returns ok=false if there is no such property. 309 func (this FontFacePalette) Length() (ret uint32, ok bool) { 310 ok = js.True == bindings.GetFontFacePaletteLength( 311 this.ref, js.Pointer(&ret), 312 ) 313 return 314 } 315 316 // UsableWithLightBackground returns the value of property "FontFacePalette.usableWithLightBackground". 317 // 318 // It returns ok=false if there is no such property. 319 func (this FontFacePalette) UsableWithLightBackground() (ret bool, ok bool) { 320 ok = js.True == bindings.GetFontFacePaletteUsableWithLightBackground( 321 this.ref, js.Pointer(&ret), 322 ) 323 return 324 } 325 326 // UsableWithDarkBackground returns the value of property "FontFacePalette.usableWithDarkBackground". 327 // 328 // It returns ok=false if there is no such property. 329 func (this FontFacePalette) UsableWithDarkBackground() (ret bool, ok bool) { 330 ok = js.True == bindings.GetFontFacePaletteUsableWithDarkBackground( 331 this.ref, js.Pointer(&ret), 332 ) 333 return 334 } 335 336 // HasFuncGet returns true if the method "FontFacePalette." exists. 337 func (this FontFacePalette) HasFuncGet() bool { 338 return js.True == bindings.HasFuncFontFacePaletteGet( 339 this.ref, 340 ) 341 } 342 343 // FuncGet returns the method "FontFacePalette.". 344 func (this FontFacePalette) FuncGet() (fn js.Func[func(index uint32) js.String]) { 345 bindings.FuncFontFacePaletteGet( 346 this.ref, js.Pointer(&fn), 347 ) 348 return 349 } 350 351 // Get calls the method "FontFacePalette.". 352 func (this FontFacePalette) Get(index uint32) (ret js.String) { 353 bindings.CallFontFacePaletteGet( 354 this.ref, js.Pointer(&ret), 355 uint32(index), 356 ) 357 358 return 359 } 360 361 // TryGet calls the method "FontFacePalette." 362 // in a try/catch block and returns (_, err, ok = false) when it went through 363 // the catch clause. 364 func (this FontFacePalette) TryGet(index uint32) (ret js.String, exception js.Any, ok bool) { 365 ok = js.True == bindings.TryFontFacePaletteGet( 366 this.ref, js.Pointer(&ret), js.Pointer(&exception), 367 uint32(index), 368 ) 369 370 return 371 } 372 373 type FontFacePalettes struct { 374 ref js.Ref 375 } 376 377 func (this FontFacePalettes) Once() FontFacePalettes { 378 this.ref.Once() 379 return this 380 } 381 382 func (this FontFacePalettes) Ref() js.Ref { 383 return this.ref 384 } 385 386 func (this FontFacePalettes) FromRef(ref js.Ref) FontFacePalettes { 387 this.ref = ref 388 return this 389 } 390 391 func (this FontFacePalettes) Free() { 392 this.ref.Free() 393 } 394 395 // Length returns the value of property "FontFacePalettes.length". 396 // 397 // It returns ok=false if there is no such property. 398 func (this FontFacePalettes) Length() (ret uint32, ok bool) { 399 ok = js.True == bindings.GetFontFacePalettesLength( 400 this.ref, js.Pointer(&ret), 401 ) 402 return 403 } 404 405 // HasFuncGet returns true if the method "FontFacePalettes." exists. 406 func (this FontFacePalettes) HasFuncGet() bool { 407 return js.True == bindings.HasFuncFontFacePalettesGet( 408 this.ref, 409 ) 410 } 411 412 // FuncGet returns the method "FontFacePalettes.". 413 func (this FontFacePalettes) FuncGet() (fn js.Func[func(index uint32) FontFacePalette]) { 414 bindings.FuncFontFacePalettesGet( 415 this.ref, js.Pointer(&fn), 416 ) 417 return 418 } 419 420 // Get calls the method "FontFacePalettes.". 421 func (this FontFacePalettes) Get(index uint32) (ret FontFacePalette) { 422 bindings.CallFontFacePalettesGet( 423 this.ref, js.Pointer(&ret), 424 uint32(index), 425 ) 426 427 return 428 } 429 430 // TryGet calls the method "FontFacePalettes." 431 // in a try/catch block and returns (_, err, ok = false) when it went through 432 // the catch clause. 433 func (this FontFacePalettes) TryGet(index uint32) (ret FontFacePalette, exception js.Any, ok bool) { 434 ok = js.True == bindings.TryFontFacePalettesGet( 435 this.ref, js.Pointer(&ret), js.Pointer(&exception), 436 uint32(index), 437 ) 438 439 return 440 } 441 442 func NewFontFace(family js.String, source OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView, descriptors FontFaceDescriptors) (ret FontFace) { 443 ret.ref = bindings.NewFontFaceByFontFace( 444 family.Ref(), 445 source.Ref(), 446 js.Pointer(&descriptors)) 447 return 448 } 449 450 func NewFontFaceByFontFace1(family js.String, source OneOf_String_ArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) (ret FontFace) { 451 ret.ref = bindings.NewFontFaceByFontFace1( 452 family.Ref(), 453 source.Ref()) 454 return 455 } 456 457 type FontFace struct { 458 ref js.Ref 459 } 460 461 func (this FontFace) Once() FontFace { 462 this.ref.Once() 463 return this 464 } 465 466 func (this FontFace) Ref() js.Ref { 467 return this.ref 468 } 469 470 func (this FontFace) FromRef(ref js.Ref) FontFace { 471 this.ref = ref 472 return this 473 } 474 475 func (this FontFace) Free() { 476 this.ref.Free() 477 } 478 479 // Family returns the value of property "FontFace.family". 480 // 481 // It returns ok=false if there is no such property. 482 func (this FontFace) Family() (ret js.String, ok bool) { 483 ok = js.True == bindings.GetFontFaceFamily( 484 this.ref, js.Pointer(&ret), 485 ) 486 return 487 } 488 489 // SetFamily sets the value of property "FontFace.family" to val. 490 // 491 // It returns false if the property cannot be set. 492 func (this FontFace) SetFamily(val js.String) bool { 493 return js.True == bindings.SetFontFaceFamily( 494 this.ref, 495 val.Ref(), 496 ) 497 } 498 499 // Style returns the value of property "FontFace.style". 500 // 501 // It returns ok=false if there is no such property. 502 func (this FontFace) Style() (ret js.String, ok bool) { 503 ok = js.True == bindings.GetFontFaceStyle( 504 this.ref, js.Pointer(&ret), 505 ) 506 return 507 } 508 509 // SetStyle sets the value of property "FontFace.style" to val. 510 // 511 // It returns false if the property cannot be set. 512 func (this FontFace) SetStyle(val js.String) bool { 513 return js.True == bindings.SetFontFaceStyle( 514 this.ref, 515 val.Ref(), 516 ) 517 } 518 519 // Weight returns the value of property "FontFace.weight". 520 // 521 // It returns ok=false if there is no such property. 522 func (this FontFace) Weight() (ret js.String, ok bool) { 523 ok = js.True == bindings.GetFontFaceWeight( 524 this.ref, js.Pointer(&ret), 525 ) 526 return 527 } 528 529 // SetWeight sets the value of property "FontFace.weight" to val. 530 // 531 // It returns false if the property cannot be set. 532 func (this FontFace) SetWeight(val js.String) bool { 533 return js.True == bindings.SetFontFaceWeight( 534 this.ref, 535 val.Ref(), 536 ) 537 } 538 539 // Stretch returns the value of property "FontFace.stretch". 540 // 541 // It returns ok=false if there is no such property. 542 func (this FontFace) Stretch() (ret js.String, ok bool) { 543 ok = js.True == bindings.GetFontFaceStretch( 544 this.ref, js.Pointer(&ret), 545 ) 546 return 547 } 548 549 // SetStretch sets the value of property "FontFace.stretch" to val. 550 // 551 // It returns false if the property cannot be set. 552 func (this FontFace) SetStretch(val js.String) bool { 553 return js.True == bindings.SetFontFaceStretch( 554 this.ref, 555 val.Ref(), 556 ) 557 } 558 559 // UnicodeRange returns the value of property "FontFace.unicodeRange". 560 // 561 // It returns ok=false if there is no such property. 562 func (this FontFace) UnicodeRange() (ret js.String, ok bool) { 563 ok = js.True == bindings.GetFontFaceUnicodeRange( 564 this.ref, js.Pointer(&ret), 565 ) 566 return 567 } 568 569 // SetUnicodeRange sets the value of property "FontFace.unicodeRange" to val. 570 // 571 // It returns false if the property cannot be set. 572 func (this FontFace) SetUnicodeRange(val js.String) bool { 573 return js.True == bindings.SetFontFaceUnicodeRange( 574 this.ref, 575 val.Ref(), 576 ) 577 } 578 579 // Variant returns the value of property "FontFace.variant". 580 // 581 // It returns ok=false if there is no such property. 582 func (this FontFace) Variant() (ret js.String, ok bool) { 583 ok = js.True == bindings.GetFontFaceVariant( 584 this.ref, js.Pointer(&ret), 585 ) 586 return 587 } 588 589 // SetVariant sets the value of property "FontFace.variant" to val. 590 // 591 // It returns false if the property cannot be set. 592 func (this FontFace) SetVariant(val js.String) bool { 593 return js.True == bindings.SetFontFaceVariant( 594 this.ref, 595 val.Ref(), 596 ) 597 } 598 599 // FeatureSettings returns the value of property "FontFace.featureSettings". 600 // 601 // It returns ok=false if there is no such property. 602 func (this FontFace) FeatureSettings() (ret js.String, ok bool) { 603 ok = js.True == bindings.GetFontFaceFeatureSettings( 604 this.ref, js.Pointer(&ret), 605 ) 606 return 607 } 608 609 // SetFeatureSettings sets the value of property "FontFace.featureSettings" to val. 610 // 611 // It returns false if the property cannot be set. 612 func (this FontFace) SetFeatureSettings(val js.String) bool { 613 return js.True == bindings.SetFontFaceFeatureSettings( 614 this.ref, 615 val.Ref(), 616 ) 617 } 618 619 // VariationSettings returns the value of property "FontFace.variationSettings". 620 // 621 // It returns ok=false if there is no such property. 622 func (this FontFace) VariationSettings() (ret js.String, ok bool) { 623 ok = js.True == bindings.GetFontFaceVariationSettings( 624 this.ref, js.Pointer(&ret), 625 ) 626 return 627 } 628 629 // SetVariationSettings sets the value of property "FontFace.variationSettings" to val. 630 // 631 // It returns false if the property cannot be set. 632 func (this FontFace) SetVariationSettings(val js.String) bool { 633 return js.True == bindings.SetFontFaceVariationSettings( 634 this.ref, 635 val.Ref(), 636 ) 637 } 638 639 // Display returns the value of property "FontFace.display". 640 // 641 // It returns ok=false if there is no such property. 642 func (this FontFace) Display() (ret js.String, ok bool) { 643 ok = js.True == bindings.GetFontFaceDisplay( 644 this.ref, js.Pointer(&ret), 645 ) 646 return 647 } 648 649 // SetDisplay sets the value of property "FontFace.display" to val. 650 // 651 // It returns false if the property cannot be set. 652 func (this FontFace) SetDisplay(val js.String) bool { 653 return js.True == bindings.SetFontFaceDisplay( 654 this.ref, 655 val.Ref(), 656 ) 657 } 658 659 // AscentOverride returns the value of property "FontFace.ascentOverride". 660 // 661 // It returns ok=false if there is no such property. 662 func (this FontFace) AscentOverride() (ret js.String, ok bool) { 663 ok = js.True == bindings.GetFontFaceAscentOverride( 664 this.ref, js.Pointer(&ret), 665 ) 666 return 667 } 668 669 // SetAscentOverride sets the value of property "FontFace.ascentOverride" to val. 670 // 671 // It returns false if the property cannot be set. 672 func (this FontFace) SetAscentOverride(val js.String) bool { 673 return js.True == bindings.SetFontFaceAscentOverride( 674 this.ref, 675 val.Ref(), 676 ) 677 } 678 679 // DescentOverride returns the value of property "FontFace.descentOverride". 680 // 681 // It returns ok=false if there is no such property. 682 func (this FontFace) DescentOverride() (ret js.String, ok bool) { 683 ok = js.True == bindings.GetFontFaceDescentOverride( 684 this.ref, js.Pointer(&ret), 685 ) 686 return 687 } 688 689 // SetDescentOverride sets the value of property "FontFace.descentOverride" to val. 690 // 691 // It returns false if the property cannot be set. 692 func (this FontFace) SetDescentOverride(val js.String) bool { 693 return js.True == bindings.SetFontFaceDescentOverride( 694 this.ref, 695 val.Ref(), 696 ) 697 } 698 699 // LineGapOverride returns the value of property "FontFace.lineGapOverride". 700 // 701 // It returns ok=false if there is no such property. 702 func (this FontFace) LineGapOverride() (ret js.String, ok bool) { 703 ok = js.True == bindings.GetFontFaceLineGapOverride( 704 this.ref, js.Pointer(&ret), 705 ) 706 return 707 } 708 709 // SetLineGapOverride sets the value of property "FontFace.lineGapOverride" to val. 710 // 711 // It returns false if the property cannot be set. 712 func (this FontFace) SetLineGapOverride(val js.String) bool { 713 return js.True == bindings.SetFontFaceLineGapOverride( 714 this.ref, 715 val.Ref(), 716 ) 717 } 718 719 // Status returns the value of property "FontFace.status". 720 // 721 // It returns ok=false if there is no such property. 722 func (this FontFace) Status() (ret FontFaceLoadStatus, ok bool) { 723 ok = js.True == bindings.GetFontFaceStatus( 724 this.ref, js.Pointer(&ret), 725 ) 726 return 727 } 728 729 // Loaded returns the value of property "FontFace.loaded". 730 // 731 // It returns ok=false if there is no such property. 732 func (this FontFace) Loaded() (ret js.Promise[FontFace], ok bool) { 733 ok = js.True == bindings.GetFontFaceLoaded( 734 this.ref, js.Pointer(&ret), 735 ) 736 return 737 } 738 739 // Features returns the value of property "FontFace.features". 740 // 741 // It returns ok=false if there is no such property. 742 func (this FontFace) Features() (ret FontFaceFeatures, ok bool) { 743 ok = js.True == bindings.GetFontFaceFeatures( 744 this.ref, js.Pointer(&ret), 745 ) 746 return 747 } 748 749 // Variations returns the value of property "FontFace.variations". 750 // 751 // It returns ok=false if there is no such property. 752 func (this FontFace) Variations() (ret FontFaceVariations, ok bool) { 753 ok = js.True == bindings.GetFontFaceVariations( 754 this.ref, js.Pointer(&ret), 755 ) 756 return 757 } 758 759 // Palettes returns the value of property "FontFace.palettes". 760 // 761 // It returns ok=false if there is no such property. 762 func (this FontFace) Palettes() (ret FontFacePalettes, ok bool) { 763 ok = js.True == bindings.GetFontFacePalettes( 764 this.ref, js.Pointer(&ret), 765 ) 766 return 767 } 768 769 // HasFuncLoad returns true if the method "FontFace.load" exists. 770 func (this FontFace) HasFuncLoad() bool { 771 return js.True == bindings.HasFuncFontFaceLoad( 772 this.ref, 773 ) 774 } 775 776 // FuncLoad returns the method "FontFace.load". 777 func (this FontFace) FuncLoad() (fn js.Func[func() js.Promise[FontFace]]) { 778 bindings.FuncFontFaceLoad( 779 this.ref, js.Pointer(&fn), 780 ) 781 return 782 } 783 784 // Load calls the method "FontFace.load". 785 func (this FontFace) Load() (ret js.Promise[FontFace]) { 786 bindings.CallFontFaceLoad( 787 this.ref, js.Pointer(&ret), 788 ) 789 790 return 791 } 792 793 // TryLoad calls the method "FontFace.load" 794 // in a try/catch block and returns (_, err, ok = false) when it went through 795 // the catch clause. 796 func (this FontFace) TryLoad() (ret js.Promise[FontFace], exception js.Any, ok bool) { 797 ok = js.True == bindings.TryFontFaceLoad( 798 this.ref, js.Pointer(&ret), js.Pointer(&exception), 799 ) 800 801 return 802 } 803 804 type FontFaceSetLoadStatus uint32 805 806 const ( 807 _ FontFaceSetLoadStatus = iota 808 809 FontFaceSetLoadStatus_LOADING 810 FontFaceSetLoadStatus_LOADED 811 ) 812 813 func (FontFaceSetLoadStatus) FromRef(str js.Ref) FontFaceSetLoadStatus { 814 return FontFaceSetLoadStatus(bindings.ConstOfFontFaceSetLoadStatus(str)) 815 } 816 817 func (x FontFaceSetLoadStatus) String() (string, bool) { 818 switch x { 819 case FontFaceSetLoadStatus_LOADING: 820 return "loading", true 821 case FontFaceSetLoadStatus_LOADED: 822 return "loaded", true 823 default: 824 return "", false 825 } 826 } 827 828 func NewFontFaceSet(initialFaces js.Array[FontFace]) (ret FontFaceSet) { 829 ret.ref = bindings.NewFontFaceSetByFontFaceSet( 830 initialFaces.Ref()) 831 return 832 } 833 834 type FontFaceSet struct { 835 EventTarget 836 } 837 838 func (this FontFaceSet) Once() FontFaceSet { 839 this.ref.Once() 840 return this 841 } 842 843 func (this FontFaceSet) Ref() js.Ref { 844 return this.EventTarget.Ref() 845 } 846 847 func (this FontFaceSet) FromRef(ref js.Ref) FontFaceSet { 848 this.EventTarget = this.EventTarget.FromRef(ref) 849 return this 850 } 851 852 func (this FontFaceSet) Free() { 853 this.ref.Free() 854 } 855 856 // Ready returns the value of property "FontFaceSet.ready". 857 // 858 // It returns ok=false if there is no such property. 859 func (this FontFaceSet) Ready() (ret js.Promise[FontFaceSet], ok bool) { 860 ok = js.True == bindings.GetFontFaceSetReady( 861 this.ref, js.Pointer(&ret), 862 ) 863 return 864 } 865 866 // Status returns the value of property "FontFaceSet.status". 867 // 868 // It returns ok=false if there is no such property. 869 func (this FontFaceSet) Status() (ret FontFaceSetLoadStatus, ok bool) { 870 ok = js.True == bindings.GetFontFaceSetStatus( 871 this.ref, js.Pointer(&ret), 872 ) 873 return 874 } 875 876 // HasFuncAdd returns true if the method "FontFaceSet.add" exists. 877 func (this FontFaceSet) HasFuncAdd() bool { 878 return js.True == bindings.HasFuncFontFaceSetAdd( 879 this.ref, 880 ) 881 } 882 883 // FuncAdd returns the method "FontFaceSet.add". 884 func (this FontFaceSet) FuncAdd() (fn js.Func[func(font FontFace) FontFaceSet]) { 885 bindings.FuncFontFaceSetAdd( 886 this.ref, js.Pointer(&fn), 887 ) 888 return 889 } 890 891 // Add calls the method "FontFaceSet.add". 892 func (this FontFaceSet) Add(font FontFace) (ret FontFaceSet) { 893 bindings.CallFontFaceSetAdd( 894 this.ref, js.Pointer(&ret), 895 font.Ref(), 896 ) 897 898 return 899 } 900 901 // TryAdd calls the method "FontFaceSet.add" 902 // in a try/catch block and returns (_, err, ok = false) when it went through 903 // the catch clause. 904 func (this FontFaceSet) TryAdd(font FontFace) (ret FontFaceSet, exception js.Any, ok bool) { 905 ok = js.True == bindings.TryFontFaceSetAdd( 906 this.ref, js.Pointer(&ret), js.Pointer(&exception), 907 font.Ref(), 908 ) 909 910 return 911 } 912 913 // HasFuncDelete returns true if the method "FontFaceSet.delete" exists. 914 func (this FontFaceSet) HasFuncDelete() bool { 915 return js.True == bindings.HasFuncFontFaceSetDelete( 916 this.ref, 917 ) 918 } 919 920 // FuncDelete returns the method "FontFaceSet.delete". 921 func (this FontFaceSet) FuncDelete() (fn js.Func[func(font FontFace) bool]) { 922 bindings.FuncFontFaceSetDelete( 923 this.ref, js.Pointer(&fn), 924 ) 925 return 926 } 927 928 // Delete calls the method "FontFaceSet.delete". 929 func (this FontFaceSet) Delete(font FontFace) (ret bool) { 930 bindings.CallFontFaceSetDelete( 931 this.ref, js.Pointer(&ret), 932 font.Ref(), 933 ) 934 935 return 936 } 937 938 // TryDelete calls the method "FontFaceSet.delete" 939 // in a try/catch block and returns (_, err, ok = false) when it went through 940 // the catch clause. 941 func (this FontFaceSet) TryDelete(font FontFace) (ret bool, exception js.Any, ok bool) { 942 ok = js.True == bindings.TryFontFaceSetDelete( 943 this.ref, js.Pointer(&ret), js.Pointer(&exception), 944 font.Ref(), 945 ) 946 947 return 948 } 949 950 // HasFuncClear returns true if the method "FontFaceSet.clear" exists. 951 func (this FontFaceSet) HasFuncClear() bool { 952 return js.True == bindings.HasFuncFontFaceSetClear( 953 this.ref, 954 ) 955 } 956 957 // FuncClear returns the method "FontFaceSet.clear". 958 func (this FontFaceSet) FuncClear() (fn js.Func[func()]) { 959 bindings.FuncFontFaceSetClear( 960 this.ref, js.Pointer(&fn), 961 ) 962 return 963 } 964 965 // Clear calls the method "FontFaceSet.clear". 966 func (this FontFaceSet) Clear() (ret js.Void) { 967 bindings.CallFontFaceSetClear( 968 this.ref, js.Pointer(&ret), 969 ) 970 971 return 972 } 973 974 // TryClear calls the method "FontFaceSet.clear" 975 // in a try/catch block and returns (_, err, ok = false) when it went through 976 // the catch clause. 977 func (this FontFaceSet) TryClear() (ret js.Void, exception js.Any, ok bool) { 978 ok = js.True == bindings.TryFontFaceSetClear( 979 this.ref, js.Pointer(&ret), js.Pointer(&exception), 980 ) 981 982 return 983 } 984 985 // HasFuncLoad returns true if the method "FontFaceSet.load" exists. 986 func (this FontFaceSet) HasFuncLoad() bool { 987 return js.True == bindings.HasFuncFontFaceSetLoad( 988 this.ref, 989 ) 990 } 991 992 // FuncLoad returns the method "FontFaceSet.load". 993 func (this FontFaceSet) FuncLoad() (fn js.Func[func(font js.String, text js.String) js.Promise[js.Array[FontFace]]]) { 994 bindings.FuncFontFaceSetLoad( 995 this.ref, js.Pointer(&fn), 996 ) 997 return 998 } 999 1000 // Load calls the method "FontFaceSet.load". 1001 func (this FontFaceSet) Load(font js.String, text js.String) (ret js.Promise[js.Array[FontFace]]) { 1002 bindings.CallFontFaceSetLoad( 1003 this.ref, js.Pointer(&ret), 1004 font.Ref(), 1005 text.Ref(), 1006 ) 1007 1008 return 1009 } 1010 1011 // TryLoad calls the method "FontFaceSet.load" 1012 // in a try/catch block and returns (_, err, ok = false) when it went through 1013 // the catch clause. 1014 func (this FontFaceSet) TryLoad(font js.String, text js.String) (ret js.Promise[js.Array[FontFace]], exception js.Any, ok bool) { 1015 ok = js.True == bindings.TryFontFaceSetLoad( 1016 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1017 font.Ref(), 1018 text.Ref(), 1019 ) 1020 1021 return 1022 } 1023 1024 // HasFuncLoad1 returns true if the method "FontFaceSet.load" exists. 1025 func (this FontFaceSet) HasFuncLoad1() bool { 1026 return js.True == bindings.HasFuncFontFaceSetLoad1( 1027 this.ref, 1028 ) 1029 } 1030 1031 // FuncLoad1 returns the method "FontFaceSet.load". 1032 func (this FontFaceSet) FuncLoad1() (fn js.Func[func(font js.String) js.Promise[js.Array[FontFace]]]) { 1033 bindings.FuncFontFaceSetLoad1( 1034 this.ref, js.Pointer(&fn), 1035 ) 1036 return 1037 } 1038 1039 // Load1 calls the method "FontFaceSet.load". 1040 func (this FontFaceSet) Load1(font js.String) (ret js.Promise[js.Array[FontFace]]) { 1041 bindings.CallFontFaceSetLoad1( 1042 this.ref, js.Pointer(&ret), 1043 font.Ref(), 1044 ) 1045 1046 return 1047 } 1048 1049 // TryLoad1 calls the method "FontFaceSet.load" 1050 // in a try/catch block and returns (_, err, ok = false) when it went through 1051 // the catch clause. 1052 func (this FontFaceSet) TryLoad1(font js.String) (ret js.Promise[js.Array[FontFace]], exception js.Any, ok bool) { 1053 ok = js.True == bindings.TryFontFaceSetLoad1( 1054 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1055 font.Ref(), 1056 ) 1057 1058 return 1059 } 1060 1061 // HasFuncCheck returns true if the method "FontFaceSet.check" exists. 1062 func (this FontFaceSet) HasFuncCheck() bool { 1063 return js.True == bindings.HasFuncFontFaceSetCheck( 1064 this.ref, 1065 ) 1066 } 1067 1068 // FuncCheck returns the method "FontFaceSet.check". 1069 func (this FontFaceSet) FuncCheck() (fn js.Func[func(font js.String, text js.String) bool]) { 1070 bindings.FuncFontFaceSetCheck( 1071 this.ref, js.Pointer(&fn), 1072 ) 1073 return 1074 } 1075 1076 // Check calls the method "FontFaceSet.check". 1077 func (this FontFaceSet) Check(font js.String, text js.String) (ret bool) { 1078 bindings.CallFontFaceSetCheck( 1079 this.ref, js.Pointer(&ret), 1080 font.Ref(), 1081 text.Ref(), 1082 ) 1083 1084 return 1085 } 1086 1087 // TryCheck calls the method "FontFaceSet.check" 1088 // in a try/catch block and returns (_, err, ok = false) when it went through 1089 // the catch clause. 1090 func (this FontFaceSet) TryCheck(font js.String, text js.String) (ret bool, exception js.Any, ok bool) { 1091 ok = js.True == bindings.TryFontFaceSetCheck( 1092 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1093 font.Ref(), 1094 text.Ref(), 1095 ) 1096 1097 return 1098 } 1099 1100 // HasFuncCheck1 returns true if the method "FontFaceSet.check" exists. 1101 func (this FontFaceSet) HasFuncCheck1() bool { 1102 return js.True == bindings.HasFuncFontFaceSetCheck1( 1103 this.ref, 1104 ) 1105 } 1106 1107 // FuncCheck1 returns the method "FontFaceSet.check". 1108 func (this FontFaceSet) FuncCheck1() (fn js.Func[func(font js.String) bool]) { 1109 bindings.FuncFontFaceSetCheck1( 1110 this.ref, js.Pointer(&fn), 1111 ) 1112 return 1113 } 1114 1115 // Check1 calls the method "FontFaceSet.check". 1116 func (this FontFaceSet) Check1(font js.String) (ret bool) { 1117 bindings.CallFontFaceSetCheck1( 1118 this.ref, js.Pointer(&ret), 1119 font.Ref(), 1120 ) 1121 1122 return 1123 } 1124 1125 // TryCheck1 calls the method "FontFaceSet.check" 1126 // in a try/catch block and returns (_, err, ok = false) when it went through 1127 // the catch clause. 1128 func (this FontFaceSet) TryCheck1(font js.String) (ret bool, exception js.Any, ok bool) { 1129 ok = js.True == bindings.TryFontFaceSetCheck1( 1130 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1131 font.Ref(), 1132 ) 1133 1134 return 1135 } 1136 1137 type Document struct { 1138 Node 1139 } 1140 1141 func (this Document) Once() Document { 1142 this.ref.Once() 1143 return this 1144 } 1145 1146 func (this Document) Ref() js.Ref { 1147 return this.Node.Ref() 1148 } 1149 1150 func (this Document) FromRef(ref js.Ref) Document { 1151 this.Node = this.Node.FromRef(ref) 1152 return this 1153 } 1154 1155 func (this Document) Free() { 1156 this.ref.Free() 1157 } 1158 1159 // Implementation returns the value of property "Document.implementation". 1160 // 1161 // It returns ok=false if there is no such property. 1162 func (this Document) Implementation() (ret DOMImplementation, ok bool) { 1163 ok = js.True == bindings.GetDocumentImplementation( 1164 this.ref, js.Pointer(&ret), 1165 ) 1166 return 1167 } 1168 1169 // URL returns the value of property "Document.URL". 1170 // 1171 // It returns ok=false if there is no such property. 1172 func (this Document) URL() (ret js.String, ok bool) { 1173 ok = js.True == bindings.GetDocumentURL( 1174 this.ref, js.Pointer(&ret), 1175 ) 1176 return 1177 } 1178 1179 // DocumentURI returns the value of property "Document.documentURI". 1180 // 1181 // It returns ok=false if there is no such property. 1182 func (this Document) DocumentURI() (ret js.String, ok bool) { 1183 ok = js.True == bindings.GetDocumentDocumentURI( 1184 this.ref, js.Pointer(&ret), 1185 ) 1186 return 1187 } 1188 1189 // CompatMode returns the value of property "Document.compatMode". 1190 // 1191 // It returns ok=false if there is no such property. 1192 func (this Document) CompatMode() (ret js.String, ok bool) { 1193 ok = js.True == bindings.GetDocumentCompatMode( 1194 this.ref, js.Pointer(&ret), 1195 ) 1196 return 1197 } 1198 1199 // CharacterSet returns the value of property "Document.characterSet". 1200 // 1201 // It returns ok=false if there is no such property. 1202 func (this Document) CharacterSet() (ret js.String, ok bool) { 1203 ok = js.True == bindings.GetDocumentCharacterSet( 1204 this.ref, js.Pointer(&ret), 1205 ) 1206 return 1207 } 1208 1209 // Charset returns the value of property "Document.charset". 1210 // 1211 // It returns ok=false if there is no such property. 1212 func (this Document) Charset() (ret js.String, ok bool) { 1213 ok = js.True == bindings.GetDocumentCharset( 1214 this.ref, js.Pointer(&ret), 1215 ) 1216 return 1217 } 1218 1219 // InputEncoding returns the value of property "Document.inputEncoding". 1220 // 1221 // It returns ok=false if there is no such property. 1222 func (this Document) InputEncoding() (ret js.String, ok bool) { 1223 ok = js.True == bindings.GetDocumentInputEncoding( 1224 this.ref, js.Pointer(&ret), 1225 ) 1226 return 1227 } 1228 1229 // ContentType returns the value of property "Document.contentType". 1230 // 1231 // It returns ok=false if there is no such property. 1232 func (this Document) ContentType() (ret js.String, ok bool) { 1233 ok = js.True == bindings.GetDocumentContentType( 1234 this.ref, js.Pointer(&ret), 1235 ) 1236 return 1237 } 1238 1239 // Doctype returns the value of property "Document.doctype". 1240 // 1241 // It returns ok=false if there is no such property. 1242 func (this Document) Doctype() (ret DocumentType, ok bool) { 1243 ok = js.True == bindings.GetDocumentDoctype( 1244 this.ref, js.Pointer(&ret), 1245 ) 1246 return 1247 } 1248 1249 // DocumentElement returns the value of property "Document.documentElement". 1250 // 1251 // It returns ok=false if there is no such property. 1252 func (this Document) DocumentElement() (ret Element, ok bool) { 1253 ok = js.True == bindings.GetDocumentDocumentElement( 1254 this.ref, js.Pointer(&ret), 1255 ) 1256 return 1257 } 1258 1259 // FragmentDirective returns the value of property "Document.fragmentDirective". 1260 // 1261 // It returns ok=false if there is no such property. 1262 func (this Document) FragmentDirective() (ret FragmentDirective, ok bool) { 1263 ok = js.True == bindings.GetDocumentFragmentDirective( 1264 this.ref, js.Pointer(&ret), 1265 ) 1266 return 1267 } 1268 1269 // PermissionsPolicy returns the value of property "Document.permissionsPolicy". 1270 // 1271 // It returns ok=false if there is no such property. 1272 func (this Document) PermissionsPolicy() (ret PermissionsPolicy, ok bool) { 1273 ok = js.True == bindings.GetDocumentPermissionsPolicy( 1274 this.ref, js.Pointer(&ret), 1275 ) 1276 return 1277 } 1278 1279 // WasDiscarded returns the value of property "Document.wasDiscarded". 1280 // 1281 // It returns ok=false if there is no such property. 1282 func (this Document) WasDiscarded() (ret bool, ok bool) { 1283 ok = js.True == bindings.GetDocumentWasDiscarded( 1284 this.ref, js.Pointer(&ret), 1285 ) 1286 return 1287 } 1288 1289 // FullscreenEnabled returns the value of property "Document.fullscreenEnabled". 1290 // 1291 // It returns ok=false if there is no such property. 1292 func (this Document) FullscreenEnabled() (ret bool, ok bool) { 1293 ok = js.True == bindings.GetDocumentFullscreenEnabled( 1294 this.ref, js.Pointer(&ret), 1295 ) 1296 return 1297 } 1298 1299 // Fullscreen returns the value of property "Document.fullscreen". 1300 // 1301 // It returns ok=false if there is no such property. 1302 func (this Document) Fullscreen() (ret bool, ok bool) { 1303 ok = js.True == bindings.GetDocumentFullscreen( 1304 this.ref, js.Pointer(&ret), 1305 ) 1306 return 1307 } 1308 1309 // Timeline returns the value of property "Document.timeline". 1310 // 1311 // It returns ok=false if there is no such property. 1312 func (this Document) Timeline() (ret DocumentTimeline, ok bool) { 1313 ok = js.True == bindings.GetDocumentTimeline( 1314 this.ref, js.Pointer(&ret), 1315 ) 1316 return 1317 } 1318 1319 // PictureInPictureEnabled returns the value of property "Document.pictureInPictureEnabled". 1320 // 1321 // It returns ok=false if there is no such property. 1322 func (this Document) PictureInPictureEnabled() (ret bool, ok bool) { 1323 ok = js.True == bindings.GetDocumentPictureInPictureEnabled( 1324 this.ref, js.Pointer(&ret), 1325 ) 1326 return 1327 } 1328 1329 // NamedFlows returns the value of property "Document.namedFlows". 1330 // 1331 // It returns ok=false if there is no such property. 1332 func (this Document) NamedFlows() (ret NamedFlowMap, ok bool) { 1333 ok = js.True == bindings.GetDocumentNamedFlows( 1334 this.ref, js.Pointer(&ret), 1335 ) 1336 return 1337 } 1338 1339 // ScrollingElement returns the value of property "Document.scrollingElement". 1340 // 1341 // It returns ok=false if there is no such property. 1342 func (this Document) ScrollingElement() (ret Element, ok bool) { 1343 ok = js.True == bindings.GetDocumentScrollingElement( 1344 this.ref, js.Pointer(&ret), 1345 ) 1346 return 1347 } 1348 1349 // RootElement returns the value of property "Document.rootElement". 1350 // 1351 // It returns ok=false if there is no such property. 1352 func (this Document) RootElement() (ret SVGSVGElement, ok bool) { 1353 ok = js.True == bindings.GetDocumentRootElement( 1354 this.ref, js.Pointer(&ret), 1355 ) 1356 return 1357 } 1358 1359 // Prerendering returns the value of property "Document.prerendering". 1360 // 1361 // It returns ok=false if there is no such property. 1362 func (this Document) Prerendering() (ret bool, ok bool) { 1363 ok = js.True == bindings.GetDocumentPrerendering( 1364 this.ref, js.Pointer(&ret), 1365 ) 1366 return 1367 } 1368 1369 // FgColor returns the value of property "Document.fgColor". 1370 // 1371 // It returns ok=false if there is no such property. 1372 func (this Document) FgColor() (ret js.String, ok bool) { 1373 ok = js.True == bindings.GetDocumentFgColor( 1374 this.ref, js.Pointer(&ret), 1375 ) 1376 return 1377 } 1378 1379 // SetFgColor sets the value of property "Document.fgColor" to val. 1380 // 1381 // It returns false if the property cannot be set. 1382 func (this Document) SetFgColor(val js.String) bool { 1383 return js.True == bindings.SetDocumentFgColor( 1384 this.ref, 1385 val.Ref(), 1386 ) 1387 } 1388 1389 // LinkColor returns the value of property "Document.linkColor". 1390 // 1391 // It returns ok=false if there is no such property. 1392 func (this Document) LinkColor() (ret js.String, ok bool) { 1393 ok = js.True == bindings.GetDocumentLinkColor( 1394 this.ref, js.Pointer(&ret), 1395 ) 1396 return 1397 } 1398 1399 // SetLinkColor sets the value of property "Document.linkColor" to val. 1400 // 1401 // It returns false if the property cannot be set. 1402 func (this Document) SetLinkColor(val js.String) bool { 1403 return js.True == bindings.SetDocumentLinkColor( 1404 this.ref, 1405 val.Ref(), 1406 ) 1407 } 1408 1409 // VlinkColor returns the value of property "Document.vlinkColor". 1410 // 1411 // It returns ok=false if there is no such property. 1412 func (this Document) VlinkColor() (ret js.String, ok bool) { 1413 ok = js.True == bindings.GetDocumentVlinkColor( 1414 this.ref, js.Pointer(&ret), 1415 ) 1416 return 1417 } 1418 1419 // SetVlinkColor sets the value of property "Document.vlinkColor" to val. 1420 // 1421 // It returns false if the property cannot be set. 1422 func (this Document) SetVlinkColor(val js.String) bool { 1423 return js.True == bindings.SetDocumentVlinkColor( 1424 this.ref, 1425 val.Ref(), 1426 ) 1427 } 1428 1429 // AlinkColor returns the value of property "Document.alinkColor". 1430 // 1431 // It returns ok=false if there is no such property. 1432 func (this Document) AlinkColor() (ret js.String, ok bool) { 1433 ok = js.True == bindings.GetDocumentAlinkColor( 1434 this.ref, js.Pointer(&ret), 1435 ) 1436 return 1437 } 1438 1439 // SetAlinkColor sets the value of property "Document.alinkColor" to val. 1440 // 1441 // It returns false if the property cannot be set. 1442 func (this Document) SetAlinkColor(val js.String) bool { 1443 return js.True == bindings.SetDocumentAlinkColor( 1444 this.ref, 1445 val.Ref(), 1446 ) 1447 } 1448 1449 // BgColor returns the value of property "Document.bgColor". 1450 // 1451 // It returns ok=false if there is no such property. 1452 func (this Document) BgColor() (ret js.String, ok bool) { 1453 ok = js.True == bindings.GetDocumentBgColor( 1454 this.ref, js.Pointer(&ret), 1455 ) 1456 return 1457 } 1458 1459 // SetBgColor sets the value of property "Document.bgColor" to val. 1460 // 1461 // It returns false if the property cannot be set. 1462 func (this Document) SetBgColor(val js.String) bool { 1463 return js.True == bindings.SetDocumentBgColor( 1464 this.ref, 1465 val.Ref(), 1466 ) 1467 } 1468 1469 // Anchors returns the value of property "Document.anchors". 1470 // 1471 // It returns ok=false if there is no such property. 1472 func (this Document) Anchors() (ret HTMLCollection, ok bool) { 1473 ok = js.True == bindings.GetDocumentAnchors( 1474 this.ref, js.Pointer(&ret), 1475 ) 1476 return 1477 } 1478 1479 // Applets returns the value of property "Document.applets". 1480 // 1481 // It returns ok=false if there is no such property. 1482 func (this Document) Applets() (ret HTMLCollection, ok bool) { 1483 ok = js.True == bindings.GetDocumentApplets( 1484 this.ref, js.Pointer(&ret), 1485 ) 1486 return 1487 } 1488 1489 // All returns the value of property "Document.all". 1490 // 1491 // It returns ok=false if there is no such property. 1492 func (this Document) All() (ret HTMLAllCollection, ok bool) { 1493 ok = js.True == bindings.GetDocumentAll( 1494 this.ref, js.Pointer(&ret), 1495 ) 1496 return 1497 } 1498 1499 // Location returns the value of property "Document.location". 1500 // 1501 // It returns ok=false if there is no such property. 1502 func (this Document) Location() (ret Location, ok bool) { 1503 ok = js.True == bindings.GetDocumentLocation( 1504 this.ref, js.Pointer(&ret), 1505 ) 1506 return 1507 } 1508 1509 // Domain returns the value of property "Document.domain". 1510 // 1511 // It returns ok=false if there is no such property. 1512 func (this Document) Domain() (ret js.String, ok bool) { 1513 ok = js.True == bindings.GetDocumentDomain( 1514 this.ref, js.Pointer(&ret), 1515 ) 1516 return 1517 } 1518 1519 // SetDomain sets the value of property "Document.domain" to val. 1520 // 1521 // It returns false if the property cannot be set. 1522 func (this Document) SetDomain(val js.String) bool { 1523 return js.True == bindings.SetDocumentDomain( 1524 this.ref, 1525 val.Ref(), 1526 ) 1527 } 1528 1529 // Referrer returns the value of property "Document.referrer". 1530 // 1531 // It returns ok=false if there is no such property. 1532 func (this Document) Referrer() (ret js.String, ok bool) { 1533 ok = js.True == bindings.GetDocumentReferrer( 1534 this.ref, js.Pointer(&ret), 1535 ) 1536 return 1537 } 1538 1539 // Cookie returns the value of property "Document.cookie". 1540 // 1541 // It returns ok=false if there is no such property. 1542 func (this Document) Cookie() (ret js.String, ok bool) { 1543 ok = js.True == bindings.GetDocumentCookie( 1544 this.ref, js.Pointer(&ret), 1545 ) 1546 return 1547 } 1548 1549 // SetCookie sets the value of property "Document.cookie" to val. 1550 // 1551 // It returns false if the property cannot be set. 1552 func (this Document) SetCookie(val js.String) bool { 1553 return js.True == bindings.SetDocumentCookie( 1554 this.ref, 1555 val.Ref(), 1556 ) 1557 } 1558 1559 // LastModified returns the value of property "Document.lastModified". 1560 // 1561 // It returns ok=false if there is no such property. 1562 func (this Document) LastModified() (ret js.String, ok bool) { 1563 ok = js.True == bindings.GetDocumentLastModified( 1564 this.ref, js.Pointer(&ret), 1565 ) 1566 return 1567 } 1568 1569 // ReadyState returns the value of property "Document.readyState". 1570 // 1571 // It returns ok=false if there is no such property. 1572 func (this Document) ReadyState() (ret DocumentReadyState, ok bool) { 1573 ok = js.True == bindings.GetDocumentReadyState( 1574 this.ref, js.Pointer(&ret), 1575 ) 1576 return 1577 } 1578 1579 // Title returns the value of property "Document.title". 1580 // 1581 // It returns ok=false if there is no such property. 1582 func (this Document) Title() (ret js.String, ok bool) { 1583 ok = js.True == bindings.GetDocumentTitle( 1584 this.ref, js.Pointer(&ret), 1585 ) 1586 return 1587 } 1588 1589 // SetTitle sets the value of property "Document.title" to val. 1590 // 1591 // It returns false if the property cannot be set. 1592 func (this Document) SetTitle(val js.String) bool { 1593 return js.True == bindings.SetDocumentTitle( 1594 this.ref, 1595 val.Ref(), 1596 ) 1597 } 1598 1599 // Dir returns the value of property "Document.dir". 1600 // 1601 // It returns ok=false if there is no such property. 1602 func (this Document) Dir() (ret js.String, ok bool) { 1603 ok = js.True == bindings.GetDocumentDir( 1604 this.ref, js.Pointer(&ret), 1605 ) 1606 return 1607 } 1608 1609 // SetDir sets the value of property "Document.dir" to val. 1610 // 1611 // It returns false if the property cannot be set. 1612 func (this Document) SetDir(val js.String) bool { 1613 return js.True == bindings.SetDocumentDir( 1614 this.ref, 1615 val.Ref(), 1616 ) 1617 } 1618 1619 // Body returns the value of property "Document.body". 1620 // 1621 // It returns ok=false if there is no such property. 1622 func (this Document) Body() (ret HTMLElement, ok bool) { 1623 ok = js.True == bindings.GetDocumentBody( 1624 this.ref, js.Pointer(&ret), 1625 ) 1626 return 1627 } 1628 1629 // SetBody sets the value of property "Document.body" to val. 1630 // 1631 // It returns false if the property cannot be set. 1632 func (this Document) SetBody(val HTMLElement) bool { 1633 return js.True == bindings.SetDocumentBody( 1634 this.ref, 1635 val.Ref(), 1636 ) 1637 } 1638 1639 // Head returns the value of property "Document.head". 1640 // 1641 // It returns ok=false if there is no such property. 1642 func (this Document) Head() (ret HTMLHeadElement, ok bool) { 1643 ok = js.True == bindings.GetDocumentHead( 1644 this.ref, js.Pointer(&ret), 1645 ) 1646 return 1647 } 1648 1649 // Images returns the value of property "Document.images". 1650 // 1651 // It returns ok=false if there is no such property. 1652 func (this Document) Images() (ret HTMLCollection, ok bool) { 1653 ok = js.True == bindings.GetDocumentImages( 1654 this.ref, js.Pointer(&ret), 1655 ) 1656 return 1657 } 1658 1659 // Embeds returns the value of property "Document.embeds". 1660 // 1661 // It returns ok=false if there is no such property. 1662 func (this Document) Embeds() (ret HTMLCollection, ok bool) { 1663 ok = js.True == bindings.GetDocumentEmbeds( 1664 this.ref, js.Pointer(&ret), 1665 ) 1666 return 1667 } 1668 1669 // Plugins returns the value of property "Document.plugins". 1670 // 1671 // It returns ok=false if there is no such property. 1672 func (this Document) Plugins() (ret HTMLCollection, ok bool) { 1673 ok = js.True == bindings.GetDocumentPlugins( 1674 this.ref, js.Pointer(&ret), 1675 ) 1676 return 1677 } 1678 1679 // Links returns the value of property "Document.links". 1680 // 1681 // It returns ok=false if there is no such property. 1682 func (this Document) Links() (ret HTMLCollection, ok bool) { 1683 ok = js.True == bindings.GetDocumentLinks( 1684 this.ref, js.Pointer(&ret), 1685 ) 1686 return 1687 } 1688 1689 // Forms returns the value of property "Document.forms". 1690 // 1691 // It returns ok=false if there is no such property. 1692 func (this Document) Forms() (ret HTMLCollection, ok bool) { 1693 ok = js.True == bindings.GetDocumentForms( 1694 this.ref, js.Pointer(&ret), 1695 ) 1696 return 1697 } 1698 1699 // Scripts returns the value of property "Document.scripts". 1700 // 1701 // It returns ok=false if there is no such property. 1702 func (this Document) Scripts() (ret HTMLCollection, ok bool) { 1703 ok = js.True == bindings.GetDocumentScripts( 1704 this.ref, js.Pointer(&ret), 1705 ) 1706 return 1707 } 1708 1709 // CurrentScript returns the value of property "Document.currentScript". 1710 // 1711 // It returns ok=false if there is no such property. 1712 func (this Document) CurrentScript() (ret HTMLOrSVGScriptElement, ok bool) { 1713 ok = js.True == bindings.GetDocumentCurrentScript( 1714 this.ref, js.Pointer(&ret), 1715 ) 1716 return 1717 } 1718 1719 // DefaultView returns the value of property "Document.defaultView". 1720 // 1721 // It returns ok=false if there is no such property. 1722 func (this Document) DefaultView() (ret js.Object, ok bool) { 1723 ok = js.True == bindings.GetDocumentDefaultView( 1724 this.ref, js.Pointer(&ret), 1725 ) 1726 return 1727 } 1728 1729 // DesignMode returns the value of property "Document.designMode". 1730 // 1731 // It returns ok=false if there is no such property. 1732 func (this Document) DesignMode() (ret js.String, ok bool) { 1733 ok = js.True == bindings.GetDocumentDesignMode( 1734 this.ref, js.Pointer(&ret), 1735 ) 1736 return 1737 } 1738 1739 // SetDesignMode sets the value of property "Document.designMode" to val. 1740 // 1741 // It returns false if the property cannot be set. 1742 func (this Document) SetDesignMode(val js.String) bool { 1743 return js.True == bindings.SetDocumentDesignMode( 1744 this.ref, 1745 val.Ref(), 1746 ) 1747 } 1748 1749 // Hidden returns the value of property "Document.hidden". 1750 // 1751 // It returns ok=false if there is no such property. 1752 func (this Document) Hidden() (ret bool, ok bool) { 1753 ok = js.True == bindings.GetDocumentHidden( 1754 this.ref, js.Pointer(&ret), 1755 ) 1756 return 1757 } 1758 1759 // VisibilityState returns the value of property "Document.visibilityState". 1760 // 1761 // It returns ok=false if there is no such property. 1762 func (this Document) VisibilityState() (ret DocumentVisibilityState, ok bool) { 1763 ok = js.True == bindings.GetDocumentVisibilityState( 1764 this.ref, js.Pointer(&ret), 1765 ) 1766 return 1767 } 1768 1769 // FullscreenElement returns the value of property "Document.fullscreenElement". 1770 // 1771 // It returns ok=false if there is no such property. 1772 func (this Document) FullscreenElement() (ret Element, ok bool) { 1773 ok = js.True == bindings.GetDocumentFullscreenElement( 1774 this.ref, js.Pointer(&ret), 1775 ) 1776 return 1777 } 1778 1779 // StyleSheets returns the value of property "Document.styleSheets". 1780 // 1781 // It returns ok=false if there is no such property. 1782 func (this Document) StyleSheets() (ret StyleSheetList, ok bool) { 1783 ok = js.True == bindings.GetDocumentStyleSheets( 1784 this.ref, js.Pointer(&ret), 1785 ) 1786 return 1787 } 1788 1789 // AdoptedStyleSheets returns the value of property "Document.adoptedStyleSheets". 1790 // 1791 // It returns ok=false if there is no such property. 1792 func (this Document) AdoptedStyleSheets() (ret js.ObservableArray[CSSStyleSheet], ok bool) { 1793 ok = js.True == bindings.GetDocumentAdoptedStyleSheets( 1794 this.ref, js.Pointer(&ret), 1795 ) 1796 return 1797 } 1798 1799 // SetAdoptedStyleSheets sets the value of property "Document.adoptedStyleSheets" to val. 1800 // 1801 // It returns false if the property cannot be set. 1802 func (this Document) SetAdoptedStyleSheets(val js.ObservableArray[CSSStyleSheet]) bool { 1803 return js.True == bindings.SetDocumentAdoptedStyleSheets( 1804 this.ref, 1805 val.Ref(), 1806 ) 1807 } 1808 1809 // PictureInPictureElement returns the value of property "Document.pictureInPictureElement". 1810 // 1811 // It returns ok=false if there is no such property. 1812 func (this Document) PictureInPictureElement() (ret Element, ok bool) { 1813 ok = js.True == bindings.GetDocumentPictureInPictureElement( 1814 this.ref, js.Pointer(&ret), 1815 ) 1816 return 1817 } 1818 1819 // ActiveElement returns the value of property "Document.activeElement". 1820 // 1821 // It returns ok=false if there is no such property. 1822 func (this Document) ActiveElement() (ret Element, ok bool) { 1823 ok = js.True == bindings.GetDocumentActiveElement( 1824 this.ref, js.Pointer(&ret), 1825 ) 1826 return 1827 } 1828 1829 // PointerLockElement returns the value of property "Document.pointerLockElement". 1830 // 1831 // It returns ok=false if there is no such property. 1832 func (this Document) PointerLockElement() (ret Element, ok bool) { 1833 ok = js.True == bindings.GetDocumentPointerLockElement( 1834 this.ref, js.Pointer(&ret), 1835 ) 1836 return 1837 } 1838 1839 // Children returns the value of property "Document.children". 1840 // 1841 // It returns ok=false if there is no such property. 1842 func (this Document) Children() (ret HTMLCollection, ok bool) { 1843 ok = js.True == bindings.GetDocumentChildren( 1844 this.ref, js.Pointer(&ret), 1845 ) 1846 return 1847 } 1848 1849 // FirstElementChild returns the value of property "Document.firstElementChild". 1850 // 1851 // It returns ok=false if there is no such property. 1852 func (this Document) FirstElementChild() (ret Element, ok bool) { 1853 ok = js.True == bindings.GetDocumentFirstElementChild( 1854 this.ref, js.Pointer(&ret), 1855 ) 1856 return 1857 } 1858 1859 // LastElementChild returns the value of property "Document.lastElementChild". 1860 // 1861 // It returns ok=false if there is no such property. 1862 func (this Document) LastElementChild() (ret Element, ok bool) { 1863 ok = js.True == bindings.GetDocumentLastElementChild( 1864 this.ref, js.Pointer(&ret), 1865 ) 1866 return 1867 } 1868 1869 // ChildElementCount returns the value of property "Document.childElementCount". 1870 // 1871 // It returns ok=false if there is no such property. 1872 func (this Document) ChildElementCount() (ret uint32, ok bool) { 1873 ok = js.True == bindings.GetDocumentChildElementCount( 1874 this.ref, js.Pointer(&ret), 1875 ) 1876 return 1877 } 1878 1879 // Fonts returns the value of property "Document.fonts". 1880 // 1881 // It returns ok=false if there is no such property. 1882 func (this Document) Fonts() (ret FontFaceSet, ok bool) { 1883 ok = js.True == bindings.GetDocumentFonts( 1884 this.ref, js.Pointer(&ret), 1885 ) 1886 return 1887 } 1888 1889 // HasFuncGetElementsByTagName returns true if the method "Document.getElementsByTagName" exists. 1890 func (this Document) HasFuncGetElementsByTagName() bool { 1891 return js.True == bindings.HasFuncDocumentGetElementsByTagName( 1892 this.ref, 1893 ) 1894 } 1895 1896 // FuncGetElementsByTagName returns the method "Document.getElementsByTagName". 1897 func (this Document) FuncGetElementsByTagName() (fn js.Func[func(qualifiedName js.String) HTMLCollection]) { 1898 bindings.FuncDocumentGetElementsByTagName( 1899 this.ref, js.Pointer(&fn), 1900 ) 1901 return 1902 } 1903 1904 // GetElementsByTagName calls the method "Document.getElementsByTagName". 1905 func (this Document) GetElementsByTagName(qualifiedName js.String) (ret HTMLCollection) { 1906 bindings.CallDocumentGetElementsByTagName( 1907 this.ref, js.Pointer(&ret), 1908 qualifiedName.Ref(), 1909 ) 1910 1911 return 1912 } 1913 1914 // TryGetElementsByTagName calls the method "Document.getElementsByTagName" 1915 // in a try/catch block and returns (_, err, ok = false) when it went through 1916 // the catch clause. 1917 func (this Document) TryGetElementsByTagName(qualifiedName js.String) (ret HTMLCollection, exception js.Any, ok bool) { 1918 ok = js.True == bindings.TryDocumentGetElementsByTagName( 1919 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1920 qualifiedName.Ref(), 1921 ) 1922 1923 return 1924 } 1925 1926 // HasFuncGetElementsByTagNameNS returns true if the method "Document.getElementsByTagNameNS" exists. 1927 func (this Document) HasFuncGetElementsByTagNameNS() bool { 1928 return js.True == bindings.HasFuncDocumentGetElementsByTagNameNS( 1929 this.ref, 1930 ) 1931 } 1932 1933 // FuncGetElementsByTagNameNS returns the method "Document.getElementsByTagNameNS". 1934 func (this Document) FuncGetElementsByTagNameNS() (fn js.Func[func(namespace js.String, localName js.String) HTMLCollection]) { 1935 bindings.FuncDocumentGetElementsByTagNameNS( 1936 this.ref, js.Pointer(&fn), 1937 ) 1938 return 1939 } 1940 1941 // GetElementsByTagNameNS calls the method "Document.getElementsByTagNameNS". 1942 func (this Document) GetElementsByTagNameNS(namespace js.String, localName js.String) (ret HTMLCollection) { 1943 bindings.CallDocumentGetElementsByTagNameNS( 1944 this.ref, js.Pointer(&ret), 1945 namespace.Ref(), 1946 localName.Ref(), 1947 ) 1948 1949 return 1950 } 1951 1952 // TryGetElementsByTagNameNS calls the method "Document.getElementsByTagNameNS" 1953 // in a try/catch block and returns (_, err, ok = false) when it went through 1954 // the catch clause. 1955 func (this Document) TryGetElementsByTagNameNS(namespace js.String, localName js.String) (ret HTMLCollection, exception js.Any, ok bool) { 1956 ok = js.True == bindings.TryDocumentGetElementsByTagNameNS( 1957 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1958 namespace.Ref(), 1959 localName.Ref(), 1960 ) 1961 1962 return 1963 } 1964 1965 // HasFuncGetElementsByClassName returns true if the method "Document.getElementsByClassName" exists. 1966 func (this Document) HasFuncGetElementsByClassName() bool { 1967 return js.True == bindings.HasFuncDocumentGetElementsByClassName( 1968 this.ref, 1969 ) 1970 } 1971 1972 // FuncGetElementsByClassName returns the method "Document.getElementsByClassName". 1973 func (this Document) FuncGetElementsByClassName() (fn js.Func[func(classNames js.String) HTMLCollection]) { 1974 bindings.FuncDocumentGetElementsByClassName( 1975 this.ref, js.Pointer(&fn), 1976 ) 1977 return 1978 } 1979 1980 // GetElementsByClassName calls the method "Document.getElementsByClassName". 1981 func (this Document) GetElementsByClassName(classNames js.String) (ret HTMLCollection) { 1982 bindings.CallDocumentGetElementsByClassName( 1983 this.ref, js.Pointer(&ret), 1984 classNames.Ref(), 1985 ) 1986 1987 return 1988 } 1989 1990 // TryGetElementsByClassName calls the method "Document.getElementsByClassName" 1991 // in a try/catch block and returns (_, err, ok = false) when it went through 1992 // the catch clause. 1993 func (this Document) TryGetElementsByClassName(classNames js.String) (ret HTMLCollection, exception js.Any, ok bool) { 1994 ok = js.True == bindings.TryDocumentGetElementsByClassName( 1995 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1996 classNames.Ref(), 1997 ) 1998 1999 return 2000 } 2001 2002 // HasFuncCreateElement returns true if the method "Document.createElement" exists. 2003 func (this Document) HasFuncCreateElement() bool { 2004 return js.True == bindings.HasFuncDocumentCreateElement( 2005 this.ref, 2006 ) 2007 } 2008 2009 // FuncCreateElement returns the method "Document.createElement". 2010 func (this Document) FuncCreateElement() (fn js.Func[func(localName js.String, options OneOf_String_ElementCreationOptions) Element]) { 2011 bindings.FuncDocumentCreateElement( 2012 this.ref, js.Pointer(&fn), 2013 ) 2014 return 2015 } 2016 2017 // CreateElement calls the method "Document.createElement". 2018 func (this Document) CreateElement(localName js.String, options OneOf_String_ElementCreationOptions) (ret Element) { 2019 bindings.CallDocumentCreateElement( 2020 this.ref, js.Pointer(&ret), 2021 localName.Ref(), 2022 options.Ref(), 2023 ) 2024 2025 return 2026 } 2027 2028 // TryCreateElement calls the method "Document.createElement" 2029 // in a try/catch block and returns (_, err, ok = false) when it went through 2030 // the catch clause. 2031 func (this Document) TryCreateElement(localName js.String, options OneOf_String_ElementCreationOptions) (ret Element, exception js.Any, ok bool) { 2032 ok = js.True == bindings.TryDocumentCreateElement( 2033 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2034 localName.Ref(), 2035 options.Ref(), 2036 ) 2037 2038 return 2039 } 2040 2041 // HasFuncCreateElement1 returns true if the method "Document.createElement" exists. 2042 func (this Document) HasFuncCreateElement1() bool { 2043 return js.True == bindings.HasFuncDocumentCreateElement1( 2044 this.ref, 2045 ) 2046 } 2047 2048 // FuncCreateElement1 returns the method "Document.createElement". 2049 func (this Document) FuncCreateElement1() (fn js.Func[func(localName js.String) Element]) { 2050 bindings.FuncDocumentCreateElement1( 2051 this.ref, js.Pointer(&fn), 2052 ) 2053 return 2054 } 2055 2056 // CreateElement1 calls the method "Document.createElement". 2057 func (this Document) CreateElement1(localName js.String) (ret Element) { 2058 bindings.CallDocumentCreateElement1( 2059 this.ref, js.Pointer(&ret), 2060 localName.Ref(), 2061 ) 2062 2063 return 2064 } 2065 2066 // TryCreateElement1 calls the method "Document.createElement" 2067 // in a try/catch block and returns (_, err, ok = false) when it went through 2068 // the catch clause. 2069 func (this Document) TryCreateElement1(localName js.String) (ret Element, exception js.Any, ok bool) { 2070 ok = js.True == bindings.TryDocumentCreateElement1( 2071 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2072 localName.Ref(), 2073 ) 2074 2075 return 2076 } 2077 2078 // HasFuncCreateElementNS returns true if the method "Document.createElementNS" exists. 2079 func (this Document) HasFuncCreateElementNS() bool { 2080 return js.True == bindings.HasFuncDocumentCreateElementNS( 2081 this.ref, 2082 ) 2083 } 2084 2085 // FuncCreateElementNS returns the method "Document.createElementNS". 2086 func (this Document) FuncCreateElementNS() (fn js.Func[func(namespace js.String, qualifiedName js.String, options OneOf_String_ElementCreationOptions) Element]) { 2087 bindings.FuncDocumentCreateElementNS( 2088 this.ref, js.Pointer(&fn), 2089 ) 2090 return 2091 } 2092 2093 // CreateElementNS calls the method "Document.createElementNS". 2094 func (this Document) CreateElementNS(namespace js.String, qualifiedName js.String, options OneOf_String_ElementCreationOptions) (ret Element) { 2095 bindings.CallDocumentCreateElementNS( 2096 this.ref, js.Pointer(&ret), 2097 namespace.Ref(), 2098 qualifiedName.Ref(), 2099 options.Ref(), 2100 ) 2101 2102 return 2103 } 2104 2105 // TryCreateElementNS calls the method "Document.createElementNS" 2106 // in a try/catch block and returns (_, err, ok = false) when it went through 2107 // the catch clause. 2108 func (this Document) TryCreateElementNS(namespace js.String, qualifiedName js.String, options OneOf_String_ElementCreationOptions) (ret Element, exception js.Any, ok bool) { 2109 ok = js.True == bindings.TryDocumentCreateElementNS( 2110 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2111 namespace.Ref(), 2112 qualifiedName.Ref(), 2113 options.Ref(), 2114 ) 2115 2116 return 2117 } 2118 2119 // HasFuncCreateElementNS1 returns true if the method "Document.createElementNS" exists. 2120 func (this Document) HasFuncCreateElementNS1() bool { 2121 return js.True == bindings.HasFuncDocumentCreateElementNS1( 2122 this.ref, 2123 ) 2124 } 2125 2126 // FuncCreateElementNS1 returns the method "Document.createElementNS". 2127 func (this Document) FuncCreateElementNS1() (fn js.Func[func(namespace js.String, qualifiedName js.String) Element]) { 2128 bindings.FuncDocumentCreateElementNS1( 2129 this.ref, js.Pointer(&fn), 2130 ) 2131 return 2132 } 2133 2134 // CreateElementNS1 calls the method "Document.createElementNS". 2135 func (this Document) CreateElementNS1(namespace js.String, qualifiedName js.String) (ret Element) { 2136 bindings.CallDocumentCreateElementNS1( 2137 this.ref, js.Pointer(&ret), 2138 namespace.Ref(), 2139 qualifiedName.Ref(), 2140 ) 2141 2142 return 2143 } 2144 2145 // TryCreateElementNS1 calls the method "Document.createElementNS" 2146 // in a try/catch block and returns (_, err, ok = false) when it went through 2147 // the catch clause. 2148 func (this Document) TryCreateElementNS1(namespace js.String, qualifiedName js.String) (ret Element, exception js.Any, ok bool) { 2149 ok = js.True == bindings.TryDocumentCreateElementNS1( 2150 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2151 namespace.Ref(), 2152 qualifiedName.Ref(), 2153 ) 2154 2155 return 2156 } 2157 2158 // HasFuncCreateDocumentFragment returns true if the method "Document.createDocumentFragment" exists. 2159 func (this Document) HasFuncCreateDocumentFragment() bool { 2160 return js.True == bindings.HasFuncDocumentCreateDocumentFragment( 2161 this.ref, 2162 ) 2163 } 2164 2165 // FuncCreateDocumentFragment returns the method "Document.createDocumentFragment". 2166 func (this Document) FuncCreateDocumentFragment() (fn js.Func[func() DocumentFragment]) { 2167 bindings.FuncDocumentCreateDocumentFragment( 2168 this.ref, js.Pointer(&fn), 2169 ) 2170 return 2171 } 2172 2173 // CreateDocumentFragment calls the method "Document.createDocumentFragment". 2174 func (this Document) CreateDocumentFragment() (ret DocumentFragment) { 2175 bindings.CallDocumentCreateDocumentFragment( 2176 this.ref, js.Pointer(&ret), 2177 ) 2178 2179 return 2180 } 2181 2182 // TryCreateDocumentFragment calls the method "Document.createDocumentFragment" 2183 // in a try/catch block and returns (_, err, ok = false) when it went through 2184 // the catch clause. 2185 func (this Document) TryCreateDocumentFragment() (ret DocumentFragment, exception js.Any, ok bool) { 2186 ok = js.True == bindings.TryDocumentCreateDocumentFragment( 2187 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2188 ) 2189 2190 return 2191 } 2192 2193 // HasFuncCreateTextNode returns true if the method "Document.createTextNode" exists. 2194 func (this Document) HasFuncCreateTextNode() bool { 2195 return js.True == bindings.HasFuncDocumentCreateTextNode( 2196 this.ref, 2197 ) 2198 } 2199 2200 // FuncCreateTextNode returns the method "Document.createTextNode". 2201 func (this Document) FuncCreateTextNode() (fn js.Func[func(data js.String) Text]) { 2202 bindings.FuncDocumentCreateTextNode( 2203 this.ref, js.Pointer(&fn), 2204 ) 2205 return 2206 } 2207 2208 // CreateTextNode calls the method "Document.createTextNode". 2209 func (this Document) CreateTextNode(data js.String) (ret Text) { 2210 bindings.CallDocumentCreateTextNode( 2211 this.ref, js.Pointer(&ret), 2212 data.Ref(), 2213 ) 2214 2215 return 2216 } 2217 2218 // TryCreateTextNode calls the method "Document.createTextNode" 2219 // in a try/catch block and returns (_, err, ok = false) when it went through 2220 // the catch clause. 2221 func (this Document) TryCreateTextNode(data js.String) (ret Text, exception js.Any, ok bool) { 2222 ok = js.True == bindings.TryDocumentCreateTextNode( 2223 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2224 data.Ref(), 2225 ) 2226 2227 return 2228 } 2229 2230 // HasFuncCreateCDATASection returns true if the method "Document.createCDATASection" exists. 2231 func (this Document) HasFuncCreateCDATASection() bool { 2232 return js.True == bindings.HasFuncDocumentCreateCDATASection( 2233 this.ref, 2234 ) 2235 } 2236 2237 // FuncCreateCDATASection returns the method "Document.createCDATASection". 2238 func (this Document) FuncCreateCDATASection() (fn js.Func[func(data js.String) CDATASection]) { 2239 bindings.FuncDocumentCreateCDATASection( 2240 this.ref, js.Pointer(&fn), 2241 ) 2242 return 2243 } 2244 2245 // CreateCDATASection calls the method "Document.createCDATASection". 2246 func (this Document) CreateCDATASection(data js.String) (ret CDATASection) { 2247 bindings.CallDocumentCreateCDATASection( 2248 this.ref, js.Pointer(&ret), 2249 data.Ref(), 2250 ) 2251 2252 return 2253 } 2254 2255 // TryCreateCDATASection calls the method "Document.createCDATASection" 2256 // in a try/catch block and returns (_, err, ok = false) when it went through 2257 // the catch clause. 2258 func (this Document) TryCreateCDATASection(data js.String) (ret CDATASection, exception js.Any, ok bool) { 2259 ok = js.True == bindings.TryDocumentCreateCDATASection( 2260 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2261 data.Ref(), 2262 ) 2263 2264 return 2265 } 2266 2267 // HasFuncCreateComment returns true if the method "Document.createComment" exists. 2268 func (this Document) HasFuncCreateComment() bool { 2269 return js.True == bindings.HasFuncDocumentCreateComment( 2270 this.ref, 2271 ) 2272 } 2273 2274 // FuncCreateComment returns the method "Document.createComment". 2275 func (this Document) FuncCreateComment() (fn js.Func[func(data js.String) Comment]) { 2276 bindings.FuncDocumentCreateComment( 2277 this.ref, js.Pointer(&fn), 2278 ) 2279 return 2280 } 2281 2282 // CreateComment calls the method "Document.createComment". 2283 func (this Document) CreateComment(data js.String) (ret Comment) { 2284 bindings.CallDocumentCreateComment( 2285 this.ref, js.Pointer(&ret), 2286 data.Ref(), 2287 ) 2288 2289 return 2290 } 2291 2292 // TryCreateComment calls the method "Document.createComment" 2293 // in a try/catch block and returns (_, err, ok = false) when it went through 2294 // the catch clause. 2295 func (this Document) TryCreateComment(data js.String) (ret Comment, exception js.Any, ok bool) { 2296 ok = js.True == bindings.TryDocumentCreateComment( 2297 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2298 data.Ref(), 2299 ) 2300 2301 return 2302 } 2303 2304 // HasFuncCreateProcessingInstruction returns true if the method "Document.createProcessingInstruction" exists. 2305 func (this Document) HasFuncCreateProcessingInstruction() bool { 2306 return js.True == bindings.HasFuncDocumentCreateProcessingInstruction( 2307 this.ref, 2308 ) 2309 } 2310 2311 // FuncCreateProcessingInstruction returns the method "Document.createProcessingInstruction". 2312 func (this Document) FuncCreateProcessingInstruction() (fn js.Func[func(target js.String, data js.String) ProcessingInstruction]) { 2313 bindings.FuncDocumentCreateProcessingInstruction( 2314 this.ref, js.Pointer(&fn), 2315 ) 2316 return 2317 } 2318 2319 // CreateProcessingInstruction calls the method "Document.createProcessingInstruction". 2320 func (this Document) CreateProcessingInstruction(target js.String, data js.String) (ret ProcessingInstruction) { 2321 bindings.CallDocumentCreateProcessingInstruction( 2322 this.ref, js.Pointer(&ret), 2323 target.Ref(), 2324 data.Ref(), 2325 ) 2326 2327 return 2328 } 2329 2330 // TryCreateProcessingInstruction calls the method "Document.createProcessingInstruction" 2331 // in a try/catch block and returns (_, err, ok = false) when it went through 2332 // the catch clause. 2333 func (this Document) TryCreateProcessingInstruction(target js.String, data js.String) (ret ProcessingInstruction, exception js.Any, ok bool) { 2334 ok = js.True == bindings.TryDocumentCreateProcessingInstruction( 2335 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2336 target.Ref(), 2337 data.Ref(), 2338 ) 2339 2340 return 2341 } 2342 2343 // HasFuncImportNode returns true if the method "Document.importNode" exists. 2344 func (this Document) HasFuncImportNode() bool { 2345 return js.True == bindings.HasFuncDocumentImportNode( 2346 this.ref, 2347 ) 2348 } 2349 2350 // FuncImportNode returns the method "Document.importNode". 2351 func (this Document) FuncImportNode() (fn js.Func[func(node Node, deep bool) Node]) { 2352 bindings.FuncDocumentImportNode( 2353 this.ref, js.Pointer(&fn), 2354 ) 2355 return 2356 } 2357 2358 // ImportNode calls the method "Document.importNode". 2359 func (this Document) ImportNode(node Node, deep bool) (ret Node) { 2360 bindings.CallDocumentImportNode( 2361 this.ref, js.Pointer(&ret), 2362 node.Ref(), 2363 js.Bool(bool(deep)), 2364 ) 2365 2366 return 2367 } 2368 2369 // TryImportNode calls the method "Document.importNode" 2370 // in a try/catch block and returns (_, err, ok = false) when it went through 2371 // the catch clause. 2372 func (this Document) TryImportNode(node Node, deep bool) (ret Node, exception js.Any, ok bool) { 2373 ok = js.True == bindings.TryDocumentImportNode( 2374 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2375 node.Ref(), 2376 js.Bool(bool(deep)), 2377 ) 2378 2379 return 2380 } 2381 2382 // HasFuncImportNode1 returns true if the method "Document.importNode" exists. 2383 func (this Document) HasFuncImportNode1() bool { 2384 return js.True == bindings.HasFuncDocumentImportNode1( 2385 this.ref, 2386 ) 2387 } 2388 2389 // FuncImportNode1 returns the method "Document.importNode". 2390 func (this Document) FuncImportNode1() (fn js.Func[func(node Node) Node]) { 2391 bindings.FuncDocumentImportNode1( 2392 this.ref, js.Pointer(&fn), 2393 ) 2394 return 2395 } 2396 2397 // ImportNode1 calls the method "Document.importNode". 2398 func (this Document) ImportNode1(node Node) (ret Node) { 2399 bindings.CallDocumentImportNode1( 2400 this.ref, js.Pointer(&ret), 2401 node.Ref(), 2402 ) 2403 2404 return 2405 } 2406 2407 // TryImportNode1 calls the method "Document.importNode" 2408 // in a try/catch block and returns (_, err, ok = false) when it went through 2409 // the catch clause. 2410 func (this Document) TryImportNode1(node Node) (ret Node, exception js.Any, ok bool) { 2411 ok = js.True == bindings.TryDocumentImportNode1( 2412 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2413 node.Ref(), 2414 ) 2415 2416 return 2417 } 2418 2419 // HasFuncAdoptNode returns true if the method "Document.adoptNode" exists. 2420 func (this Document) HasFuncAdoptNode() bool { 2421 return js.True == bindings.HasFuncDocumentAdoptNode( 2422 this.ref, 2423 ) 2424 } 2425 2426 // FuncAdoptNode returns the method "Document.adoptNode". 2427 func (this Document) FuncAdoptNode() (fn js.Func[func(node Node) Node]) { 2428 bindings.FuncDocumentAdoptNode( 2429 this.ref, js.Pointer(&fn), 2430 ) 2431 return 2432 } 2433 2434 // AdoptNode calls the method "Document.adoptNode". 2435 func (this Document) AdoptNode(node Node) (ret Node) { 2436 bindings.CallDocumentAdoptNode( 2437 this.ref, js.Pointer(&ret), 2438 node.Ref(), 2439 ) 2440 2441 return 2442 } 2443 2444 // TryAdoptNode calls the method "Document.adoptNode" 2445 // in a try/catch block and returns (_, err, ok = false) when it went through 2446 // the catch clause. 2447 func (this Document) TryAdoptNode(node Node) (ret Node, exception js.Any, ok bool) { 2448 ok = js.True == bindings.TryDocumentAdoptNode( 2449 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2450 node.Ref(), 2451 ) 2452 2453 return 2454 } 2455 2456 // HasFuncCreateAttribute returns true if the method "Document.createAttribute" exists. 2457 func (this Document) HasFuncCreateAttribute() bool { 2458 return js.True == bindings.HasFuncDocumentCreateAttribute( 2459 this.ref, 2460 ) 2461 } 2462 2463 // FuncCreateAttribute returns the method "Document.createAttribute". 2464 func (this Document) FuncCreateAttribute() (fn js.Func[func(localName js.String) Attr]) { 2465 bindings.FuncDocumentCreateAttribute( 2466 this.ref, js.Pointer(&fn), 2467 ) 2468 return 2469 } 2470 2471 // CreateAttribute calls the method "Document.createAttribute". 2472 func (this Document) CreateAttribute(localName js.String) (ret Attr) { 2473 bindings.CallDocumentCreateAttribute( 2474 this.ref, js.Pointer(&ret), 2475 localName.Ref(), 2476 ) 2477 2478 return 2479 } 2480 2481 // TryCreateAttribute calls the method "Document.createAttribute" 2482 // in a try/catch block and returns (_, err, ok = false) when it went through 2483 // the catch clause. 2484 func (this Document) TryCreateAttribute(localName js.String) (ret Attr, exception js.Any, ok bool) { 2485 ok = js.True == bindings.TryDocumentCreateAttribute( 2486 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2487 localName.Ref(), 2488 ) 2489 2490 return 2491 } 2492 2493 // HasFuncCreateAttributeNS returns true if the method "Document.createAttributeNS" exists. 2494 func (this Document) HasFuncCreateAttributeNS() bool { 2495 return js.True == bindings.HasFuncDocumentCreateAttributeNS( 2496 this.ref, 2497 ) 2498 } 2499 2500 // FuncCreateAttributeNS returns the method "Document.createAttributeNS". 2501 func (this Document) FuncCreateAttributeNS() (fn js.Func[func(namespace js.String, qualifiedName js.String) Attr]) { 2502 bindings.FuncDocumentCreateAttributeNS( 2503 this.ref, js.Pointer(&fn), 2504 ) 2505 return 2506 } 2507 2508 // CreateAttributeNS calls the method "Document.createAttributeNS". 2509 func (this Document) CreateAttributeNS(namespace js.String, qualifiedName js.String) (ret Attr) { 2510 bindings.CallDocumentCreateAttributeNS( 2511 this.ref, js.Pointer(&ret), 2512 namespace.Ref(), 2513 qualifiedName.Ref(), 2514 ) 2515 2516 return 2517 } 2518 2519 // TryCreateAttributeNS calls the method "Document.createAttributeNS" 2520 // in a try/catch block and returns (_, err, ok = false) when it went through 2521 // the catch clause. 2522 func (this Document) TryCreateAttributeNS(namespace js.String, qualifiedName js.String) (ret Attr, exception js.Any, ok bool) { 2523 ok = js.True == bindings.TryDocumentCreateAttributeNS( 2524 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2525 namespace.Ref(), 2526 qualifiedName.Ref(), 2527 ) 2528 2529 return 2530 } 2531 2532 // HasFuncCreateEvent returns true if the method "Document.createEvent" exists. 2533 func (this Document) HasFuncCreateEvent() bool { 2534 return js.True == bindings.HasFuncDocumentCreateEvent( 2535 this.ref, 2536 ) 2537 } 2538 2539 // FuncCreateEvent returns the method "Document.createEvent". 2540 func (this Document) FuncCreateEvent() (fn js.Func[func(iface js.String) Event]) { 2541 bindings.FuncDocumentCreateEvent( 2542 this.ref, js.Pointer(&fn), 2543 ) 2544 return 2545 } 2546 2547 // CreateEvent calls the method "Document.createEvent". 2548 func (this Document) CreateEvent(iface js.String) (ret Event) { 2549 bindings.CallDocumentCreateEvent( 2550 this.ref, js.Pointer(&ret), 2551 iface.Ref(), 2552 ) 2553 2554 return 2555 } 2556 2557 // TryCreateEvent calls the method "Document.createEvent" 2558 // in a try/catch block and returns (_, err, ok = false) when it went through 2559 // the catch clause. 2560 func (this Document) TryCreateEvent(iface js.String) (ret Event, exception js.Any, ok bool) { 2561 ok = js.True == bindings.TryDocumentCreateEvent( 2562 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2563 iface.Ref(), 2564 ) 2565 2566 return 2567 } 2568 2569 // HasFuncCreateRange returns true if the method "Document.createRange" exists. 2570 func (this Document) HasFuncCreateRange() bool { 2571 return js.True == bindings.HasFuncDocumentCreateRange( 2572 this.ref, 2573 ) 2574 } 2575 2576 // FuncCreateRange returns the method "Document.createRange". 2577 func (this Document) FuncCreateRange() (fn js.Func[func() Range]) { 2578 bindings.FuncDocumentCreateRange( 2579 this.ref, js.Pointer(&fn), 2580 ) 2581 return 2582 } 2583 2584 // CreateRange calls the method "Document.createRange". 2585 func (this Document) CreateRange() (ret Range) { 2586 bindings.CallDocumentCreateRange( 2587 this.ref, js.Pointer(&ret), 2588 ) 2589 2590 return 2591 } 2592 2593 // TryCreateRange calls the method "Document.createRange" 2594 // in a try/catch block and returns (_, err, ok = false) when it went through 2595 // the catch clause. 2596 func (this Document) TryCreateRange() (ret Range, exception js.Any, ok bool) { 2597 ok = js.True == bindings.TryDocumentCreateRange( 2598 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2599 ) 2600 2601 return 2602 } 2603 2604 // HasFuncCreateNodeIterator returns true if the method "Document.createNodeIterator" exists. 2605 func (this Document) HasFuncCreateNodeIterator() bool { 2606 return js.True == bindings.HasFuncDocumentCreateNodeIterator( 2607 this.ref, 2608 ) 2609 } 2610 2611 // FuncCreateNodeIterator returns the method "Document.createNodeIterator". 2612 func (this Document) FuncCreateNodeIterator() (fn js.Func[func(root Node, whatToShow uint32, filter js.Func[func(node Node) uint16]) NodeIterator]) { 2613 bindings.FuncDocumentCreateNodeIterator( 2614 this.ref, js.Pointer(&fn), 2615 ) 2616 return 2617 } 2618 2619 // CreateNodeIterator calls the method "Document.createNodeIterator". 2620 func (this Document) CreateNodeIterator(root Node, whatToShow uint32, filter js.Func[func(node Node) uint16]) (ret NodeIterator) { 2621 bindings.CallDocumentCreateNodeIterator( 2622 this.ref, js.Pointer(&ret), 2623 root.Ref(), 2624 uint32(whatToShow), 2625 filter.Ref(), 2626 ) 2627 2628 return 2629 } 2630 2631 // TryCreateNodeIterator calls the method "Document.createNodeIterator" 2632 // in a try/catch block and returns (_, err, ok = false) when it went through 2633 // the catch clause. 2634 func (this Document) TryCreateNodeIterator(root Node, whatToShow uint32, filter js.Func[func(node Node) uint16]) (ret NodeIterator, exception js.Any, ok bool) { 2635 ok = js.True == bindings.TryDocumentCreateNodeIterator( 2636 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2637 root.Ref(), 2638 uint32(whatToShow), 2639 filter.Ref(), 2640 ) 2641 2642 return 2643 } 2644 2645 // HasFuncCreateNodeIterator1 returns true if the method "Document.createNodeIterator" exists. 2646 func (this Document) HasFuncCreateNodeIterator1() bool { 2647 return js.True == bindings.HasFuncDocumentCreateNodeIterator1( 2648 this.ref, 2649 ) 2650 } 2651 2652 // FuncCreateNodeIterator1 returns the method "Document.createNodeIterator". 2653 func (this Document) FuncCreateNodeIterator1() (fn js.Func[func(root Node, whatToShow uint32) NodeIterator]) { 2654 bindings.FuncDocumentCreateNodeIterator1( 2655 this.ref, js.Pointer(&fn), 2656 ) 2657 return 2658 } 2659 2660 // CreateNodeIterator1 calls the method "Document.createNodeIterator". 2661 func (this Document) CreateNodeIterator1(root Node, whatToShow uint32) (ret NodeIterator) { 2662 bindings.CallDocumentCreateNodeIterator1( 2663 this.ref, js.Pointer(&ret), 2664 root.Ref(), 2665 uint32(whatToShow), 2666 ) 2667 2668 return 2669 } 2670 2671 // TryCreateNodeIterator1 calls the method "Document.createNodeIterator" 2672 // in a try/catch block and returns (_, err, ok = false) when it went through 2673 // the catch clause. 2674 func (this Document) TryCreateNodeIterator1(root Node, whatToShow uint32) (ret NodeIterator, exception js.Any, ok bool) { 2675 ok = js.True == bindings.TryDocumentCreateNodeIterator1( 2676 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2677 root.Ref(), 2678 uint32(whatToShow), 2679 ) 2680 2681 return 2682 } 2683 2684 // HasFuncCreateNodeIterator2 returns true if the method "Document.createNodeIterator" exists. 2685 func (this Document) HasFuncCreateNodeIterator2() bool { 2686 return js.True == bindings.HasFuncDocumentCreateNodeIterator2( 2687 this.ref, 2688 ) 2689 } 2690 2691 // FuncCreateNodeIterator2 returns the method "Document.createNodeIterator". 2692 func (this Document) FuncCreateNodeIterator2() (fn js.Func[func(root Node) NodeIterator]) { 2693 bindings.FuncDocumentCreateNodeIterator2( 2694 this.ref, js.Pointer(&fn), 2695 ) 2696 return 2697 } 2698 2699 // CreateNodeIterator2 calls the method "Document.createNodeIterator". 2700 func (this Document) CreateNodeIterator2(root Node) (ret NodeIterator) { 2701 bindings.CallDocumentCreateNodeIterator2( 2702 this.ref, js.Pointer(&ret), 2703 root.Ref(), 2704 ) 2705 2706 return 2707 } 2708 2709 // TryCreateNodeIterator2 calls the method "Document.createNodeIterator" 2710 // in a try/catch block and returns (_, err, ok = false) when it went through 2711 // the catch clause. 2712 func (this Document) TryCreateNodeIterator2(root Node) (ret NodeIterator, exception js.Any, ok bool) { 2713 ok = js.True == bindings.TryDocumentCreateNodeIterator2( 2714 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2715 root.Ref(), 2716 ) 2717 2718 return 2719 } 2720 2721 // HasFuncCreateTreeWalker returns true if the method "Document.createTreeWalker" exists. 2722 func (this Document) HasFuncCreateTreeWalker() bool { 2723 return js.True == bindings.HasFuncDocumentCreateTreeWalker( 2724 this.ref, 2725 ) 2726 } 2727 2728 // FuncCreateTreeWalker returns the method "Document.createTreeWalker". 2729 func (this Document) FuncCreateTreeWalker() (fn js.Func[func(root Node, whatToShow uint32, filter js.Func[func(node Node) uint16]) TreeWalker]) { 2730 bindings.FuncDocumentCreateTreeWalker( 2731 this.ref, js.Pointer(&fn), 2732 ) 2733 return 2734 } 2735 2736 // CreateTreeWalker calls the method "Document.createTreeWalker". 2737 func (this Document) CreateTreeWalker(root Node, whatToShow uint32, filter js.Func[func(node Node) uint16]) (ret TreeWalker) { 2738 bindings.CallDocumentCreateTreeWalker( 2739 this.ref, js.Pointer(&ret), 2740 root.Ref(), 2741 uint32(whatToShow), 2742 filter.Ref(), 2743 ) 2744 2745 return 2746 } 2747 2748 // TryCreateTreeWalker calls the method "Document.createTreeWalker" 2749 // in a try/catch block and returns (_, err, ok = false) when it went through 2750 // the catch clause. 2751 func (this Document) TryCreateTreeWalker(root Node, whatToShow uint32, filter js.Func[func(node Node) uint16]) (ret TreeWalker, exception js.Any, ok bool) { 2752 ok = js.True == bindings.TryDocumentCreateTreeWalker( 2753 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2754 root.Ref(), 2755 uint32(whatToShow), 2756 filter.Ref(), 2757 ) 2758 2759 return 2760 } 2761 2762 // HasFuncCreateTreeWalker1 returns true if the method "Document.createTreeWalker" exists. 2763 func (this Document) HasFuncCreateTreeWalker1() bool { 2764 return js.True == bindings.HasFuncDocumentCreateTreeWalker1( 2765 this.ref, 2766 ) 2767 } 2768 2769 // FuncCreateTreeWalker1 returns the method "Document.createTreeWalker". 2770 func (this Document) FuncCreateTreeWalker1() (fn js.Func[func(root Node, whatToShow uint32) TreeWalker]) { 2771 bindings.FuncDocumentCreateTreeWalker1( 2772 this.ref, js.Pointer(&fn), 2773 ) 2774 return 2775 } 2776 2777 // CreateTreeWalker1 calls the method "Document.createTreeWalker". 2778 func (this Document) CreateTreeWalker1(root Node, whatToShow uint32) (ret TreeWalker) { 2779 bindings.CallDocumentCreateTreeWalker1( 2780 this.ref, js.Pointer(&ret), 2781 root.Ref(), 2782 uint32(whatToShow), 2783 ) 2784 2785 return 2786 } 2787 2788 // TryCreateTreeWalker1 calls the method "Document.createTreeWalker" 2789 // in a try/catch block and returns (_, err, ok = false) when it went through 2790 // the catch clause. 2791 func (this Document) TryCreateTreeWalker1(root Node, whatToShow uint32) (ret TreeWalker, exception js.Any, ok bool) { 2792 ok = js.True == bindings.TryDocumentCreateTreeWalker1( 2793 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2794 root.Ref(), 2795 uint32(whatToShow), 2796 ) 2797 2798 return 2799 } 2800 2801 // HasFuncCreateTreeWalker2 returns true if the method "Document.createTreeWalker" exists. 2802 func (this Document) HasFuncCreateTreeWalker2() bool { 2803 return js.True == bindings.HasFuncDocumentCreateTreeWalker2( 2804 this.ref, 2805 ) 2806 } 2807 2808 // FuncCreateTreeWalker2 returns the method "Document.createTreeWalker". 2809 func (this Document) FuncCreateTreeWalker2() (fn js.Func[func(root Node) TreeWalker]) { 2810 bindings.FuncDocumentCreateTreeWalker2( 2811 this.ref, js.Pointer(&fn), 2812 ) 2813 return 2814 } 2815 2816 // CreateTreeWalker2 calls the method "Document.createTreeWalker". 2817 func (this Document) CreateTreeWalker2(root Node) (ret TreeWalker) { 2818 bindings.CallDocumentCreateTreeWalker2( 2819 this.ref, js.Pointer(&ret), 2820 root.Ref(), 2821 ) 2822 2823 return 2824 } 2825 2826 // TryCreateTreeWalker2 calls the method "Document.createTreeWalker" 2827 // in a try/catch block and returns (_, err, ok = false) when it went through 2828 // the catch clause. 2829 func (this Document) TryCreateTreeWalker2(root Node) (ret TreeWalker, exception js.Any, ok bool) { 2830 ok = js.True == bindings.TryDocumentCreateTreeWalker2( 2831 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2832 root.Ref(), 2833 ) 2834 2835 return 2836 } 2837 2838 // HasFuncStartViewTransition returns true if the method "Document.startViewTransition" exists. 2839 func (this Document) HasFuncStartViewTransition() bool { 2840 return js.True == bindings.HasFuncDocumentStartViewTransition( 2841 this.ref, 2842 ) 2843 } 2844 2845 // FuncStartViewTransition returns the method "Document.startViewTransition". 2846 func (this Document) FuncStartViewTransition() (fn js.Func[func(updateCallback js.Func[func() js.Promise[js.Any]]) ViewTransition]) { 2847 bindings.FuncDocumentStartViewTransition( 2848 this.ref, js.Pointer(&fn), 2849 ) 2850 return 2851 } 2852 2853 // StartViewTransition calls the method "Document.startViewTransition". 2854 func (this Document) StartViewTransition(updateCallback js.Func[func() js.Promise[js.Any]]) (ret ViewTransition) { 2855 bindings.CallDocumentStartViewTransition( 2856 this.ref, js.Pointer(&ret), 2857 updateCallback.Ref(), 2858 ) 2859 2860 return 2861 } 2862 2863 // TryStartViewTransition calls the method "Document.startViewTransition" 2864 // in a try/catch block and returns (_, err, ok = false) when it went through 2865 // the catch clause. 2866 func (this Document) TryStartViewTransition(updateCallback js.Func[func() js.Promise[js.Any]]) (ret ViewTransition, exception js.Any, ok bool) { 2867 ok = js.True == bindings.TryDocumentStartViewTransition( 2868 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2869 updateCallback.Ref(), 2870 ) 2871 2872 return 2873 } 2874 2875 // HasFuncStartViewTransition1 returns true if the method "Document.startViewTransition" exists. 2876 func (this Document) HasFuncStartViewTransition1() bool { 2877 return js.True == bindings.HasFuncDocumentStartViewTransition1( 2878 this.ref, 2879 ) 2880 } 2881 2882 // FuncStartViewTransition1 returns the method "Document.startViewTransition". 2883 func (this Document) FuncStartViewTransition1() (fn js.Func[func() ViewTransition]) { 2884 bindings.FuncDocumentStartViewTransition1( 2885 this.ref, js.Pointer(&fn), 2886 ) 2887 return 2888 } 2889 2890 // StartViewTransition1 calls the method "Document.startViewTransition". 2891 func (this Document) StartViewTransition1() (ret ViewTransition) { 2892 bindings.CallDocumentStartViewTransition1( 2893 this.ref, js.Pointer(&ret), 2894 ) 2895 2896 return 2897 } 2898 2899 // TryStartViewTransition1 calls the method "Document.startViewTransition" 2900 // in a try/catch block and returns (_, err, ok = false) when it went through 2901 // the catch clause. 2902 func (this Document) TryStartViewTransition1() (ret ViewTransition, exception js.Any, ok bool) { 2903 ok = js.True == bindings.TryDocumentStartViewTransition1( 2904 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2905 ) 2906 2907 return 2908 } 2909 2910 // HasFuncMeasureElement returns true if the method "Document.measureElement" exists. 2911 func (this Document) HasFuncMeasureElement() bool { 2912 return js.True == bindings.HasFuncDocumentMeasureElement( 2913 this.ref, 2914 ) 2915 } 2916 2917 // FuncMeasureElement returns the method "Document.measureElement". 2918 func (this Document) FuncMeasureElement() (fn js.Func[func(element Element) FontMetrics]) { 2919 bindings.FuncDocumentMeasureElement( 2920 this.ref, js.Pointer(&fn), 2921 ) 2922 return 2923 } 2924 2925 // MeasureElement calls the method "Document.measureElement". 2926 func (this Document) MeasureElement(element Element) (ret FontMetrics) { 2927 bindings.CallDocumentMeasureElement( 2928 this.ref, js.Pointer(&ret), 2929 element.Ref(), 2930 ) 2931 2932 return 2933 } 2934 2935 // TryMeasureElement calls the method "Document.measureElement" 2936 // in a try/catch block and returns (_, err, ok = false) when it went through 2937 // the catch clause. 2938 func (this Document) TryMeasureElement(element Element) (ret FontMetrics, exception js.Any, ok bool) { 2939 ok = js.True == bindings.TryDocumentMeasureElement( 2940 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2941 element.Ref(), 2942 ) 2943 2944 return 2945 } 2946 2947 // HasFuncMeasureText returns true if the method "Document.measureText" exists. 2948 func (this Document) HasFuncMeasureText() bool { 2949 return js.True == bindings.HasFuncDocumentMeasureText( 2950 this.ref, 2951 ) 2952 } 2953 2954 // FuncMeasureText returns the method "Document.measureText". 2955 func (this Document) FuncMeasureText() (fn js.Func[func(text js.String, styleMap StylePropertyMapReadOnly) FontMetrics]) { 2956 bindings.FuncDocumentMeasureText( 2957 this.ref, js.Pointer(&fn), 2958 ) 2959 return 2960 } 2961 2962 // MeasureText calls the method "Document.measureText". 2963 func (this Document) MeasureText(text js.String, styleMap StylePropertyMapReadOnly) (ret FontMetrics) { 2964 bindings.CallDocumentMeasureText( 2965 this.ref, js.Pointer(&ret), 2966 text.Ref(), 2967 styleMap.Ref(), 2968 ) 2969 2970 return 2971 } 2972 2973 // TryMeasureText calls the method "Document.measureText" 2974 // in a try/catch block and returns (_, err, ok = false) when it went through 2975 // the catch clause. 2976 func (this Document) TryMeasureText(text js.String, styleMap StylePropertyMapReadOnly) (ret FontMetrics, exception js.Any, ok bool) { 2977 ok = js.True == bindings.TryDocumentMeasureText( 2978 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2979 text.Ref(), 2980 styleMap.Ref(), 2981 ) 2982 2983 return 2984 } 2985 2986 // HasFuncGetSelection returns true if the method "Document.getSelection" exists. 2987 func (this Document) HasFuncGetSelection() bool { 2988 return js.True == bindings.HasFuncDocumentGetSelection( 2989 this.ref, 2990 ) 2991 } 2992 2993 // FuncGetSelection returns the method "Document.getSelection". 2994 func (this Document) FuncGetSelection() (fn js.Func[func() Selection]) { 2995 bindings.FuncDocumentGetSelection( 2996 this.ref, js.Pointer(&fn), 2997 ) 2998 return 2999 } 3000 3001 // GetSelection calls the method "Document.getSelection". 3002 func (this Document) GetSelection() (ret Selection) { 3003 bindings.CallDocumentGetSelection( 3004 this.ref, js.Pointer(&ret), 3005 ) 3006 3007 return 3008 } 3009 3010 // TryGetSelection calls the method "Document.getSelection" 3011 // in a try/catch block and returns (_, err, ok = false) when it went through 3012 // the catch clause. 3013 func (this Document) TryGetSelection() (ret Selection, exception js.Any, ok bool) { 3014 ok = js.True == bindings.TryDocumentGetSelection( 3015 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3016 ) 3017 3018 return 3019 } 3020 3021 // HasFuncExitPointerLock returns true if the method "Document.exitPointerLock" exists. 3022 func (this Document) HasFuncExitPointerLock() bool { 3023 return js.True == bindings.HasFuncDocumentExitPointerLock( 3024 this.ref, 3025 ) 3026 } 3027 3028 // FuncExitPointerLock returns the method "Document.exitPointerLock". 3029 func (this Document) FuncExitPointerLock() (fn js.Func[func()]) { 3030 bindings.FuncDocumentExitPointerLock( 3031 this.ref, js.Pointer(&fn), 3032 ) 3033 return 3034 } 3035 3036 // ExitPointerLock calls the method "Document.exitPointerLock". 3037 func (this Document) ExitPointerLock() (ret js.Void) { 3038 bindings.CallDocumentExitPointerLock( 3039 this.ref, js.Pointer(&ret), 3040 ) 3041 3042 return 3043 } 3044 3045 // TryExitPointerLock calls the method "Document.exitPointerLock" 3046 // in a try/catch block and returns (_, err, ok = false) when it went through 3047 // the catch clause. 3048 func (this Document) TryExitPointerLock() (ret js.Void, exception js.Any, ok bool) { 3049 ok = js.True == bindings.TryDocumentExitPointerLock( 3050 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3051 ) 3052 3053 return 3054 } 3055 3056 // HasFuncExitFullscreen returns true if the method "Document.exitFullscreen" exists. 3057 func (this Document) HasFuncExitFullscreen() bool { 3058 return js.True == bindings.HasFuncDocumentExitFullscreen( 3059 this.ref, 3060 ) 3061 } 3062 3063 // FuncExitFullscreen returns the method "Document.exitFullscreen". 3064 func (this Document) FuncExitFullscreen() (fn js.Func[func() js.Promise[js.Void]]) { 3065 bindings.FuncDocumentExitFullscreen( 3066 this.ref, js.Pointer(&fn), 3067 ) 3068 return 3069 } 3070 3071 // ExitFullscreen calls the method "Document.exitFullscreen". 3072 func (this Document) ExitFullscreen() (ret js.Promise[js.Void]) { 3073 bindings.CallDocumentExitFullscreen( 3074 this.ref, js.Pointer(&ret), 3075 ) 3076 3077 return 3078 } 3079 3080 // TryExitFullscreen calls the method "Document.exitFullscreen" 3081 // in a try/catch block and returns (_, err, ok = false) when it went through 3082 // the catch clause. 3083 func (this Document) TryExitFullscreen() (ret js.Promise[js.Void], exception js.Any, ok bool) { 3084 ok = js.True == bindings.TryDocumentExitFullscreen( 3085 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3086 ) 3087 3088 return 3089 } 3090 3091 // HasFuncHasStorageAccess returns true if the method "Document.hasStorageAccess" exists. 3092 func (this Document) HasFuncHasStorageAccess() bool { 3093 return js.True == bindings.HasFuncDocumentHasStorageAccess( 3094 this.ref, 3095 ) 3096 } 3097 3098 // FuncHasStorageAccess returns the method "Document.hasStorageAccess". 3099 func (this Document) FuncHasStorageAccess() (fn js.Func[func() js.Promise[js.Boolean]]) { 3100 bindings.FuncDocumentHasStorageAccess( 3101 this.ref, js.Pointer(&fn), 3102 ) 3103 return 3104 } 3105 3106 // HasStorageAccess calls the method "Document.hasStorageAccess". 3107 func (this Document) HasStorageAccess() (ret js.Promise[js.Boolean]) { 3108 bindings.CallDocumentHasStorageAccess( 3109 this.ref, js.Pointer(&ret), 3110 ) 3111 3112 return 3113 } 3114 3115 // TryHasStorageAccess calls the method "Document.hasStorageAccess" 3116 // in a try/catch block and returns (_, err, ok = false) when it went through 3117 // the catch clause. 3118 func (this Document) TryHasStorageAccess() (ret js.Promise[js.Boolean], exception js.Any, ok bool) { 3119 ok = js.True == bindings.TryDocumentHasStorageAccess( 3120 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3121 ) 3122 3123 return 3124 } 3125 3126 // HasFuncRequestStorageAccess returns true if the method "Document.requestStorageAccess" exists. 3127 func (this Document) HasFuncRequestStorageAccess() bool { 3128 return js.True == bindings.HasFuncDocumentRequestStorageAccess( 3129 this.ref, 3130 ) 3131 } 3132 3133 // FuncRequestStorageAccess returns the method "Document.requestStorageAccess". 3134 func (this Document) FuncRequestStorageAccess() (fn js.Func[func() js.Promise[js.Void]]) { 3135 bindings.FuncDocumentRequestStorageAccess( 3136 this.ref, js.Pointer(&fn), 3137 ) 3138 return 3139 } 3140 3141 // RequestStorageAccess calls the method "Document.requestStorageAccess". 3142 func (this Document) RequestStorageAccess() (ret js.Promise[js.Void]) { 3143 bindings.CallDocumentRequestStorageAccess( 3144 this.ref, js.Pointer(&ret), 3145 ) 3146 3147 return 3148 } 3149 3150 // TryRequestStorageAccess calls the method "Document.requestStorageAccess" 3151 // in a try/catch block and returns (_, err, ok = false) when it went through 3152 // the catch clause. 3153 func (this Document) TryRequestStorageAccess() (ret js.Promise[js.Void], exception js.Any, ok bool) { 3154 ok = js.True == bindings.TryDocumentRequestStorageAccess( 3155 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3156 ) 3157 3158 return 3159 } 3160 3161 // HasFuncExitPictureInPicture returns true if the method "Document.exitPictureInPicture" exists. 3162 func (this Document) HasFuncExitPictureInPicture() bool { 3163 return js.True == bindings.HasFuncDocumentExitPictureInPicture( 3164 this.ref, 3165 ) 3166 } 3167 3168 // FuncExitPictureInPicture returns the method "Document.exitPictureInPicture". 3169 func (this Document) FuncExitPictureInPicture() (fn js.Func[func() js.Promise[js.Void]]) { 3170 bindings.FuncDocumentExitPictureInPicture( 3171 this.ref, js.Pointer(&fn), 3172 ) 3173 return 3174 } 3175 3176 // ExitPictureInPicture calls the method "Document.exitPictureInPicture". 3177 func (this Document) ExitPictureInPicture() (ret js.Promise[js.Void]) { 3178 bindings.CallDocumentExitPictureInPicture( 3179 this.ref, js.Pointer(&ret), 3180 ) 3181 3182 return 3183 } 3184 3185 // TryExitPictureInPicture calls the method "Document.exitPictureInPicture" 3186 // in a try/catch block and returns (_, err, ok = false) when it went through 3187 // the catch clause. 3188 func (this Document) TryExitPictureInPicture() (ret js.Promise[js.Void], exception js.Any, ok bool) { 3189 ok = js.True == bindings.TryDocumentExitPictureInPicture( 3190 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3191 ) 3192 3193 return 3194 } 3195 3196 // HasFuncHasPrivateTokens returns true if the method "Document.hasPrivateTokens" exists. 3197 func (this Document) HasFuncHasPrivateTokens() bool { 3198 return js.True == bindings.HasFuncDocumentHasPrivateTokens( 3199 this.ref, 3200 ) 3201 } 3202 3203 // FuncHasPrivateTokens returns the method "Document.hasPrivateTokens". 3204 func (this Document) FuncHasPrivateTokens() (fn js.Func[func(issuer js.String) js.Promise[js.Boolean]]) { 3205 bindings.FuncDocumentHasPrivateTokens( 3206 this.ref, js.Pointer(&fn), 3207 ) 3208 return 3209 } 3210 3211 // HasPrivateTokens calls the method "Document.hasPrivateTokens". 3212 func (this Document) HasPrivateTokens(issuer js.String) (ret js.Promise[js.Boolean]) { 3213 bindings.CallDocumentHasPrivateTokens( 3214 this.ref, js.Pointer(&ret), 3215 issuer.Ref(), 3216 ) 3217 3218 return 3219 } 3220 3221 // TryHasPrivateTokens calls the method "Document.hasPrivateTokens" 3222 // in a try/catch block and returns (_, err, ok = false) when it went through 3223 // the catch clause. 3224 func (this Document) TryHasPrivateTokens(issuer js.String) (ret js.Promise[js.Boolean], exception js.Any, ok bool) { 3225 ok = js.True == bindings.TryDocumentHasPrivateTokens( 3226 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3227 issuer.Ref(), 3228 ) 3229 3230 return 3231 } 3232 3233 // HasFuncHasRedemptionRecord returns true if the method "Document.hasRedemptionRecord" exists. 3234 func (this Document) HasFuncHasRedemptionRecord() bool { 3235 return js.True == bindings.HasFuncDocumentHasRedemptionRecord( 3236 this.ref, 3237 ) 3238 } 3239 3240 // FuncHasRedemptionRecord returns the method "Document.hasRedemptionRecord". 3241 func (this Document) FuncHasRedemptionRecord() (fn js.Func[func(issuer js.String) js.Promise[js.Boolean]]) { 3242 bindings.FuncDocumentHasRedemptionRecord( 3243 this.ref, js.Pointer(&fn), 3244 ) 3245 return 3246 } 3247 3248 // HasRedemptionRecord calls the method "Document.hasRedemptionRecord". 3249 func (this Document) HasRedemptionRecord(issuer js.String) (ret js.Promise[js.Boolean]) { 3250 bindings.CallDocumentHasRedemptionRecord( 3251 this.ref, js.Pointer(&ret), 3252 issuer.Ref(), 3253 ) 3254 3255 return 3256 } 3257 3258 // TryHasRedemptionRecord calls the method "Document.hasRedemptionRecord" 3259 // in a try/catch block and returns (_, err, ok = false) when it went through 3260 // the catch clause. 3261 func (this Document) TryHasRedemptionRecord(issuer js.String) (ret js.Promise[js.Boolean], exception js.Any, ok bool) { 3262 ok = js.True == bindings.TryDocumentHasRedemptionRecord( 3263 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3264 issuer.Ref(), 3265 ) 3266 3267 return 3268 } 3269 3270 // HasFuncElementFromPoint returns true if the method "Document.elementFromPoint" exists. 3271 func (this Document) HasFuncElementFromPoint() bool { 3272 return js.True == bindings.HasFuncDocumentElementFromPoint( 3273 this.ref, 3274 ) 3275 } 3276 3277 // FuncElementFromPoint returns the method "Document.elementFromPoint". 3278 func (this Document) FuncElementFromPoint() (fn js.Func[func(x float64, y float64) Element]) { 3279 bindings.FuncDocumentElementFromPoint( 3280 this.ref, js.Pointer(&fn), 3281 ) 3282 return 3283 } 3284 3285 // ElementFromPoint calls the method "Document.elementFromPoint". 3286 func (this Document) ElementFromPoint(x float64, y float64) (ret Element) { 3287 bindings.CallDocumentElementFromPoint( 3288 this.ref, js.Pointer(&ret), 3289 float64(x), 3290 float64(y), 3291 ) 3292 3293 return 3294 } 3295 3296 // TryElementFromPoint calls the method "Document.elementFromPoint" 3297 // in a try/catch block and returns (_, err, ok = false) when it went through 3298 // the catch clause. 3299 func (this Document) TryElementFromPoint(x float64, y float64) (ret Element, exception js.Any, ok bool) { 3300 ok = js.True == bindings.TryDocumentElementFromPoint( 3301 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3302 float64(x), 3303 float64(y), 3304 ) 3305 3306 return 3307 } 3308 3309 // HasFuncElementsFromPoint returns true if the method "Document.elementsFromPoint" exists. 3310 func (this Document) HasFuncElementsFromPoint() bool { 3311 return js.True == bindings.HasFuncDocumentElementsFromPoint( 3312 this.ref, 3313 ) 3314 } 3315 3316 // FuncElementsFromPoint returns the method "Document.elementsFromPoint". 3317 func (this Document) FuncElementsFromPoint() (fn js.Func[func(x float64, y float64) js.Array[Element]]) { 3318 bindings.FuncDocumentElementsFromPoint( 3319 this.ref, js.Pointer(&fn), 3320 ) 3321 return 3322 } 3323 3324 // ElementsFromPoint calls the method "Document.elementsFromPoint". 3325 func (this Document) ElementsFromPoint(x float64, y float64) (ret js.Array[Element]) { 3326 bindings.CallDocumentElementsFromPoint( 3327 this.ref, js.Pointer(&ret), 3328 float64(x), 3329 float64(y), 3330 ) 3331 3332 return 3333 } 3334 3335 // TryElementsFromPoint calls the method "Document.elementsFromPoint" 3336 // in a try/catch block and returns (_, err, ok = false) when it went through 3337 // the catch clause. 3338 func (this Document) TryElementsFromPoint(x float64, y float64) (ret js.Array[Element], exception js.Any, ok bool) { 3339 ok = js.True == bindings.TryDocumentElementsFromPoint( 3340 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3341 float64(x), 3342 float64(y), 3343 ) 3344 3345 return 3346 } 3347 3348 // HasFuncCaretPositionFromPoint returns true if the method "Document.caretPositionFromPoint" exists. 3349 func (this Document) HasFuncCaretPositionFromPoint() bool { 3350 return js.True == bindings.HasFuncDocumentCaretPositionFromPoint( 3351 this.ref, 3352 ) 3353 } 3354 3355 // FuncCaretPositionFromPoint returns the method "Document.caretPositionFromPoint". 3356 func (this Document) FuncCaretPositionFromPoint() (fn js.Func[func(x float64, y float64) CaretPosition]) { 3357 bindings.FuncDocumentCaretPositionFromPoint( 3358 this.ref, js.Pointer(&fn), 3359 ) 3360 return 3361 } 3362 3363 // CaretPositionFromPoint calls the method "Document.caretPositionFromPoint". 3364 func (this Document) CaretPositionFromPoint(x float64, y float64) (ret CaretPosition) { 3365 bindings.CallDocumentCaretPositionFromPoint( 3366 this.ref, js.Pointer(&ret), 3367 float64(x), 3368 float64(y), 3369 ) 3370 3371 return 3372 } 3373 3374 // TryCaretPositionFromPoint calls the method "Document.caretPositionFromPoint" 3375 // in a try/catch block and returns (_, err, ok = false) when it went through 3376 // the catch clause. 3377 func (this Document) TryCaretPositionFromPoint(x float64, y float64) (ret CaretPosition, exception js.Any, ok bool) { 3378 ok = js.True == bindings.TryDocumentCaretPositionFromPoint( 3379 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3380 float64(x), 3381 float64(y), 3382 ) 3383 3384 return 3385 } 3386 3387 // HasFuncClear returns true if the method "Document.clear" exists. 3388 func (this Document) HasFuncClear() bool { 3389 return js.True == bindings.HasFuncDocumentClear( 3390 this.ref, 3391 ) 3392 } 3393 3394 // FuncClear returns the method "Document.clear". 3395 func (this Document) FuncClear() (fn js.Func[func()]) { 3396 bindings.FuncDocumentClear( 3397 this.ref, js.Pointer(&fn), 3398 ) 3399 return 3400 } 3401 3402 // Clear calls the method "Document.clear". 3403 func (this Document) Clear() (ret js.Void) { 3404 bindings.CallDocumentClear( 3405 this.ref, js.Pointer(&ret), 3406 ) 3407 3408 return 3409 } 3410 3411 // TryClear calls the method "Document.clear" 3412 // in a try/catch block and returns (_, err, ok = false) when it went through 3413 // the catch clause. 3414 func (this Document) TryClear() (ret js.Void, exception js.Any, ok bool) { 3415 ok = js.True == bindings.TryDocumentClear( 3416 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3417 ) 3418 3419 return 3420 } 3421 3422 // HasFuncCaptureEvents returns true if the method "Document.captureEvents" exists. 3423 func (this Document) HasFuncCaptureEvents() bool { 3424 return js.True == bindings.HasFuncDocumentCaptureEvents( 3425 this.ref, 3426 ) 3427 } 3428 3429 // FuncCaptureEvents returns the method "Document.captureEvents". 3430 func (this Document) FuncCaptureEvents() (fn js.Func[func()]) { 3431 bindings.FuncDocumentCaptureEvents( 3432 this.ref, js.Pointer(&fn), 3433 ) 3434 return 3435 } 3436 3437 // CaptureEvents calls the method "Document.captureEvents". 3438 func (this Document) CaptureEvents() (ret js.Void) { 3439 bindings.CallDocumentCaptureEvents( 3440 this.ref, js.Pointer(&ret), 3441 ) 3442 3443 return 3444 } 3445 3446 // TryCaptureEvents calls the method "Document.captureEvents" 3447 // in a try/catch block and returns (_, err, ok = false) when it went through 3448 // the catch clause. 3449 func (this Document) TryCaptureEvents() (ret js.Void, exception js.Any, ok bool) { 3450 ok = js.True == bindings.TryDocumentCaptureEvents( 3451 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3452 ) 3453 3454 return 3455 } 3456 3457 // HasFuncReleaseEvents returns true if the method "Document.releaseEvents" exists. 3458 func (this Document) HasFuncReleaseEvents() bool { 3459 return js.True == bindings.HasFuncDocumentReleaseEvents( 3460 this.ref, 3461 ) 3462 } 3463 3464 // FuncReleaseEvents returns the method "Document.releaseEvents". 3465 func (this Document) FuncReleaseEvents() (fn js.Func[func()]) { 3466 bindings.FuncDocumentReleaseEvents( 3467 this.ref, js.Pointer(&fn), 3468 ) 3469 return 3470 } 3471 3472 // ReleaseEvents calls the method "Document.releaseEvents". 3473 func (this Document) ReleaseEvents() (ret js.Void) { 3474 bindings.CallDocumentReleaseEvents( 3475 this.ref, js.Pointer(&ret), 3476 ) 3477 3478 return 3479 } 3480 3481 // TryReleaseEvents calls the method "Document.releaseEvents" 3482 // in a try/catch block and returns (_, err, ok = false) when it went through 3483 // the catch clause. 3484 func (this Document) TryReleaseEvents() (ret js.Void, exception js.Any, ok bool) { 3485 ok = js.True == bindings.TryDocumentReleaseEvents( 3486 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3487 ) 3488 3489 return 3490 } 3491 3492 // HasFuncRequestStorageAccessFor returns true if the method "Document.requestStorageAccessFor" exists. 3493 func (this Document) HasFuncRequestStorageAccessFor() bool { 3494 return js.True == bindings.HasFuncDocumentRequestStorageAccessFor( 3495 this.ref, 3496 ) 3497 } 3498 3499 // FuncRequestStorageAccessFor returns the method "Document.requestStorageAccessFor". 3500 func (this Document) FuncRequestStorageAccessFor() (fn js.Func[func(requestedOrigin js.String) js.Promise[js.Void]]) { 3501 bindings.FuncDocumentRequestStorageAccessFor( 3502 this.ref, js.Pointer(&fn), 3503 ) 3504 return 3505 } 3506 3507 // RequestStorageAccessFor calls the method "Document.requestStorageAccessFor". 3508 func (this Document) RequestStorageAccessFor(requestedOrigin js.String) (ret js.Promise[js.Void]) { 3509 bindings.CallDocumentRequestStorageAccessFor( 3510 this.ref, js.Pointer(&ret), 3511 requestedOrigin.Ref(), 3512 ) 3513 3514 return 3515 } 3516 3517 // TryRequestStorageAccessFor calls the method "Document.requestStorageAccessFor" 3518 // in a try/catch block and returns (_, err, ok = false) when it went through 3519 // the catch clause. 3520 func (this Document) TryRequestStorageAccessFor(requestedOrigin js.String) (ret js.Promise[js.Void], exception js.Any, ok bool) { 3521 ok = js.True == bindings.TryDocumentRequestStorageAccessFor( 3522 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3523 requestedOrigin.Ref(), 3524 ) 3525 3526 return 3527 } 3528 3529 // HasFuncGet returns true if the method "Document." exists. 3530 func (this Document) HasFuncGet() bool { 3531 return js.True == bindings.HasFuncDocumentGet( 3532 this.ref, 3533 ) 3534 } 3535 3536 // FuncGet returns the method "Document.". 3537 func (this Document) FuncGet() (fn js.Func[func(name js.String) js.Object]) { 3538 bindings.FuncDocumentGet( 3539 this.ref, js.Pointer(&fn), 3540 ) 3541 return 3542 } 3543 3544 // Get calls the method "Document.". 3545 func (this Document) Get(name js.String) (ret js.Object) { 3546 bindings.CallDocumentGet( 3547 this.ref, js.Pointer(&ret), 3548 name.Ref(), 3549 ) 3550 3551 return 3552 } 3553 3554 // TryGet calls the method "Document." 3555 // in a try/catch block and returns (_, err, ok = false) when it went through 3556 // the catch clause. 3557 func (this Document) TryGet(name js.String) (ret js.Object, exception js.Any, ok bool) { 3558 ok = js.True == bindings.TryDocumentGet( 3559 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3560 name.Ref(), 3561 ) 3562 3563 return 3564 } 3565 3566 // HasFuncGetElementsByName returns true if the method "Document.getElementsByName" exists. 3567 func (this Document) HasFuncGetElementsByName() bool { 3568 return js.True == bindings.HasFuncDocumentGetElementsByName( 3569 this.ref, 3570 ) 3571 } 3572 3573 // FuncGetElementsByName returns the method "Document.getElementsByName". 3574 func (this Document) FuncGetElementsByName() (fn js.Func[func(elementName js.String) NodeList]) { 3575 bindings.FuncDocumentGetElementsByName( 3576 this.ref, js.Pointer(&fn), 3577 ) 3578 return 3579 } 3580 3581 // GetElementsByName calls the method "Document.getElementsByName". 3582 func (this Document) GetElementsByName(elementName js.String) (ret NodeList) { 3583 bindings.CallDocumentGetElementsByName( 3584 this.ref, js.Pointer(&ret), 3585 elementName.Ref(), 3586 ) 3587 3588 return 3589 } 3590 3591 // TryGetElementsByName calls the method "Document.getElementsByName" 3592 // in a try/catch block and returns (_, err, ok = false) when it went through 3593 // the catch clause. 3594 func (this Document) TryGetElementsByName(elementName js.String) (ret NodeList, exception js.Any, ok bool) { 3595 ok = js.True == bindings.TryDocumentGetElementsByName( 3596 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3597 elementName.Ref(), 3598 ) 3599 3600 return 3601 } 3602 3603 // HasFuncOpen returns true if the method "Document.open" exists. 3604 func (this Document) HasFuncOpen() bool { 3605 return js.True == bindings.HasFuncDocumentOpen( 3606 this.ref, 3607 ) 3608 } 3609 3610 // FuncOpen returns the method "Document.open". 3611 func (this Document) FuncOpen() (fn js.Func[func(unused1 js.String, unused2 js.String) Document]) { 3612 bindings.FuncDocumentOpen( 3613 this.ref, js.Pointer(&fn), 3614 ) 3615 return 3616 } 3617 3618 // Open calls the method "Document.open". 3619 func (this Document) Open(unused1 js.String, unused2 js.String) (ret Document) { 3620 bindings.CallDocumentOpen( 3621 this.ref, js.Pointer(&ret), 3622 unused1.Ref(), 3623 unused2.Ref(), 3624 ) 3625 3626 return 3627 } 3628 3629 // TryOpen calls the method "Document.open" 3630 // in a try/catch block and returns (_, err, ok = false) when it went through 3631 // the catch clause. 3632 func (this Document) TryOpen(unused1 js.String, unused2 js.String) (ret Document, exception js.Any, ok bool) { 3633 ok = js.True == bindings.TryDocumentOpen( 3634 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3635 unused1.Ref(), 3636 unused2.Ref(), 3637 ) 3638 3639 return 3640 } 3641 3642 // HasFuncOpen1 returns true if the method "Document.open" exists. 3643 func (this Document) HasFuncOpen1() bool { 3644 return js.True == bindings.HasFuncDocumentOpen1( 3645 this.ref, 3646 ) 3647 } 3648 3649 // FuncOpen1 returns the method "Document.open". 3650 func (this Document) FuncOpen1() (fn js.Func[func(unused1 js.String) Document]) { 3651 bindings.FuncDocumentOpen1( 3652 this.ref, js.Pointer(&fn), 3653 ) 3654 return 3655 } 3656 3657 // Open1 calls the method "Document.open". 3658 func (this Document) Open1(unused1 js.String) (ret Document) { 3659 bindings.CallDocumentOpen1( 3660 this.ref, js.Pointer(&ret), 3661 unused1.Ref(), 3662 ) 3663 3664 return 3665 } 3666 3667 // TryOpen1 calls the method "Document.open" 3668 // in a try/catch block and returns (_, err, ok = false) when it went through 3669 // the catch clause. 3670 func (this Document) TryOpen1(unused1 js.String) (ret Document, exception js.Any, ok bool) { 3671 ok = js.True == bindings.TryDocumentOpen1( 3672 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3673 unused1.Ref(), 3674 ) 3675 3676 return 3677 } 3678 3679 // HasFuncOpen2 returns true if the method "Document.open" exists. 3680 func (this Document) HasFuncOpen2() bool { 3681 return js.True == bindings.HasFuncDocumentOpen2( 3682 this.ref, 3683 ) 3684 } 3685 3686 // FuncOpen2 returns the method "Document.open". 3687 func (this Document) FuncOpen2() (fn js.Func[func() Document]) { 3688 bindings.FuncDocumentOpen2( 3689 this.ref, js.Pointer(&fn), 3690 ) 3691 return 3692 } 3693 3694 // Open2 calls the method "Document.open". 3695 func (this Document) Open2() (ret Document) { 3696 bindings.CallDocumentOpen2( 3697 this.ref, js.Pointer(&ret), 3698 ) 3699 3700 return 3701 } 3702 3703 // TryOpen2 calls the method "Document.open" 3704 // in a try/catch block and returns (_, err, ok = false) when it went through 3705 // the catch clause. 3706 func (this Document) TryOpen2() (ret Document, exception js.Any, ok bool) { 3707 ok = js.True == bindings.TryDocumentOpen2( 3708 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3709 ) 3710 3711 return 3712 } 3713 3714 // HasFuncOpen3 returns true if the method "Document.open" exists. 3715 func (this Document) HasFuncOpen3() bool { 3716 return js.True == bindings.HasFuncDocumentOpen3( 3717 this.ref, 3718 ) 3719 } 3720 3721 // FuncOpen3 returns the method "Document.open". 3722 func (this Document) FuncOpen3() (fn js.Func[func(url js.String, name js.String, features js.String) js.Object]) { 3723 bindings.FuncDocumentOpen3( 3724 this.ref, js.Pointer(&fn), 3725 ) 3726 return 3727 } 3728 3729 // Open3 calls the method "Document.open". 3730 func (this Document) Open3(url js.String, name js.String, features js.String) (ret js.Object) { 3731 bindings.CallDocumentOpen3( 3732 this.ref, js.Pointer(&ret), 3733 url.Ref(), 3734 name.Ref(), 3735 features.Ref(), 3736 ) 3737 3738 return 3739 } 3740 3741 // TryOpen3 calls the method "Document.open" 3742 // in a try/catch block and returns (_, err, ok = false) when it went through 3743 // the catch clause. 3744 func (this Document) TryOpen3(url js.String, name js.String, features js.String) (ret js.Object, exception js.Any, ok bool) { 3745 ok = js.True == bindings.TryDocumentOpen3( 3746 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3747 url.Ref(), 3748 name.Ref(), 3749 features.Ref(), 3750 ) 3751 3752 return 3753 } 3754 3755 // HasFuncClose returns true if the method "Document.close" exists. 3756 func (this Document) HasFuncClose() bool { 3757 return js.True == bindings.HasFuncDocumentClose( 3758 this.ref, 3759 ) 3760 } 3761 3762 // FuncClose returns the method "Document.close". 3763 func (this Document) FuncClose() (fn js.Func[func()]) { 3764 bindings.FuncDocumentClose( 3765 this.ref, js.Pointer(&fn), 3766 ) 3767 return 3768 } 3769 3770 // Close calls the method "Document.close". 3771 func (this Document) Close() (ret js.Void) { 3772 bindings.CallDocumentClose( 3773 this.ref, js.Pointer(&ret), 3774 ) 3775 3776 return 3777 } 3778 3779 // TryClose calls the method "Document.close" 3780 // in a try/catch block and returns (_, err, ok = false) when it went through 3781 // the catch clause. 3782 func (this Document) TryClose() (ret js.Void, exception js.Any, ok bool) { 3783 ok = js.True == bindings.TryDocumentClose( 3784 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3785 ) 3786 3787 return 3788 } 3789 3790 // HasFuncWrite returns true if the method "Document.write" exists. 3791 func (this Document) HasFuncWrite() bool { 3792 return js.True == bindings.HasFuncDocumentWrite( 3793 this.ref, 3794 ) 3795 } 3796 3797 // FuncWrite returns the method "Document.write". 3798 func (this Document) FuncWrite() (fn js.Func[func(text ...js.String)]) { 3799 bindings.FuncDocumentWrite( 3800 this.ref, js.Pointer(&fn), 3801 ) 3802 return 3803 } 3804 3805 // Write calls the method "Document.write". 3806 func (this Document) Write(text ...js.String) (ret js.Void) { 3807 bindings.CallDocumentWrite( 3808 this.ref, js.Pointer(&ret), 3809 js.SliceData(text), 3810 js.SizeU(len(text)), 3811 ) 3812 3813 return 3814 } 3815 3816 // TryWrite calls the method "Document.write" 3817 // in a try/catch block and returns (_, err, ok = false) when it went through 3818 // the catch clause. 3819 func (this Document) TryWrite(text ...js.String) (ret js.Void, exception js.Any, ok bool) { 3820 ok = js.True == bindings.TryDocumentWrite( 3821 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3822 js.SliceData(text), 3823 js.SizeU(len(text)), 3824 ) 3825 3826 return 3827 } 3828 3829 // HasFuncWriteln returns true if the method "Document.writeln" exists. 3830 func (this Document) HasFuncWriteln() bool { 3831 return js.True == bindings.HasFuncDocumentWriteln( 3832 this.ref, 3833 ) 3834 } 3835 3836 // FuncWriteln returns the method "Document.writeln". 3837 func (this Document) FuncWriteln() (fn js.Func[func(text ...js.String)]) { 3838 bindings.FuncDocumentWriteln( 3839 this.ref, js.Pointer(&fn), 3840 ) 3841 return 3842 } 3843 3844 // Writeln calls the method "Document.writeln". 3845 func (this Document) Writeln(text ...js.String) (ret js.Void) { 3846 bindings.CallDocumentWriteln( 3847 this.ref, js.Pointer(&ret), 3848 js.SliceData(text), 3849 js.SizeU(len(text)), 3850 ) 3851 3852 return 3853 } 3854 3855 // TryWriteln calls the method "Document.writeln" 3856 // in a try/catch block and returns (_, err, ok = false) when it went through 3857 // the catch clause. 3858 func (this Document) TryWriteln(text ...js.String) (ret js.Void, exception js.Any, ok bool) { 3859 ok = js.True == bindings.TryDocumentWriteln( 3860 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3861 js.SliceData(text), 3862 js.SizeU(len(text)), 3863 ) 3864 3865 return 3866 } 3867 3868 // HasFuncHasFocus returns true if the method "Document.hasFocus" exists. 3869 func (this Document) HasFuncHasFocus() bool { 3870 return js.True == bindings.HasFuncDocumentHasFocus( 3871 this.ref, 3872 ) 3873 } 3874 3875 // FuncHasFocus returns the method "Document.hasFocus". 3876 func (this Document) FuncHasFocus() (fn js.Func[func() bool]) { 3877 bindings.FuncDocumentHasFocus( 3878 this.ref, js.Pointer(&fn), 3879 ) 3880 return 3881 } 3882 3883 // HasFocus calls the method "Document.hasFocus". 3884 func (this Document) HasFocus() (ret bool) { 3885 bindings.CallDocumentHasFocus( 3886 this.ref, js.Pointer(&ret), 3887 ) 3888 3889 return 3890 } 3891 3892 // TryHasFocus calls the method "Document.hasFocus" 3893 // in a try/catch block and returns (_, err, ok = false) when it went through 3894 // the catch clause. 3895 func (this Document) TryHasFocus() (ret bool, exception js.Any, ok bool) { 3896 ok = js.True == bindings.TryDocumentHasFocus( 3897 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3898 ) 3899 3900 return 3901 } 3902 3903 // HasFuncExecCommand returns true if the method "Document.execCommand" exists. 3904 func (this Document) HasFuncExecCommand() bool { 3905 return js.True == bindings.HasFuncDocumentExecCommand( 3906 this.ref, 3907 ) 3908 } 3909 3910 // FuncExecCommand returns the method "Document.execCommand". 3911 func (this Document) FuncExecCommand() (fn js.Func[func(commandId js.String, showUI bool, value js.String) bool]) { 3912 bindings.FuncDocumentExecCommand( 3913 this.ref, js.Pointer(&fn), 3914 ) 3915 return 3916 } 3917 3918 // ExecCommand calls the method "Document.execCommand". 3919 func (this Document) ExecCommand(commandId js.String, showUI bool, value js.String) (ret bool) { 3920 bindings.CallDocumentExecCommand( 3921 this.ref, js.Pointer(&ret), 3922 commandId.Ref(), 3923 js.Bool(bool(showUI)), 3924 value.Ref(), 3925 ) 3926 3927 return 3928 } 3929 3930 // TryExecCommand calls the method "Document.execCommand" 3931 // in a try/catch block and returns (_, err, ok = false) when it went through 3932 // the catch clause. 3933 func (this Document) TryExecCommand(commandId js.String, showUI bool, value js.String) (ret bool, exception js.Any, ok bool) { 3934 ok = js.True == bindings.TryDocumentExecCommand( 3935 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3936 commandId.Ref(), 3937 js.Bool(bool(showUI)), 3938 value.Ref(), 3939 ) 3940 3941 return 3942 } 3943 3944 // HasFuncExecCommand1 returns true if the method "Document.execCommand" exists. 3945 func (this Document) HasFuncExecCommand1() bool { 3946 return js.True == bindings.HasFuncDocumentExecCommand1( 3947 this.ref, 3948 ) 3949 } 3950 3951 // FuncExecCommand1 returns the method "Document.execCommand". 3952 func (this Document) FuncExecCommand1() (fn js.Func[func(commandId js.String, showUI bool) bool]) { 3953 bindings.FuncDocumentExecCommand1( 3954 this.ref, js.Pointer(&fn), 3955 ) 3956 return 3957 } 3958 3959 // ExecCommand1 calls the method "Document.execCommand". 3960 func (this Document) ExecCommand1(commandId js.String, showUI bool) (ret bool) { 3961 bindings.CallDocumentExecCommand1( 3962 this.ref, js.Pointer(&ret), 3963 commandId.Ref(), 3964 js.Bool(bool(showUI)), 3965 ) 3966 3967 return 3968 } 3969 3970 // TryExecCommand1 calls the method "Document.execCommand" 3971 // in a try/catch block and returns (_, err, ok = false) when it went through 3972 // the catch clause. 3973 func (this Document) TryExecCommand1(commandId js.String, showUI bool) (ret bool, exception js.Any, ok bool) { 3974 ok = js.True == bindings.TryDocumentExecCommand1( 3975 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3976 commandId.Ref(), 3977 js.Bool(bool(showUI)), 3978 ) 3979 3980 return 3981 } 3982 3983 // HasFuncExecCommand2 returns true if the method "Document.execCommand" exists. 3984 func (this Document) HasFuncExecCommand2() bool { 3985 return js.True == bindings.HasFuncDocumentExecCommand2( 3986 this.ref, 3987 ) 3988 } 3989 3990 // FuncExecCommand2 returns the method "Document.execCommand". 3991 func (this Document) FuncExecCommand2() (fn js.Func[func(commandId js.String) bool]) { 3992 bindings.FuncDocumentExecCommand2( 3993 this.ref, js.Pointer(&fn), 3994 ) 3995 return 3996 } 3997 3998 // ExecCommand2 calls the method "Document.execCommand". 3999 func (this Document) ExecCommand2(commandId js.String) (ret bool) { 4000 bindings.CallDocumentExecCommand2( 4001 this.ref, js.Pointer(&ret), 4002 commandId.Ref(), 4003 ) 4004 4005 return 4006 } 4007 4008 // TryExecCommand2 calls the method "Document.execCommand" 4009 // in a try/catch block and returns (_, err, ok = false) when it went through 4010 // the catch clause. 4011 func (this Document) TryExecCommand2(commandId js.String) (ret bool, exception js.Any, ok bool) { 4012 ok = js.True == bindings.TryDocumentExecCommand2( 4013 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4014 commandId.Ref(), 4015 ) 4016 4017 return 4018 } 4019 4020 // HasFuncQueryCommandEnabled returns true if the method "Document.queryCommandEnabled" exists. 4021 func (this Document) HasFuncQueryCommandEnabled() bool { 4022 return js.True == bindings.HasFuncDocumentQueryCommandEnabled( 4023 this.ref, 4024 ) 4025 } 4026 4027 // FuncQueryCommandEnabled returns the method "Document.queryCommandEnabled". 4028 func (this Document) FuncQueryCommandEnabled() (fn js.Func[func(commandId js.String) bool]) { 4029 bindings.FuncDocumentQueryCommandEnabled( 4030 this.ref, js.Pointer(&fn), 4031 ) 4032 return 4033 } 4034 4035 // QueryCommandEnabled calls the method "Document.queryCommandEnabled". 4036 func (this Document) QueryCommandEnabled(commandId js.String) (ret bool) { 4037 bindings.CallDocumentQueryCommandEnabled( 4038 this.ref, js.Pointer(&ret), 4039 commandId.Ref(), 4040 ) 4041 4042 return 4043 } 4044 4045 // TryQueryCommandEnabled calls the method "Document.queryCommandEnabled" 4046 // in a try/catch block and returns (_, err, ok = false) when it went through 4047 // the catch clause. 4048 func (this Document) TryQueryCommandEnabled(commandId js.String) (ret bool, exception js.Any, ok bool) { 4049 ok = js.True == bindings.TryDocumentQueryCommandEnabled( 4050 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4051 commandId.Ref(), 4052 ) 4053 4054 return 4055 } 4056 4057 // HasFuncQueryCommandIndeterm returns true if the method "Document.queryCommandIndeterm" exists. 4058 func (this Document) HasFuncQueryCommandIndeterm() bool { 4059 return js.True == bindings.HasFuncDocumentQueryCommandIndeterm( 4060 this.ref, 4061 ) 4062 } 4063 4064 // FuncQueryCommandIndeterm returns the method "Document.queryCommandIndeterm". 4065 func (this Document) FuncQueryCommandIndeterm() (fn js.Func[func(commandId js.String) bool]) { 4066 bindings.FuncDocumentQueryCommandIndeterm( 4067 this.ref, js.Pointer(&fn), 4068 ) 4069 return 4070 } 4071 4072 // QueryCommandIndeterm calls the method "Document.queryCommandIndeterm". 4073 func (this Document) QueryCommandIndeterm(commandId js.String) (ret bool) { 4074 bindings.CallDocumentQueryCommandIndeterm( 4075 this.ref, js.Pointer(&ret), 4076 commandId.Ref(), 4077 ) 4078 4079 return 4080 } 4081 4082 // TryQueryCommandIndeterm calls the method "Document.queryCommandIndeterm" 4083 // in a try/catch block and returns (_, err, ok = false) when it went through 4084 // the catch clause. 4085 func (this Document) TryQueryCommandIndeterm(commandId js.String) (ret bool, exception js.Any, ok bool) { 4086 ok = js.True == bindings.TryDocumentQueryCommandIndeterm( 4087 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4088 commandId.Ref(), 4089 ) 4090 4091 return 4092 } 4093 4094 // HasFuncQueryCommandState returns true if the method "Document.queryCommandState" exists. 4095 func (this Document) HasFuncQueryCommandState() bool { 4096 return js.True == bindings.HasFuncDocumentQueryCommandState( 4097 this.ref, 4098 ) 4099 } 4100 4101 // FuncQueryCommandState returns the method "Document.queryCommandState". 4102 func (this Document) FuncQueryCommandState() (fn js.Func[func(commandId js.String) bool]) { 4103 bindings.FuncDocumentQueryCommandState( 4104 this.ref, js.Pointer(&fn), 4105 ) 4106 return 4107 } 4108 4109 // QueryCommandState calls the method "Document.queryCommandState". 4110 func (this Document) QueryCommandState(commandId js.String) (ret bool) { 4111 bindings.CallDocumentQueryCommandState( 4112 this.ref, js.Pointer(&ret), 4113 commandId.Ref(), 4114 ) 4115 4116 return 4117 } 4118 4119 // TryQueryCommandState calls the method "Document.queryCommandState" 4120 // in a try/catch block and returns (_, err, ok = false) when it went through 4121 // the catch clause. 4122 func (this Document) TryQueryCommandState(commandId js.String) (ret bool, exception js.Any, ok bool) { 4123 ok = js.True == bindings.TryDocumentQueryCommandState( 4124 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4125 commandId.Ref(), 4126 ) 4127 4128 return 4129 } 4130 4131 // HasFuncQueryCommandSupported returns true if the method "Document.queryCommandSupported" exists. 4132 func (this Document) HasFuncQueryCommandSupported() bool { 4133 return js.True == bindings.HasFuncDocumentQueryCommandSupported( 4134 this.ref, 4135 ) 4136 } 4137 4138 // FuncQueryCommandSupported returns the method "Document.queryCommandSupported". 4139 func (this Document) FuncQueryCommandSupported() (fn js.Func[func(commandId js.String) bool]) { 4140 bindings.FuncDocumentQueryCommandSupported( 4141 this.ref, js.Pointer(&fn), 4142 ) 4143 return 4144 } 4145 4146 // QueryCommandSupported calls the method "Document.queryCommandSupported". 4147 func (this Document) QueryCommandSupported(commandId js.String) (ret bool) { 4148 bindings.CallDocumentQueryCommandSupported( 4149 this.ref, js.Pointer(&ret), 4150 commandId.Ref(), 4151 ) 4152 4153 return 4154 } 4155 4156 // TryQueryCommandSupported calls the method "Document.queryCommandSupported" 4157 // in a try/catch block and returns (_, err, ok = false) when it went through 4158 // the catch clause. 4159 func (this Document) TryQueryCommandSupported(commandId js.String) (ret bool, exception js.Any, ok bool) { 4160 ok = js.True == bindings.TryDocumentQueryCommandSupported( 4161 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4162 commandId.Ref(), 4163 ) 4164 4165 return 4166 } 4167 4168 // HasFuncQueryCommandValue returns true if the method "Document.queryCommandValue" exists. 4169 func (this Document) HasFuncQueryCommandValue() bool { 4170 return js.True == bindings.HasFuncDocumentQueryCommandValue( 4171 this.ref, 4172 ) 4173 } 4174 4175 // FuncQueryCommandValue returns the method "Document.queryCommandValue". 4176 func (this Document) FuncQueryCommandValue() (fn js.Func[func(commandId js.String) js.String]) { 4177 bindings.FuncDocumentQueryCommandValue( 4178 this.ref, js.Pointer(&fn), 4179 ) 4180 return 4181 } 4182 4183 // QueryCommandValue calls the method "Document.queryCommandValue". 4184 func (this Document) QueryCommandValue(commandId js.String) (ret js.String) { 4185 bindings.CallDocumentQueryCommandValue( 4186 this.ref, js.Pointer(&ret), 4187 commandId.Ref(), 4188 ) 4189 4190 return 4191 } 4192 4193 // TryQueryCommandValue calls the method "Document.queryCommandValue" 4194 // in a try/catch block and returns (_, err, ok = false) when it went through 4195 // the catch clause. 4196 func (this Document) TryQueryCommandValue(commandId js.String) (ret js.String, exception js.Any, ok bool) { 4197 ok = js.True == bindings.TryDocumentQueryCommandValue( 4198 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4199 commandId.Ref(), 4200 ) 4201 4202 return 4203 } 4204 4205 // HasFuncGetBoxQuads returns true if the method "Document.getBoxQuads" exists. 4206 func (this Document) HasFuncGetBoxQuads() bool { 4207 return js.True == bindings.HasFuncDocumentGetBoxQuads( 4208 this.ref, 4209 ) 4210 } 4211 4212 // FuncGetBoxQuads returns the method "Document.getBoxQuads". 4213 func (this Document) FuncGetBoxQuads() (fn js.Func[func(options BoxQuadOptions) js.Array[DOMQuad]]) { 4214 bindings.FuncDocumentGetBoxQuads( 4215 this.ref, js.Pointer(&fn), 4216 ) 4217 return 4218 } 4219 4220 // GetBoxQuads calls the method "Document.getBoxQuads". 4221 func (this Document) GetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad]) { 4222 bindings.CallDocumentGetBoxQuads( 4223 this.ref, js.Pointer(&ret), 4224 js.Pointer(&options), 4225 ) 4226 4227 return 4228 } 4229 4230 // TryGetBoxQuads calls the method "Document.getBoxQuads" 4231 // in a try/catch block and returns (_, err, ok = false) when it went through 4232 // the catch clause. 4233 func (this Document) TryGetBoxQuads(options BoxQuadOptions) (ret js.Array[DOMQuad], exception js.Any, ok bool) { 4234 ok = js.True == bindings.TryDocumentGetBoxQuads( 4235 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4236 js.Pointer(&options), 4237 ) 4238 4239 return 4240 } 4241 4242 // HasFuncGetBoxQuads1 returns true if the method "Document.getBoxQuads" exists. 4243 func (this Document) HasFuncGetBoxQuads1() bool { 4244 return js.True == bindings.HasFuncDocumentGetBoxQuads1( 4245 this.ref, 4246 ) 4247 } 4248 4249 // FuncGetBoxQuads1 returns the method "Document.getBoxQuads". 4250 func (this Document) FuncGetBoxQuads1() (fn js.Func[func() js.Array[DOMQuad]]) { 4251 bindings.FuncDocumentGetBoxQuads1( 4252 this.ref, js.Pointer(&fn), 4253 ) 4254 return 4255 } 4256 4257 // GetBoxQuads1 calls the method "Document.getBoxQuads". 4258 func (this Document) GetBoxQuads1() (ret js.Array[DOMQuad]) { 4259 bindings.CallDocumentGetBoxQuads1( 4260 this.ref, js.Pointer(&ret), 4261 ) 4262 4263 return 4264 } 4265 4266 // TryGetBoxQuads1 calls the method "Document.getBoxQuads" 4267 // in a try/catch block and returns (_, err, ok = false) when it went through 4268 // the catch clause. 4269 func (this Document) TryGetBoxQuads1() (ret js.Array[DOMQuad], exception js.Any, ok bool) { 4270 ok = js.True == bindings.TryDocumentGetBoxQuads1( 4271 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4272 ) 4273 4274 return 4275 } 4276 4277 // HasFuncConvertQuadFromNode returns true if the method "Document.convertQuadFromNode" exists. 4278 func (this Document) HasFuncConvertQuadFromNode() bool { 4279 return js.True == bindings.HasFuncDocumentConvertQuadFromNode( 4280 this.ref, 4281 ) 4282 } 4283 4284 // FuncConvertQuadFromNode returns the method "Document.convertQuadFromNode". 4285 func (this Document) FuncConvertQuadFromNode() (fn js.Func[func(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) { 4286 bindings.FuncDocumentConvertQuadFromNode( 4287 this.ref, js.Pointer(&fn), 4288 ) 4289 return 4290 } 4291 4292 // ConvertQuadFromNode calls the method "Document.convertQuadFromNode". 4293 func (this Document) ConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) { 4294 bindings.CallDocumentConvertQuadFromNode( 4295 this.ref, js.Pointer(&ret), 4296 js.Pointer(&quad), 4297 from.Ref(), 4298 js.Pointer(&options), 4299 ) 4300 4301 return 4302 } 4303 4304 // TryConvertQuadFromNode calls the method "Document.convertQuadFromNode" 4305 // in a try/catch block and returns (_, err, ok = false) when it went through 4306 // the catch clause. 4307 func (this Document) TryConvertQuadFromNode(quad DOMQuadInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) { 4308 ok = js.True == bindings.TryDocumentConvertQuadFromNode( 4309 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4310 js.Pointer(&quad), 4311 from.Ref(), 4312 js.Pointer(&options), 4313 ) 4314 4315 return 4316 } 4317 4318 // HasFuncConvertQuadFromNode1 returns true if the method "Document.convertQuadFromNode" exists. 4319 func (this Document) HasFuncConvertQuadFromNode1() bool { 4320 return js.True == bindings.HasFuncDocumentConvertQuadFromNode1( 4321 this.ref, 4322 ) 4323 } 4324 4325 // FuncConvertQuadFromNode1 returns the method "Document.convertQuadFromNode". 4326 func (this Document) FuncConvertQuadFromNode1() (fn js.Func[func(quad DOMQuadInit, from GeometryNode) DOMQuad]) { 4327 bindings.FuncDocumentConvertQuadFromNode1( 4328 this.ref, js.Pointer(&fn), 4329 ) 4330 return 4331 } 4332 4333 // ConvertQuadFromNode1 calls the method "Document.convertQuadFromNode". 4334 func (this Document) ConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad) { 4335 bindings.CallDocumentConvertQuadFromNode1( 4336 this.ref, js.Pointer(&ret), 4337 js.Pointer(&quad), 4338 from.Ref(), 4339 ) 4340 4341 return 4342 } 4343 4344 // TryConvertQuadFromNode1 calls the method "Document.convertQuadFromNode" 4345 // in a try/catch block and returns (_, err, ok = false) when it went through 4346 // the catch clause. 4347 func (this Document) TryConvertQuadFromNode1(quad DOMQuadInit, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) { 4348 ok = js.True == bindings.TryDocumentConvertQuadFromNode1( 4349 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4350 js.Pointer(&quad), 4351 from.Ref(), 4352 ) 4353 4354 return 4355 } 4356 4357 // HasFuncConvertRectFromNode returns true if the method "Document.convertRectFromNode" exists. 4358 func (this Document) HasFuncConvertRectFromNode() bool { 4359 return js.True == bindings.HasFuncDocumentConvertRectFromNode( 4360 this.ref, 4361 ) 4362 } 4363 4364 // FuncConvertRectFromNode returns the method "Document.convertRectFromNode". 4365 func (this Document) FuncConvertRectFromNode() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) DOMQuad]) { 4366 bindings.FuncDocumentConvertRectFromNode( 4367 this.ref, js.Pointer(&fn), 4368 ) 4369 return 4370 } 4371 4372 // ConvertRectFromNode calls the method "Document.convertRectFromNode". 4373 func (this Document) ConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad) { 4374 bindings.CallDocumentConvertRectFromNode( 4375 this.ref, js.Pointer(&ret), 4376 rect.Ref(), 4377 from.Ref(), 4378 js.Pointer(&options), 4379 ) 4380 4381 return 4382 } 4383 4384 // TryConvertRectFromNode calls the method "Document.convertRectFromNode" 4385 // in a try/catch block and returns (_, err, ok = false) when it went through 4386 // the catch clause. 4387 func (this Document) TryConvertRectFromNode(rect DOMRectReadOnly, from GeometryNode, options ConvertCoordinateOptions) (ret DOMQuad, exception js.Any, ok bool) { 4388 ok = js.True == bindings.TryDocumentConvertRectFromNode( 4389 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4390 rect.Ref(), 4391 from.Ref(), 4392 js.Pointer(&options), 4393 ) 4394 4395 return 4396 } 4397 4398 // HasFuncConvertRectFromNode1 returns true if the method "Document.convertRectFromNode" exists. 4399 func (this Document) HasFuncConvertRectFromNode1() bool { 4400 return js.True == bindings.HasFuncDocumentConvertRectFromNode1( 4401 this.ref, 4402 ) 4403 } 4404 4405 // FuncConvertRectFromNode1 returns the method "Document.convertRectFromNode". 4406 func (this Document) FuncConvertRectFromNode1() (fn js.Func[func(rect DOMRectReadOnly, from GeometryNode) DOMQuad]) { 4407 bindings.FuncDocumentConvertRectFromNode1( 4408 this.ref, js.Pointer(&fn), 4409 ) 4410 return 4411 } 4412 4413 // ConvertRectFromNode1 calls the method "Document.convertRectFromNode". 4414 func (this Document) ConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad) { 4415 bindings.CallDocumentConvertRectFromNode1( 4416 this.ref, js.Pointer(&ret), 4417 rect.Ref(), 4418 from.Ref(), 4419 ) 4420 4421 return 4422 } 4423 4424 // TryConvertRectFromNode1 calls the method "Document.convertRectFromNode" 4425 // in a try/catch block and returns (_, err, ok = false) when it went through 4426 // the catch clause. 4427 func (this Document) TryConvertRectFromNode1(rect DOMRectReadOnly, from GeometryNode) (ret DOMQuad, exception js.Any, ok bool) { 4428 ok = js.True == bindings.TryDocumentConvertRectFromNode1( 4429 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4430 rect.Ref(), 4431 from.Ref(), 4432 ) 4433 4434 return 4435 } 4436 4437 // HasFuncConvertPointFromNode returns true if the method "Document.convertPointFromNode" exists. 4438 func (this Document) HasFuncConvertPointFromNode() bool { 4439 return js.True == bindings.HasFuncDocumentConvertPointFromNode( 4440 this.ref, 4441 ) 4442 } 4443 4444 // FuncConvertPointFromNode returns the method "Document.convertPointFromNode". 4445 func (this Document) FuncConvertPointFromNode() (fn js.Func[func(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) DOMPoint]) { 4446 bindings.FuncDocumentConvertPointFromNode( 4447 this.ref, js.Pointer(&fn), 4448 ) 4449 return 4450 } 4451 4452 // ConvertPointFromNode calls the method "Document.convertPointFromNode". 4453 func (this Document) ConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint) { 4454 bindings.CallDocumentConvertPointFromNode( 4455 this.ref, js.Pointer(&ret), 4456 js.Pointer(&point), 4457 from.Ref(), 4458 js.Pointer(&options), 4459 ) 4460 4461 return 4462 } 4463 4464 // TryConvertPointFromNode calls the method "Document.convertPointFromNode" 4465 // in a try/catch block and returns (_, err, ok = false) when it went through 4466 // the catch clause. 4467 func (this Document) TryConvertPointFromNode(point DOMPointInit, from GeometryNode, options ConvertCoordinateOptions) (ret DOMPoint, exception js.Any, ok bool) { 4468 ok = js.True == bindings.TryDocumentConvertPointFromNode( 4469 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4470 js.Pointer(&point), 4471 from.Ref(), 4472 js.Pointer(&options), 4473 ) 4474 4475 return 4476 } 4477 4478 // HasFuncConvertPointFromNode1 returns true if the method "Document.convertPointFromNode" exists. 4479 func (this Document) HasFuncConvertPointFromNode1() bool { 4480 return js.True == bindings.HasFuncDocumentConvertPointFromNode1( 4481 this.ref, 4482 ) 4483 } 4484 4485 // FuncConvertPointFromNode1 returns the method "Document.convertPointFromNode". 4486 func (this Document) FuncConvertPointFromNode1() (fn js.Func[func(point DOMPointInit, from GeometryNode) DOMPoint]) { 4487 bindings.FuncDocumentConvertPointFromNode1( 4488 this.ref, js.Pointer(&fn), 4489 ) 4490 return 4491 } 4492 4493 // ConvertPointFromNode1 calls the method "Document.convertPointFromNode". 4494 func (this Document) ConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint) { 4495 bindings.CallDocumentConvertPointFromNode1( 4496 this.ref, js.Pointer(&ret), 4497 js.Pointer(&point), 4498 from.Ref(), 4499 ) 4500 4501 return 4502 } 4503 4504 // TryConvertPointFromNode1 calls the method "Document.convertPointFromNode" 4505 // in a try/catch block and returns (_, err, ok = false) when it went through 4506 // the catch clause. 4507 func (this Document) TryConvertPointFromNode1(point DOMPointInit, from GeometryNode) (ret DOMPoint, exception js.Any, ok bool) { 4508 ok = js.True == bindings.TryDocumentConvertPointFromNode1( 4509 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4510 js.Pointer(&point), 4511 from.Ref(), 4512 ) 4513 4514 return 4515 } 4516 4517 // HasFuncGetElementById returns true if the method "Document.getElementById" exists. 4518 func (this Document) HasFuncGetElementById() bool { 4519 return js.True == bindings.HasFuncDocumentGetElementById( 4520 this.ref, 4521 ) 4522 } 4523 4524 // FuncGetElementById returns the method "Document.getElementById". 4525 func (this Document) FuncGetElementById() (fn js.Func[func(elementId js.String) Element]) { 4526 bindings.FuncDocumentGetElementById( 4527 this.ref, js.Pointer(&fn), 4528 ) 4529 return 4530 } 4531 4532 // GetElementById calls the method "Document.getElementById". 4533 func (this Document) GetElementById(elementId js.String) (ret Element) { 4534 bindings.CallDocumentGetElementById( 4535 this.ref, js.Pointer(&ret), 4536 elementId.Ref(), 4537 ) 4538 4539 return 4540 } 4541 4542 // TryGetElementById calls the method "Document.getElementById" 4543 // in a try/catch block and returns (_, err, ok = false) when it went through 4544 // the catch clause. 4545 func (this Document) TryGetElementById(elementId js.String) (ret Element, exception js.Any, ok bool) { 4546 ok = js.True == bindings.TryDocumentGetElementById( 4547 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4548 elementId.Ref(), 4549 ) 4550 4551 return 4552 } 4553 4554 // HasFuncGetAnimations returns true if the method "Document.getAnimations" exists. 4555 func (this Document) HasFuncGetAnimations() bool { 4556 return js.True == bindings.HasFuncDocumentGetAnimations( 4557 this.ref, 4558 ) 4559 } 4560 4561 // FuncGetAnimations returns the method "Document.getAnimations". 4562 func (this Document) FuncGetAnimations() (fn js.Func[func() js.Array[Animation]]) { 4563 bindings.FuncDocumentGetAnimations( 4564 this.ref, js.Pointer(&fn), 4565 ) 4566 return 4567 } 4568 4569 // GetAnimations calls the method "Document.getAnimations". 4570 func (this Document) GetAnimations() (ret js.Array[Animation]) { 4571 bindings.CallDocumentGetAnimations( 4572 this.ref, js.Pointer(&ret), 4573 ) 4574 4575 return 4576 } 4577 4578 // TryGetAnimations calls the method "Document.getAnimations" 4579 // in a try/catch block and returns (_, err, ok = false) when it went through 4580 // the catch clause. 4581 func (this Document) TryGetAnimations() (ret js.Array[Animation], exception js.Any, ok bool) { 4582 ok = js.True == bindings.TryDocumentGetAnimations( 4583 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4584 ) 4585 4586 return 4587 } 4588 4589 // HasFuncPrepend returns true if the method "Document.prepend" exists. 4590 func (this Document) HasFuncPrepend() bool { 4591 return js.True == bindings.HasFuncDocumentPrepend( 4592 this.ref, 4593 ) 4594 } 4595 4596 // FuncPrepend returns the method "Document.prepend". 4597 func (this Document) FuncPrepend() (fn js.Func[func(nodes ...OneOf_Node_String)]) { 4598 bindings.FuncDocumentPrepend( 4599 this.ref, js.Pointer(&fn), 4600 ) 4601 return 4602 } 4603 4604 // Prepend calls the method "Document.prepend". 4605 func (this Document) Prepend(nodes ...OneOf_Node_String) (ret js.Void) { 4606 bindings.CallDocumentPrepend( 4607 this.ref, js.Pointer(&ret), 4608 js.SliceData(nodes), 4609 js.SizeU(len(nodes)), 4610 ) 4611 4612 return 4613 } 4614 4615 // TryPrepend calls the method "Document.prepend" 4616 // in a try/catch block and returns (_, err, ok = false) when it went through 4617 // the catch clause. 4618 func (this Document) TryPrepend(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) { 4619 ok = js.True == bindings.TryDocumentPrepend( 4620 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4621 js.SliceData(nodes), 4622 js.SizeU(len(nodes)), 4623 ) 4624 4625 return 4626 } 4627 4628 // HasFuncAppend returns true if the method "Document.append" exists. 4629 func (this Document) HasFuncAppend() bool { 4630 return js.True == bindings.HasFuncDocumentAppend( 4631 this.ref, 4632 ) 4633 } 4634 4635 // FuncAppend returns the method "Document.append". 4636 func (this Document) FuncAppend() (fn js.Func[func(nodes ...OneOf_Node_String)]) { 4637 bindings.FuncDocumentAppend( 4638 this.ref, js.Pointer(&fn), 4639 ) 4640 return 4641 } 4642 4643 // Append calls the method "Document.append". 4644 func (this Document) Append(nodes ...OneOf_Node_String) (ret js.Void) { 4645 bindings.CallDocumentAppend( 4646 this.ref, js.Pointer(&ret), 4647 js.SliceData(nodes), 4648 js.SizeU(len(nodes)), 4649 ) 4650 4651 return 4652 } 4653 4654 // TryAppend calls the method "Document.append" 4655 // in a try/catch block and returns (_, err, ok = false) when it went through 4656 // the catch clause. 4657 func (this Document) TryAppend(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) { 4658 ok = js.True == bindings.TryDocumentAppend( 4659 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4660 js.SliceData(nodes), 4661 js.SizeU(len(nodes)), 4662 ) 4663 4664 return 4665 } 4666 4667 // HasFuncReplaceChildren returns true if the method "Document.replaceChildren" exists. 4668 func (this Document) HasFuncReplaceChildren() bool { 4669 return js.True == bindings.HasFuncDocumentReplaceChildren( 4670 this.ref, 4671 ) 4672 } 4673 4674 // FuncReplaceChildren returns the method "Document.replaceChildren". 4675 func (this Document) FuncReplaceChildren() (fn js.Func[func(nodes ...OneOf_Node_String)]) { 4676 bindings.FuncDocumentReplaceChildren( 4677 this.ref, js.Pointer(&fn), 4678 ) 4679 return 4680 } 4681 4682 // ReplaceChildren calls the method "Document.replaceChildren". 4683 func (this Document) ReplaceChildren(nodes ...OneOf_Node_String) (ret js.Void) { 4684 bindings.CallDocumentReplaceChildren( 4685 this.ref, js.Pointer(&ret), 4686 js.SliceData(nodes), 4687 js.SizeU(len(nodes)), 4688 ) 4689 4690 return 4691 } 4692 4693 // TryReplaceChildren calls the method "Document.replaceChildren" 4694 // in a try/catch block and returns (_, err, ok = false) when it went through 4695 // the catch clause. 4696 func (this Document) TryReplaceChildren(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) { 4697 ok = js.True == bindings.TryDocumentReplaceChildren( 4698 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4699 js.SliceData(nodes), 4700 js.SizeU(len(nodes)), 4701 ) 4702 4703 return 4704 } 4705 4706 // HasFuncQuerySelector returns true if the method "Document.querySelector" exists. 4707 func (this Document) HasFuncQuerySelector() bool { 4708 return js.True == bindings.HasFuncDocumentQuerySelector( 4709 this.ref, 4710 ) 4711 } 4712 4713 // FuncQuerySelector returns the method "Document.querySelector". 4714 func (this Document) FuncQuerySelector() (fn js.Func[func(selectors js.String) Element]) { 4715 bindings.FuncDocumentQuerySelector( 4716 this.ref, js.Pointer(&fn), 4717 ) 4718 return 4719 } 4720 4721 // QuerySelector calls the method "Document.querySelector". 4722 func (this Document) QuerySelector(selectors js.String) (ret Element) { 4723 bindings.CallDocumentQuerySelector( 4724 this.ref, js.Pointer(&ret), 4725 selectors.Ref(), 4726 ) 4727 4728 return 4729 } 4730 4731 // TryQuerySelector calls the method "Document.querySelector" 4732 // in a try/catch block and returns (_, err, ok = false) when it went through 4733 // the catch clause. 4734 func (this Document) TryQuerySelector(selectors js.String) (ret Element, exception js.Any, ok bool) { 4735 ok = js.True == bindings.TryDocumentQuerySelector( 4736 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4737 selectors.Ref(), 4738 ) 4739 4740 return 4741 } 4742 4743 // HasFuncQuerySelectorAll returns true if the method "Document.querySelectorAll" exists. 4744 func (this Document) HasFuncQuerySelectorAll() bool { 4745 return js.True == bindings.HasFuncDocumentQuerySelectorAll( 4746 this.ref, 4747 ) 4748 } 4749 4750 // FuncQuerySelectorAll returns the method "Document.querySelectorAll". 4751 func (this Document) FuncQuerySelectorAll() (fn js.Func[func(selectors js.String) NodeList]) { 4752 bindings.FuncDocumentQuerySelectorAll( 4753 this.ref, js.Pointer(&fn), 4754 ) 4755 return 4756 } 4757 4758 // QuerySelectorAll calls the method "Document.querySelectorAll". 4759 func (this Document) QuerySelectorAll(selectors js.String) (ret NodeList) { 4760 bindings.CallDocumentQuerySelectorAll( 4761 this.ref, js.Pointer(&ret), 4762 selectors.Ref(), 4763 ) 4764 4765 return 4766 } 4767 4768 // TryQuerySelectorAll calls the method "Document.querySelectorAll" 4769 // in a try/catch block and returns (_, err, ok = false) when it went through 4770 // the catch clause. 4771 func (this Document) TryQuerySelectorAll(selectors js.String) (ret NodeList, exception js.Any, ok bool) { 4772 ok = js.True == bindings.TryDocumentQuerySelectorAll( 4773 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4774 selectors.Ref(), 4775 ) 4776 4777 return 4778 } 4779 4780 // HasFuncCreateExpression returns true if the method "Document.createExpression" exists. 4781 func (this Document) HasFuncCreateExpression() bool { 4782 return js.True == bindings.HasFuncDocumentCreateExpression( 4783 this.ref, 4784 ) 4785 } 4786 4787 // FuncCreateExpression returns the method "Document.createExpression". 4788 func (this Document) FuncCreateExpression() (fn js.Func[func(expression js.String, resolver js.Func[func(prefix js.String) js.String]) XPathExpression]) { 4789 bindings.FuncDocumentCreateExpression( 4790 this.ref, js.Pointer(&fn), 4791 ) 4792 return 4793 } 4794 4795 // CreateExpression calls the method "Document.createExpression". 4796 func (this Document) CreateExpression(expression js.String, resolver js.Func[func(prefix js.String) js.String]) (ret XPathExpression) { 4797 bindings.CallDocumentCreateExpression( 4798 this.ref, js.Pointer(&ret), 4799 expression.Ref(), 4800 resolver.Ref(), 4801 ) 4802 4803 return 4804 } 4805 4806 // TryCreateExpression calls the method "Document.createExpression" 4807 // in a try/catch block and returns (_, err, ok = false) when it went through 4808 // the catch clause. 4809 func (this Document) TryCreateExpression(expression js.String, resolver js.Func[func(prefix js.String) js.String]) (ret XPathExpression, exception js.Any, ok bool) { 4810 ok = js.True == bindings.TryDocumentCreateExpression( 4811 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4812 expression.Ref(), 4813 resolver.Ref(), 4814 ) 4815 4816 return 4817 } 4818 4819 // HasFuncCreateExpression1 returns true if the method "Document.createExpression" exists. 4820 func (this Document) HasFuncCreateExpression1() bool { 4821 return js.True == bindings.HasFuncDocumentCreateExpression1( 4822 this.ref, 4823 ) 4824 } 4825 4826 // FuncCreateExpression1 returns the method "Document.createExpression". 4827 func (this Document) FuncCreateExpression1() (fn js.Func[func(expression js.String) XPathExpression]) { 4828 bindings.FuncDocumentCreateExpression1( 4829 this.ref, js.Pointer(&fn), 4830 ) 4831 return 4832 } 4833 4834 // CreateExpression1 calls the method "Document.createExpression". 4835 func (this Document) CreateExpression1(expression js.String) (ret XPathExpression) { 4836 bindings.CallDocumentCreateExpression1( 4837 this.ref, js.Pointer(&ret), 4838 expression.Ref(), 4839 ) 4840 4841 return 4842 } 4843 4844 // TryCreateExpression1 calls the method "Document.createExpression" 4845 // in a try/catch block and returns (_, err, ok = false) when it went through 4846 // the catch clause. 4847 func (this Document) TryCreateExpression1(expression js.String) (ret XPathExpression, exception js.Any, ok bool) { 4848 ok = js.True == bindings.TryDocumentCreateExpression1( 4849 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4850 expression.Ref(), 4851 ) 4852 4853 return 4854 } 4855 4856 // HasFuncCreateNSResolver returns true if the method "Document.createNSResolver" exists. 4857 func (this Document) HasFuncCreateNSResolver() bool { 4858 return js.True == bindings.HasFuncDocumentCreateNSResolver( 4859 this.ref, 4860 ) 4861 } 4862 4863 // FuncCreateNSResolver returns the method "Document.createNSResolver". 4864 func (this Document) FuncCreateNSResolver() (fn js.Func[func(nodeResolver Node) Node]) { 4865 bindings.FuncDocumentCreateNSResolver( 4866 this.ref, js.Pointer(&fn), 4867 ) 4868 return 4869 } 4870 4871 // CreateNSResolver calls the method "Document.createNSResolver". 4872 func (this Document) CreateNSResolver(nodeResolver Node) (ret Node) { 4873 bindings.CallDocumentCreateNSResolver( 4874 this.ref, js.Pointer(&ret), 4875 nodeResolver.Ref(), 4876 ) 4877 4878 return 4879 } 4880 4881 // TryCreateNSResolver calls the method "Document.createNSResolver" 4882 // in a try/catch block and returns (_, err, ok = false) when it went through 4883 // the catch clause. 4884 func (this Document) TryCreateNSResolver(nodeResolver Node) (ret Node, exception js.Any, ok bool) { 4885 ok = js.True == bindings.TryDocumentCreateNSResolver( 4886 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4887 nodeResolver.Ref(), 4888 ) 4889 4890 return 4891 } 4892 4893 // HasFuncEvaluate returns true if the method "Document.evaluate" exists. 4894 func (this Document) HasFuncEvaluate() bool { 4895 return js.True == bindings.HasFuncDocumentEvaluate( 4896 this.ref, 4897 ) 4898 } 4899 4900 // FuncEvaluate returns the method "Document.evaluate". 4901 func (this Document) FuncEvaluate() (fn js.Func[func(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String], typ uint16, result XPathResult) XPathResult]) { 4902 bindings.FuncDocumentEvaluate( 4903 this.ref, js.Pointer(&fn), 4904 ) 4905 return 4906 } 4907 4908 // Evaluate calls the method "Document.evaluate". 4909 func (this Document) Evaluate(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String], typ uint16, result XPathResult) (ret XPathResult) { 4910 bindings.CallDocumentEvaluate( 4911 this.ref, js.Pointer(&ret), 4912 expression.Ref(), 4913 contextNode.Ref(), 4914 resolver.Ref(), 4915 uint32(typ), 4916 result.Ref(), 4917 ) 4918 4919 return 4920 } 4921 4922 // TryEvaluate calls the method "Document.evaluate" 4923 // in a try/catch block and returns (_, err, ok = false) when it went through 4924 // the catch clause. 4925 func (this Document) TryEvaluate(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String], typ uint16, result XPathResult) (ret XPathResult, exception js.Any, ok bool) { 4926 ok = js.True == bindings.TryDocumentEvaluate( 4927 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4928 expression.Ref(), 4929 contextNode.Ref(), 4930 resolver.Ref(), 4931 uint32(typ), 4932 result.Ref(), 4933 ) 4934 4935 return 4936 } 4937 4938 // HasFuncEvaluate1 returns true if the method "Document.evaluate" exists. 4939 func (this Document) HasFuncEvaluate1() bool { 4940 return js.True == bindings.HasFuncDocumentEvaluate1( 4941 this.ref, 4942 ) 4943 } 4944 4945 // FuncEvaluate1 returns the method "Document.evaluate". 4946 func (this Document) FuncEvaluate1() (fn js.Func[func(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String], typ uint16) XPathResult]) { 4947 bindings.FuncDocumentEvaluate1( 4948 this.ref, js.Pointer(&fn), 4949 ) 4950 return 4951 } 4952 4953 // Evaluate1 calls the method "Document.evaluate". 4954 func (this Document) Evaluate1(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String], typ uint16) (ret XPathResult) { 4955 bindings.CallDocumentEvaluate1( 4956 this.ref, js.Pointer(&ret), 4957 expression.Ref(), 4958 contextNode.Ref(), 4959 resolver.Ref(), 4960 uint32(typ), 4961 ) 4962 4963 return 4964 } 4965 4966 // TryEvaluate1 calls the method "Document.evaluate" 4967 // in a try/catch block and returns (_, err, ok = false) when it went through 4968 // the catch clause. 4969 func (this Document) TryEvaluate1(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String], typ uint16) (ret XPathResult, exception js.Any, ok bool) { 4970 ok = js.True == bindings.TryDocumentEvaluate1( 4971 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4972 expression.Ref(), 4973 contextNode.Ref(), 4974 resolver.Ref(), 4975 uint32(typ), 4976 ) 4977 4978 return 4979 } 4980 4981 // HasFuncEvaluate2 returns true if the method "Document.evaluate" exists. 4982 func (this Document) HasFuncEvaluate2() bool { 4983 return js.True == bindings.HasFuncDocumentEvaluate2( 4984 this.ref, 4985 ) 4986 } 4987 4988 // FuncEvaluate2 returns the method "Document.evaluate". 4989 func (this Document) FuncEvaluate2() (fn js.Func[func(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String]) XPathResult]) { 4990 bindings.FuncDocumentEvaluate2( 4991 this.ref, js.Pointer(&fn), 4992 ) 4993 return 4994 } 4995 4996 // Evaluate2 calls the method "Document.evaluate". 4997 func (this Document) Evaluate2(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String]) (ret XPathResult) { 4998 bindings.CallDocumentEvaluate2( 4999 this.ref, js.Pointer(&ret), 5000 expression.Ref(), 5001 contextNode.Ref(), 5002 resolver.Ref(), 5003 ) 5004 5005 return 5006 } 5007 5008 // TryEvaluate2 calls the method "Document.evaluate" 5009 // in a try/catch block and returns (_, err, ok = false) when it went through 5010 // the catch clause. 5011 func (this Document) TryEvaluate2(expression js.String, contextNode Node, resolver js.Func[func(prefix js.String) js.String]) (ret XPathResult, exception js.Any, ok bool) { 5012 ok = js.True == bindings.TryDocumentEvaluate2( 5013 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5014 expression.Ref(), 5015 contextNode.Ref(), 5016 resolver.Ref(), 5017 ) 5018 5019 return 5020 } 5021 5022 // HasFuncEvaluate3 returns true if the method "Document.evaluate" exists. 5023 func (this Document) HasFuncEvaluate3() bool { 5024 return js.True == bindings.HasFuncDocumentEvaluate3( 5025 this.ref, 5026 ) 5027 } 5028 5029 // FuncEvaluate3 returns the method "Document.evaluate". 5030 func (this Document) FuncEvaluate3() (fn js.Func[func(expression js.String, contextNode Node) XPathResult]) { 5031 bindings.FuncDocumentEvaluate3( 5032 this.ref, js.Pointer(&fn), 5033 ) 5034 return 5035 } 5036 5037 // Evaluate3 calls the method "Document.evaluate". 5038 func (this Document) Evaluate3(expression js.String, contextNode Node) (ret XPathResult) { 5039 bindings.CallDocumentEvaluate3( 5040 this.ref, js.Pointer(&ret), 5041 expression.Ref(), 5042 contextNode.Ref(), 5043 ) 5044 5045 return 5046 } 5047 5048 // TryEvaluate3 calls the method "Document.evaluate" 5049 // in a try/catch block and returns (_, err, ok = false) when it went through 5050 // the catch clause. 5051 func (this Document) TryEvaluate3(expression js.String, contextNode Node) (ret XPathResult, exception js.Any, ok bool) { 5052 ok = js.True == bindings.TryDocumentEvaluate3( 5053 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5054 expression.Ref(), 5055 contextNode.Ref(), 5056 ) 5057 5058 return 5059 } 5060 5061 type Node struct { 5062 EventTarget 5063 } 5064 5065 func (this Node) Once() Node { 5066 this.ref.Once() 5067 return this 5068 } 5069 5070 func (this Node) Ref() js.Ref { 5071 return this.EventTarget.Ref() 5072 } 5073 5074 func (this Node) FromRef(ref js.Ref) Node { 5075 this.EventTarget = this.EventTarget.FromRef(ref) 5076 return this 5077 } 5078 5079 func (this Node) Free() { 5080 this.ref.Free() 5081 } 5082 5083 // NodeType returns the value of property "Node.nodeType". 5084 // 5085 // It returns ok=false if there is no such property. 5086 func (this Node) NodeType() (ret uint16, ok bool) { 5087 ok = js.True == bindings.GetNodeNodeType( 5088 this.ref, js.Pointer(&ret), 5089 ) 5090 return 5091 } 5092 5093 // NodeName returns the value of property "Node.nodeName". 5094 // 5095 // It returns ok=false if there is no such property. 5096 func (this Node) NodeName() (ret js.String, ok bool) { 5097 ok = js.True == bindings.GetNodeNodeName( 5098 this.ref, js.Pointer(&ret), 5099 ) 5100 return 5101 } 5102 5103 // BaseURI returns the value of property "Node.baseURI". 5104 // 5105 // It returns ok=false if there is no such property. 5106 func (this Node) BaseURI() (ret js.String, ok bool) { 5107 ok = js.True == bindings.GetNodeBaseURI( 5108 this.ref, js.Pointer(&ret), 5109 ) 5110 return 5111 } 5112 5113 // IsConnected returns the value of property "Node.isConnected". 5114 // 5115 // It returns ok=false if there is no such property. 5116 func (this Node) IsConnected() (ret bool, ok bool) { 5117 ok = js.True == bindings.GetNodeIsConnected( 5118 this.ref, js.Pointer(&ret), 5119 ) 5120 return 5121 } 5122 5123 // OwnerDocument returns the value of property "Node.ownerDocument". 5124 // 5125 // It returns ok=false if there is no such property. 5126 func (this Node) OwnerDocument() (ret Document, ok bool) { 5127 ok = js.True == bindings.GetNodeOwnerDocument( 5128 this.ref, js.Pointer(&ret), 5129 ) 5130 return 5131 } 5132 5133 // ParentNode returns the value of property "Node.parentNode". 5134 // 5135 // It returns ok=false if there is no such property. 5136 func (this Node) ParentNode() (ret Node, ok bool) { 5137 ok = js.True == bindings.GetNodeParentNode( 5138 this.ref, js.Pointer(&ret), 5139 ) 5140 return 5141 } 5142 5143 // ParentElement returns the value of property "Node.parentElement". 5144 // 5145 // It returns ok=false if there is no such property. 5146 func (this Node) ParentElement() (ret Element, ok bool) { 5147 ok = js.True == bindings.GetNodeParentElement( 5148 this.ref, js.Pointer(&ret), 5149 ) 5150 return 5151 } 5152 5153 // ChildNodes returns the value of property "Node.childNodes". 5154 // 5155 // It returns ok=false if there is no such property. 5156 func (this Node) ChildNodes() (ret NodeList, ok bool) { 5157 ok = js.True == bindings.GetNodeChildNodes( 5158 this.ref, js.Pointer(&ret), 5159 ) 5160 return 5161 } 5162 5163 // FirstChild returns the value of property "Node.firstChild". 5164 // 5165 // It returns ok=false if there is no such property. 5166 func (this Node) FirstChild() (ret Node, ok bool) { 5167 ok = js.True == bindings.GetNodeFirstChild( 5168 this.ref, js.Pointer(&ret), 5169 ) 5170 return 5171 } 5172 5173 // LastChild returns the value of property "Node.lastChild". 5174 // 5175 // It returns ok=false if there is no such property. 5176 func (this Node) LastChild() (ret Node, ok bool) { 5177 ok = js.True == bindings.GetNodeLastChild( 5178 this.ref, js.Pointer(&ret), 5179 ) 5180 return 5181 } 5182 5183 // PreviousSibling returns the value of property "Node.previousSibling". 5184 // 5185 // It returns ok=false if there is no such property. 5186 func (this Node) PreviousSibling() (ret Node, ok bool) { 5187 ok = js.True == bindings.GetNodePreviousSibling( 5188 this.ref, js.Pointer(&ret), 5189 ) 5190 return 5191 } 5192 5193 // NextSibling returns the value of property "Node.nextSibling". 5194 // 5195 // It returns ok=false if there is no such property. 5196 func (this Node) NextSibling() (ret Node, ok bool) { 5197 ok = js.True == bindings.GetNodeNextSibling( 5198 this.ref, js.Pointer(&ret), 5199 ) 5200 return 5201 } 5202 5203 // NodeValue returns the value of property "Node.nodeValue". 5204 // 5205 // It returns ok=false if there is no such property. 5206 func (this Node) NodeValue() (ret js.String, ok bool) { 5207 ok = js.True == bindings.GetNodeNodeValue( 5208 this.ref, js.Pointer(&ret), 5209 ) 5210 return 5211 } 5212 5213 // SetNodeValue sets the value of property "Node.nodeValue" to val. 5214 // 5215 // It returns false if the property cannot be set. 5216 func (this Node) SetNodeValue(val js.String) bool { 5217 return js.True == bindings.SetNodeNodeValue( 5218 this.ref, 5219 val.Ref(), 5220 ) 5221 } 5222 5223 // TextContent returns the value of property "Node.textContent". 5224 // 5225 // It returns ok=false if there is no such property. 5226 func (this Node) TextContent() (ret js.String, ok bool) { 5227 ok = js.True == bindings.GetNodeTextContent( 5228 this.ref, js.Pointer(&ret), 5229 ) 5230 return 5231 } 5232 5233 // SetTextContent sets the value of property "Node.textContent" to val. 5234 // 5235 // It returns false if the property cannot be set. 5236 func (this Node) SetTextContent(val js.String) bool { 5237 return js.True == bindings.SetNodeTextContent( 5238 this.ref, 5239 val.Ref(), 5240 ) 5241 } 5242 5243 // HasFuncGetRootNode returns true if the method "Node.getRootNode" exists. 5244 func (this Node) HasFuncGetRootNode() bool { 5245 return js.True == bindings.HasFuncNodeGetRootNode( 5246 this.ref, 5247 ) 5248 } 5249 5250 // FuncGetRootNode returns the method "Node.getRootNode". 5251 func (this Node) FuncGetRootNode() (fn js.Func[func(options GetRootNodeOptions) Node]) { 5252 bindings.FuncNodeGetRootNode( 5253 this.ref, js.Pointer(&fn), 5254 ) 5255 return 5256 } 5257 5258 // GetRootNode calls the method "Node.getRootNode". 5259 func (this Node) GetRootNode(options GetRootNodeOptions) (ret Node) { 5260 bindings.CallNodeGetRootNode( 5261 this.ref, js.Pointer(&ret), 5262 js.Pointer(&options), 5263 ) 5264 5265 return 5266 } 5267 5268 // TryGetRootNode calls the method "Node.getRootNode" 5269 // in a try/catch block and returns (_, err, ok = false) when it went through 5270 // the catch clause. 5271 func (this Node) TryGetRootNode(options GetRootNodeOptions) (ret Node, exception js.Any, ok bool) { 5272 ok = js.True == bindings.TryNodeGetRootNode( 5273 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5274 js.Pointer(&options), 5275 ) 5276 5277 return 5278 } 5279 5280 // HasFuncGetRootNode1 returns true if the method "Node.getRootNode" exists. 5281 func (this Node) HasFuncGetRootNode1() bool { 5282 return js.True == bindings.HasFuncNodeGetRootNode1( 5283 this.ref, 5284 ) 5285 } 5286 5287 // FuncGetRootNode1 returns the method "Node.getRootNode". 5288 func (this Node) FuncGetRootNode1() (fn js.Func[func() Node]) { 5289 bindings.FuncNodeGetRootNode1( 5290 this.ref, js.Pointer(&fn), 5291 ) 5292 return 5293 } 5294 5295 // GetRootNode1 calls the method "Node.getRootNode". 5296 func (this Node) GetRootNode1() (ret Node) { 5297 bindings.CallNodeGetRootNode1( 5298 this.ref, js.Pointer(&ret), 5299 ) 5300 5301 return 5302 } 5303 5304 // TryGetRootNode1 calls the method "Node.getRootNode" 5305 // in a try/catch block and returns (_, err, ok = false) when it went through 5306 // the catch clause. 5307 func (this Node) TryGetRootNode1() (ret Node, exception js.Any, ok bool) { 5308 ok = js.True == bindings.TryNodeGetRootNode1( 5309 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5310 ) 5311 5312 return 5313 } 5314 5315 // HasFuncHasChildNodes returns true if the method "Node.hasChildNodes" exists. 5316 func (this Node) HasFuncHasChildNodes() bool { 5317 return js.True == bindings.HasFuncNodeHasChildNodes( 5318 this.ref, 5319 ) 5320 } 5321 5322 // FuncHasChildNodes returns the method "Node.hasChildNodes". 5323 func (this Node) FuncHasChildNodes() (fn js.Func[func() bool]) { 5324 bindings.FuncNodeHasChildNodes( 5325 this.ref, js.Pointer(&fn), 5326 ) 5327 return 5328 } 5329 5330 // HasChildNodes calls the method "Node.hasChildNodes". 5331 func (this Node) HasChildNodes() (ret bool) { 5332 bindings.CallNodeHasChildNodes( 5333 this.ref, js.Pointer(&ret), 5334 ) 5335 5336 return 5337 } 5338 5339 // TryHasChildNodes calls the method "Node.hasChildNodes" 5340 // in a try/catch block and returns (_, err, ok = false) when it went through 5341 // the catch clause. 5342 func (this Node) TryHasChildNodes() (ret bool, exception js.Any, ok bool) { 5343 ok = js.True == bindings.TryNodeHasChildNodes( 5344 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5345 ) 5346 5347 return 5348 } 5349 5350 // HasFuncNormalize returns true if the method "Node.normalize" exists. 5351 func (this Node) HasFuncNormalize() bool { 5352 return js.True == bindings.HasFuncNodeNormalize( 5353 this.ref, 5354 ) 5355 } 5356 5357 // FuncNormalize returns the method "Node.normalize". 5358 func (this Node) FuncNormalize() (fn js.Func[func()]) { 5359 bindings.FuncNodeNormalize( 5360 this.ref, js.Pointer(&fn), 5361 ) 5362 return 5363 } 5364 5365 // Normalize calls the method "Node.normalize". 5366 func (this Node) Normalize() (ret js.Void) { 5367 bindings.CallNodeNormalize( 5368 this.ref, js.Pointer(&ret), 5369 ) 5370 5371 return 5372 } 5373 5374 // TryNormalize calls the method "Node.normalize" 5375 // in a try/catch block and returns (_, err, ok = false) when it went through 5376 // the catch clause. 5377 func (this Node) TryNormalize() (ret js.Void, exception js.Any, ok bool) { 5378 ok = js.True == bindings.TryNodeNormalize( 5379 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5380 ) 5381 5382 return 5383 } 5384 5385 // HasFuncCloneNode returns true if the method "Node.cloneNode" exists. 5386 func (this Node) HasFuncCloneNode() bool { 5387 return js.True == bindings.HasFuncNodeCloneNode( 5388 this.ref, 5389 ) 5390 } 5391 5392 // FuncCloneNode returns the method "Node.cloneNode". 5393 func (this Node) FuncCloneNode() (fn js.Func[func(deep bool) Node]) { 5394 bindings.FuncNodeCloneNode( 5395 this.ref, js.Pointer(&fn), 5396 ) 5397 return 5398 } 5399 5400 // CloneNode calls the method "Node.cloneNode". 5401 func (this Node) CloneNode(deep bool) (ret Node) { 5402 bindings.CallNodeCloneNode( 5403 this.ref, js.Pointer(&ret), 5404 js.Bool(bool(deep)), 5405 ) 5406 5407 return 5408 } 5409 5410 // TryCloneNode calls the method "Node.cloneNode" 5411 // in a try/catch block and returns (_, err, ok = false) when it went through 5412 // the catch clause. 5413 func (this Node) TryCloneNode(deep bool) (ret Node, exception js.Any, ok bool) { 5414 ok = js.True == bindings.TryNodeCloneNode( 5415 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5416 js.Bool(bool(deep)), 5417 ) 5418 5419 return 5420 } 5421 5422 // HasFuncCloneNode1 returns true if the method "Node.cloneNode" exists. 5423 func (this Node) HasFuncCloneNode1() bool { 5424 return js.True == bindings.HasFuncNodeCloneNode1( 5425 this.ref, 5426 ) 5427 } 5428 5429 // FuncCloneNode1 returns the method "Node.cloneNode". 5430 func (this Node) FuncCloneNode1() (fn js.Func[func() Node]) { 5431 bindings.FuncNodeCloneNode1( 5432 this.ref, js.Pointer(&fn), 5433 ) 5434 return 5435 } 5436 5437 // CloneNode1 calls the method "Node.cloneNode". 5438 func (this Node) CloneNode1() (ret Node) { 5439 bindings.CallNodeCloneNode1( 5440 this.ref, js.Pointer(&ret), 5441 ) 5442 5443 return 5444 } 5445 5446 // TryCloneNode1 calls the method "Node.cloneNode" 5447 // in a try/catch block and returns (_, err, ok = false) when it went through 5448 // the catch clause. 5449 func (this Node) TryCloneNode1() (ret Node, exception js.Any, ok bool) { 5450 ok = js.True == bindings.TryNodeCloneNode1( 5451 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5452 ) 5453 5454 return 5455 } 5456 5457 // HasFuncIsEqualNode returns true if the method "Node.isEqualNode" exists. 5458 func (this Node) HasFuncIsEqualNode() bool { 5459 return js.True == bindings.HasFuncNodeIsEqualNode( 5460 this.ref, 5461 ) 5462 } 5463 5464 // FuncIsEqualNode returns the method "Node.isEqualNode". 5465 func (this Node) FuncIsEqualNode() (fn js.Func[func(otherNode Node) bool]) { 5466 bindings.FuncNodeIsEqualNode( 5467 this.ref, js.Pointer(&fn), 5468 ) 5469 return 5470 } 5471 5472 // IsEqualNode calls the method "Node.isEqualNode". 5473 func (this Node) IsEqualNode(otherNode Node) (ret bool) { 5474 bindings.CallNodeIsEqualNode( 5475 this.ref, js.Pointer(&ret), 5476 otherNode.Ref(), 5477 ) 5478 5479 return 5480 } 5481 5482 // TryIsEqualNode calls the method "Node.isEqualNode" 5483 // in a try/catch block and returns (_, err, ok = false) when it went through 5484 // the catch clause. 5485 func (this Node) TryIsEqualNode(otherNode Node) (ret bool, exception js.Any, ok bool) { 5486 ok = js.True == bindings.TryNodeIsEqualNode( 5487 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5488 otherNode.Ref(), 5489 ) 5490 5491 return 5492 } 5493 5494 // HasFuncIsSameNode returns true if the method "Node.isSameNode" exists. 5495 func (this Node) HasFuncIsSameNode() bool { 5496 return js.True == bindings.HasFuncNodeIsSameNode( 5497 this.ref, 5498 ) 5499 } 5500 5501 // FuncIsSameNode returns the method "Node.isSameNode". 5502 func (this Node) FuncIsSameNode() (fn js.Func[func(otherNode Node) bool]) { 5503 bindings.FuncNodeIsSameNode( 5504 this.ref, js.Pointer(&fn), 5505 ) 5506 return 5507 } 5508 5509 // IsSameNode calls the method "Node.isSameNode". 5510 func (this Node) IsSameNode(otherNode Node) (ret bool) { 5511 bindings.CallNodeIsSameNode( 5512 this.ref, js.Pointer(&ret), 5513 otherNode.Ref(), 5514 ) 5515 5516 return 5517 } 5518 5519 // TryIsSameNode calls the method "Node.isSameNode" 5520 // in a try/catch block and returns (_, err, ok = false) when it went through 5521 // the catch clause. 5522 func (this Node) TryIsSameNode(otherNode Node) (ret bool, exception js.Any, ok bool) { 5523 ok = js.True == bindings.TryNodeIsSameNode( 5524 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5525 otherNode.Ref(), 5526 ) 5527 5528 return 5529 } 5530 5531 // HasFuncCompareDocumentPosition returns true if the method "Node.compareDocumentPosition" exists. 5532 func (this Node) HasFuncCompareDocumentPosition() bool { 5533 return js.True == bindings.HasFuncNodeCompareDocumentPosition( 5534 this.ref, 5535 ) 5536 } 5537 5538 // FuncCompareDocumentPosition returns the method "Node.compareDocumentPosition". 5539 func (this Node) FuncCompareDocumentPosition() (fn js.Func[func(other Node) uint16]) { 5540 bindings.FuncNodeCompareDocumentPosition( 5541 this.ref, js.Pointer(&fn), 5542 ) 5543 return 5544 } 5545 5546 // CompareDocumentPosition calls the method "Node.compareDocumentPosition". 5547 func (this Node) CompareDocumentPosition(other Node) (ret uint16) { 5548 bindings.CallNodeCompareDocumentPosition( 5549 this.ref, js.Pointer(&ret), 5550 other.Ref(), 5551 ) 5552 5553 return 5554 } 5555 5556 // TryCompareDocumentPosition calls the method "Node.compareDocumentPosition" 5557 // in a try/catch block and returns (_, err, ok = false) when it went through 5558 // the catch clause. 5559 func (this Node) TryCompareDocumentPosition(other Node) (ret uint16, exception js.Any, ok bool) { 5560 ok = js.True == bindings.TryNodeCompareDocumentPosition( 5561 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5562 other.Ref(), 5563 ) 5564 5565 return 5566 } 5567 5568 // HasFuncContains returns true if the method "Node.contains" exists. 5569 func (this Node) HasFuncContains() bool { 5570 return js.True == bindings.HasFuncNodeContains( 5571 this.ref, 5572 ) 5573 } 5574 5575 // FuncContains returns the method "Node.contains". 5576 func (this Node) FuncContains() (fn js.Func[func(other Node) bool]) { 5577 bindings.FuncNodeContains( 5578 this.ref, js.Pointer(&fn), 5579 ) 5580 return 5581 } 5582 5583 // Contains calls the method "Node.contains". 5584 func (this Node) Contains(other Node) (ret bool) { 5585 bindings.CallNodeContains( 5586 this.ref, js.Pointer(&ret), 5587 other.Ref(), 5588 ) 5589 5590 return 5591 } 5592 5593 // TryContains calls the method "Node.contains" 5594 // in a try/catch block and returns (_, err, ok = false) when it went through 5595 // the catch clause. 5596 func (this Node) TryContains(other Node) (ret bool, exception js.Any, ok bool) { 5597 ok = js.True == bindings.TryNodeContains( 5598 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5599 other.Ref(), 5600 ) 5601 5602 return 5603 } 5604 5605 // HasFuncLookupPrefix returns true if the method "Node.lookupPrefix" exists. 5606 func (this Node) HasFuncLookupPrefix() bool { 5607 return js.True == bindings.HasFuncNodeLookupPrefix( 5608 this.ref, 5609 ) 5610 } 5611 5612 // FuncLookupPrefix returns the method "Node.lookupPrefix". 5613 func (this Node) FuncLookupPrefix() (fn js.Func[func(namespace js.String) js.String]) { 5614 bindings.FuncNodeLookupPrefix( 5615 this.ref, js.Pointer(&fn), 5616 ) 5617 return 5618 } 5619 5620 // LookupPrefix calls the method "Node.lookupPrefix". 5621 func (this Node) LookupPrefix(namespace js.String) (ret js.String) { 5622 bindings.CallNodeLookupPrefix( 5623 this.ref, js.Pointer(&ret), 5624 namespace.Ref(), 5625 ) 5626 5627 return 5628 } 5629 5630 // TryLookupPrefix calls the method "Node.lookupPrefix" 5631 // in a try/catch block and returns (_, err, ok = false) when it went through 5632 // the catch clause. 5633 func (this Node) TryLookupPrefix(namespace js.String) (ret js.String, exception js.Any, ok bool) { 5634 ok = js.True == bindings.TryNodeLookupPrefix( 5635 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5636 namespace.Ref(), 5637 ) 5638 5639 return 5640 } 5641 5642 // HasFuncLookupNamespaceURI returns true if the method "Node.lookupNamespaceURI" exists. 5643 func (this Node) HasFuncLookupNamespaceURI() bool { 5644 return js.True == bindings.HasFuncNodeLookupNamespaceURI( 5645 this.ref, 5646 ) 5647 } 5648 5649 // FuncLookupNamespaceURI returns the method "Node.lookupNamespaceURI". 5650 func (this Node) FuncLookupNamespaceURI() (fn js.Func[func(prefix js.String) js.String]) { 5651 bindings.FuncNodeLookupNamespaceURI( 5652 this.ref, js.Pointer(&fn), 5653 ) 5654 return 5655 } 5656 5657 // LookupNamespaceURI calls the method "Node.lookupNamespaceURI". 5658 func (this Node) LookupNamespaceURI(prefix js.String) (ret js.String) { 5659 bindings.CallNodeLookupNamespaceURI( 5660 this.ref, js.Pointer(&ret), 5661 prefix.Ref(), 5662 ) 5663 5664 return 5665 } 5666 5667 // TryLookupNamespaceURI calls the method "Node.lookupNamespaceURI" 5668 // in a try/catch block and returns (_, err, ok = false) when it went through 5669 // the catch clause. 5670 func (this Node) TryLookupNamespaceURI(prefix js.String) (ret js.String, exception js.Any, ok bool) { 5671 ok = js.True == bindings.TryNodeLookupNamespaceURI( 5672 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5673 prefix.Ref(), 5674 ) 5675 5676 return 5677 } 5678 5679 // HasFuncIsDefaultNamespace returns true if the method "Node.isDefaultNamespace" exists. 5680 func (this Node) HasFuncIsDefaultNamespace() bool { 5681 return js.True == bindings.HasFuncNodeIsDefaultNamespace( 5682 this.ref, 5683 ) 5684 } 5685 5686 // FuncIsDefaultNamespace returns the method "Node.isDefaultNamespace". 5687 func (this Node) FuncIsDefaultNamespace() (fn js.Func[func(namespace js.String) bool]) { 5688 bindings.FuncNodeIsDefaultNamespace( 5689 this.ref, js.Pointer(&fn), 5690 ) 5691 return 5692 } 5693 5694 // IsDefaultNamespace calls the method "Node.isDefaultNamespace". 5695 func (this Node) IsDefaultNamespace(namespace js.String) (ret bool) { 5696 bindings.CallNodeIsDefaultNamespace( 5697 this.ref, js.Pointer(&ret), 5698 namespace.Ref(), 5699 ) 5700 5701 return 5702 } 5703 5704 // TryIsDefaultNamespace calls the method "Node.isDefaultNamespace" 5705 // in a try/catch block and returns (_, err, ok = false) when it went through 5706 // the catch clause. 5707 func (this Node) TryIsDefaultNamespace(namespace js.String) (ret bool, exception js.Any, ok bool) { 5708 ok = js.True == bindings.TryNodeIsDefaultNamespace( 5709 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5710 namespace.Ref(), 5711 ) 5712 5713 return 5714 } 5715 5716 // HasFuncInsertBefore returns true if the method "Node.insertBefore" exists. 5717 func (this Node) HasFuncInsertBefore() bool { 5718 return js.True == bindings.HasFuncNodeInsertBefore( 5719 this.ref, 5720 ) 5721 } 5722 5723 // FuncInsertBefore returns the method "Node.insertBefore". 5724 func (this Node) FuncInsertBefore() (fn js.Func[func(node Node, child Node) Node]) { 5725 bindings.FuncNodeInsertBefore( 5726 this.ref, js.Pointer(&fn), 5727 ) 5728 return 5729 } 5730 5731 // InsertBefore calls the method "Node.insertBefore". 5732 func (this Node) InsertBefore(node Node, child Node) (ret Node) { 5733 bindings.CallNodeInsertBefore( 5734 this.ref, js.Pointer(&ret), 5735 node.Ref(), 5736 child.Ref(), 5737 ) 5738 5739 return 5740 } 5741 5742 // TryInsertBefore calls the method "Node.insertBefore" 5743 // in a try/catch block and returns (_, err, ok = false) when it went through 5744 // the catch clause. 5745 func (this Node) TryInsertBefore(node Node, child Node) (ret Node, exception js.Any, ok bool) { 5746 ok = js.True == bindings.TryNodeInsertBefore( 5747 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5748 node.Ref(), 5749 child.Ref(), 5750 ) 5751 5752 return 5753 } 5754 5755 // HasFuncAppendChild returns true if the method "Node.appendChild" exists. 5756 func (this Node) HasFuncAppendChild() bool { 5757 return js.True == bindings.HasFuncNodeAppendChild( 5758 this.ref, 5759 ) 5760 } 5761 5762 // FuncAppendChild returns the method "Node.appendChild". 5763 func (this Node) FuncAppendChild() (fn js.Func[func(node Node) Node]) { 5764 bindings.FuncNodeAppendChild( 5765 this.ref, js.Pointer(&fn), 5766 ) 5767 return 5768 } 5769 5770 // AppendChild calls the method "Node.appendChild". 5771 func (this Node) AppendChild(node Node) (ret Node) { 5772 bindings.CallNodeAppendChild( 5773 this.ref, js.Pointer(&ret), 5774 node.Ref(), 5775 ) 5776 5777 return 5778 } 5779 5780 // TryAppendChild calls the method "Node.appendChild" 5781 // in a try/catch block and returns (_, err, ok = false) when it went through 5782 // the catch clause. 5783 func (this Node) TryAppendChild(node Node) (ret Node, exception js.Any, ok bool) { 5784 ok = js.True == bindings.TryNodeAppendChild( 5785 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5786 node.Ref(), 5787 ) 5788 5789 return 5790 } 5791 5792 // HasFuncReplaceChild returns true if the method "Node.replaceChild" exists. 5793 func (this Node) HasFuncReplaceChild() bool { 5794 return js.True == bindings.HasFuncNodeReplaceChild( 5795 this.ref, 5796 ) 5797 } 5798 5799 // FuncReplaceChild returns the method "Node.replaceChild". 5800 func (this Node) FuncReplaceChild() (fn js.Func[func(node Node, child Node) Node]) { 5801 bindings.FuncNodeReplaceChild( 5802 this.ref, js.Pointer(&fn), 5803 ) 5804 return 5805 } 5806 5807 // ReplaceChild calls the method "Node.replaceChild". 5808 func (this Node) ReplaceChild(node Node, child Node) (ret Node) { 5809 bindings.CallNodeReplaceChild( 5810 this.ref, js.Pointer(&ret), 5811 node.Ref(), 5812 child.Ref(), 5813 ) 5814 5815 return 5816 } 5817 5818 // TryReplaceChild calls the method "Node.replaceChild" 5819 // in a try/catch block and returns (_, err, ok = false) when it went through 5820 // the catch clause. 5821 func (this Node) TryReplaceChild(node Node, child Node) (ret Node, exception js.Any, ok bool) { 5822 ok = js.True == bindings.TryNodeReplaceChild( 5823 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5824 node.Ref(), 5825 child.Ref(), 5826 ) 5827 5828 return 5829 } 5830 5831 // HasFuncRemoveChild returns true if the method "Node.removeChild" exists. 5832 func (this Node) HasFuncRemoveChild() bool { 5833 return js.True == bindings.HasFuncNodeRemoveChild( 5834 this.ref, 5835 ) 5836 } 5837 5838 // FuncRemoveChild returns the method "Node.removeChild". 5839 func (this Node) FuncRemoveChild() (fn js.Func[func(child Node) Node]) { 5840 bindings.FuncNodeRemoveChild( 5841 this.ref, js.Pointer(&fn), 5842 ) 5843 return 5844 } 5845 5846 // RemoveChild calls the method "Node.removeChild". 5847 func (this Node) RemoveChild(child Node) (ret Node) { 5848 bindings.CallNodeRemoveChild( 5849 this.ref, js.Pointer(&ret), 5850 child.Ref(), 5851 ) 5852 5853 return 5854 } 5855 5856 // TryRemoveChild calls the method "Node.removeChild" 5857 // in a try/catch block and returns (_, err, ok = false) when it went through 5858 // the catch clause. 5859 func (this Node) TryRemoveChild(child Node) (ret Node, exception js.Any, ok bool) { 5860 ok = js.True == bindings.TryNodeRemoveChild( 5861 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5862 child.Ref(), 5863 ) 5864 5865 return 5866 } 5867 5868 type AbstractRange struct { 5869 ref js.Ref 5870 } 5871 5872 func (this AbstractRange) Once() AbstractRange { 5873 this.ref.Once() 5874 return this 5875 } 5876 5877 func (this AbstractRange) Ref() js.Ref { 5878 return this.ref 5879 } 5880 5881 func (this AbstractRange) FromRef(ref js.Ref) AbstractRange { 5882 this.ref = ref 5883 return this 5884 } 5885 5886 func (this AbstractRange) Free() { 5887 this.ref.Free() 5888 } 5889 5890 // StartContainer returns the value of property "AbstractRange.startContainer". 5891 // 5892 // It returns ok=false if there is no such property. 5893 func (this AbstractRange) StartContainer() (ret Node, ok bool) { 5894 ok = js.True == bindings.GetAbstractRangeStartContainer( 5895 this.ref, js.Pointer(&ret), 5896 ) 5897 return 5898 } 5899 5900 // StartOffset returns the value of property "AbstractRange.startOffset". 5901 // 5902 // It returns ok=false if there is no such property. 5903 func (this AbstractRange) StartOffset() (ret uint32, ok bool) { 5904 ok = js.True == bindings.GetAbstractRangeStartOffset( 5905 this.ref, js.Pointer(&ret), 5906 ) 5907 return 5908 } 5909 5910 // EndContainer returns the value of property "AbstractRange.endContainer". 5911 // 5912 // It returns ok=false if there is no such property. 5913 func (this AbstractRange) EndContainer() (ret Node, ok bool) { 5914 ok = js.True == bindings.GetAbstractRangeEndContainer( 5915 this.ref, js.Pointer(&ret), 5916 ) 5917 return 5918 } 5919 5920 // EndOffset returns the value of property "AbstractRange.endOffset". 5921 // 5922 // It returns ok=false if there is no such property. 5923 func (this AbstractRange) EndOffset() (ret uint32, ok bool) { 5924 ok = js.True == bindings.GetAbstractRangeEndOffset( 5925 this.ref, js.Pointer(&ret), 5926 ) 5927 return 5928 } 5929 5930 // Collapsed returns the value of property "AbstractRange.collapsed". 5931 // 5932 // It returns ok=false if there is no such property. 5933 func (this AbstractRange) Collapsed() (ret bool, ok bool) { 5934 ok = js.True == bindings.GetAbstractRangeCollapsed( 5935 this.ref, js.Pointer(&ret), 5936 ) 5937 return 5938 } 5939 5940 type AccelerometerLocalCoordinateSystem uint32 5941 5942 const ( 5943 _ AccelerometerLocalCoordinateSystem = iota 5944 5945 AccelerometerLocalCoordinateSystem_DEVICE 5946 AccelerometerLocalCoordinateSystem_SCREEN 5947 ) 5948 5949 func (AccelerometerLocalCoordinateSystem) FromRef(str js.Ref) AccelerometerLocalCoordinateSystem { 5950 return AccelerometerLocalCoordinateSystem(bindings.ConstOfAccelerometerLocalCoordinateSystem(str)) 5951 } 5952 5953 func (x AccelerometerLocalCoordinateSystem) String() (string, bool) { 5954 switch x { 5955 case AccelerometerLocalCoordinateSystem_DEVICE: 5956 return "device", true 5957 case AccelerometerLocalCoordinateSystem_SCREEN: 5958 return "screen", true 5959 default: 5960 return "", false 5961 } 5962 } 5963 5964 type AccelerometerSensorOptions struct { 5965 // ReferenceFrame is "AccelerometerSensorOptions.referenceFrame" 5966 // 5967 // Optional, defaults to "device". 5968 ReferenceFrame AccelerometerLocalCoordinateSystem 5969 // Frequency is "AccelerometerSensorOptions.frequency" 5970 // 5971 // Optional 5972 // 5973 // NOTE: FFI_USE_Frequency MUST be set to true to make this field effective. 5974 Frequency float64 5975 5976 FFI_USE_Frequency bool // for Frequency. 5977 5978 FFI_USE bool 5979 } 5980 5981 // FromRef calls UpdateFrom and returns a AccelerometerSensorOptions with all fields set. 5982 func (p AccelerometerSensorOptions) FromRef(ref js.Ref) AccelerometerSensorOptions { 5983 p.UpdateFrom(ref) 5984 return p 5985 } 5986 5987 // New creates a new AccelerometerSensorOptions in the application heap. 5988 func (p AccelerometerSensorOptions) New() js.Ref { 5989 return bindings.AccelerometerSensorOptionsJSLoad( 5990 js.Pointer(&p), js.True, 0, 5991 ) 5992 } 5993 5994 // UpdateFrom copies value of all fields of the heap object to p. 5995 func (p *AccelerometerSensorOptions) UpdateFrom(ref js.Ref) { 5996 bindings.AccelerometerSensorOptionsJSStore( 5997 js.Pointer(p), ref, 5998 ) 5999 } 6000 6001 // Update writes all fields of the p to the heap object referenced by ref. 6002 func (p *AccelerometerSensorOptions) Update(ref js.Ref) { 6003 bindings.AccelerometerSensorOptionsJSLoad( 6004 js.Pointer(p), js.False, ref, 6005 ) 6006 } 6007 6008 // FreeMembers frees fields with heap reference, if recursive is true 6009 // free all heap references reachable from p. 6010 func (p *AccelerometerSensorOptions) FreeMembers(recursive bool) { 6011 } 6012 6013 func NewAccelerometer(options AccelerometerSensorOptions) (ret Accelerometer) { 6014 ret.ref = bindings.NewAccelerometerByAccelerometer( 6015 js.Pointer(&options)) 6016 return 6017 } 6018 6019 func NewAccelerometerByAccelerometer1() (ret Accelerometer) { 6020 ret.ref = bindings.NewAccelerometerByAccelerometer1() 6021 return 6022 } 6023 6024 type Accelerometer struct { 6025 Sensor 6026 } 6027 6028 func (this Accelerometer) Once() Accelerometer { 6029 this.ref.Once() 6030 return this 6031 } 6032 6033 func (this Accelerometer) Ref() js.Ref { 6034 return this.Sensor.Ref() 6035 } 6036 6037 func (this Accelerometer) FromRef(ref js.Ref) Accelerometer { 6038 this.Sensor = this.Sensor.FromRef(ref) 6039 return this 6040 } 6041 6042 func (this Accelerometer) Free() { 6043 this.ref.Free() 6044 } 6045 6046 // X returns the value of property "Accelerometer.x". 6047 // 6048 // It returns ok=false if there is no such property. 6049 func (this Accelerometer) X() (ret float64, ok bool) { 6050 ok = js.True == bindings.GetAccelerometerX( 6051 this.ref, js.Pointer(&ret), 6052 ) 6053 return 6054 } 6055 6056 // Y returns the value of property "Accelerometer.y". 6057 // 6058 // It returns ok=false if there is no such property. 6059 func (this Accelerometer) Y() (ret float64, ok bool) { 6060 ok = js.True == bindings.GetAccelerometerY( 6061 this.ref, js.Pointer(&ret), 6062 ) 6063 return 6064 } 6065 6066 // Z returns the value of property "Accelerometer.z". 6067 // 6068 // It returns ok=false if there is no such property. 6069 func (this Accelerometer) Z() (ret float64, ok bool) { 6070 ok = js.True == bindings.GetAccelerometerZ( 6071 this.ref, js.Pointer(&ret), 6072 ) 6073 return 6074 } 6075 6076 type AccelerometerReadingValues struct { 6077 // X is "AccelerometerReadingValues.x" 6078 // 6079 // Required 6080 X float64 6081 // Y is "AccelerometerReadingValues.y" 6082 // 6083 // Required 6084 Y float64 6085 // Z is "AccelerometerReadingValues.z" 6086 // 6087 // Required 6088 Z float64 6089 6090 FFI_USE bool 6091 } 6092 6093 // FromRef calls UpdateFrom and returns a AccelerometerReadingValues with all fields set. 6094 func (p AccelerometerReadingValues) FromRef(ref js.Ref) AccelerometerReadingValues { 6095 p.UpdateFrom(ref) 6096 return p 6097 } 6098 6099 // New creates a new AccelerometerReadingValues in the application heap. 6100 func (p AccelerometerReadingValues) New() js.Ref { 6101 return bindings.AccelerometerReadingValuesJSLoad( 6102 js.Pointer(&p), js.True, 0, 6103 ) 6104 } 6105 6106 // UpdateFrom copies value of all fields of the heap object to p. 6107 func (p *AccelerometerReadingValues) UpdateFrom(ref js.Ref) { 6108 bindings.AccelerometerReadingValuesJSStore( 6109 js.Pointer(p), ref, 6110 ) 6111 } 6112 6113 // Update writes all fields of the p to the heap object referenced by ref. 6114 func (p *AccelerometerReadingValues) Update(ref js.Ref) { 6115 bindings.AccelerometerReadingValuesJSLoad( 6116 js.Pointer(p), js.False, ref, 6117 ) 6118 } 6119 6120 // FreeMembers frees fields with heap reference, if recursive is true 6121 // free all heap references reachable from p. 6122 func (p *AccelerometerReadingValues) FreeMembers(recursive bool) { 6123 } 6124 6125 type AdRender struct { 6126 // Url is "AdRender.url" 6127 // 6128 // Required 6129 Url js.String 6130 // Width is "AdRender.width" 6131 // 6132 // Optional 6133 Width js.String 6134 // Height is "AdRender.height" 6135 // 6136 // Optional 6137 Height js.String 6138 6139 FFI_USE bool 6140 } 6141 6142 // FromRef calls UpdateFrom and returns a AdRender with all fields set. 6143 func (p AdRender) FromRef(ref js.Ref) AdRender { 6144 p.UpdateFrom(ref) 6145 return p 6146 } 6147 6148 // New creates a new AdRender in the application heap. 6149 func (p AdRender) New() js.Ref { 6150 return bindings.AdRenderJSLoad( 6151 js.Pointer(&p), js.True, 0, 6152 ) 6153 } 6154 6155 // UpdateFrom copies value of all fields of the heap object to p. 6156 func (p *AdRender) UpdateFrom(ref js.Ref) { 6157 bindings.AdRenderJSStore( 6158 js.Pointer(p), ref, 6159 ) 6160 } 6161 6162 // Update writes all fields of the p to the heap object referenced by ref. 6163 func (p *AdRender) Update(ref js.Ref) { 6164 bindings.AdRenderJSLoad( 6165 js.Pointer(p), js.False, ref, 6166 ) 6167 } 6168 6169 // FreeMembers frees fields with heap reference, if recursive is true 6170 // free all heap references reachable from p. 6171 func (p *AdRender) FreeMembers(recursive bool) { 6172 js.Free( 6173 p.Url.Ref(), 6174 p.Width.Ref(), 6175 p.Height.Ref(), 6176 ) 6177 p.Url = p.Url.FromRef(js.Undefined) 6178 p.Width = p.Width.FromRef(js.Undefined) 6179 p.Height = p.Height.FromRef(js.Undefined) 6180 } 6181 6182 type AddressErrors struct { 6183 // AddressLine is "AddressErrors.addressLine" 6184 // 6185 // Optional 6186 AddressLine js.String 6187 // City is "AddressErrors.city" 6188 // 6189 // Optional 6190 City js.String 6191 // Country is "AddressErrors.country" 6192 // 6193 // Optional 6194 Country js.String 6195 // DependentLocality is "AddressErrors.dependentLocality" 6196 // 6197 // Optional 6198 DependentLocality js.String 6199 // Organization is "AddressErrors.organization" 6200 // 6201 // Optional 6202 Organization js.String 6203 // Phone is "AddressErrors.phone" 6204 // 6205 // Optional 6206 Phone js.String 6207 // PostalCode is "AddressErrors.postalCode" 6208 // 6209 // Optional 6210 PostalCode js.String 6211 // Recipient is "AddressErrors.recipient" 6212 // 6213 // Optional 6214 Recipient js.String 6215 // Region is "AddressErrors.region" 6216 // 6217 // Optional 6218 Region js.String 6219 // SortingCode is "AddressErrors.sortingCode" 6220 // 6221 // Optional 6222 SortingCode js.String 6223 6224 FFI_USE bool 6225 } 6226 6227 // FromRef calls UpdateFrom and returns a AddressErrors with all fields set. 6228 func (p AddressErrors) FromRef(ref js.Ref) AddressErrors { 6229 p.UpdateFrom(ref) 6230 return p 6231 } 6232 6233 // New creates a new AddressErrors in the application heap. 6234 func (p AddressErrors) New() js.Ref { 6235 return bindings.AddressErrorsJSLoad( 6236 js.Pointer(&p), js.True, 0, 6237 ) 6238 } 6239 6240 // UpdateFrom copies value of all fields of the heap object to p. 6241 func (p *AddressErrors) UpdateFrom(ref js.Ref) { 6242 bindings.AddressErrorsJSStore( 6243 js.Pointer(p), ref, 6244 ) 6245 } 6246 6247 // Update writes all fields of the p to the heap object referenced by ref. 6248 func (p *AddressErrors) Update(ref js.Ref) { 6249 bindings.AddressErrorsJSLoad( 6250 js.Pointer(p), js.False, ref, 6251 ) 6252 } 6253 6254 // FreeMembers frees fields with heap reference, if recursive is true 6255 // free all heap references reachable from p. 6256 func (p *AddressErrors) FreeMembers(recursive bool) { 6257 js.Free( 6258 p.AddressLine.Ref(), 6259 p.City.Ref(), 6260 p.Country.Ref(), 6261 p.DependentLocality.Ref(), 6262 p.Organization.Ref(), 6263 p.Phone.Ref(), 6264 p.PostalCode.Ref(), 6265 p.Recipient.Ref(), 6266 p.Region.Ref(), 6267 p.SortingCode.Ref(), 6268 ) 6269 p.AddressLine = p.AddressLine.FromRef(js.Undefined) 6270 p.City = p.City.FromRef(js.Undefined) 6271 p.Country = p.Country.FromRef(js.Undefined) 6272 p.DependentLocality = p.DependentLocality.FromRef(js.Undefined) 6273 p.Organization = p.Organization.FromRef(js.Undefined) 6274 p.Phone = p.Phone.FromRef(js.Undefined) 6275 p.PostalCode = p.PostalCode.FromRef(js.Undefined) 6276 p.Recipient = p.Recipient.FromRef(js.Undefined) 6277 p.Region = p.Region.FromRef(js.Undefined) 6278 p.SortingCode = p.SortingCode.FromRef(js.Undefined) 6279 } 6280 6281 type AddressInit struct { 6282 // Country is "AddressInit.country" 6283 // 6284 // Optional, defaults to "". 6285 Country js.String 6286 // AddressLine is "AddressInit.addressLine" 6287 // 6288 // Optional, defaults to []. 6289 AddressLine js.Array[js.String] 6290 // Region is "AddressInit.region" 6291 // 6292 // Optional, defaults to "". 6293 Region js.String 6294 // City is "AddressInit.city" 6295 // 6296 // Optional, defaults to "". 6297 City js.String 6298 // DependentLocality is "AddressInit.dependentLocality" 6299 // 6300 // Optional, defaults to "". 6301 DependentLocality js.String 6302 // PostalCode is "AddressInit.postalCode" 6303 // 6304 // Optional, defaults to "". 6305 PostalCode js.String 6306 // SortingCode is "AddressInit.sortingCode" 6307 // 6308 // Optional, defaults to "". 6309 SortingCode js.String 6310 // Organization is "AddressInit.organization" 6311 // 6312 // Optional, defaults to "". 6313 Organization js.String 6314 // Recipient is "AddressInit.recipient" 6315 // 6316 // Optional, defaults to "". 6317 Recipient js.String 6318 // Phone is "AddressInit.phone" 6319 // 6320 // Optional, defaults to "". 6321 Phone js.String 6322 6323 FFI_USE bool 6324 } 6325 6326 // FromRef calls UpdateFrom and returns a AddressInit with all fields set. 6327 func (p AddressInit) FromRef(ref js.Ref) AddressInit { 6328 p.UpdateFrom(ref) 6329 return p 6330 } 6331 6332 // New creates a new AddressInit in the application heap. 6333 func (p AddressInit) New() js.Ref { 6334 return bindings.AddressInitJSLoad( 6335 js.Pointer(&p), js.True, 0, 6336 ) 6337 } 6338 6339 // UpdateFrom copies value of all fields of the heap object to p. 6340 func (p *AddressInit) UpdateFrom(ref js.Ref) { 6341 bindings.AddressInitJSStore( 6342 js.Pointer(p), ref, 6343 ) 6344 } 6345 6346 // Update writes all fields of the p to the heap object referenced by ref. 6347 func (p *AddressInit) Update(ref js.Ref) { 6348 bindings.AddressInitJSLoad( 6349 js.Pointer(p), js.False, ref, 6350 ) 6351 } 6352 6353 // FreeMembers frees fields with heap reference, if recursive is true 6354 // free all heap references reachable from p. 6355 func (p *AddressInit) FreeMembers(recursive bool) { 6356 js.Free( 6357 p.Country.Ref(), 6358 p.AddressLine.Ref(), 6359 p.Region.Ref(), 6360 p.City.Ref(), 6361 p.DependentLocality.Ref(), 6362 p.PostalCode.Ref(), 6363 p.SortingCode.Ref(), 6364 p.Organization.Ref(), 6365 p.Recipient.Ref(), 6366 p.Phone.Ref(), 6367 ) 6368 p.Country = p.Country.FromRef(js.Undefined) 6369 p.AddressLine = p.AddressLine.FromRef(js.Undefined) 6370 p.Region = p.Region.FromRef(js.Undefined) 6371 p.City = p.City.FromRef(js.Undefined) 6372 p.DependentLocality = p.DependentLocality.FromRef(js.Undefined) 6373 p.PostalCode = p.PostalCode.FromRef(js.Undefined) 6374 p.SortingCode = p.SortingCode.FromRef(js.Undefined) 6375 p.Organization = p.Organization.FromRef(js.Undefined) 6376 p.Recipient = p.Recipient.FromRef(js.Undefined) 6377 p.Phone = p.Phone.FromRef(js.Undefined) 6378 } 6379 6380 type OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer struct { 6381 ref js.Ref 6382 } 6383 6384 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) Ref() js.Ref { 6385 return x.ref 6386 } 6387 6388 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) Free() { 6389 x.ref.Free() 6390 } 6391 6392 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) FromRef(ref js.Ref) OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer { 6393 return OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer{ 6394 ref: ref, 6395 } 6396 } 6397 6398 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayInt8() js.TypedArray[int8] { 6399 return js.TypedArray[int8]{}.FromRef(x.ref) 6400 } 6401 6402 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayInt16() js.TypedArray[int16] { 6403 return js.TypedArray[int16]{}.FromRef(x.ref) 6404 } 6405 6406 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayInt32() js.TypedArray[int32] { 6407 return js.TypedArray[int32]{}.FromRef(x.ref) 6408 } 6409 6410 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayUint8() js.TypedArray[uint8] { 6411 return js.TypedArray[uint8]{}.FromRef(x.ref) 6412 } 6413 6414 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayUint16() js.TypedArray[uint16] { 6415 return js.TypedArray[uint16]{}.FromRef(x.ref) 6416 } 6417 6418 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayUint32() js.TypedArray[uint32] { 6419 return js.TypedArray[uint32]{}.FromRef(x.ref) 6420 } 6421 6422 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayInt64() js.TypedArray[int64] { 6423 return js.TypedArray[int64]{}.FromRef(x.ref) 6424 } 6425 6426 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayUint64() js.TypedArray[uint64] { 6427 return js.TypedArray[uint64]{}.FromRef(x.ref) 6428 } 6429 6430 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayFloat32() js.TypedArray[float32] { 6431 return js.TypedArray[float32]{}.FromRef(x.ref) 6432 } 6433 6434 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) TypedArrayFloat64() js.TypedArray[float64] { 6435 return js.TypedArray[float64]{}.FromRef(x.ref) 6436 } 6437 6438 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) DataView() js.DataView { 6439 return js.DataView{}.FromRef(x.ref) 6440 } 6441 6442 func (x OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer) ArrayBuffer() js.ArrayBuffer { 6443 return js.ArrayBuffer{}.FromRef(x.ref) 6444 } 6445 6446 type BufferSource = OneOf_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer 6447 6448 type AesCbcParams struct { 6449 // Iv is "AesCbcParams.iv" 6450 // 6451 // Required 6452 Iv BufferSource 6453 // Name is "AesCbcParams.name" 6454 // 6455 // Required 6456 Name js.String 6457 6458 FFI_USE bool 6459 } 6460 6461 // FromRef calls UpdateFrom and returns a AesCbcParams with all fields set. 6462 func (p AesCbcParams) FromRef(ref js.Ref) AesCbcParams { 6463 p.UpdateFrom(ref) 6464 return p 6465 } 6466 6467 // New creates a new AesCbcParams in the application heap. 6468 func (p AesCbcParams) New() js.Ref { 6469 return bindings.AesCbcParamsJSLoad( 6470 js.Pointer(&p), js.True, 0, 6471 ) 6472 } 6473 6474 // UpdateFrom copies value of all fields of the heap object to p. 6475 func (p *AesCbcParams) UpdateFrom(ref js.Ref) { 6476 bindings.AesCbcParamsJSStore( 6477 js.Pointer(p), ref, 6478 ) 6479 } 6480 6481 // Update writes all fields of the p to the heap object referenced by ref. 6482 func (p *AesCbcParams) Update(ref js.Ref) { 6483 bindings.AesCbcParamsJSLoad( 6484 js.Pointer(p), js.False, ref, 6485 ) 6486 } 6487 6488 // FreeMembers frees fields with heap reference, if recursive is true 6489 // free all heap references reachable from p. 6490 func (p *AesCbcParams) FreeMembers(recursive bool) { 6491 js.Free( 6492 p.Iv.Ref(), 6493 p.Name.Ref(), 6494 ) 6495 p.Iv = p.Iv.FromRef(js.Undefined) 6496 p.Name = p.Name.FromRef(js.Undefined) 6497 } 6498 6499 type AesCtrParams struct { 6500 // Counter is "AesCtrParams.counter" 6501 // 6502 // Required 6503 Counter BufferSource 6504 // Length is "AesCtrParams.length" 6505 // 6506 // Required 6507 Length uint8 6508 // Name is "AesCtrParams.name" 6509 // 6510 // Required 6511 Name js.String 6512 6513 FFI_USE bool 6514 } 6515 6516 // FromRef calls UpdateFrom and returns a AesCtrParams with all fields set. 6517 func (p AesCtrParams) FromRef(ref js.Ref) AesCtrParams { 6518 p.UpdateFrom(ref) 6519 return p 6520 } 6521 6522 // New creates a new AesCtrParams in the application heap. 6523 func (p AesCtrParams) New() js.Ref { 6524 return bindings.AesCtrParamsJSLoad( 6525 js.Pointer(&p), js.True, 0, 6526 ) 6527 } 6528 6529 // UpdateFrom copies value of all fields of the heap object to p. 6530 func (p *AesCtrParams) UpdateFrom(ref js.Ref) { 6531 bindings.AesCtrParamsJSStore( 6532 js.Pointer(p), ref, 6533 ) 6534 } 6535 6536 // Update writes all fields of the p to the heap object referenced by ref. 6537 func (p *AesCtrParams) Update(ref js.Ref) { 6538 bindings.AesCtrParamsJSLoad( 6539 js.Pointer(p), js.False, ref, 6540 ) 6541 } 6542 6543 // FreeMembers frees fields with heap reference, if recursive is true 6544 // free all heap references reachable from p. 6545 func (p *AesCtrParams) FreeMembers(recursive bool) { 6546 js.Free( 6547 p.Counter.Ref(), 6548 p.Name.Ref(), 6549 ) 6550 p.Counter = p.Counter.FromRef(js.Undefined) 6551 p.Name = p.Name.FromRef(js.Undefined) 6552 } 6553 6554 type AesDerivedKeyParams struct { 6555 // Length is "AesDerivedKeyParams.length" 6556 // 6557 // Required 6558 Length uint16 6559 // Name is "AesDerivedKeyParams.name" 6560 // 6561 // Required 6562 Name js.String 6563 6564 FFI_USE bool 6565 } 6566 6567 // FromRef calls UpdateFrom and returns a AesDerivedKeyParams with all fields set. 6568 func (p AesDerivedKeyParams) FromRef(ref js.Ref) AesDerivedKeyParams { 6569 p.UpdateFrom(ref) 6570 return p 6571 } 6572 6573 // New creates a new AesDerivedKeyParams in the application heap. 6574 func (p AesDerivedKeyParams) New() js.Ref { 6575 return bindings.AesDerivedKeyParamsJSLoad( 6576 js.Pointer(&p), js.True, 0, 6577 ) 6578 } 6579 6580 // UpdateFrom copies value of all fields of the heap object to p. 6581 func (p *AesDerivedKeyParams) UpdateFrom(ref js.Ref) { 6582 bindings.AesDerivedKeyParamsJSStore( 6583 js.Pointer(p), ref, 6584 ) 6585 } 6586 6587 // Update writes all fields of the p to the heap object referenced by ref. 6588 func (p *AesDerivedKeyParams) Update(ref js.Ref) { 6589 bindings.AesDerivedKeyParamsJSLoad( 6590 js.Pointer(p), js.False, ref, 6591 ) 6592 } 6593 6594 // FreeMembers frees fields with heap reference, if recursive is true 6595 // free all heap references reachable from p. 6596 func (p *AesDerivedKeyParams) FreeMembers(recursive bool) { 6597 js.Free( 6598 p.Name.Ref(), 6599 ) 6600 p.Name = p.Name.FromRef(js.Undefined) 6601 } 6602 6603 type AesGcmParams struct { 6604 // Iv is "AesGcmParams.iv" 6605 // 6606 // Required 6607 Iv BufferSource 6608 // AdditionalData is "AesGcmParams.additionalData" 6609 // 6610 // Optional 6611 AdditionalData BufferSource 6612 // TagLength is "AesGcmParams.tagLength" 6613 // 6614 // Optional 6615 // 6616 // NOTE: FFI_USE_TagLength MUST be set to true to make this field effective. 6617 TagLength uint8 6618 // Name is "AesGcmParams.name" 6619 // 6620 // Required 6621 Name js.String 6622 6623 FFI_USE_TagLength bool // for TagLength. 6624 6625 FFI_USE bool 6626 } 6627 6628 // FromRef calls UpdateFrom and returns a AesGcmParams with all fields set. 6629 func (p AesGcmParams) FromRef(ref js.Ref) AesGcmParams { 6630 p.UpdateFrom(ref) 6631 return p 6632 } 6633 6634 // New creates a new AesGcmParams in the application heap. 6635 func (p AesGcmParams) New() js.Ref { 6636 return bindings.AesGcmParamsJSLoad( 6637 js.Pointer(&p), js.True, 0, 6638 ) 6639 } 6640 6641 // UpdateFrom copies value of all fields of the heap object to p. 6642 func (p *AesGcmParams) UpdateFrom(ref js.Ref) { 6643 bindings.AesGcmParamsJSStore( 6644 js.Pointer(p), ref, 6645 ) 6646 } 6647 6648 // Update writes all fields of the p to the heap object referenced by ref. 6649 func (p *AesGcmParams) Update(ref js.Ref) { 6650 bindings.AesGcmParamsJSLoad( 6651 js.Pointer(p), js.False, ref, 6652 ) 6653 } 6654 6655 // FreeMembers frees fields with heap reference, if recursive is true 6656 // free all heap references reachable from p. 6657 func (p *AesGcmParams) FreeMembers(recursive bool) { 6658 js.Free( 6659 p.Iv.Ref(), 6660 p.AdditionalData.Ref(), 6661 p.Name.Ref(), 6662 ) 6663 p.Iv = p.Iv.FromRef(js.Undefined) 6664 p.AdditionalData = p.AdditionalData.FromRef(js.Undefined) 6665 p.Name = p.Name.FromRef(js.Undefined) 6666 } 6667 6668 type AesKeyAlgorithm struct { 6669 // Length is "AesKeyAlgorithm.length" 6670 // 6671 // Required 6672 Length uint16 6673 // Name is "AesKeyAlgorithm.name" 6674 // 6675 // Required 6676 Name js.String 6677 6678 FFI_USE bool 6679 } 6680 6681 // FromRef calls UpdateFrom and returns a AesKeyAlgorithm with all fields set. 6682 func (p AesKeyAlgorithm) FromRef(ref js.Ref) AesKeyAlgorithm { 6683 p.UpdateFrom(ref) 6684 return p 6685 } 6686 6687 // New creates a new AesKeyAlgorithm in the application heap. 6688 func (p AesKeyAlgorithm) New() js.Ref { 6689 return bindings.AesKeyAlgorithmJSLoad( 6690 js.Pointer(&p), js.True, 0, 6691 ) 6692 } 6693 6694 // UpdateFrom copies value of all fields of the heap object to p. 6695 func (p *AesKeyAlgorithm) UpdateFrom(ref js.Ref) { 6696 bindings.AesKeyAlgorithmJSStore( 6697 js.Pointer(p), ref, 6698 ) 6699 } 6700 6701 // Update writes all fields of the p to the heap object referenced by ref. 6702 func (p *AesKeyAlgorithm) Update(ref js.Ref) { 6703 bindings.AesKeyAlgorithmJSLoad( 6704 js.Pointer(p), js.False, ref, 6705 ) 6706 } 6707 6708 // FreeMembers frees fields with heap reference, if recursive is true 6709 // free all heap references reachable from p. 6710 func (p *AesKeyAlgorithm) FreeMembers(recursive bool) { 6711 js.Free( 6712 p.Name.Ref(), 6713 ) 6714 p.Name = p.Name.FromRef(js.Undefined) 6715 } 6716 6717 type AesKeyGenParams struct { 6718 // Length is "AesKeyGenParams.length" 6719 // 6720 // Required 6721 Length uint16 6722 // Name is "AesKeyGenParams.name" 6723 // 6724 // Required 6725 Name js.String 6726 6727 FFI_USE bool 6728 } 6729 6730 // FromRef calls UpdateFrom and returns a AesKeyGenParams with all fields set. 6731 func (p AesKeyGenParams) FromRef(ref js.Ref) AesKeyGenParams { 6732 p.UpdateFrom(ref) 6733 return p 6734 } 6735 6736 // New creates a new AesKeyGenParams in the application heap. 6737 func (p AesKeyGenParams) New() js.Ref { 6738 return bindings.AesKeyGenParamsJSLoad( 6739 js.Pointer(&p), js.True, 0, 6740 ) 6741 } 6742 6743 // UpdateFrom copies value of all fields of the heap object to p. 6744 func (p *AesKeyGenParams) UpdateFrom(ref js.Ref) { 6745 bindings.AesKeyGenParamsJSStore( 6746 js.Pointer(p), ref, 6747 ) 6748 } 6749 6750 // Update writes all fields of the p to the heap object referenced by ref. 6751 func (p *AesKeyGenParams) Update(ref js.Ref) { 6752 bindings.AesKeyGenParamsJSLoad( 6753 js.Pointer(p), js.False, ref, 6754 ) 6755 } 6756 6757 // FreeMembers frees fields with heap reference, if recursive is true 6758 // free all heap references reachable from p. 6759 func (p *AesKeyGenParams) FreeMembers(recursive bool) { 6760 js.Free( 6761 p.Name.Ref(), 6762 ) 6763 p.Name = p.Name.FromRef(js.Undefined) 6764 } 6765 6766 type Algorithm struct { 6767 // Name is "Algorithm.name" 6768 // 6769 // Required 6770 Name js.String 6771 6772 FFI_USE bool 6773 } 6774 6775 // FromRef calls UpdateFrom and returns a Algorithm with all fields set. 6776 func (p Algorithm) FromRef(ref js.Ref) Algorithm { 6777 p.UpdateFrom(ref) 6778 return p 6779 } 6780 6781 // New creates a new Algorithm in the application heap. 6782 func (p Algorithm) New() js.Ref { 6783 return bindings.AlgorithmJSLoad( 6784 js.Pointer(&p), js.True, 0, 6785 ) 6786 } 6787 6788 // UpdateFrom copies value of all fields of the heap object to p. 6789 func (p *Algorithm) UpdateFrom(ref js.Ref) { 6790 bindings.AlgorithmJSStore( 6791 js.Pointer(p), ref, 6792 ) 6793 } 6794 6795 // Update writes all fields of the p to the heap object referenced by ref. 6796 func (p *Algorithm) Update(ref js.Ref) { 6797 bindings.AlgorithmJSLoad( 6798 js.Pointer(p), js.False, ref, 6799 ) 6800 } 6801 6802 // FreeMembers frees fields with heap reference, if recursive is true 6803 // free all heap references reachable from p. 6804 func (p *Algorithm) FreeMembers(recursive bool) { 6805 js.Free( 6806 p.Name.Ref(), 6807 ) 6808 p.Name = p.Name.FromRef(js.Undefined) 6809 } 6810 6811 type OneOf_Object_String struct { 6812 ref js.Ref 6813 } 6814 6815 func (x OneOf_Object_String) Ref() js.Ref { 6816 return x.ref 6817 } 6818 6819 func (x OneOf_Object_String) Free() { 6820 x.ref.Free() 6821 } 6822 6823 func (x OneOf_Object_String) FromRef(ref js.Ref) OneOf_Object_String { 6824 return OneOf_Object_String{ 6825 ref: ref, 6826 } 6827 } 6828 6829 func (x OneOf_Object_String) Object() js.Object { 6830 return js.Object{}.FromRef(x.ref) 6831 } 6832 6833 func (x OneOf_Object_String) String() js.String { 6834 return js.String{}.FromRef(x.ref) 6835 } 6836 6837 type AlgorithmIdentifier = OneOf_Object_String 6838 6839 type AlignSetting uint32 6840 6841 const ( 6842 _ AlignSetting = iota 6843 6844 AlignSetting_START 6845 AlignSetting_CENTER 6846 AlignSetting_END 6847 AlignSetting_LEFT 6848 AlignSetting_RIGHT 6849 ) 6850 6851 func (AlignSetting) FromRef(str js.Ref) AlignSetting { 6852 return AlignSetting(bindings.ConstOfAlignSetting(str)) 6853 } 6854 6855 func (x AlignSetting) String() (string, bool) { 6856 switch x { 6857 case AlignSetting_START: 6858 return "start", true 6859 case AlignSetting_CENTER: 6860 return "center", true 6861 case AlignSetting_END: 6862 return "end", true 6863 case AlignSetting_LEFT: 6864 return "left", true 6865 case AlignSetting_RIGHT: 6866 return "right", true 6867 default: 6868 return "", false 6869 } 6870 } 6871 6872 type OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView struct { 6873 ref js.Ref 6874 } 6875 6876 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) Ref() js.Ref { 6877 return x.ref 6878 } 6879 6880 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) Free() { 6881 x.ref.Free() 6882 } 6883 6884 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) FromRef(ref js.Ref) OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView { 6885 return OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView{ 6886 ref: ref, 6887 } 6888 } 6889 6890 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) ArrayBuffer() js.ArrayBuffer { 6891 return js.ArrayBuffer{}.FromRef(x.ref) 6892 } 6893 6894 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) SharedArrayBuffer() js.SharedArrayBuffer { 6895 return js.SharedArrayBuffer{}.FromRef(x.ref) 6896 } 6897 6898 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt8() js.TypedArray[int8] { 6899 return js.TypedArray[int8]{}.FromRef(x.ref) 6900 } 6901 6902 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt16() js.TypedArray[int16] { 6903 return js.TypedArray[int16]{}.FromRef(x.ref) 6904 } 6905 6906 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt32() js.TypedArray[int32] { 6907 return js.TypedArray[int32]{}.FromRef(x.ref) 6908 } 6909 6910 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint8() js.TypedArray[uint8] { 6911 return js.TypedArray[uint8]{}.FromRef(x.ref) 6912 } 6913 6914 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint16() js.TypedArray[uint16] { 6915 return js.TypedArray[uint16]{}.FromRef(x.ref) 6916 } 6917 6918 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint32() js.TypedArray[uint32] { 6919 return js.TypedArray[uint32]{}.FromRef(x.ref) 6920 } 6921 6922 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayInt64() js.TypedArray[int64] { 6923 return js.TypedArray[int64]{}.FromRef(x.ref) 6924 } 6925 6926 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayUint64() js.TypedArray[uint64] { 6927 return js.TypedArray[uint64]{}.FromRef(x.ref) 6928 } 6929 6930 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayFloat32() js.TypedArray[float32] { 6931 return js.TypedArray[float32]{}.FromRef(x.ref) 6932 } 6933 6934 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) TypedArrayFloat64() js.TypedArray[float64] { 6935 return js.TypedArray[float64]{}.FromRef(x.ref) 6936 } 6937 6938 func (x OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView) DataView() js.DataView { 6939 return js.DataView{}.FromRef(x.ref) 6940 } 6941 6942 type AllowSharedBufferSource = OneOf_ArrayBuffer_SharedArrayBuffer_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView 6943 6944 type UUID = js.String 6945 6946 type OneOf_String_ArrayUUID struct { 6947 ref js.Ref 6948 } 6949 6950 func (x OneOf_String_ArrayUUID) Ref() js.Ref { 6951 return x.ref 6952 } 6953 6954 func (x OneOf_String_ArrayUUID) Free() { 6955 x.ref.Free() 6956 } 6957 6958 func (x OneOf_String_ArrayUUID) FromRef(ref js.Ref) OneOf_String_ArrayUUID { 6959 return OneOf_String_ArrayUUID{ 6960 ref: ref, 6961 } 6962 } 6963 6964 func (x OneOf_String_ArrayUUID) String() js.String { 6965 return js.String{}.FromRef(x.ref) 6966 } 6967 6968 func (x OneOf_String_ArrayUUID) ArrayUUID() js.Array[UUID] { 6969 return js.Array[UUID]{}.FromRef(x.ref) 6970 } 6971 6972 type AllowedBluetoothDevice struct { 6973 // DeviceId is "AllowedBluetoothDevice.deviceId" 6974 // 6975 // Required 6976 DeviceId js.String 6977 // MayUseGATT is "AllowedBluetoothDevice.mayUseGATT" 6978 // 6979 // Required 6980 MayUseGATT bool 6981 // AllowedServices is "AllowedBluetoothDevice.allowedServices" 6982 // 6983 // Required 6984 AllowedServices OneOf_String_ArrayUUID 6985 // AllowedManufacturerData is "AllowedBluetoothDevice.allowedManufacturerData" 6986 // 6987 // Required 6988 AllowedManufacturerData js.Array[uint16] 6989 6990 FFI_USE bool 6991 } 6992 6993 // FromRef calls UpdateFrom and returns a AllowedBluetoothDevice with all fields set. 6994 func (p AllowedBluetoothDevice) FromRef(ref js.Ref) AllowedBluetoothDevice { 6995 p.UpdateFrom(ref) 6996 return p 6997 } 6998 6999 // New creates a new AllowedBluetoothDevice in the application heap. 7000 func (p AllowedBluetoothDevice) New() js.Ref { 7001 return bindings.AllowedBluetoothDeviceJSLoad( 7002 js.Pointer(&p), js.True, 0, 7003 ) 7004 } 7005 7006 // UpdateFrom copies value of all fields of the heap object to p. 7007 func (p *AllowedBluetoothDevice) UpdateFrom(ref js.Ref) { 7008 bindings.AllowedBluetoothDeviceJSStore( 7009 js.Pointer(p), ref, 7010 ) 7011 } 7012 7013 // Update writes all fields of the p to the heap object referenced by ref. 7014 func (p *AllowedBluetoothDevice) Update(ref js.Ref) { 7015 bindings.AllowedBluetoothDeviceJSLoad( 7016 js.Pointer(p), js.False, ref, 7017 ) 7018 } 7019 7020 // FreeMembers frees fields with heap reference, if recursive is true 7021 // free all heap references reachable from p. 7022 func (p *AllowedBluetoothDevice) FreeMembers(recursive bool) { 7023 js.Free( 7024 p.DeviceId.Ref(), 7025 p.AllowedServices.Ref(), 7026 p.AllowedManufacturerData.Ref(), 7027 ) 7028 p.DeviceId = p.DeviceId.FromRef(js.Undefined) 7029 p.AllowedServices = p.AllowedServices.FromRef(js.Undefined) 7030 p.AllowedManufacturerData = p.AllowedManufacturerData.FromRef(js.Undefined) 7031 } 7032 7033 type AllowedUSBDevice struct { 7034 // VendorId is "AllowedUSBDevice.vendorId" 7035 // 7036 // Required 7037 VendorId uint8 7038 // ProductId is "AllowedUSBDevice.productId" 7039 // 7040 // Required 7041 ProductId uint8 7042 // SerialNumber is "AllowedUSBDevice.serialNumber" 7043 // 7044 // Optional 7045 SerialNumber js.String 7046 7047 FFI_USE bool 7048 } 7049 7050 // FromRef calls UpdateFrom and returns a AllowedUSBDevice with all fields set. 7051 func (p AllowedUSBDevice) FromRef(ref js.Ref) AllowedUSBDevice { 7052 p.UpdateFrom(ref) 7053 return p 7054 } 7055 7056 // New creates a new AllowedUSBDevice in the application heap. 7057 func (p AllowedUSBDevice) New() js.Ref { 7058 return bindings.AllowedUSBDeviceJSLoad( 7059 js.Pointer(&p), js.True, 0, 7060 ) 7061 } 7062 7063 // UpdateFrom copies value of all fields of the heap object to p. 7064 func (p *AllowedUSBDevice) UpdateFrom(ref js.Ref) { 7065 bindings.AllowedUSBDeviceJSStore( 7066 js.Pointer(p), ref, 7067 ) 7068 } 7069 7070 // Update writes all fields of the p to the heap object referenced by ref. 7071 func (p *AllowedUSBDevice) Update(ref js.Ref) { 7072 bindings.AllowedUSBDeviceJSLoad( 7073 js.Pointer(p), js.False, ref, 7074 ) 7075 } 7076 7077 // FreeMembers frees fields with heap reference, if recursive is true 7078 // free all heap references reachable from p. 7079 func (p *AllowedUSBDevice) FreeMembers(recursive bool) { 7080 js.Free( 7081 p.SerialNumber.Ref(), 7082 ) 7083 p.SerialNumber = p.SerialNumber.FromRef(js.Undefined) 7084 } 7085 7086 type AlphaOption uint32 7087 7088 const ( 7089 _ AlphaOption = iota 7090 7091 AlphaOption_KEEP 7092 AlphaOption_DISCARD 7093 ) 7094 7095 func (AlphaOption) FromRef(str js.Ref) AlphaOption { 7096 return AlphaOption(bindings.ConstOfAlphaOption(str)) 7097 } 7098 7099 func (x AlphaOption) String() (string, bool) { 7100 switch x { 7101 case AlphaOption_KEEP: 7102 return "keep", true 7103 case AlphaOption_DISCARD: 7104 return "discard", true 7105 default: 7106 return "", false 7107 } 7108 } 7109 7110 type AmbientLightReadingValues struct { 7111 // Illuminance is "AmbientLightReadingValues.illuminance" 7112 // 7113 // Required 7114 Illuminance float64 7115 7116 FFI_USE bool 7117 } 7118 7119 // FromRef calls UpdateFrom and returns a AmbientLightReadingValues with all fields set. 7120 func (p AmbientLightReadingValues) FromRef(ref js.Ref) AmbientLightReadingValues { 7121 p.UpdateFrom(ref) 7122 return p 7123 } 7124 7125 // New creates a new AmbientLightReadingValues in the application heap. 7126 func (p AmbientLightReadingValues) New() js.Ref { 7127 return bindings.AmbientLightReadingValuesJSLoad( 7128 js.Pointer(&p), js.True, 0, 7129 ) 7130 } 7131 7132 // UpdateFrom copies value of all fields of the heap object to p. 7133 func (p *AmbientLightReadingValues) UpdateFrom(ref js.Ref) { 7134 bindings.AmbientLightReadingValuesJSStore( 7135 js.Pointer(p), ref, 7136 ) 7137 } 7138 7139 // Update writes all fields of the p to the heap object referenced by ref. 7140 func (p *AmbientLightReadingValues) Update(ref js.Ref) { 7141 bindings.AmbientLightReadingValuesJSLoad( 7142 js.Pointer(p), js.False, ref, 7143 ) 7144 } 7145 7146 // FreeMembers frees fields with heap reference, if recursive is true 7147 // free all heap references reachable from p. 7148 func (p *AmbientLightReadingValues) FreeMembers(recursive bool) { 7149 } 7150 7151 type SensorOptions struct { 7152 // Frequency is "SensorOptions.frequency" 7153 // 7154 // Optional 7155 // 7156 // NOTE: FFI_USE_Frequency MUST be set to true to make this field effective. 7157 Frequency float64 7158 7159 FFI_USE_Frequency bool // for Frequency. 7160 7161 FFI_USE bool 7162 } 7163 7164 // FromRef calls UpdateFrom and returns a SensorOptions with all fields set. 7165 func (p SensorOptions) FromRef(ref js.Ref) SensorOptions { 7166 p.UpdateFrom(ref) 7167 return p 7168 } 7169 7170 // New creates a new SensorOptions in the application heap. 7171 func (p SensorOptions) New() js.Ref { 7172 return bindings.SensorOptionsJSLoad( 7173 js.Pointer(&p), js.True, 0, 7174 ) 7175 } 7176 7177 // UpdateFrom copies value of all fields of the heap object to p. 7178 func (p *SensorOptions) UpdateFrom(ref js.Ref) { 7179 bindings.SensorOptionsJSStore( 7180 js.Pointer(p), ref, 7181 ) 7182 } 7183 7184 // Update writes all fields of the p to the heap object referenced by ref. 7185 func (p *SensorOptions) Update(ref js.Ref) { 7186 bindings.SensorOptionsJSLoad( 7187 js.Pointer(p), js.False, ref, 7188 ) 7189 } 7190 7191 // FreeMembers frees fields with heap reference, if recursive is true 7192 // free all heap references reachable from p. 7193 func (p *SensorOptions) FreeMembers(recursive bool) { 7194 } 7195 7196 func NewAmbientLightSensor(sensorOptions SensorOptions) (ret AmbientLightSensor) { 7197 ret.ref = bindings.NewAmbientLightSensorByAmbientLightSensor( 7198 js.Pointer(&sensorOptions)) 7199 return 7200 } 7201 7202 func NewAmbientLightSensorByAmbientLightSensor1() (ret AmbientLightSensor) { 7203 ret.ref = bindings.NewAmbientLightSensorByAmbientLightSensor1() 7204 return 7205 } 7206 7207 type AmbientLightSensor struct { 7208 Sensor 7209 } 7210 7211 func (this AmbientLightSensor) Once() AmbientLightSensor { 7212 this.ref.Once() 7213 return this 7214 } 7215 7216 func (this AmbientLightSensor) Ref() js.Ref { 7217 return this.Sensor.Ref() 7218 } 7219 7220 func (this AmbientLightSensor) FromRef(ref js.Ref) AmbientLightSensor { 7221 this.Sensor = this.Sensor.FromRef(ref) 7222 return this 7223 } 7224 7225 func (this AmbientLightSensor) Free() { 7226 this.ref.Free() 7227 } 7228 7229 // Illuminance returns the value of property "AmbientLightSensor.illuminance". 7230 // 7231 // It returns ok=false if there is no such property. 7232 func (this AmbientLightSensor) Illuminance() (ret float64, ok bool) { 7233 ok = js.True == bindings.GetAmbientLightSensorIlluminance( 7234 this.ref, js.Pointer(&ret), 7235 ) 7236 return 7237 } 7238 7239 type BiquadFilterType uint32