github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis38_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 HTMLPortalElement struct { 12 HTMLElement 13 } 14 15 func (this HTMLPortalElement) Once() HTMLPortalElement { 16 this.ref.Once() 17 return this 18 } 19 20 func (this HTMLPortalElement) Ref() js.Ref { 21 return this.HTMLElement.Ref() 22 } 23 24 func (this HTMLPortalElement) FromRef(ref js.Ref) HTMLPortalElement { 25 this.HTMLElement = this.HTMLElement.FromRef(ref) 26 return this 27 } 28 29 func (this HTMLPortalElement) Free() { 30 this.ref.Free() 31 } 32 33 // Src returns the value of property "HTMLPortalElement.src". 34 // 35 // It returns ok=false if there is no such property. 36 func (this HTMLPortalElement) Src() (ret js.String, ok bool) { 37 ok = js.True == bindings.GetHTMLPortalElementSrc( 38 this.ref, js.Pointer(&ret), 39 ) 40 return 41 } 42 43 // SetSrc sets the value of property "HTMLPortalElement.src" to val. 44 // 45 // It returns false if the property cannot be set. 46 func (this HTMLPortalElement) SetSrc(val js.String) bool { 47 return js.True == bindings.SetHTMLPortalElementSrc( 48 this.ref, 49 val.Ref(), 50 ) 51 } 52 53 // ReferrerPolicy returns the value of property "HTMLPortalElement.referrerPolicy". 54 // 55 // It returns ok=false if there is no such property. 56 func (this HTMLPortalElement) ReferrerPolicy() (ret js.String, ok bool) { 57 ok = js.True == bindings.GetHTMLPortalElementReferrerPolicy( 58 this.ref, js.Pointer(&ret), 59 ) 60 return 61 } 62 63 // SetReferrerPolicy sets the value of property "HTMLPortalElement.referrerPolicy" to val. 64 // 65 // It returns false if the property cannot be set. 66 func (this HTMLPortalElement) SetReferrerPolicy(val js.String) bool { 67 return js.True == bindings.SetHTMLPortalElementReferrerPolicy( 68 this.ref, 69 val.Ref(), 70 ) 71 } 72 73 // HasFuncActivate returns true if the method "HTMLPortalElement.activate" exists. 74 func (this HTMLPortalElement) HasFuncActivate() bool { 75 return js.True == bindings.HasFuncHTMLPortalElementActivate( 76 this.ref, 77 ) 78 } 79 80 // FuncActivate returns the method "HTMLPortalElement.activate". 81 func (this HTMLPortalElement) FuncActivate() (fn js.Func[func(options PortalActivateOptions) js.Promise[js.Void]]) { 82 bindings.FuncHTMLPortalElementActivate( 83 this.ref, js.Pointer(&fn), 84 ) 85 return 86 } 87 88 // Activate calls the method "HTMLPortalElement.activate". 89 func (this HTMLPortalElement) Activate(options PortalActivateOptions) (ret js.Promise[js.Void]) { 90 bindings.CallHTMLPortalElementActivate( 91 this.ref, js.Pointer(&ret), 92 js.Pointer(&options), 93 ) 94 95 return 96 } 97 98 // TryActivate calls the method "HTMLPortalElement.activate" 99 // in a try/catch block and returns (_, err, ok = false) when it went through 100 // the catch clause. 101 func (this HTMLPortalElement) TryActivate(options PortalActivateOptions) (ret js.Promise[js.Void], exception js.Any, ok bool) { 102 ok = js.True == bindings.TryHTMLPortalElementActivate( 103 this.ref, js.Pointer(&ret), js.Pointer(&exception), 104 js.Pointer(&options), 105 ) 106 107 return 108 } 109 110 // HasFuncActivate1 returns true if the method "HTMLPortalElement.activate" exists. 111 func (this HTMLPortalElement) HasFuncActivate1() bool { 112 return js.True == bindings.HasFuncHTMLPortalElementActivate1( 113 this.ref, 114 ) 115 } 116 117 // FuncActivate1 returns the method "HTMLPortalElement.activate". 118 func (this HTMLPortalElement) FuncActivate1() (fn js.Func[func() js.Promise[js.Void]]) { 119 bindings.FuncHTMLPortalElementActivate1( 120 this.ref, js.Pointer(&fn), 121 ) 122 return 123 } 124 125 // Activate1 calls the method "HTMLPortalElement.activate". 126 func (this HTMLPortalElement) Activate1() (ret js.Promise[js.Void]) { 127 bindings.CallHTMLPortalElementActivate1( 128 this.ref, js.Pointer(&ret), 129 ) 130 131 return 132 } 133 134 // TryActivate1 calls the method "HTMLPortalElement.activate" 135 // in a try/catch block and returns (_, err, ok = false) when it went through 136 // the catch clause. 137 func (this HTMLPortalElement) TryActivate1() (ret js.Promise[js.Void], exception js.Any, ok bool) { 138 ok = js.True == bindings.TryHTMLPortalElementActivate1( 139 this.ref, js.Pointer(&ret), js.Pointer(&exception), 140 ) 141 142 return 143 } 144 145 // HasFuncPostMessage returns true if the method "HTMLPortalElement.postMessage" exists. 146 func (this HTMLPortalElement) HasFuncPostMessage() bool { 147 return js.True == bindings.HasFuncHTMLPortalElementPostMessage( 148 this.ref, 149 ) 150 } 151 152 // FuncPostMessage returns the method "HTMLPortalElement.postMessage". 153 func (this HTMLPortalElement) FuncPostMessage() (fn js.Func[func(message js.Any, options StructuredSerializeOptions)]) { 154 bindings.FuncHTMLPortalElementPostMessage( 155 this.ref, js.Pointer(&fn), 156 ) 157 return 158 } 159 160 // PostMessage calls the method "HTMLPortalElement.postMessage". 161 func (this HTMLPortalElement) PostMessage(message js.Any, options StructuredSerializeOptions) (ret js.Void) { 162 bindings.CallHTMLPortalElementPostMessage( 163 this.ref, js.Pointer(&ret), 164 message.Ref(), 165 js.Pointer(&options), 166 ) 167 168 return 169 } 170 171 // TryPostMessage calls the method "HTMLPortalElement.postMessage" 172 // in a try/catch block and returns (_, err, ok = false) when it went through 173 // the catch clause. 174 func (this HTMLPortalElement) TryPostMessage(message js.Any, options StructuredSerializeOptions) (ret js.Void, exception js.Any, ok bool) { 175 ok = js.True == bindings.TryHTMLPortalElementPostMessage( 176 this.ref, js.Pointer(&ret), js.Pointer(&exception), 177 message.Ref(), 178 js.Pointer(&options), 179 ) 180 181 return 182 } 183 184 // HasFuncPostMessage1 returns true if the method "HTMLPortalElement.postMessage" exists. 185 func (this HTMLPortalElement) HasFuncPostMessage1() bool { 186 return js.True == bindings.HasFuncHTMLPortalElementPostMessage1( 187 this.ref, 188 ) 189 } 190 191 // FuncPostMessage1 returns the method "HTMLPortalElement.postMessage". 192 func (this HTMLPortalElement) FuncPostMessage1() (fn js.Func[func(message js.Any)]) { 193 bindings.FuncHTMLPortalElementPostMessage1( 194 this.ref, js.Pointer(&fn), 195 ) 196 return 197 } 198 199 // PostMessage1 calls the method "HTMLPortalElement.postMessage". 200 func (this HTMLPortalElement) PostMessage1(message js.Any) (ret js.Void) { 201 bindings.CallHTMLPortalElementPostMessage1( 202 this.ref, js.Pointer(&ret), 203 message.Ref(), 204 ) 205 206 return 207 } 208 209 // TryPostMessage1 calls the method "HTMLPortalElement.postMessage" 210 // in a try/catch block and returns (_, err, ok = false) when it went through 211 // the catch clause. 212 func (this HTMLPortalElement) TryPostMessage1(message js.Any) (ret js.Void, exception js.Any, ok bool) { 213 ok = js.True == bindings.TryHTMLPortalElementPostMessage1( 214 this.ref, js.Pointer(&ret), js.Pointer(&exception), 215 message.Ref(), 216 ) 217 218 return 219 } 220 221 type HTMLPreElement struct { 222 HTMLElement 223 } 224 225 func (this HTMLPreElement) Once() HTMLPreElement { 226 this.ref.Once() 227 return this 228 } 229 230 func (this HTMLPreElement) Ref() js.Ref { 231 return this.HTMLElement.Ref() 232 } 233 234 func (this HTMLPreElement) FromRef(ref js.Ref) HTMLPreElement { 235 this.HTMLElement = this.HTMLElement.FromRef(ref) 236 return this 237 } 238 239 func (this HTMLPreElement) Free() { 240 this.ref.Free() 241 } 242 243 // Width returns the value of property "HTMLPreElement.width". 244 // 245 // It returns ok=false if there is no such property. 246 func (this HTMLPreElement) Width() (ret int32, ok bool) { 247 ok = js.True == bindings.GetHTMLPreElementWidth( 248 this.ref, js.Pointer(&ret), 249 ) 250 return 251 } 252 253 // SetWidth sets the value of property "HTMLPreElement.width" to val. 254 // 255 // It returns false if the property cannot be set. 256 func (this HTMLPreElement) SetWidth(val int32) bool { 257 return js.True == bindings.SetHTMLPreElementWidth( 258 this.ref, 259 int32(val), 260 ) 261 } 262 263 type HTMLProgressElement struct { 264 HTMLElement 265 } 266 267 func (this HTMLProgressElement) Once() HTMLProgressElement { 268 this.ref.Once() 269 return this 270 } 271 272 func (this HTMLProgressElement) Ref() js.Ref { 273 return this.HTMLElement.Ref() 274 } 275 276 func (this HTMLProgressElement) FromRef(ref js.Ref) HTMLProgressElement { 277 this.HTMLElement = this.HTMLElement.FromRef(ref) 278 return this 279 } 280 281 func (this HTMLProgressElement) Free() { 282 this.ref.Free() 283 } 284 285 // Value returns the value of property "HTMLProgressElement.value". 286 // 287 // It returns ok=false if there is no such property. 288 func (this HTMLProgressElement) Value() (ret float64, ok bool) { 289 ok = js.True == bindings.GetHTMLProgressElementValue( 290 this.ref, js.Pointer(&ret), 291 ) 292 return 293 } 294 295 // SetValue sets the value of property "HTMLProgressElement.value" to val. 296 // 297 // It returns false if the property cannot be set. 298 func (this HTMLProgressElement) SetValue(val float64) bool { 299 return js.True == bindings.SetHTMLProgressElementValue( 300 this.ref, 301 float64(val), 302 ) 303 } 304 305 // Max returns the value of property "HTMLProgressElement.max". 306 // 307 // It returns ok=false if there is no such property. 308 func (this HTMLProgressElement) Max() (ret float64, ok bool) { 309 ok = js.True == bindings.GetHTMLProgressElementMax( 310 this.ref, js.Pointer(&ret), 311 ) 312 return 313 } 314 315 // SetMax sets the value of property "HTMLProgressElement.max" to val. 316 // 317 // It returns false if the property cannot be set. 318 func (this HTMLProgressElement) SetMax(val float64) bool { 319 return js.True == bindings.SetHTMLProgressElementMax( 320 this.ref, 321 float64(val), 322 ) 323 } 324 325 // Position returns the value of property "HTMLProgressElement.position". 326 // 327 // It returns ok=false if there is no such property. 328 func (this HTMLProgressElement) Position() (ret float64, ok bool) { 329 ok = js.True == bindings.GetHTMLProgressElementPosition( 330 this.ref, js.Pointer(&ret), 331 ) 332 return 333 } 334 335 // Labels returns the value of property "HTMLProgressElement.labels". 336 // 337 // It returns ok=false if there is no such property. 338 func (this HTMLProgressElement) Labels() (ret NodeList, ok bool) { 339 ok = js.True == bindings.GetHTMLProgressElementLabels( 340 this.ref, js.Pointer(&ret), 341 ) 342 return 343 } 344 345 type HTMLQuoteElement struct { 346 HTMLElement 347 } 348 349 func (this HTMLQuoteElement) Once() HTMLQuoteElement { 350 this.ref.Once() 351 return this 352 } 353 354 func (this HTMLQuoteElement) Ref() js.Ref { 355 return this.HTMLElement.Ref() 356 } 357 358 func (this HTMLQuoteElement) FromRef(ref js.Ref) HTMLQuoteElement { 359 this.HTMLElement = this.HTMLElement.FromRef(ref) 360 return this 361 } 362 363 func (this HTMLQuoteElement) Free() { 364 this.ref.Free() 365 } 366 367 // Cite returns the value of property "HTMLQuoteElement.cite". 368 // 369 // It returns ok=false if there is no such property. 370 func (this HTMLQuoteElement) Cite() (ret js.String, ok bool) { 371 ok = js.True == bindings.GetHTMLQuoteElementCite( 372 this.ref, js.Pointer(&ret), 373 ) 374 return 375 } 376 377 // SetCite sets the value of property "HTMLQuoteElement.cite" to val. 378 // 379 // It returns false if the property cannot be set. 380 func (this HTMLQuoteElement) SetCite(val js.String) bool { 381 return js.True == bindings.SetHTMLQuoteElementCite( 382 this.ref, 383 val.Ref(), 384 ) 385 } 386 387 type HTMLSelectElement struct { 388 HTMLElement 389 } 390 391 func (this HTMLSelectElement) Once() HTMLSelectElement { 392 this.ref.Once() 393 return this 394 } 395 396 func (this HTMLSelectElement) Ref() js.Ref { 397 return this.HTMLElement.Ref() 398 } 399 400 func (this HTMLSelectElement) FromRef(ref js.Ref) HTMLSelectElement { 401 this.HTMLElement = this.HTMLElement.FromRef(ref) 402 return this 403 } 404 405 func (this HTMLSelectElement) Free() { 406 this.ref.Free() 407 } 408 409 // Autocomplete returns the value of property "HTMLSelectElement.autocomplete". 410 // 411 // It returns ok=false if there is no such property. 412 func (this HTMLSelectElement) Autocomplete() (ret js.String, ok bool) { 413 ok = js.True == bindings.GetHTMLSelectElementAutocomplete( 414 this.ref, js.Pointer(&ret), 415 ) 416 return 417 } 418 419 // SetAutocomplete sets the value of property "HTMLSelectElement.autocomplete" to val. 420 // 421 // It returns false if the property cannot be set. 422 func (this HTMLSelectElement) SetAutocomplete(val js.String) bool { 423 return js.True == bindings.SetHTMLSelectElementAutocomplete( 424 this.ref, 425 val.Ref(), 426 ) 427 } 428 429 // Disabled returns the value of property "HTMLSelectElement.disabled". 430 // 431 // It returns ok=false if there is no such property. 432 func (this HTMLSelectElement) Disabled() (ret bool, ok bool) { 433 ok = js.True == bindings.GetHTMLSelectElementDisabled( 434 this.ref, js.Pointer(&ret), 435 ) 436 return 437 } 438 439 // SetDisabled sets the value of property "HTMLSelectElement.disabled" to val. 440 // 441 // It returns false if the property cannot be set. 442 func (this HTMLSelectElement) SetDisabled(val bool) bool { 443 return js.True == bindings.SetHTMLSelectElementDisabled( 444 this.ref, 445 js.Bool(bool(val)), 446 ) 447 } 448 449 // Form returns the value of property "HTMLSelectElement.form". 450 // 451 // It returns ok=false if there is no such property. 452 func (this HTMLSelectElement) Form() (ret HTMLFormElement, ok bool) { 453 ok = js.True == bindings.GetHTMLSelectElementForm( 454 this.ref, js.Pointer(&ret), 455 ) 456 return 457 } 458 459 // Multiple returns the value of property "HTMLSelectElement.multiple". 460 // 461 // It returns ok=false if there is no such property. 462 func (this HTMLSelectElement) Multiple() (ret bool, ok bool) { 463 ok = js.True == bindings.GetHTMLSelectElementMultiple( 464 this.ref, js.Pointer(&ret), 465 ) 466 return 467 } 468 469 // SetMultiple sets the value of property "HTMLSelectElement.multiple" to val. 470 // 471 // It returns false if the property cannot be set. 472 func (this HTMLSelectElement) SetMultiple(val bool) bool { 473 return js.True == bindings.SetHTMLSelectElementMultiple( 474 this.ref, 475 js.Bool(bool(val)), 476 ) 477 } 478 479 // Name returns the value of property "HTMLSelectElement.name". 480 // 481 // It returns ok=false if there is no such property. 482 func (this HTMLSelectElement) Name() (ret js.String, ok bool) { 483 ok = js.True == bindings.GetHTMLSelectElementName( 484 this.ref, js.Pointer(&ret), 485 ) 486 return 487 } 488 489 // SetName sets the value of property "HTMLSelectElement.name" to val. 490 // 491 // It returns false if the property cannot be set. 492 func (this HTMLSelectElement) SetName(val js.String) bool { 493 return js.True == bindings.SetHTMLSelectElementName( 494 this.ref, 495 val.Ref(), 496 ) 497 } 498 499 // Required returns the value of property "HTMLSelectElement.required". 500 // 501 // It returns ok=false if there is no such property. 502 func (this HTMLSelectElement) Required() (ret bool, ok bool) { 503 ok = js.True == bindings.GetHTMLSelectElementRequired( 504 this.ref, js.Pointer(&ret), 505 ) 506 return 507 } 508 509 // SetRequired sets the value of property "HTMLSelectElement.required" to val. 510 // 511 // It returns false if the property cannot be set. 512 func (this HTMLSelectElement) SetRequired(val bool) bool { 513 return js.True == bindings.SetHTMLSelectElementRequired( 514 this.ref, 515 js.Bool(bool(val)), 516 ) 517 } 518 519 // Size returns the value of property "HTMLSelectElement.size". 520 // 521 // It returns ok=false if there is no such property. 522 func (this HTMLSelectElement) Size() (ret uint32, ok bool) { 523 ok = js.True == bindings.GetHTMLSelectElementSize( 524 this.ref, js.Pointer(&ret), 525 ) 526 return 527 } 528 529 // SetSize sets the value of property "HTMLSelectElement.size" to val. 530 // 531 // It returns false if the property cannot be set. 532 func (this HTMLSelectElement) SetSize(val uint32) bool { 533 return js.True == bindings.SetHTMLSelectElementSize( 534 this.ref, 535 uint32(val), 536 ) 537 } 538 539 // Type returns the value of property "HTMLSelectElement.type". 540 // 541 // It returns ok=false if there is no such property. 542 func (this HTMLSelectElement) Type() (ret js.String, ok bool) { 543 ok = js.True == bindings.GetHTMLSelectElementType( 544 this.ref, js.Pointer(&ret), 545 ) 546 return 547 } 548 549 // Options returns the value of property "HTMLSelectElement.options". 550 // 551 // It returns ok=false if there is no such property. 552 func (this HTMLSelectElement) Options() (ret HTMLOptionsCollection, ok bool) { 553 ok = js.True == bindings.GetHTMLSelectElementOptions( 554 this.ref, js.Pointer(&ret), 555 ) 556 return 557 } 558 559 // Length returns the value of property "HTMLSelectElement.length". 560 // 561 // It returns ok=false if there is no such property. 562 func (this HTMLSelectElement) Length() (ret uint32, ok bool) { 563 ok = js.True == bindings.GetHTMLSelectElementLength( 564 this.ref, js.Pointer(&ret), 565 ) 566 return 567 } 568 569 // SetLength sets the value of property "HTMLSelectElement.length" to val. 570 // 571 // It returns false if the property cannot be set. 572 func (this HTMLSelectElement) SetLength(val uint32) bool { 573 return js.True == bindings.SetHTMLSelectElementLength( 574 this.ref, 575 uint32(val), 576 ) 577 } 578 579 // SelectedOptions returns the value of property "HTMLSelectElement.selectedOptions". 580 // 581 // It returns ok=false if there is no such property. 582 func (this HTMLSelectElement) SelectedOptions() (ret HTMLCollection, ok bool) { 583 ok = js.True == bindings.GetHTMLSelectElementSelectedOptions( 584 this.ref, js.Pointer(&ret), 585 ) 586 return 587 } 588 589 // SelectedIndex returns the value of property "HTMLSelectElement.selectedIndex". 590 // 591 // It returns ok=false if there is no such property. 592 func (this HTMLSelectElement) SelectedIndex() (ret int32, ok bool) { 593 ok = js.True == bindings.GetHTMLSelectElementSelectedIndex( 594 this.ref, js.Pointer(&ret), 595 ) 596 return 597 } 598 599 // SetSelectedIndex sets the value of property "HTMLSelectElement.selectedIndex" to val. 600 // 601 // It returns false if the property cannot be set. 602 func (this HTMLSelectElement) SetSelectedIndex(val int32) bool { 603 return js.True == bindings.SetHTMLSelectElementSelectedIndex( 604 this.ref, 605 int32(val), 606 ) 607 } 608 609 // Value returns the value of property "HTMLSelectElement.value". 610 // 611 // It returns ok=false if there is no such property. 612 func (this HTMLSelectElement) Value() (ret js.String, ok bool) { 613 ok = js.True == bindings.GetHTMLSelectElementValue( 614 this.ref, js.Pointer(&ret), 615 ) 616 return 617 } 618 619 // SetValue sets the value of property "HTMLSelectElement.value" to val. 620 // 621 // It returns false if the property cannot be set. 622 func (this HTMLSelectElement) SetValue(val js.String) bool { 623 return js.True == bindings.SetHTMLSelectElementValue( 624 this.ref, 625 val.Ref(), 626 ) 627 } 628 629 // WillValidate returns the value of property "HTMLSelectElement.willValidate". 630 // 631 // It returns ok=false if there is no such property. 632 func (this HTMLSelectElement) WillValidate() (ret bool, ok bool) { 633 ok = js.True == bindings.GetHTMLSelectElementWillValidate( 634 this.ref, js.Pointer(&ret), 635 ) 636 return 637 } 638 639 // Validity returns the value of property "HTMLSelectElement.validity". 640 // 641 // It returns ok=false if there is no such property. 642 func (this HTMLSelectElement) Validity() (ret ValidityState, ok bool) { 643 ok = js.True == bindings.GetHTMLSelectElementValidity( 644 this.ref, js.Pointer(&ret), 645 ) 646 return 647 } 648 649 // ValidationMessage returns the value of property "HTMLSelectElement.validationMessage". 650 // 651 // It returns ok=false if there is no such property. 652 func (this HTMLSelectElement) ValidationMessage() (ret js.String, ok bool) { 653 ok = js.True == bindings.GetHTMLSelectElementValidationMessage( 654 this.ref, js.Pointer(&ret), 655 ) 656 return 657 } 658 659 // Labels returns the value of property "HTMLSelectElement.labels". 660 // 661 // It returns ok=false if there is no such property. 662 func (this HTMLSelectElement) Labels() (ret NodeList, ok bool) { 663 ok = js.True == bindings.GetHTMLSelectElementLabels( 664 this.ref, js.Pointer(&ret), 665 ) 666 return 667 } 668 669 // HasFuncItem returns true if the method "HTMLSelectElement.item" exists. 670 func (this HTMLSelectElement) HasFuncItem() bool { 671 return js.True == bindings.HasFuncHTMLSelectElementItem( 672 this.ref, 673 ) 674 } 675 676 // FuncItem returns the method "HTMLSelectElement.item". 677 func (this HTMLSelectElement) FuncItem() (fn js.Func[func(index uint32) HTMLOptionElement]) { 678 bindings.FuncHTMLSelectElementItem( 679 this.ref, js.Pointer(&fn), 680 ) 681 return 682 } 683 684 // Item calls the method "HTMLSelectElement.item". 685 func (this HTMLSelectElement) Item(index uint32) (ret HTMLOptionElement) { 686 bindings.CallHTMLSelectElementItem( 687 this.ref, js.Pointer(&ret), 688 uint32(index), 689 ) 690 691 return 692 } 693 694 // TryItem calls the method "HTMLSelectElement.item" 695 // in a try/catch block and returns (_, err, ok = false) when it went through 696 // the catch clause. 697 func (this HTMLSelectElement) TryItem(index uint32) (ret HTMLOptionElement, exception js.Any, ok bool) { 698 ok = js.True == bindings.TryHTMLSelectElementItem( 699 this.ref, js.Pointer(&ret), js.Pointer(&exception), 700 uint32(index), 701 ) 702 703 return 704 } 705 706 // HasFuncNamedItem returns true if the method "HTMLSelectElement.namedItem" exists. 707 func (this HTMLSelectElement) HasFuncNamedItem() bool { 708 return js.True == bindings.HasFuncHTMLSelectElementNamedItem( 709 this.ref, 710 ) 711 } 712 713 // FuncNamedItem returns the method "HTMLSelectElement.namedItem". 714 func (this HTMLSelectElement) FuncNamedItem() (fn js.Func[func(name js.String) HTMLOptionElement]) { 715 bindings.FuncHTMLSelectElementNamedItem( 716 this.ref, js.Pointer(&fn), 717 ) 718 return 719 } 720 721 // NamedItem calls the method "HTMLSelectElement.namedItem". 722 func (this HTMLSelectElement) NamedItem(name js.String) (ret HTMLOptionElement) { 723 bindings.CallHTMLSelectElementNamedItem( 724 this.ref, js.Pointer(&ret), 725 name.Ref(), 726 ) 727 728 return 729 } 730 731 // TryNamedItem calls the method "HTMLSelectElement.namedItem" 732 // in a try/catch block and returns (_, err, ok = false) when it went through 733 // the catch clause. 734 func (this HTMLSelectElement) TryNamedItem(name js.String) (ret HTMLOptionElement, exception js.Any, ok bool) { 735 ok = js.True == bindings.TryHTMLSelectElementNamedItem( 736 this.ref, js.Pointer(&ret), js.Pointer(&exception), 737 name.Ref(), 738 ) 739 740 return 741 } 742 743 // HasFuncAdd returns true if the method "HTMLSelectElement.add" exists. 744 func (this HTMLSelectElement) HasFuncAdd() bool { 745 return js.True == bindings.HasFuncHTMLSelectElementAdd( 746 this.ref, 747 ) 748 } 749 750 // FuncAdd returns the method "HTMLSelectElement.add". 751 func (this HTMLSelectElement) FuncAdd() (fn js.Func[func(element OneOf_HTMLOptionElement_HTMLOptGroupElement, before OneOf_HTMLElement_Int32)]) { 752 bindings.FuncHTMLSelectElementAdd( 753 this.ref, js.Pointer(&fn), 754 ) 755 return 756 } 757 758 // Add calls the method "HTMLSelectElement.add". 759 func (this HTMLSelectElement) Add(element OneOf_HTMLOptionElement_HTMLOptGroupElement, before OneOf_HTMLElement_Int32) (ret js.Void) { 760 bindings.CallHTMLSelectElementAdd( 761 this.ref, js.Pointer(&ret), 762 element.Ref(), 763 before.Ref(), 764 ) 765 766 return 767 } 768 769 // TryAdd calls the method "HTMLSelectElement.add" 770 // in a try/catch block and returns (_, err, ok = false) when it went through 771 // the catch clause. 772 func (this HTMLSelectElement) TryAdd(element OneOf_HTMLOptionElement_HTMLOptGroupElement, before OneOf_HTMLElement_Int32) (ret js.Void, exception js.Any, ok bool) { 773 ok = js.True == bindings.TryHTMLSelectElementAdd( 774 this.ref, js.Pointer(&ret), js.Pointer(&exception), 775 element.Ref(), 776 before.Ref(), 777 ) 778 779 return 780 } 781 782 // HasFuncAdd1 returns true if the method "HTMLSelectElement.add" exists. 783 func (this HTMLSelectElement) HasFuncAdd1() bool { 784 return js.True == bindings.HasFuncHTMLSelectElementAdd1( 785 this.ref, 786 ) 787 } 788 789 // FuncAdd1 returns the method "HTMLSelectElement.add". 790 func (this HTMLSelectElement) FuncAdd1() (fn js.Func[func(element OneOf_HTMLOptionElement_HTMLOptGroupElement)]) { 791 bindings.FuncHTMLSelectElementAdd1( 792 this.ref, js.Pointer(&fn), 793 ) 794 return 795 } 796 797 // Add1 calls the method "HTMLSelectElement.add". 798 func (this HTMLSelectElement) Add1(element OneOf_HTMLOptionElement_HTMLOptGroupElement) (ret js.Void) { 799 bindings.CallHTMLSelectElementAdd1( 800 this.ref, js.Pointer(&ret), 801 element.Ref(), 802 ) 803 804 return 805 } 806 807 // TryAdd1 calls the method "HTMLSelectElement.add" 808 // in a try/catch block and returns (_, err, ok = false) when it went through 809 // the catch clause. 810 func (this HTMLSelectElement) TryAdd1(element OneOf_HTMLOptionElement_HTMLOptGroupElement) (ret js.Void, exception js.Any, ok bool) { 811 ok = js.True == bindings.TryHTMLSelectElementAdd1( 812 this.ref, js.Pointer(&ret), js.Pointer(&exception), 813 element.Ref(), 814 ) 815 816 return 817 } 818 819 // HasFuncRemove returns true if the method "HTMLSelectElement.remove" exists. 820 func (this HTMLSelectElement) HasFuncRemove() bool { 821 return js.True == bindings.HasFuncHTMLSelectElementRemove( 822 this.ref, 823 ) 824 } 825 826 // FuncRemove returns the method "HTMLSelectElement.remove". 827 func (this HTMLSelectElement) FuncRemove() (fn js.Func[func()]) { 828 bindings.FuncHTMLSelectElementRemove( 829 this.ref, js.Pointer(&fn), 830 ) 831 return 832 } 833 834 // Remove calls the method "HTMLSelectElement.remove". 835 func (this HTMLSelectElement) Remove() (ret js.Void) { 836 bindings.CallHTMLSelectElementRemove( 837 this.ref, js.Pointer(&ret), 838 ) 839 840 return 841 } 842 843 // TryRemove calls the method "HTMLSelectElement.remove" 844 // in a try/catch block and returns (_, err, ok = false) when it went through 845 // the catch clause. 846 func (this HTMLSelectElement) TryRemove() (ret js.Void, exception js.Any, ok bool) { 847 ok = js.True == bindings.TryHTMLSelectElementRemove( 848 this.ref, js.Pointer(&ret), js.Pointer(&exception), 849 ) 850 851 return 852 } 853 854 // HasFuncRemove1 returns true if the method "HTMLSelectElement.remove" exists. 855 func (this HTMLSelectElement) HasFuncRemove1() bool { 856 return js.True == bindings.HasFuncHTMLSelectElementRemove1( 857 this.ref, 858 ) 859 } 860 861 // FuncRemove1 returns the method "HTMLSelectElement.remove". 862 func (this HTMLSelectElement) FuncRemove1() (fn js.Func[func(index int32)]) { 863 bindings.FuncHTMLSelectElementRemove1( 864 this.ref, js.Pointer(&fn), 865 ) 866 return 867 } 868 869 // Remove1 calls the method "HTMLSelectElement.remove". 870 func (this HTMLSelectElement) Remove1(index int32) (ret js.Void) { 871 bindings.CallHTMLSelectElementRemove1( 872 this.ref, js.Pointer(&ret), 873 int32(index), 874 ) 875 876 return 877 } 878 879 // TryRemove1 calls the method "HTMLSelectElement.remove" 880 // in a try/catch block and returns (_, err, ok = false) when it went through 881 // the catch clause. 882 func (this HTMLSelectElement) TryRemove1(index int32) (ret js.Void, exception js.Any, ok bool) { 883 ok = js.True == bindings.TryHTMLSelectElementRemove1( 884 this.ref, js.Pointer(&ret), js.Pointer(&exception), 885 int32(index), 886 ) 887 888 return 889 } 890 891 // HasFuncSet returns true if the method "HTMLSelectElement." exists. 892 func (this HTMLSelectElement) HasFuncSet() bool { 893 return js.True == bindings.HasFuncHTMLSelectElementSet( 894 this.ref, 895 ) 896 } 897 898 // FuncSet returns the method "HTMLSelectElement.". 899 func (this HTMLSelectElement) FuncSet() (fn js.Func[func(index uint32, option HTMLOptionElement)]) { 900 bindings.FuncHTMLSelectElementSet( 901 this.ref, js.Pointer(&fn), 902 ) 903 return 904 } 905 906 // Set calls the method "HTMLSelectElement.". 907 func (this HTMLSelectElement) Set(index uint32, option HTMLOptionElement) (ret js.Void) { 908 bindings.CallHTMLSelectElementSet( 909 this.ref, js.Pointer(&ret), 910 uint32(index), 911 option.Ref(), 912 ) 913 914 return 915 } 916 917 // TrySet calls the method "HTMLSelectElement." 918 // in a try/catch block and returns (_, err, ok = false) when it went through 919 // the catch clause. 920 func (this HTMLSelectElement) TrySet(index uint32, option HTMLOptionElement) (ret js.Void, exception js.Any, ok bool) { 921 ok = js.True == bindings.TryHTMLSelectElementSet( 922 this.ref, js.Pointer(&ret), js.Pointer(&exception), 923 uint32(index), 924 option.Ref(), 925 ) 926 927 return 928 } 929 930 // HasFuncCheckValidity returns true if the method "HTMLSelectElement.checkValidity" exists. 931 func (this HTMLSelectElement) HasFuncCheckValidity() bool { 932 return js.True == bindings.HasFuncHTMLSelectElementCheckValidity( 933 this.ref, 934 ) 935 } 936 937 // FuncCheckValidity returns the method "HTMLSelectElement.checkValidity". 938 func (this HTMLSelectElement) FuncCheckValidity() (fn js.Func[func() bool]) { 939 bindings.FuncHTMLSelectElementCheckValidity( 940 this.ref, js.Pointer(&fn), 941 ) 942 return 943 } 944 945 // CheckValidity calls the method "HTMLSelectElement.checkValidity". 946 func (this HTMLSelectElement) CheckValidity() (ret bool) { 947 bindings.CallHTMLSelectElementCheckValidity( 948 this.ref, js.Pointer(&ret), 949 ) 950 951 return 952 } 953 954 // TryCheckValidity calls the method "HTMLSelectElement.checkValidity" 955 // in a try/catch block and returns (_, err, ok = false) when it went through 956 // the catch clause. 957 func (this HTMLSelectElement) TryCheckValidity() (ret bool, exception js.Any, ok bool) { 958 ok = js.True == bindings.TryHTMLSelectElementCheckValidity( 959 this.ref, js.Pointer(&ret), js.Pointer(&exception), 960 ) 961 962 return 963 } 964 965 // HasFuncReportValidity returns true if the method "HTMLSelectElement.reportValidity" exists. 966 func (this HTMLSelectElement) HasFuncReportValidity() bool { 967 return js.True == bindings.HasFuncHTMLSelectElementReportValidity( 968 this.ref, 969 ) 970 } 971 972 // FuncReportValidity returns the method "HTMLSelectElement.reportValidity". 973 func (this HTMLSelectElement) FuncReportValidity() (fn js.Func[func() bool]) { 974 bindings.FuncHTMLSelectElementReportValidity( 975 this.ref, js.Pointer(&fn), 976 ) 977 return 978 } 979 980 // ReportValidity calls the method "HTMLSelectElement.reportValidity". 981 func (this HTMLSelectElement) ReportValidity() (ret bool) { 982 bindings.CallHTMLSelectElementReportValidity( 983 this.ref, js.Pointer(&ret), 984 ) 985 986 return 987 } 988 989 // TryReportValidity calls the method "HTMLSelectElement.reportValidity" 990 // in a try/catch block and returns (_, err, ok = false) when it went through 991 // the catch clause. 992 func (this HTMLSelectElement) TryReportValidity() (ret bool, exception js.Any, ok bool) { 993 ok = js.True == bindings.TryHTMLSelectElementReportValidity( 994 this.ref, js.Pointer(&ret), js.Pointer(&exception), 995 ) 996 997 return 998 } 999 1000 // HasFuncSetCustomValidity returns true if the method "HTMLSelectElement.setCustomValidity" exists. 1001 func (this HTMLSelectElement) HasFuncSetCustomValidity() bool { 1002 return js.True == bindings.HasFuncHTMLSelectElementSetCustomValidity( 1003 this.ref, 1004 ) 1005 } 1006 1007 // FuncSetCustomValidity returns the method "HTMLSelectElement.setCustomValidity". 1008 func (this HTMLSelectElement) FuncSetCustomValidity() (fn js.Func[func(err js.String)]) { 1009 bindings.FuncHTMLSelectElementSetCustomValidity( 1010 this.ref, js.Pointer(&fn), 1011 ) 1012 return 1013 } 1014 1015 // SetCustomValidity calls the method "HTMLSelectElement.setCustomValidity". 1016 func (this HTMLSelectElement) SetCustomValidity(err js.String) (ret js.Void) { 1017 bindings.CallHTMLSelectElementSetCustomValidity( 1018 this.ref, js.Pointer(&ret), 1019 err.Ref(), 1020 ) 1021 1022 return 1023 } 1024 1025 // TrySetCustomValidity calls the method "HTMLSelectElement.setCustomValidity" 1026 // in a try/catch block and returns (_, err, ok = false) when it went through 1027 // the catch clause. 1028 func (this HTMLSelectElement) TrySetCustomValidity(err js.String) (ret js.Void, exception js.Any, ok bool) { 1029 ok = js.True == bindings.TryHTMLSelectElementSetCustomValidity( 1030 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1031 err.Ref(), 1032 ) 1033 1034 return 1035 } 1036 1037 type HTMLSourceElement struct { 1038 HTMLElement 1039 } 1040 1041 func (this HTMLSourceElement) Once() HTMLSourceElement { 1042 this.ref.Once() 1043 return this 1044 } 1045 1046 func (this HTMLSourceElement) Ref() js.Ref { 1047 return this.HTMLElement.Ref() 1048 } 1049 1050 func (this HTMLSourceElement) FromRef(ref js.Ref) HTMLSourceElement { 1051 this.HTMLElement = this.HTMLElement.FromRef(ref) 1052 return this 1053 } 1054 1055 func (this HTMLSourceElement) Free() { 1056 this.ref.Free() 1057 } 1058 1059 // Src returns the value of property "HTMLSourceElement.src". 1060 // 1061 // It returns ok=false if there is no such property. 1062 func (this HTMLSourceElement) Src() (ret js.String, ok bool) { 1063 ok = js.True == bindings.GetHTMLSourceElementSrc( 1064 this.ref, js.Pointer(&ret), 1065 ) 1066 return 1067 } 1068 1069 // SetSrc sets the value of property "HTMLSourceElement.src" to val. 1070 // 1071 // It returns false if the property cannot be set. 1072 func (this HTMLSourceElement) SetSrc(val js.String) bool { 1073 return js.True == bindings.SetHTMLSourceElementSrc( 1074 this.ref, 1075 val.Ref(), 1076 ) 1077 } 1078 1079 // Type returns the value of property "HTMLSourceElement.type". 1080 // 1081 // It returns ok=false if there is no such property. 1082 func (this HTMLSourceElement) Type() (ret js.String, ok bool) { 1083 ok = js.True == bindings.GetHTMLSourceElementType( 1084 this.ref, js.Pointer(&ret), 1085 ) 1086 return 1087 } 1088 1089 // SetType sets the value of property "HTMLSourceElement.type" to val. 1090 // 1091 // It returns false if the property cannot be set. 1092 func (this HTMLSourceElement) SetType(val js.String) bool { 1093 return js.True == bindings.SetHTMLSourceElementType( 1094 this.ref, 1095 val.Ref(), 1096 ) 1097 } 1098 1099 // Srcset returns the value of property "HTMLSourceElement.srcset". 1100 // 1101 // It returns ok=false if there is no such property. 1102 func (this HTMLSourceElement) Srcset() (ret js.String, ok bool) { 1103 ok = js.True == bindings.GetHTMLSourceElementSrcset( 1104 this.ref, js.Pointer(&ret), 1105 ) 1106 return 1107 } 1108 1109 // SetSrcset sets the value of property "HTMLSourceElement.srcset" to val. 1110 // 1111 // It returns false if the property cannot be set. 1112 func (this HTMLSourceElement) SetSrcset(val js.String) bool { 1113 return js.True == bindings.SetHTMLSourceElementSrcset( 1114 this.ref, 1115 val.Ref(), 1116 ) 1117 } 1118 1119 // Sizes returns the value of property "HTMLSourceElement.sizes". 1120 // 1121 // It returns ok=false if there is no such property. 1122 func (this HTMLSourceElement) Sizes() (ret js.String, ok bool) { 1123 ok = js.True == bindings.GetHTMLSourceElementSizes( 1124 this.ref, js.Pointer(&ret), 1125 ) 1126 return 1127 } 1128 1129 // SetSizes sets the value of property "HTMLSourceElement.sizes" to val. 1130 // 1131 // It returns false if the property cannot be set. 1132 func (this HTMLSourceElement) SetSizes(val js.String) bool { 1133 return js.True == bindings.SetHTMLSourceElementSizes( 1134 this.ref, 1135 val.Ref(), 1136 ) 1137 } 1138 1139 // Media returns the value of property "HTMLSourceElement.media". 1140 // 1141 // It returns ok=false if there is no such property. 1142 func (this HTMLSourceElement) Media() (ret js.String, ok bool) { 1143 ok = js.True == bindings.GetHTMLSourceElementMedia( 1144 this.ref, js.Pointer(&ret), 1145 ) 1146 return 1147 } 1148 1149 // SetMedia sets the value of property "HTMLSourceElement.media" to val. 1150 // 1151 // It returns false if the property cannot be set. 1152 func (this HTMLSourceElement) SetMedia(val js.String) bool { 1153 return js.True == bindings.SetHTMLSourceElementMedia( 1154 this.ref, 1155 val.Ref(), 1156 ) 1157 } 1158 1159 // Width returns the value of property "HTMLSourceElement.width". 1160 // 1161 // It returns ok=false if there is no such property. 1162 func (this HTMLSourceElement) Width() (ret uint32, ok bool) { 1163 ok = js.True == bindings.GetHTMLSourceElementWidth( 1164 this.ref, js.Pointer(&ret), 1165 ) 1166 return 1167 } 1168 1169 // SetWidth sets the value of property "HTMLSourceElement.width" to val. 1170 // 1171 // It returns false if the property cannot be set. 1172 func (this HTMLSourceElement) SetWidth(val uint32) bool { 1173 return js.True == bindings.SetHTMLSourceElementWidth( 1174 this.ref, 1175 uint32(val), 1176 ) 1177 } 1178 1179 // Height returns the value of property "HTMLSourceElement.height". 1180 // 1181 // It returns ok=false if there is no such property. 1182 func (this HTMLSourceElement) Height() (ret uint32, ok bool) { 1183 ok = js.True == bindings.GetHTMLSourceElementHeight( 1184 this.ref, js.Pointer(&ret), 1185 ) 1186 return 1187 } 1188 1189 // SetHeight sets the value of property "HTMLSourceElement.height" to val. 1190 // 1191 // It returns false if the property cannot be set. 1192 func (this HTMLSourceElement) SetHeight(val uint32) bool { 1193 return js.True == bindings.SetHTMLSourceElementHeight( 1194 this.ref, 1195 uint32(val), 1196 ) 1197 } 1198 1199 type HTMLSpanElement struct { 1200 HTMLElement 1201 } 1202 1203 func (this HTMLSpanElement) Once() HTMLSpanElement { 1204 this.ref.Once() 1205 return this 1206 } 1207 1208 func (this HTMLSpanElement) Ref() js.Ref { 1209 return this.HTMLElement.Ref() 1210 } 1211 1212 func (this HTMLSpanElement) FromRef(ref js.Ref) HTMLSpanElement { 1213 this.HTMLElement = this.HTMLElement.FromRef(ref) 1214 return this 1215 } 1216 1217 func (this HTMLSpanElement) Free() { 1218 this.ref.Free() 1219 } 1220 1221 type HTMLString = js.String 1222 1223 type HTMLStyleElement struct { 1224 HTMLElement 1225 } 1226 1227 func (this HTMLStyleElement) Once() HTMLStyleElement { 1228 this.ref.Once() 1229 return this 1230 } 1231 1232 func (this HTMLStyleElement) Ref() js.Ref { 1233 return this.HTMLElement.Ref() 1234 } 1235 1236 func (this HTMLStyleElement) FromRef(ref js.Ref) HTMLStyleElement { 1237 this.HTMLElement = this.HTMLElement.FromRef(ref) 1238 return this 1239 } 1240 1241 func (this HTMLStyleElement) Free() { 1242 this.ref.Free() 1243 } 1244 1245 // Disabled returns the value of property "HTMLStyleElement.disabled". 1246 // 1247 // It returns ok=false if there is no such property. 1248 func (this HTMLStyleElement) Disabled() (ret bool, ok bool) { 1249 ok = js.True == bindings.GetHTMLStyleElementDisabled( 1250 this.ref, js.Pointer(&ret), 1251 ) 1252 return 1253 } 1254 1255 // SetDisabled sets the value of property "HTMLStyleElement.disabled" to val. 1256 // 1257 // It returns false if the property cannot be set. 1258 func (this HTMLStyleElement) SetDisabled(val bool) bool { 1259 return js.True == bindings.SetHTMLStyleElementDisabled( 1260 this.ref, 1261 js.Bool(bool(val)), 1262 ) 1263 } 1264 1265 // Media returns the value of property "HTMLStyleElement.media". 1266 // 1267 // It returns ok=false if there is no such property. 1268 func (this HTMLStyleElement) Media() (ret js.String, ok bool) { 1269 ok = js.True == bindings.GetHTMLStyleElementMedia( 1270 this.ref, js.Pointer(&ret), 1271 ) 1272 return 1273 } 1274 1275 // SetMedia sets the value of property "HTMLStyleElement.media" to val. 1276 // 1277 // It returns false if the property cannot be set. 1278 func (this HTMLStyleElement) SetMedia(val js.String) bool { 1279 return js.True == bindings.SetHTMLStyleElementMedia( 1280 this.ref, 1281 val.Ref(), 1282 ) 1283 } 1284 1285 // Blocking returns the value of property "HTMLStyleElement.blocking". 1286 // 1287 // It returns ok=false if there is no such property. 1288 func (this HTMLStyleElement) Blocking() (ret DOMTokenList, ok bool) { 1289 ok = js.True == bindings.GetHTMLStyleElementBlocking( 1290 this.ref, js.Pointer(&ret), 1291 ) 1292 return 1293 } 1294 1295 // Type returns the value of property "HTMLStyleElement.type". 1296 // 1297 // It returns ok=false if there is no such property. 1298 func (this HTMLStyleElement) Type() (ret js.String, ok bool) { 1299 ok = js.True == bindings.GetHTMLStyleElementType( 1300 this.ref, js.Pointer(&ret), 1301 ) 1302 return 1303 } 1304 1305 // SetType sets the value of property "HTMLStyleElement.type" to val. 1306 // 1307 // It returns false if the property cannot be set. 1308 func (this HTMLStyleElement) SetType(val js.String) bool { 1309 return js.True == bindings.SetHTMLStyleElementType( 1310 this.ref, 1311 val.Ref(), 1312 ) 1313 } 1314 1315 // Sheet returns the value of property "HTMLStyleElement.sheet". 1316 // 1317 // It returns ok=false if there is no such property. 1318 func (this HTMLStyleElement) Sheet() (ret CSSStyleSheet, ok bool) { 1319 ok = js.True == bindings.GetHTMLStyleElementSheet( 1320 this.ref, js.Pointer(&ret), 1321 ) 1322 return 1323 } 1324 1325 type HTMLTableCaptionElement struct { 1326 HTMLElement 1327 } 1328 1329 func (this HTMLTableCaptionElement) Once() HTMLTableCaptionElement { 1330 this.ref.Once() 1331 return this 1332 } 1333 1334 func (this HTMLTableCaptionElement) Ref() js.Ref { 1335 return this.HTMLElement.Ref() 1336 } 1337 1338 func (this HTMLTableCaptionElement) FromRef(ref js.Ref) HTMLTableCaptionElement { 1339 this.HTMLElement = this.HTMLElement.FromRef(ref) 1340 return this 1341 } 1342 1343 func (this HTMLTableCaptionElement) Free() { 1344 this.ref.Free() 1345 } 1346 1347 // Align returns the value of property "HTMLTableCaptionElement.align". 1348 // 1349 // It returns ok=false if there is no such property. 1350 func (this HTMLTableCaptionElement) Align() (ret js.String, ok bool) { 1351 ok = js.True == bindings.GetHTMLTableCaptionElementAlign( 1352 this.ref, js.Pointer(&ret), 1353 ) 1354 return 1355 } 1356 1357 // SetAlign sets the value of property "HTMLTableCaptionElement.align" to val. 1358 // 1359 // It returns false if the property cannot be set. 1360 func (this HTMLTableCaptionElement) SetAlign(val js.String) bool { 1361 return js.True == bindings.SetHTMLTableCaptionElementAlign( 1362 this.ref, 1363 val.Ref(), 1364 ) 1365 } 1366 1367 type HTMLTableCellElement struct { 1368 HTMLElement 1369 } 1370 1371 func (this HTMLTableCellElement) Once() HTMLTableCellElement { 1372 this.ref.Once() 1373 return this 1374 } 1375 1376 func (this HTMLTableCellElement) Ref() js.Ref { 1377 return this.HTMLElement.Ref() 1378 } 1379 1380 func (this HTMLTableCellElement) FromRef(ref js.Ref) HTMLTableCellElement { 1381 this.HTMLElement = this.HTMLElement.FromRef(ref) 1382 return this 1383 } 1384 1385 func (this HTMLTableCellElement) Free() { 1386 this.ref.Free() 1387 } 1388 1389 // ColSpan returns the value of property "HTMLTableCellElement.colSpan". 1390 // 1391 // It returns ok=false if there is no such property. 1392 func (this HTMLTableCellElement) ColSpan() (ret uint32, ok bool) { 1393 ok = js.True == bindings.GetHTMLTableCellElementColSpan( 1394 this.ref, js.Pointer(&ret), 1395 ) 1396 return 1397 } 1398 1399 // SetColSpan sets the value of property "HTMLTableCellElement.colSpan" to val. 1400 // 1401 // It returns false if the property cannot be set. 1402 func (this HTMLTableCellElement) SetColSpan(val uint32) bool { 1403 return js.True == bindings.SetHTMLTableCellElementColSpan( 1404 this.ref, 1405 uint32(val), 1406 ) 1407 } 1408 1409 // RowSpan returns the value of property "HTMLTableCellElement.rowSpan". 1410 // 1411 // It returns ok=false if there is no such property. 1412 func (this HTMLTableCellElement) RowSpan() (ret uint32, ok bool) { 1413 ok = js.True == bindings.GetHTMLTableCellElementRowSpan( 1414 this.ref, js.Pointer(&ret), 1415 ) 1416 return 1417 } 1418 1419 // SetRowSpan sets the value of property "HTMLTableCellElement.rowSpan" to val. 1420 // 1421 // It returns false if the property cannot be set. 1422 func (this HTMLTableCellElement) SetRowSpan(val uint32) bool { 1423 return js.True == bindings.SetHTMLTableCellElementRowSpan( 1424 this.ref, 1425 uint32(val), 1426 ) 1427 } 1428 1429 // Headers returns the value of property "HTMLTableCellElement.headers". 1430 // 1431 // It returns ok=false if there is no such property. 1432 func (this HTMLTableCellElement) Headers() (ret js.String, ok bool) { 1433 ok = js.True == bindings.GetHTMLTableCellElementHeaders( 1434 this.ref, js.Pointer(&ret), 1435 ) 1436 return 1437 } 1438 1439 // SetHeaders sets the value of property "HTMLTableCellElement.headers" to val. 1440 // 1441 // It returns false if the property cannot be set. 1442 func (this HTMLTableCellElement) SetHeaders(val js.String) bool { 1443 return js.True == bindings.SetHTMLTableCellElementHeaders( 1444 this.ref, 1445 val.Ref(), 1446 ) 1447 } 1448 1449 // CellIndex returns the value of property "HTMLTableCellElement.cellIndex". 1450 // 1451 // It returns ok=false if there is no such property. 1452 func (this HTMLTableCellElement) CellIndex() (ret int32, ok bool) { 1453 ok = js.True == bindings.GetHTMLTableCellElementCellIndex( 1454 this.ref, js.Pointer(&ret), 1455 ) 1456 return 1457 } 1458 1459 // Scope returns the value of property "HTMLTableCellElement.scope". 1460 // 1461 // It returns ok=false if there is no such property. 1462 func (this HTMLTableCellElement) Scope() (ret js.String, ok bool) { 1463 ok = js.True == bindings.GetHTMLTableCellElementScope( 1464 this.ref, js.Pointer(&ret), 1465 ) 1466 return 1467 } 1468 1469 // SetScope sets the value of property "HTMLTableCellElement.scope" to val. 1470 // 1471 // It returns false if the property cannot be set. 1472 func (this HTMLTableCellElement) SetScope(val js.String) bool { 1473 return js.True == bindings.SetHTMLTableCellElementScope( 1474 this.ref, 1475 val.Ref(), 1476 ) 1477 } 1478 1479 // Abbr returns the value of property "HTMLTableCellElement.abbr". 1480 // 1481 // It returns ok=false if there is no such property. 1482 func (this HTMLTableCellElement) Abbr() (ret js.String, ok bool) { 1483 ok = js.True == bindings.GetHTMLTableCellElementAbbr( 1484 this.ref, js.Pointer(&ret), 1485 ) 1486 return 1487 } 1488 1489 // SetAbbr sets the value of property "HTMLTableCellElement.abbr" to val. 1490 // 1491 // It returns false if the property cannot be set. 1492 func (this HTMLTableCellElement) SetAbbr(val js.String) bool { 1493 return js.True == bindings.SetHTMLTableCellElementAbbr( 1494 this.ref, 1495 val.Ref(), 1496 ) 1497 } 1498 1499 // Align returns the value of property "HTMLTableCellElement.align". 1500 // 1501 // It returns ok=false if there is no such property. 1502 func (this HTMLTableCellElement) Align() (ret js.String, ok bool) { 1503 ok = js.True == bindings.GetHTMLTableCellElementAlign( 1504 this.ref, js.Pointer(&ret), 1505 ) 1506 return 1507 } 1508 1509 // SetAlign sets the value of property "HTMLTableCellElement.align" to val. 1510 // 1511 // It returns false if the property cannot be set. 1512 func (this HTMLTableCellElement) SetAlign(val js.String) bool { 1513 return js.True == bindings.SetHTMLTableCellElementAlign( 1514 this.ref, 1515 val.Ref(), 1516 ) 1517 } 1518 1519 // Axis returns the value of property "HTMLTableCellElement.axis". 1520 // 1521 // It returns ok=false if there is no such property. 1522 func (this HTMLTableCellElement) Axis() (ret js.String, ok bool) { 1523 ok = js.True == bindings.GetHTMLTableCellElementAxis( 1524 this.ref, js.Pointer(&ret), 1525 ) 1526 return 1527 } 1528 1529 // SetAxis sets the value of property "HTMLTableCellElement.axis" to val. 1530 // 1531 // It returns false if the property cannot be set. 1532 func (this HTMLTableCellElement) SetAxis(val js.String) bool { 1533 return js.True == bindings.SetHTMLTableCellElementAxis( 1534 this.ref, 1535 val.Ref(), 1536 ) 1537 } 1538 1539 // Height returns the value of property "HTMLTableCellElement.height". 1540 // 1541 // It returns ok=false if there is no such property. 1542 func (this HTMLTableCellElement) Height() (ret js.String, ok bool) { 1543 ok = js.True == bindings.GetHTMLTableCellElementHeight( 1544 this.ref, js.Pointer(&ret), 1545 ) 1546 return 1547 } 1548 1549 // SetHeight sets the value of property "HTMLTableCellElement.height" to val. 1550 // 1551 // It returns false if the property cannot be set. 1552 func (this HTMLTableCellElement) SetHeight(val js.String) bool { 1553 return js.True == bindings.SetHTMLTableCellElementHeight( 1554 this.ref, 1555 val.Ref(), 1556 ) 1557 } 1558 1559 // Width returns the value of property "HTMLTableCellElement.width". 1560 // 1561 // It returns ok=false if there is no such property. 1562 func (this HTMLTableCellElement) Width() (ret js.String, ok bool) { 1563 ok = js.True == bindings.GetHTMLTableCellElementWidth( 1564 this.ref, js.Pointer(&ret), 1565 ) 1566 return 1567 } 1568 1569 // SetWidth sets the value of property "HTMLTableCellElement.width" to val. 1570 // 1571 // It returns false if the property cannot be set. 1572 func (this HTMLTableCellElement) SetWidth(val js.String) bool { 1573 return js.True == bindings.SetHTMLTableCellElementWidth( 1574 this.ref, 1575 val.Ref(), 1576 ) 1577 } 1578 1579 // Ch returns the value of property "HTMLTableCellElement.ch". 1580 // 1581 // It returns ok=false if there is no such property. 1582 func (this HTMLTableCellElement) Ch() (ret js.String, ok bool) { 1583 ok = js.True == bindings.GetHTMLTableCellElementCh( 1584 this.ref, js.Pointer(&ret), 1585 ) 1586 return 1587 } 1588 1589 // SetCh sets the value of property "HTMLTableCellElement.ch" to val. 1590 // 1591 // It returns false if the property cannot be set. 1592 func (this HTMLTableCellElement) SetCh(val js.String) bool { 1593 return js.True == bindings.SetHTMLTableCellElementCh( 1594 this.ref, 1595 val.Ref(), 1596 ) 1597 } 1598 1599 // ChOff returns the value of property "HTMLTableCellElement.chOff". 1600 // 1601 // It returns ok=false if there is no such property. 1602 func (this HTMLTableCellElement) ChOff() (ret js.String, ok bool) { 1603 ok = js.True == bindings.GetHTMLTableCellElementChOff( 1604 this.ref, js.Pointer(&ret), 1605 ) 1606 return 1607 } 1608 1609 // SetChOff sets the value of property "HTMLTableCellElement.chOff" to val. 1610 // 1611 // It returns false if the property cannot be set. 1612 func (this HTMLTableCellElement) SetChOff(val js.String) bool { 1613 return js.True == bindings.SetHTMLTableCellElementChOff( 1614 this.ref, 1615 val.Ref(), 1616 ) 1617 } 1618 1619 // NoWrap returns the value of property "HTMLTableCellElement.noWrap". 1620 // 1621 // It returns ok=false if there is no such property. 1622 func (this HTMLTableCellElement) NoWrap() (ret bool, ok bool) { 1623 ok = js.True == bindings.GetHTMLTableCellElementNoWrap( 1624 this.ref, js.Pointer(&ret), 1625 ) 1626 return 1627 } 1628 1629 // SetNoWrap sets the value of property "HTMLTableCellElement.noWrap" to val. 1630 // 1631 // It returns false if the property cannot be set. 1632 func (this HTMLTableCellElement) SetNoWrap(val bool) bool { 1633 return js.True == bindings.SetHTMLTableCellElementNoWrap( 1634 this.ref, 1635 js.Bool(bool(val)), 1636 ) 1637 } 1638 1639 // VAlign returns the value of property "HTMLTableCellElement.vAlign". 1640 // 1641 // It returns ok=false if there is no such property. 1642 func (this HTMLTableCellElement) VAlign() (ret js.String, ok bool) { 1643 ok = js.True == bindings.GetHTMLTableCellElementVAlign( 1644 this.ref, js.Pointer(&ret), 1645 ) 1646 return 1647 } 1648 1649 // SetVAlign sets the value of property "HTMLTableCellElement.vAlign" to val. 1650 // 1651 // It returns false if the property cannot be set. 1652 func (this HTMLTableCellElement) SetVAlign(val js.String) bool { 1653 return js.True == bindings.SetHTMLTableCellElementVAlign( 1654 this.ref, 1655 val.Ref(), 1656 ) 1657 } 1658 1659 // BgColor returns the value of property "HTMLTableCellElement.bgColor". 1660 // 1661 // It returns ok=false if there is no such property. 1662 func (this HTMLTableCellElement) BgColor() (ret js.String, ok bool) { 1663 ok = js.True == bindings.GetHTMLTableCellElementBgColor( 1664 this.ref, js.Pointer(&ret), 1665 ) 1666 return 1667 } 1668 1669 // SetBgColor sets the value of property "HTMLTableCellElement.bgColor" to val. 1670 // 1671 // It returns false if the property cannot be set. 1672 func (this HTMLTableCellElement) SetBgColor(val js.String) bool { 1673 return js.True == bindings.SetHTMLTableCellElementBgColor( 1674 this.ref, 1675 val.Ref(), 1676 ) 1677 } 1678 1679 type HTMLTableColElement struct { 1680 HTMLElement 1681 } 1682 1683 func (this HTMLTableColElement) Once() HTMLTableColElement { 1684 this.ref.Once() 1685 return this 1686 } 1687 1688 func (this HTMLTableColElement) Ref() js.Ref { 1689 return this.HTMLElement.Ref() 1690 } 1691 1692 func (this HTMLTableColElement) FromRef(ref js.Ref) HTMLTableColElement { 1693 this.HTMLElement = this.HTMLElement.FromRef(ref) 1694 return this 1695 } 1696 1697 func (this HTMLTableColElement) Free() { 1698 this.ref.Free() 1699 } 1700 1701 // Span returns the value of property "HTMLTableColElement.span". 1702 // 1703 // It returns ok=false if there is no such property. 1704 func (this HTMLTableColElement) Span() (ret uint32, ok bool) { 1705 ok = js.True == bindings.GetHTMLTableColElementSpan( 1706 this.ref, js.Pointer(&ret), 1707 ) 1708 return 1709 } 1710 1711 // SetSpan sets the value of property "HTMLTableColElement.span" to val. 1712 // 1713 // It returns false if the property cannot be set. 1714 func (this HTMLTableColElement) SetSpan(val uint32) bool { 1715 return js.True == bindings.SetHTMLTableColElementSpan( 1716 this.ref, 1717 uint32(val), 1718 ) 1719 } 1720 1721 // Align returns the value of property "HTMLTableColElement.align". 1722 // 1723 // It returns ok=false if there is no such property. 1724 func (this HTMLTableColElement) Align() (ret js.String, ok bool) { 1725 ok = js.True == bindings.GetHTMLTableColElementAlign( 1726 this.ref, js.Pointer(&ret), 1727 ) 1728 return 1729 } 1730 1731 // SetAlign sets the value of property "HTMLTableColElement.align" to val. 1732 // 1733 // It returns false if the property cannot be set. 1734 func (this HTMLTableColElement) SetAlign(val js.String) bool { 1735 return js.True == bindings.SetHTMLTableColElementAlign( 1736 this.ref, 1737 val.Ref(), 1738 ) 1739 } 1740 1741 // Ch returns the value of property "HTMLTableColElement.ch". 1742 // 1743 // It returns ok=false if there is no such property. 1744 func (this HTMLTableColElement) Ch() (ret js.String, ok bool) { 1745 ok = js.True == bindings.GetHTMLTableColElementCh( 1746 this.ref, js.Pointer(&ret), 1747 ) 1748 return 1749 } 1750 1751 // SetCh sets the value of property "HTMLTableColElement.ch" to val. 1752 // 1753 // It returns false if the property cannot be set. 1754 func (this HTMLTableColElement) SetCh(val js.String) bool { 1755 return js.True == bindings.SetHTMLTableColElementCh( 1756 this.ref, 1757 val.Ref(), 1758 ) 1759 } 1760 1761 // ChOff returns the value of property "HTMLTableColElement.chOff". 1762 // 1763 // It returns ok=false if there is no such property. 1764 func (this HTMLTableColElement) ChOff() (ret js.String, ok bool) { 1765 ok = js.True == bindings.GetHTMLTableColElementChOff( 1766 this.ref, js.Pointer(&ret), 1767 ) 1768 return 1769 } 1770 1771 // SetChOff sets the value of property "HTMLTableColElement.chOff" to val. 1772 // 1773 // It returns false if the property cannot be set. 1774 func (this HTMLTableColElement) SetChOff(val js.String) bool { 1775 return js.True == bindings.SetHTMLTableColElementChOff( 1776 this.ref, 1777 val.Ref(), 1778 ) 1779 } 1780 1781 // VAlign returns the value of property "HTMLTableColElement.vAlign". 1782 // 1783 // It returns ok=false if there is no such property. 1784 func (this HTMLTableColElement) VAlign() (ret js.String, ok bool) { 1785 ok = js.True == bindings.GetHTMLTableColElementVAlign( 1786 this.ref, js.Pointer(&ret), 1787 ) 1788 return 1789 } 1790 1791 // SetVAlign sets the value of property "HTMLTableColElement.vAlign" to val. 1792 // 1793 // It returns false if the property cannot be set. 1794 func (this HTMLTableColElement) SetVAlign(val js.String) bool { 1795 return js.True == bindings.SetHTMLTableColElementVAlign( 1796 this.ref, 1797 val.Ref(), 1798 ) 1799 } 1800 1801 // Width returns the value of property "HTMLTableColElement.width". 1802 // 1803 // It returns ok=false if there is no such property. 1804 func (this HTMLTableColElement) Width() (ret js.String, ok bool) { 1805 ok = js.True == bindings.GetHTMLTableColElementWidth( 1806 this.ref, js.Pointer(&ret), 1807 ) 1808 return 1809 } 1810 1811 // SetWidth sets the value of property "HTMLTableColElement.width" to val. 1812 // 1813 // It returns false if the property cannot be set. 1814 func (this HTMLTableColElement) SetWidth(val js.String) bool { 1815 return js.True == bindings.SetHTMLTableColElementWidth( 1816 this.ref, 1817 val.Ref(), 1818 ) 1819 } 1820 1821 type HTMLTableRowElement struct { 1822 HTMLElement 1823 } 1824 1825 func (this HTMLTableRowElement) Once() HTMLTableRowElement { 1826 this.ref.Once() 1827 return this 1828 } 1829 1830 func (this HTMLTableRowElement) Ref() js.Ref { 1831 return this.HTMLElement.Ref() 1832 } 1833 1834 func (this HTMLTableRowElement) FromRef(ref js.Ref) HTMLTableRowElement { 1835 this.HTMLElement = this.HTMLElement.FromRef(ref) 1836 return this 1837 } 1838 1839 func (this HTMLTableRowElement) Free() { 1840 this.ref.Free() 1841 } 1842 1843 // RowIndex returns the value of property "HTMLTableRowElement.rowIndex". 1844 // 1845 // It returns ok=false if there is no such property. 1846 func (this HTMLTableRowElement) RowIndex() (ret int32, ok bool) { 1847 ok = js.True == bindings.GetHTMLTableRowElementRowIndex( 1848 this.ref, js.Pointer(&ret), 1849 ) 1850 return 1851 } 1852 1853 // SectionRowIndex returns the value of property "HTMLTableRowElement.sectionRowIndex". 1854 // 1855 // It returns ok=false if there is no such property. 1856 func (this HTMLTableRowElement) SectionRowIndex() (ret int32, ok bool) { 1857 ok = js.True == bindings.GetHTMLTableRowElementSectionRowIndex( 1858 this.ref, js.Pointer(&ret), 1859 ) 1860 return 1861 } 1862 1863 // Cells returns the value of property "HTMLTableRowElement.cells". 1864 // 1865 // It returns ok=false if there is no such property. 1866 func (this HTMLTableRowElement) Cells() (ret HTMLCollection, ok bool) { 1867 ok = js.True == bindings.GetHTMLTableRowElementCells( 1868 this.ref, js.Pointer(&ret), 1869 ) 1870 return 1871 } 1872 1873 // Align returns the value of property "HTMLTableRowElement.align". 1874 // 1875 // It returns ok=false if there is no such property. 1876 func (this HTMLTableRowElement) Align() (ret js.String, ok bool) { 1877 ok = js.True == bindings.GetHTMLTableRowElementAlign( 1878 this.ref, js.Pointer(&ret), 1879 ) 1880 return 1881 } 1882 1883 // SetAlign sets the value of property "HTMLTableRowElement.align" to val. 1884 // 1885 // It returns false if the property cannot be set. 1886 func (this HTMLTableRowElement) SetAlign(val js.String) bool { 1887 return js.True == bindings.SetHTMLTableRowElementAlign( 1888 this.ref, 1889 val.Ref(), 1890 ) 1891 } 1892 1893 // Ch returns the value of property "HTMLTableRowElement.ch". 1894 // 1895 // It returns ok=false if there is no such property. 1896 func (this HTMLTableRowElement) Ch() (ret js.String, ok bool) { 1897 ok = js.True == bindings.GetHTMLTableRowElementCh( 1898 this.ref, js.Pointer(&ret), 1899 ) 1900 return 1901 } 1902 1903 // SetCh sets the value of property "HTMLTableRowElement.ch" to val. 1904 // 1905 // It returns false if the property cannot be set. 1906 func (this HTMLTableRowElement) SetCh(val js.String) bool { 1907 return js.True == bindings.SetHTMLTableRowElementCh( 1908 this.ref, 1909 val.Ref(), 1910 ) 1911 } 1912 1913 // ChOff returns the value of property "HTMLTableRowElement.chOff". 1914 // 1915 // It returns ok=false if there is no such property. 1916 func (this HTMLTableRowElement) ChOff() (ret js.String, ok bool) { 1917 ok = js.True == bindings.GetHTMLTableRowElementChOff( 1918 this.ref, js.Pointer(&ret), 1919 ) 1920 return 1921 } 1922 1923 // SetChOff sets the value of property "HTMLTableRowElement.chOff" to val. 1924 // 1925 // It returns false if the property cannot be set. 1926 func (this HTMLTableRowElement) SetChOff(val js.String) bool { 1927 return js.True == bindings.SetHTMLTableRowElementChOff( 1928 this.ref, 1929 val.Ref(), 1930 ) 1931 } 1932 1933 // VAlign returns the value of property "HTMLTableRowElement.vAlign". 1934 // 1935 // It returns ok=false if there is no such property. 1936 func (this HTMLTableRowElement) VAlign() (ret js.String, ok bool) { 1937 ok = js.True == bindings.GetHTMLTableRowElementVAlign( 1938 this.ref, js.Pointer(&ret), 1939 ) 1940 return 1941 } 1942 1943 // SetVAlign sets the value of property "HTMLTableRowElement.vAlign" to val. 1944 // 1945 // It returns false if the property cannot be set. 1946 func (this HTMLTableRowElement) SetVAlign(val js.String) bool { 1947 return js.True == bindings.SetHTMLTableRowElementVAlign( 1948 this.ref, 1949 val.Ref(), 1950 ) 1951 } 1952 1953 // BgColor returns the value of property "HTMLTableRowElement.bgColor". 1954 // 1955 // It returns ok=false if there is no such property. 1956 func (this HTMLTableRowElement) BgColor() (ret js.String, ok bool) { 1957 ok = js.True == bindings.GetHTMLTableRowElementBgColor( 1958 this.ref, js.Pointer(&ret), 1959 ) 1960 return 1961 } 1962 1963 // SetBgColor sets the value of property "HTMLTableRowElement.bgColor" to val. 1964 // 1965 // It returns false if the property cannot be set. 1966 func (this HTMLTableRowElement) SetBgColor(val js.String) bool { 1967 return js.True == bindings.SetHTMLTableRowElementBgColor( 1968 this.ref, 1969 val.Ref(), 1970 ) 1971 } 1972 1973 // HasFuncInsertCell returns true if the method "HTMLTableRowElement.insertCell" exists. 1974 func (this HTMLTableRowElement) HasFuncInsertCell() bool { 1975 return js.True == bindings.HasFuncHTMLTableRowElementInsertCell( 1976 this.ref, 1977 ) 1978 } 1979 1980 // FuncInsertCell returns the method "HTMLTableRowElement.insertCell". 1981 func (this HTMLTableRowElement) FuncInsertCell() (fn js.Func[func(index int32) HTMLTableCellElement]) { 1982 bindings.FuncHTMLTableRowElementInsertCell( 1983 this.ref, js.Pointer(&fn), 1984 ) 1985 return 1986 } 1987 1988 // InsertCell calls the method "HTMLTableRowElement.insertCell". 1989 func (this HTMLTableRowElement) InsertCell(index int32) (ret HTMLTableCellElement) { 1990 bindings.CallHTMLTableRowElementInsertCell( 1991 this.ref, js.Pointer(&ret), 1992 int32(index), 1993 ) 1994 1995 return 1996 } 1997 1998 // TryInsertCell calls the method "HTMLTableRowElement.insertCell" 1999 // in a try/catch block and returns (_, err, ok = false) when it went through 2000 // the catch clause. 2001 func (this HTMLTableRowElement) TryInsertCell(index int32) (ret HTMLTableCellElement, exception js.Any, ok bool) { 2002 ok = js.True == bindings.TryHTMLTableRowElementInsertCell( 2003 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2004 int32(index), 2005 ) 2006 2007 return 2008 } 2009 2010 // HasFuncInsertCell1 returns true if the method "HTMLTableRowElement.insertCell" exists. 2011 func (this HTMLTableRowElement) HasFuncInsertCell1() bool { 2012 return js.True == bindings.HasFuncHTMLTableRowElementInsertCell1( 2013 this.ref, 2014 ) 2015 } 2016 2017 // FuncInsertCell1 returns the method "HTMLTableRowElement.insertCell". 2018 func (this HTMLTableRowElement) FuncInsertCell1() (fn js.Func[func() HTMLTableCellElement]) { 2019 bindings.FuncHTMLTableRowElementInsertCell1( 2020 this.ref, js.Pointer(&fn), 2021 ) 2022 return 2023 } 2024 2025 // InsertCell1 calls the method "HTMLTableRowElement.insertCell". 2026 func (this HTMLTableRowElement) InsertCell1() (ret HTMLTableCellElement) { 2027 bindings.CallHTMLTableRowElementInsertCell1( 2028 this.ref, js.Pointer(&ret), 2029 ) 2030 2031 return 2032 } 2033 2034 // TryInsertCell1 calls the method "HTMLTableRowElement.insertCell" 2035 // in a try/catch block and returns (_, err, ok = false) when it went through 2036 // the catch clause. 2037 func (this HTMLTableRowElement) TryInsertCell1() (ret HTMLTableCellElement, exception js.Any, ok bool) { 2038 ok = js.True == bindings.TryHTMLTableRowElementInsertCell1( 2039 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2040 ) 2041 2042 return 2043 } 2044 2045 // HasFuncDeleteCell returns true if the method "HTMLTableRowElement.deleteCell" exists. 2046 func (this HTMLTableRowElement) HasFuncDeleteCell() bool { 2047 return js.True == bindings.HasFuncHTMLTableRowElementDeleteCell( 2048 this.ref, 2049 ) 2050 } 2051 2052 // FuncDeleteCell returns the method "HTMLTableRowElement.deleteCell". 2053 func (this HTMLTableRowElement) FuncDeleteCell() (fn js.Func[func(index int32)]) { 2054 bindings.FuncHTMLTableRowElementDeleteCell( 2055 this.ref, js.Pointer(&fn), 2056 ) 2057 return 2058 } 2059 2060 // DeleteCell calls the method "HTMLTableRowElement.deleteCell". 2061 func (this HTMLTableRowElement) DeleteCell(index int32) (ret js.Void) { 2062 bindings.CallHTMLTableRowElementDeleteCell( 2063 this.ref, js.Pointer(&ret), 2064 int32(index), 2065 ) 2066 2067 return 2068 } 2069 2070 // TryDeleteCell calls the method "HTMLTableRowElement.deleteCell" 2071 // in a try/catch block and returns (_, err, ok = false) when it went through 2072 // the catch clause. 2073 func (this HTMLTableRowElement) TryDeleteCell(index int32) (ret js.Void, exception js.Any, ok bool) { 2074 ok = js.True == bindings.TryHTMLTableRowElementDeleteCell( 2075 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2076 int32(index), 2077 ) 2078 2079 return 2080 } 2081 2082 type HTMLTableSectionElement struct { 2083 HTMLElement 2084 } 2085 2086 func (this HTMLTableSectionElement) Once() HTMLTableSectionElement { 2087 this.ref.Once() 2088 return this 2089 } 2090 2091 func (this HTMLTableSectionElement) Ref() js.Ref { 2092 return this.HTMLElement.Ref() 2093 } 2094 2095 func (this HTMLTableSectionElement) FromRef(ref js.Ref) HTMLTableSectionElement { 2096 this.HTMLElement = this.HTMLElement.FromRef(ref) 2097 return this 2098 } 2099 2100 func (this HTMLTableSectionElement) Free() { 2101 this.ref.Free() 2102 } 2103 2104 // Rows returns the value of property "HTMLTableSectionElement.rows". 2105 // 2106 // It returns ok=false if there is no such property. 2107 func (this HTMLTableSectionElement) Rows() (ret HTMLCollection, ok bool) { 2108 ok = js.True == bindings.GetHTMLTableSectionElementRows( 2109 this.ref, js.Pointer(&ret), 2110 ) 2111 return 2112 } 2113 2114 // Align returns the value of property "HTMLTableSectionElement.align". 2115 // 2116 // It returns ok=false if there is no such property. 2117 func (this HTMLTableSectionElement) Align() (ret js.String, ok bool) { 2118 ok = js.True == bindings.GetHTMLTableSectionElementAlign( 2119 this.ref, js.Pointer(&ret), 2120 ) 2121 return 2122 } 2123 2124 // SetAlign sets the value of property "HTMLTableSectionElement.align" to val. 2125 // 2126 // It returns false if the property cannot be set. 2127 func (this HTMLTableSectionElement) SetAlign(val js.String) bool { 2128 return js.True == bindings.SetHTMLTableSectionElementAlign( 2129 this.ref, 2130 val.Ref(), 2131 ) 2132 } 2133 2134 // Ch returns the value of property "HTMLTableSectionElement.ch". 2135 // 2136 // It returns ok=false if there is no such property. 2137 func (this HTMLTableSectionElement) Ch() (ret js.String, ok bool) { 2138 ok = js.True == bindings.GetHTMLTableSectionElementCh( 2139 this.ref, js.Pointer(&ret), 2140 ) 2141 return 2142 } 2143 2144 // SetCh sets the value of property "HTMLTableSectionElement.ch" to val. 2145 // 2146 // It returns false if the property cannot be set. 2147 func (this HTMLTableSectionElement) SetCh(val js.String) bool { 2148 return js.True == bindings.SetHTMLTableSectionElementCh( 2149 this.ref, 2150 val.Ref(), 2151 ) 2152 } 2153 2154 // ChOff returns the value of property "HTMLTableSectionElement.chOff". 2155 // 2156 // It returns ok=false if there is no such property. 2157 func (this HTMLTableSectionElement) ChOff() (ret js.String, ok bool) { 2158 ok = js.True == bindings.GetHTMLTableSectionElementChOff( 2159 this.ref, js.Pointer(&ret), 2160 ) 2161 return 2162 } 2163 2164 // SetChOff sets the value of property "HTMLTableSectionElement.chOff" to val. 2165 // 2166 // It returns false if the property cannot be set. 2167 func (this HTMLTableSectionElement) SetChOff(val js.String) bool { 2168 return js.True == bindings.SetHTMLTableSectionElementChOff( 2169 this.ref, 2170 val.Ref(), 2171 ) 2172 } 2173 2174 // VAlign returns the value of property "HTMLTableSectionElement.vAlign". 2175 // 2176 // It returns ok=false if there is no such property. 2177 func (this HTMLTableSectionElement) VAlign() (ret js.String, ok bool) { 2178 ok = js.True == bindings.GetHTMLTableSectionElementVAlign( 2179 this.ref, js.Pointer(&ret), 2180 ) 2181 return 2182 } 2183 2184 // SetVAlign sets the value of property "HTMLTableSectionElement.vAlign" to val. 2185 // 2186 // It returns false if the property cannot be set. 2187 func (this HTMLTableSectionElement) SetVAlign(val js.String) bool { 2188 return js.True == bindings.SetHTMLTableSectionElementVAlign( 2189 this.ref, 2190 val.Ref(), 2191 ) 2192 } 2193 2194 // HasFuncInsertRow returns true if the method "HTMLTableSectionElement.insertRow" exists. 2195 func (this HTMLTableSectionElement) HasFuncInsertRow() bool { 2196 return js.True == bindings.HasFuncHTMLTableSectionElementInsertRow( 2197 this.ref, 2198 ) 2199 } 2200 2201 // FuncInsertRow returns the method "HTMLTableSectionElement.insertRow". 2202 func (this HTMLTableSectionElement) FuncInsertRow() (fn js.Func[func(index int32) HTMLTableRowElement]) { 2203 bindings.FuncHTMLTableSectionElementInsertRow( 2204 this.ref, js.Pointer(&fn), 2205 ) 2206 return 2207 } 2208 2209 // InsertRow calls the method "HTMLTableSectionElement.insertRow". 2210 func (this HTMLTableSectionElement) InsertRow(index int32) (ret HTMLTableRowElement) { 2211 bindings.CallHTMLTableSectionElementInsertRow( 2212 this.ref, js.Pointer(&ret), 2213 int32(index), 2214 ) 2215 2216 return 2217 } 2218 2219 // TryInsertRow calls the method "HTMLTableSectionElement.insertRow" 2220 // in a try/catch block and returns (_, err, ok = false) when it went through 2221 // the catch clause. 2222 func (this HTMLTableSectionElement) TryInsertRow(index int32) (ret HTMLTableRowElement, exception js.Any, ok bool) { 2223 ok = js.True == bindings.TryHTMLTableSectionElementInsertRow( 2224 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2225 int32(index), 2226 ) 2227 2228 return 2229 } 2230 2231 // HasFuncInsertRow1 returns true if the method "HTMLTableSectionElement.insertRow" exists. 2232 func (this HTMLTableSectionElement) HasFuncInsertRow1() bool { 2233 return js.True == bindings.HasFuncHTMLTableSectionElementInsertRow1( 2234 this.ref, 2235 ) 2236 } 2237 2238 // FuncInsertRow1 returns the method "HTMLTableSectionElement.insertRow". 2239 func (this HTMLTableSectionElement) FuncInsertRow1() (fn js.Func[func() HTMLTableRowElement]) { 2240 bindings.FuncHTMLTableSectionElementInsertRow1( 2241 this.ref, js.Pointer(&fn), 2242 ) 2243 return 2244 } 2245 2246 // InsertRow1 calls the method "HTMLTableSectionElement.insertRow". 2247 func (this HTMLTableSectionElement) InsertRow1() (ret HTMLTableRowElement) { 2248 bindings.CallHTMLTableSectionElementInsertRow1( 2249 this.ref, js.Pointer(&ret), 2250 ) 2251 2252 return 2253 } 2254 2255 // TryInsertRow1 calls the method "HTMLTableSectionElement.insertRow" 2256 // in a try/catch block and returns (_, err, ok = false) when it went through 2257 // the catch clause. 2258 func (this HTMLTableSectionElement) TryInsertRow1() (ret HTMLTableRowElement, exception js.Any, ok bool) { 2259 ok = js.True == bindings.TryHTMLTableSectionElementInsertRow1( 2260 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2261 ) 2262 2263 return 2264 } 2265 2266 // HasFuncDeleteRow returns true if the method "HTMLTableSectionElement.deleteRow" exists. 2267 func (this HTMLTableSectionElement) HasFuncDeleteRow() bool { 2268 return js.True == bindings.HasFuncHTMLTableSectionElementDeleteRow( 2269 this.ref, 2270 ) 2271 } 2272 2273 // FuncDeleteRow returns the method "HTMLTableSectionElement.deleteRow". 2274 func (this HTMLTableSectionElement) FuncDeleteRow() (fn js.Func[func(index int32)]) { 2275 bindings.FuncHTMLTableSectionElementDeleteRow( 2276 this.ref, js.Pointer(&fn), 2277 ) 2278 return 2279 } 2280 2281 // DeleteRow calls the method "HTMLTableSectionElement.deleteRow". 2282 func (this HTMLTableSectionElement) DeleteRow(index int32) (ret js.Void) { 2283 bindings.CallHTMLTableSectionElementDeleteRow( 2284 this.ref, js.Pointer(&ret), 2285 int32(index), 2286 ) 2287 2288 return 2289 } 2290 2291 // TryDeleteRow calls the method "HTMLTableSectionElement.deleteRow" 2292 // in a try/catch block and returns (_, err, ok = false) when it went through 2293 // the catch clause. 2294 func (this HTMLTableSectionElement) TryDeleteRow(index int32) (ret js.Void, exception js.Any, ok bool) { 2295 ok = js.True == bindings.TryHTMLTableSectionElementDeleteRow( 2296 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2297 int32(index), 2298 ) 2299 2300 return 2301 } 2302 2303 type HTMLTableElement struct { 2304 HTMLElement 2305 } 2306 2307 func (this HTMLTableElement) Once() HTMLTableElement { 2308 this.ref.Once() 2309 return this 2310 } 2311 2312 func (this HTMLTableElement) Ref() js.Ref { 2313 return this.HTMLElement.Ref() 2314 } 2315 2316 func (this HTMLTableElement) FromRef(ref js.Ref) HTMLTableElement { 2317 this.HTMLElement = this.HTMLElement.FromRef(ref) 2318 return this 2319 } 2320 2321 func (this HTMLTableElement) Free() { 2322 this.ref.Free() 2323 } 2324 2325 // Caption returns the value of property "HTMLTableElement.caption". 2326 // 2327 // It returns ok=false if there is no such property. 2328 func (this HTMLTableElement) Caption() (ret HTMLTableCaptionElement, ok bool) { 2329 ok = js.True == bindings.GetHTMLTableElementCaption( 2330 this.ref, js.Pointer(&ret), 2331 ) 2332 return 2333 } 2334 2335 // SetCaption sets the value of property "HTMLTableElement.caption" to val. 2336 // 2337 // It returns false if the property cannot be set. 2338 func (this HTMLTableElement) SetCaption(val HTMLTableCaptionElement) bool { 2339 return js.True == bindings.SetHTMLTableElementCaption( 2340 this.ref, 2341 val.Ref(), 2342 ) 2343 } 2344 2345 // THead returns the value of property "HTMLTableElement.tHead". 2346 // 2347 // It returns ok=false if there is no such property. 2348 func (this HTMLTableElement) THead() (ret HTMLTableSectionElement, ok bool) { 2349 ok = js.True == bindings.GetHTMLTableElementTHead( 2350 this.ref, js.Pointer(&ret), 2351 ) 2352 return 2353 } 2354 2355 // SetTHead sets the value of property "HTMLTableElement.tHead" to val. 2356 // 2357 // It returns false if the property cannot be set. 2358 func (this HTMLTableElement) SetTHead(val HTMLTableSectionElement) bool { 2359 return js.True == bindings.SetHTMLTableElementTHead( 2360 this.ref, 2361 val.Ref(), 2362 ) 2363 } 2364 2365 // TFoot returns the value of property "HTMLTableElement.tFoot". 2366 // 2367 // It returns ok=false if there is no such property. 2368 func (this HTMLTableElement) TFoot() (ret HTMLTableSectionElement, ok bool) { 2369 ok = js.True == bindings.GetHTMLTableElementTFoot( 2370 this.ref, js.Pointer(&ret), 2371 ) 2372 return 2373 } 2374 2375 // SetTFoot sets the value of property "HTMLTableElement.tFoot" to val. 2376 // 2377 // It returns false if the property cannot be set. 2378 func (this HTMLTableElement) SetTFoot(val HTMLTableSectionElement) bool { 2379 return js.True == bindings.SetHTMLTableElementTFoot( 2380 this.ref, 2381 val.Ref(), 2382 ) 2383 } 2384 2385 // TBodies returns the value of property "HTMLTableElement.tBodies". 2386 // 2387 // It returns ok=false if there is no such property. 2388 func (this HTMLTableElement) TBodies() (ret HTMLCollection, ok bool) { 2389 ok = js.True == bindings.GetHTMLTableElementTBodies( 2390 this.ref, js.Pointer(&ret), 2391 ) 2392 return 2393 } 2394 2395 // Rows returns the value of property "HTMLTableElement.rows". 2396 // 2397 // It returns ok=false if there is no such property. 2398 func (this HTMLTableElement) Rows() (ret HTMLCollection, ok bool) { 2399 ok = js.True == bindings.GetHTMLTableElementRows( 2400 this.ref, js.Pointer(&ret), 2401 ) 2402 return 2403 } 2404 2405 // Align returns the value of property "HTMLTableElement.align". 2406 // 2407 // It returns ok=false if there is no such property. 2408 func (this HTMLTableElement) Align() (ret js.String, ok bool) { 2409 ok = js.True == bindings.GetHTMLTableElementAlign( 2410 this.ref, js.Pointer(&ret), 2411 ) 2412 return 2413 } 2414 2415 // SetAlign sets the value of property "HTMLTableElement.align" to val. 2416 // 2417 // It returns false if the property cannot be set. 2418 func (this HTMLTableElement) SetAlign(val js.String) bool { 2419 return js.True == bindings.SetHTMLTableElementAlign( 2420 this.ref, 2421 val.Ref(), 2422 ) 2423 } 2424 2425 // Border returns the value of property "HTMLTableElement.border". 2426 // 2427 // It returns ok=false if there is no such property. 2428 func (this HTMLTableElement) Border() (ret js.String, ok bool) { 2429 ok = js.True == bindings.GetHTMLTableElementBorder( 2430 this.ref, js.Pointer(&ret), 2431 ) 2432 return 2433 } 2434 2435 // SetBorder sets the value of property "HTMLTableElement.border" to val. 2436 // 2437 // It returns false if the property cannot be set. 2438 func (this HTMLTableElement) SetBorder(val js.String) bool { 2439 return js.True == bindings.SetHTMLTableElementBorder( 2440 this.ref, 2441 val.Ref(), 2442 ) 2443 } 2444 2445 // Frame returns the value of property "HTMLTableElement.frame". 2446 // 2447 // It returns ok=false if there is no such property. 2448 func (this HTMLTableElement) Frame() (ret js.String, ok bool) { 2449 ok = js.True == bindings.GetHTMLTableElementFrame( 2450 this.ref, js.Pointer(&ret), 2451 ) 2452 return 2453 } 2454 2455 // SetFrame sets the value of property "HTMLTableElement.frame" to val. 2456 // 2457 // It returns false if the property cannot be set. 2458 func (this HTMLTableElement) SetFrame(val js.String) bool { 2459 return js.True == bindings.SetHTMLTableElementFrame( 2460 this.ref, 2461 val.Ref(), 2462 ) 2463 } 2464 2465 // Rules returns the value of property "HTMLTableElement.rules". 2466 // 2467 // It returns ok=false if there is no such property. 2468 func (this HTMLTableElement) Rules() (ret js.String, ok bool) { 2469 ok = js.True == bindings.GetHTMLTableElementRules( 2470 this.ref, js.Pointer(&ret), 2471 ) 2472 return 2473 } 2474 2475 // SetRules sets the value of property "HTMLTableElement.rules" to val. 2476 // 2477 // It returns false if the property cannot be set. 2478 func (this HTMLTableElement) SetRules(val js.String) bool { 2479 return js.True == bindings.SetHTMLTableElementRules( 2480 this.ref, 2481 val.Ref(), 2482 ) 2483 } 2484 2485 // Summary returns the value of property "HTMLTableElement.summary". 2486 // 2487 // It returns ok=false if there is no such property. 2488 func (this HTMLTableElement) Summary() (ret js.String, ok bool) { 2489 ok = js.True == bindings.GetHTMLTableElementSummary( 2490 this.ref, js.Pointer(&ret), 2491 ) 2492 return 2493 } 2494 2495 // SetSummary sets the value of property "HTMLTableElement.summary" to val. 2496 // 2497 // It returns false if the property cannot be set. 2498 func (this HTMLTableElement) SetSummary(val js.String) bool { 2499 return js.True == bindings.SetHTMLTableElementSummary( 2500 this.ref, 2501 val.Ref(), 2502 ) 2503 } 2504 2505 // Width returns the value of property "HTMLTableElement.width". 2506 // 2507 // It returns ok=false if there is no such property. 2508 func (this HTMLTableElement) Width() (ret js.String, ok bool) { 2509 ok = js.True == bindings.GetHTMLTableElementWidth( 2510 this.ref, js.Pointer(&ret), 2511 ) 2512 return 2513 } 2514 2515 // SetWidth sets the value of property "HTMLTableElement.width" to val. 2516 // 2517 // It returns false if the property cannot be set. 2518 func (this HTMLTableElement) SetWidth(val js.String) bool { 2519 return js.True == bindings.SetHTMLTableElementWidth( 2520 this.ref, 2521 val.Ref(), 2522 ) 2523 } 2524 2525 // BgColor returns the value of property "HTMLTableElement.bgColor". 2526 // 2527 // It returns ok=false if there is no such property. 2528 func (this HTMLTableElement) BgColor() (ret js.String, ok bool) { 2529 ok = js.True == bindings.GetHTMLTableElementBgColor( 2530 this.ref, js.Pointer(&ret), 2531 ) 2532 return 2533 } 2534 2535 // SetBgColor sets the value of property "HTMLTableElement.bgColor" to val. 2536 // 2537 // It returns false if the property cannot be set. 2538 func (this HTMLTableElement) SetBgColor(val js.String) bool { 2539 return js.True == bindings.SetHTMLTableElementBgColor( 2540 this.ref, 2541 val.Ref(), 2542 ) 2543 } 2544 2545 // CellPadding returns the value of property "HTMLTableElement.cellPadding". 2546 // 2547 // It returns ok=false if there is no such property. 2548 func (this HTMLTableElement) CellPadding() (ret js.String, ok bool) { 2549 ok = js.True == bindings.GetHTMLTableElementCellPadding( 2550 this.ref, js.Pointer(&ret), 2551 ) 2552 return 2553 } 2554 2555 // SetCellPadding sets the value of property "HTMLTableElement.cellPadding" to val. 2556 // 2557 // It returns false if the property cannot be set. 2558 func (this HTMLTableElement) SetCellPadding(val js.String) bool { 2559 return js.True == bindings.SetHTMLTableElementCellPadding( 2560 this.ref, 2561 val.Ref(), 2562 ) 2563 } 2564 2565 // CellSpacing returns the value of property "HTMLTableElement.cellSpacing". 2566 // 2567 // It returns ok=false if there is no such property. 2568 func (this HTMLTableElement) CellSpacing() (ret js.String, ok bool) { 2569 ok = js.True == bindings.GetHTMLTableElementCellSpacing( 2570 this.ref, js.Pointer(&ret), 2571 ) 2572 return 2573 } 2574 2575 // SetCellSpacing sets the value of property "HTMLTableElement.cellSpacing" to val. 2576 // 2577 // It returns false if the property cannot be set. 2578 func (this HTMLTableElement) SetCellSpacing(val js.String) bool { 2579 return js.True == bindings.SetHTMLTableElementCellSpacing( 2580 this.ref, 2581 val.Ref(), 2582 ) 2583 } 2584 2585 // HasFuncCreateCaption returns true if the method "HTMLTableElement.createCaption" exists. 2586 func (this HTMLTableElement) HasFuncCreateCaption() bool { 2587 return js.True == bindings.HasFuncHTMLTableElementCreateCaption( 2588 this.ref, 2589 ) 2590 } 2591 2592 // FuncCreateCaption returns the method "HTMLTableElement.createCaption". 2593 func (this HTMLTableElement) FuncCreateCaption() (fn js.Func[func() HTMLTableCaptionElement]) { 2594 bindings.FuncHTMLTableElementCreateCaption( 2595 this.ref, js.Pointer(&fn), 2596 ) 2597 return 2598 } 2599 2600 // CreateCaption calls the method "HTMLTableElement.createCaption". 2601 func (this HTMLTableElement) CreateCaption() (ret HTMLTableCaptionElement) { 2602 bindings.CallHTMLTableElementCreateCaption( 2603 this.ref, js.Pointer(&ret), 2604 ) 2605 2606 return 2607 } 2608 2609 // TryCreateCaption calls the method "HTMLTableElement.createCaption" 2610 // in a try/catch block and returns (_, err, ok = false) when it went through 2611 // the catch clause. 2612 func (this HTMLTableElement) TryCreateCaption() (ret HTMLTableCaptionElement, exception js.Any, ok bool) { 2613 ok = js.True == bindings.TryHTMLTableElementCreateCaption( 2614 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2615 ) 2616 2617 return 2618 } 2619 2620 // HasFuncDeleteCaption returns true if the method "HTMLTableElement.deleteCaption" exists. 2621 func (this HTMLTableElement) HasFuncDeleteCaption() bool { 2622 return js.True == bindings.HasFuncHTMLTableElementDeleteCaption( 2623 this.ref, 2624 ) 2625 } 2626 2627 // FuncDeleteCaption returns the method "HTMLTableElement.deleteCaption". 2628 func (this HTMLTableElement) FuncDeleteCaption() (fn js.Func[func()]) { 2629 bindings.FuncHTMLTableElementDeleteCaption( 2630 this.ref, js.Pointer(&fn), 2631 ) 2632 return 2633 } 2634 2635 // DeleteCaption calls the method "HTMLTableElement.deleteCaption". 2636 func (this HTMLTableElement) DeleteCaption() (ret js.Void) { 2637 bindings.CallHTMLTableElementDeleteCaption( 2638 this.ref, js.Pointer(&ret), 2639 ) 2640 2641 return 2642 } 2643 2644 // TryDeleteCaption calls the method "HTMLTableElement.deleteCaption" 2645 // in a try/catch block and returns (_, err, ok = false) when it went through 2646 // the catch clause. 2647 func (this HTMLTableElement) TryDeleteCaption() (ret js.Void, exception js.Any, ok bool) { 2648 ok = js.True == bindings.TryHTMLTableElementDeleteCaption( 2649 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2650 ) 2651 2652 return 2653 } 2654 2655 // HasFuncCreateTHead returns true if the method "HTMLTableElement.createTHead" exists. 2656 func (this HTMLTableElement) HasFuncCreateTHead() bool { 2657 return js.True == bindings.HasFuncHTMLTableElementCreateTHead( 2658 this.ref, 2659 ) 2660 } 2661 2662 // FuncCreateTHead returns the method "HTMLTableElement.createTHead". 2663 func (this HTMLTableElement) FuncCreateTHead() (fn js.Func[func() HTMLTableSectionElement]) { 2664 bindings.FuncHTMLTableElementCreateTHead( 2665 this.ref, js.Pointer(&fn), 2666 ) 2667 return 2668 } 2669 2670 // CreateTHead calls the method "HTMLTableElement.createTHead". 2671 func (this HTMLTableElement) CreateTHead() (ret HTMLTableSectionElement) { 2672 bindings.CallHTMLTableElementCreateTHead( 2673 this.ref, js.Pointer(&ret), 2674 ) 2675 2676 return 2677 } 2678 2679 // TryCreateTHead calls the method "HTMLTableElement.createTHead" 2680 // in a try/catch block and returns (_, err, ok = false) when it went through 2681 // the catch clause. 2682 func (this HTMLTableElement) TryCreateTHead() (ret HTMLTableSectionElement, exception js.Any, ok bool) { 2683 ok = js.True == bindings.TryHTMLTableElementCreateTHead( 2684 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2685 ) 2686 2687 return 2688 } 2689 2690 // HasFuncDeleteTHead returns true if the method "HTMLTableElement.deleteTHead" exists. 2691 func (this HTMLTableElement) HasFuncDeleteTHead() bool { 2692 return js.True == bindings.HasFuncHTMLTableElementDeleteTHead( 2693 this.ref, 2694 ) 2695 } 2696 2697 // FuncDeleteTHead returns the method "HTMLTableElement.deleteTHead". 2698 func (this HTMLTableElement) FuncDeleteTHead() (fn js.Func[func()]) { 2699 bindings.FuncHTMLTableElementDeleteTHead( 2700 this.ref, js.Pointer(&fn), 2701 ) 2702 return 2703 } 2704 2705 // DeleteTHead calls the method "HTMLTableElement.deleteTHead". 2706 func (this HTMLTableElement) DeleteTHead() (ret js.Void) { 2707 bindings.CallHTMLTableElementDeleteTHead( 2708 this.ref, js.Pointer(&ret), 2709 ) 2710 2711 return 2712 } 2713 2714 // TryDeleteTHead calls the method "HTMLTableElement.deleteTHead" 2715 // in a try/catch block and returns (_, err, ok = false) when it went through 2716 // the catch clause. 2717 func (this HTMLTableElement) TryDeleteTHead() (ret js.Void, exception js.Any, ok bool) { 2718 ok = js.True == bindings.TryHTMLTableElementDeleteTHead( 2719 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2720 ) 2721 2722 return 2723 } 2724 2725 // HasFuncCreateTFoot returns true if the method "HTMLTableElement.createTFoot" exists. 2726 func (this HTMLTableElement) HasFuncCreateTFoot() bool { 2727 return js.True == bindings.HasFuncHTMLTableElementCreateTFoot( 2728 this.ref, 2729 ) 2730 } 2731 2732 // FuncCreateTFoot returns the method "HTMLTableElement.createTFoot". 2733 func (this HTMLTableElement) FuncCreateTFoot() (fn js.Func[func() HTMLTableSectionElement]) { 2734 bindings.FuncHTMLTableElementCreateTFoot( 2735 this.ref, js.Pointer(&fn), 2736 ) 2737 return 2738 } 2739 2740 // CreateTFoot calls the method "HTMLTableElement.createTFoot". 2741 func (this HTMLTableElement) CreateTFoot() (ret HTMLTableSectionElement) { 2742 bindings.CallHTMLTableElementCreateTFoot( 2743 this.ref, js.Pointer(&ret), 2744 ) 2745 2746 return 2747 } 2748 2749 // TryCreateTFoot calls the method "HTMLTableElement.createTFoot" 2750 // in a try/catch block and returns (_, err, ok = false) when it went through 2751 // the catch clause. 2752 func (this HTMLTableElement) TryCreateTFoot() (ret HTMLTableSectionElement, exception js.Any, ok bool) { 2753 ok = js.True == bindings.TryHTMLTableElementCreateTFoot( 2754 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2755 ) 2756 2757 return 2758 } 2759 2760 // HasFuncDeleteTFoot returns true if the method "HTMLTableElement.deleteTFoot" exists. 2761 func (this HTMLTableElement) HasFuncDeleteTFoot() bool { 2762 return js.True == bindings.HasFuncHTMLTableElementDeleteTFoot( 2763 this.ref, 2764 ) 2765 } 2766 2767 // FuncDeleteTFoot returns the method "HTMLTableElement.deleteTFoot". 2768 func (this HTMLTableElement) FuncDeleteTFoot() (fn js.Func[func()]) { 2769 bindings.FuncHTMLTableElementDeleteTFoot( 2770 this.ref, js.Pointer(&fn), 2771 ) 2772 return 2773 } 2774 2775 // DeleteTFoot calls the method "HTMLTableElement.deleteTFoot". 2776 func (this HTMLTableElement) DeleteTFoot() (ret js.Void) { 2777 bindings.CallHTMLTableElementDeleteTFoot( 2778 this.ref, js.Pointer(&ret), 2779 ) 2780 2781 return 2782 } 2783 2784 // TryDeleteTFoot calls the method "HTMLTableElement.deleteTFoot" 2785 // in a try/catch block and returns (_, err, ok = false) when it went through 2786 // the catch clause. 2787 func (this HTMLTableElement) TryDeleteTFoot() (ret js.Void, exception js.Any, ok bool) { 2788 ok = js.True == bindings.TryHTMLTableElementDeleteTFoot( 2789 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2790 ) 2791 2792 return 2793 } 2794 2795 // HasFuncCreateTBody returns true if the method "HTMLTableElement.createTBody" exists. 2796 func (this HTMLTableElement) HasFuncCreateTBody() bool { 2797 return js.True == bindings.HasFuncHTMLTableElementCreateTBody( 2798 this.ref, 2799 ) 2800 } 2801 2802 // FuncCreateTBody returns the method "HTMLTableElement.createTBody". 2803 func (this HTMLTableElement) FuncCreateTBody() (fn js.Func[func() HTMLTableSectionElement]) { 2804 bindings.FuncHTMLTableElementCreateTBody( 2805 this.ref, js.Pointer(&fn), 2806 ) 2807 return 2808 } 2809 2810 // CreateTBody calls the method "HTMLTableElement.createTBody". 2811 func (this HTMLTableElement) CreateTBody() (ret HTMLTableSectionElement) { 2812 bindings.CallHTMLTableElementCreateTBody( 2813 this.ref, js.Pointer(&ret), 2814 ) 2815 2816 return 2817 } 2818 2819 // TryCreateTBody calls the method "HTMLTableElement.createTBody" 2820 // in a try/catch block and returns (_, err, ok = false) when it went through 2821 // the catch clause. 2822 func (this HTMLTableElement) TryCreateTBody() (ret HTMLTableSectionElement, exception js.Any, ok bool) { 2823 ok = js.True == bindings.TryHTMLTableElementCreateTBody( 2824 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2825 ) 2826 2827 return 2828 } 2829 2830 // HasFuncInsertRow returns true if the method "HTMLTableElement.insertRow" exists. 2831 func (this HTMLTableElement) HasFuncInsertRow() bool { 2832 return js.True == bindings.HasFuncHTMLTableElementInsertRow( 2833 this.ref, 2834 ) 2835 } 2836 2837 // FuncInsertRow returns the method "HTMLTableElement.insertRow". 2838 func (this HTMLTableElement) FuncInsertRow() (fn js.Func[func(index int32) HTMLTableRowElement]) { 2839 bindings.FuncHTMLTableElementInsertRow( 2840 this.ref, js.Pointer(&fn), 2841 ) 2842 return 2843 } 2844 2845 // InsertRow calls the method "HTMLTableElement.insertRow". 2846 func (this HTMLTableElement) InsertRow(index int32) (ret HTMLTableRowElement) { 2847 bindings.CallHTMLTableElementInsertRow( 2848 this.ref, js.Pointer(&ret), 2849 int32(index), 2850 ) 2851 2852 return 2853 } 2854 2855 // TryInsertRow calls the method "HTMLTableElement.insertRow" 2856 // in a try/catch block and returns (_, err, ok = false) when it went through 2857 // the catch clause. 2858 func (this HTMLTableElement) TryInsertRow(index int32) (ret HTMLTableRowElement, exception js.Any, ok bool) { 2859 ok = js.True == bindings.TryHTMLTableElementInsertRow( 2860 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2861 int32(index), 2862 ) 2863 2864 return 2865 } 2866 2867 // HasFuncInsertRow1 returns true if the method "HTMLTableElement.insertRow" exists. 2868 func (this HTMLTableElement) HasFuncInsertRow1() bool { 2869 return js.True == bindings.HasFuncHTMLTableElementInsertRow1( 2870 this.ref, 2871 ) 2872 } 2873 2874 // FuncInsertRow1 returns the method "HTMLTableElement.insertRow". 2875 func (this HTMLTableElement) FuncInsertRow1() (fn js.Func[func() HTMLTableRowElement]) { 2876 bindings.FuncHTMLTableElementInsertRow1( 2877 this.ref, js.Pointer(&fn), 2878 ) 2879 return 2880 } 2881 2882 // InsertRow1 calls the method "HTMLTableElement.insertRow". 2883 func (this HTMLTableElement) InsertRow1() (ret HTMLTableRowElement) { 2884 bindings.CallHTMLTableElementInsertRow1( 2885 this.ref, js.Pointer(&ret), 2886 ) 2887 2888 return 2889 } 2890 2891 // TryInsertRow1 calls the method "HTMLTableElement.insertRow" 2892 // in a try/catch block and returns (_, err, ok = false) when it went through 2893 // the catch clause. 2894 func (this HTMLTableElement) TryInsertRow1() (ret HTMLTableRowElement, exception js.Any, ok bool) { 2895 ok = js.True == bindings.TryHTMLTableElementInsertRow1( 2896 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2897 ) 2898 2899 return 2900 } 2901 2902 // HasFuncDeleteRow returns true if the method "HTMLTableElement.deleteRow" exists. 2903 func (this HTMLTableElement) HasFuncDeleteRow() bool { 2904 return js.True == bindings.HasFuncHTMLTableElementDeleteRow( 2905 this.ref, 2906 ) 2907 } 2908 2909 // FuncDeleteRow returns the method "HTMLTableElement.deleteRow". 2910 func (this HTMLTableElement) FuncDeleteRow() (fn js.Func[func(index int32)]) { 2911 bindings.FuncHTMLTableElementDeleteRow( 2912 this.ref, js.Pointer(&fn), 2913 ) 2914 return 2915 } 2916 2917 // DeleteRow calls the method "HTMLTableElement.deleteRow". 2918 func (this HTMLTableElement) DeleteRow(index int32) (ret js.Void) { 2919 bindings.CallHTMLTableElementDeleteRow( 2920 this.ref, js.Pointer(&ret), 2921 int32(index), 2922 ) 2923 2924 return 2925 } 2926 2927 // TryDeleteRow calls the method "HTMLTableElement.deleteRow" 2928 // in a try/catch block and returns (_, err, ok = false) when it went through 2929 // the catch clause. 2930 func (this HTMLTableElement) TryDeleteRow(index int32) (ret js.Void, exception js.Any, ok bool) { 2931 ok = js.True == bindings.TryHTMLTableElementDeleteRow( 2932 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2933 int32(index), 2934 ) 2935 2936 return 2937 } 2938 2939 type HTMLTemplateElement struct { 2940 HTMLElement 2941 } 2942 2943 func (this HTMLTemplateElement) Once() HTMLTemplateElement { 2944 this.ref.Once() 2945 return this 2946 } 2947 2948 func (this HTMLTemplateElement) Ref() js.Ref { 2949 return this.HTMLElement.Ref() 2950 } 2951 2952 func (this HTMLTemplateElement) FromRef(ref js.Ref) HTMLTemplateElement { 2953 this.HTMLElement = this.HTMLElement.FromRef(ref) 2954 return this 2955 } 2956 2957 func (this HTMLTemplateElement) Free() { 2958 this.ref.Free() 2959 } 2960 2961 // Content returns the value of property "HTMLTemplateElement.content". 2962 // 2963 // It returns ok=false if there is no such property. 2964 func (this HTMLTemplateElement) Content() (ret DocumentFragment, ok bool) { 2965 ok = js.True == bindings.GetHTMLTemplateElementContent( 2966 this.ref, js.Pointer(&ret), 2967 ) 2968 return 2969 } 2970 2971 type HTMLTextAreaElement struct { 2972 HTMLElement 2973 } 2974 2975 func (this HTMLTextAreaElement) Once() HTMLTextAreaElement { 2976 this.ref.Once() 2977 return this 2978 } 2979 2980 func (this HTMLTextAreaElement) Ref() js.Ref { 2981 return this.HTMLElement.Ref() 2982 } 2983 2984 func (this HTMLTextAreaElement) FromRef(ref js.Ref) HTMLTextAreaElement { 2985 this.HTMLElement = this.HTMLElement.FromRef(ref) 2986 return this 2987 } 2988 2989 func (this HTMLTextAreaElement) Free() { 2990 this.ref.Free() 2991 } 2992 2993 // Autocomplete returns the value of property "HTMLTextAreaElement.autocomplete". 2994 // 2995 // It returns ok=false if there is no such property. 2996 func (this HTMLTextAreaElement) Autocomplete() (ret js.String, ok bool) { 2997 ok = js.True == bindings.GetHTMLTextAreaElementAutocomplete( 2998 this.ref, js.Pointer(&ret), 2999 ) 3000 return 3001 } 3002 3003 // SetAutocomplete sets the value of property "HTMLTextAreaElement.autocomplete" to val. 3004 // 3005 // It returns false if the property cannot be set. 3006 func (this HTMLTextAreaElement) SetAutocomplete(val js.String) bool { 3007 return js.True == bindings.SetHTMLTextAreaElementAutocomplete( 3008 this.ref, 3009 val.Ref(), 3010 ) 3011 } 3012 3013 // Cols returns the value of property "HTMLTextAreaElement.cols". 3014 // 3015 // It returns ok=false if there is no such property. 3016 func (this HTMLTextAreaElement) Cols() (ret uint32, ok bool) { 3017 ok = js.True == bindings.GetHTMLTextAreaElementCols( 3018 this.ref, js.Pointer(&ret), 3019 ) 3020 return 3021 } 3022 3023 // SetCols sets the value of property "HTMLTextAreaElement.cols" to val. 3024 // 3025 // It returns false if the property cannot be set. 3026 func (this HTMLTextAreaElement) SetCols(val uint32) bool { 3027 return js.True == bindings.SetHTMLTextAreaElementCols( 3028 this.ref, 3029 uint32(val), 3030 ) 3031 } 3032 3033 // DirName returns the value of property "HTMLTextAreaElement.dirName". 3034 // 3035 // It returns ok=false if there is no such property. 3036 func (this HTMLTextAreaElement) DirName() (ret js.String, ok bool) { 3037 ok = js.True == bindings.GetHTMLTextAreaElementDirName( 3038 this.ref, js.Pointer(&ret), 3039 ) 3040 return 3041 } 3042 3043 // SetDirName sets the value of property "HTMLTextAreaElement.dirName" to val. 3044 // 3045 // It returns false if the property cannot be set. 3046 func (this HTMLTextAreaElement) SetDirName(val js.String) bool { 3047 return js.True == bindings.SetHTMLTextAreaElementDirName( 3048 this.ref, 3049 val.Ref(), 3050 ) 3051 } 3052 3053 // Disabled returns the value of property "HTMLTextAreaElement.disabled". 3054 // 3055 // It returns ok=false if there is no such property. 3056 func (this HTMLTextAreaElement) Disabled() (ret bool, ok bool) { 3057 ok = js.True == bindings.GetHTMLTextAreaElementDisabled( 3058 this.ref, js.Pointer(&ret), 3059 ) 3060 return 3061 } 3062 3063 // SetDisabled sets the value of property "HTMLTextAreaElement.disabled" to val. 3064 // 3065 // It returns false if the property cannot be set. 3066 func (this HTMLTextAreaElement) SetDisabled(val bool) bool { 3067 return js.True == bindings.SetHTMLTextAreaElementDisabled( 3068 this.ref, 3069 js.Bool(bool(val)), 3070 ) 3071 } 3072 3073 // Form returns the value of property "HTMLTextAreaElement.form". 3074 // 3075 // It returns ok=false if there is no such property. 3076 func (this HTMLTextAreaElement) Form() (ret HTMLFormElement, ok bool) { 3077 ok = js.True == bindings.GetHTMLTextAreaElementForm( 3078 this.ref, js.Pointer(&ret), 3079 ) 3080 return 3081 } 3082 3083 // MaxLength returns the value of property "HTMLTextAreaElement.maxLength". 3084 // 3085 // It returns ok=false if there is no such property. 3086 func (this HTMLTextAreaElement) MaxLength() (ret int32, ok bool) { 3087 ok = js.True == bindings.GetHTMLTextAreaElementMaxLength( 3088 this.ref, js.Pointer(&ret), 3089 ) 3090 return 3091 } 3092 3093 // SetMaxLength sets the value of property "HTMLTextAreaElement.maxLength" to val. 3094 // 3095 // It returns false if the property cannot be set. 3096 func (this HTMLTextAreaElement) SetMaxLength(val int32) bool { 3097 return js.True == bindings.SetHTMLTextAreaElementMaxLength( 3098 this.ref, 3099 int32(val), 3100 ) 3101 } 3102 3103 // MinLength returns the value of property "HTMLTextAreaElement.minLength". 3104 // 3105 // It returns ok=false if there is no such property. 3106 func (this HTMLTextAreaElement) MinLength() (ret int32, ok bool) { 3107 ok = js.True == bindings.GetHTMLTextAreaElementMinLength( 3108 this.ref, js.Pointer(&ret), 3109 ) 3110 return 3111 } 3112 3113 // SetMinLength sets the value of property "HTMLTextAreaElement.minLength" to val. 3114 // 3115 // It returns false if the property cannot be set. 3116 func (this HTMLTextAreaElement) SetMinLength(val int32) bool { 3117 return js.True == bindings.SetHTMLTextAreaElementMinLength( 3118 this.ref, 3119 int32(val), 3120 ) 3121 } 3122 3123 // Name returns the value of property "HTMLTextAreaElement.name". 3124 // 3125 // It returns ok=false if there is no such property. 3126 func (this HTMLTextAreaElement) Name() (ret js.String, ok bool) { 3127 ok = js.True == bindings.GetHTMLTextAreaElementName( 3128 this.ref, js.Pointer(&ret), 3129 ) 3130 return 3131 } 3132 3133 // SetName sets the value of property "HTMLTextAreaElement.name" to val. 3134 // 3135 // It returns false if the property cannot be set. 3136 func (this HTMLTextAreaElement) SetName(val js.String) bool { 3137 return js.True == bindings.SetHTMLTextAreaElementName( 3138 this.ref, 3139 val.Ref(), 3140 ) 3141 } 3142 3143 // Placeholder returns the value of property "HTMLTextAreaElement.placeholder". 3144 // 3145 // It returns ok=false if there is no such property. 3146 func (this HTMLTextAreaElement) Placeholder() (ret js.String, ok bool) { 3147 ok = js.True == bindings.GetHTMLTextAreaElementPlaceholder( 3148 this.ref, js.Pointer(&ret), 3149 ) 3150 return 3151 } 3152 3153 // SetPlaceholder sets the value of property "HTMLTextAreaElement.placeholder" to val. 3154 // 3155 // It returns false if the property cannot be set. 3156 func (this HTMLTextAreaElement) SetPlaceholder(val js.String) bool { 3157 return js.True == bindings.SetHTMLTextAreaElementPlaceholder( 3158 this.ref, 3159 val.Ref(), 3160 ) 3161 } 3162 3163 // ReadOnly returns the value of property "HTMLTextAreaElement.readOnly". 3164 // 3165 // It returns ok=false if there is no such property. 3166 func (this HTMLTextAreaElement) ReadOnly() (ret bool, ok bool) { 3167 ok = js.True == bindings.GetHTMLTextAreaElementReadOnly( 3168 this.ref, js.Pointer(&ret), 3169 ) 3170 return 3171 } 3172 3173 // SetReadOnly sets the value of property "HTMLTextAreaElement.readOnly" to val. 3174 // 3175 // It returns false if the property cannot be set. 3176 func (this HTMLTextAreaElement) SetReadOnly(val bool) bool { 3177 return js.True == bindings.SetHTMLTextAreaElementReadOnly( 3178 this.ref, 3179 js.Bool(bool(val)), 3180 ) 3181 } 3182 3183 // Required returns the value of property "HTMLTextAreaElement.required". 3184 // 3185 // It returns ok=false if there is no such property. 3186 func (this HTMLTextAreaElement) Required() (ret bool, ok bool) { 3187 ok = js.True == bindings.GetHTMLTextAreaElementRequired( 3188 this.ref, js.Pointer(&ret), 3189 ) 3190 return 3191 } 3192 3193 // SetRequired sets the value of property "HTMLTextAreaElement.required" to val. 3194 // 3195 // It returns false if the property cannot be set. 3196 func (this HTMLTextAreaElement) SetRequired(val bool) bool { 3197 return js.True == bindings.SetHTMLTextAreaElementRequired( 3198 this.ref, 3199 js.Bool(bool(val)), 3200 ) 3201 } 3202 3203 // Rows returns the value of property "HTMLTextAreaElement.rows". 3204 // 3205 // It returns ok=false if there is no such property. 3206 func (this HTMLTextAreaElement) Rows() (ret uint32, ok bool) { 3207 ok = js.True == bindings.GetHTMLTextAreaElementRows( 3208 this.ref, js.Pointer(&ret), 3209 ) 3210 return 3211 } 3212 3213 // SetRows sets the value of property "HTMLTextAreaElement.rows" to val. 3214 // 3215 // It returns false if the property cannot be set. 3216 func (this HTMLTextAreaElement) SetRows(val uint32) bool { 3217 return js.True == bindings.SetHTMLTextAreaElementRows( 3218 this.ref, 3219 uint32(val), 3220 ) 3221 } 3222 3223 // Wrap returns the value of property "HTMLTextAreaElement.wrap". 3224 // 3225 // It returns ok=false if there is no such property. 3226 func (this HTMLTextAreaElement) Wrap() (ret js.String, ok bool) { 3227 ok = js.True == bindings.GetHTMLTextAreaElementWrap( 3228 this.ref, js.Pointer(&ret), 3229 ) 3230 return 3231 } 3232 3233 // SetWrap sets the value of property "HTMLTextAreaElement.wrap" to val. 3234 // 3235 // It returns false if the property cannot be set. 3236 func (this HTMLTextAreaElement) SetWrap(val js.String) bool { 3237 return js.True == bindings.SetHTMLTextAreaElementWrap( 3238 this.ref, 3239 val.Ref(), 3240 ) 3241 } 3242 3243 // Type returns the value of property "HTMLTextAreaElement.type". 3244 // 3245 // It returns ok=false if there is no such property. 3246 func (this HTMLTextAreaElement) Type() (ret js.String, ok bool) { 3247 ok = js.True == bindings.GetHTMLTextAreaElementType( 3248 this.ref, js.Pointer(&ret), 3249 ) 3250 return 3251 } 3252 3253 // DefaultValue returns the value of property "HTMLTextAreaElement.defaultValue". 3254 // 3255 // It returns ok=false if there is no such property. 3256 func (this HTMLTextAreaElement) DefaultValue() (ret js.String, ok bool) { 3257 ok = js.True == bindings.GetHTMLTextAreaElementDefaultValue( 3258 this.ref, js.Pointer(&ret), 3259 ) 3260 return 3261 } 3262 3263 // SetDefaultValue sets the value of property "HTMLTextAreaElement.defaultValue" to val. 3264 // 3265 // It returns false if the property cannot be set. 3266 func (this HTMLTextAreaElement) SetDefaultValue(val js.String) bool { 3267 return js.True == bindings.SetHTMLTextAreaElementDefaultValue( 3268 this.ref, 3269 val.Ref(), 3270 ) 3271 } 3272 3273 // Value returns the value of property "HTMLTextAreaElement.value". 3274 // 3275 // It returns ok=false if there is no such property. 3276 func (this HTMLTextAreaElement) Value() (ret js.String, ok bool) { 3277 ok = js.True == bindings.GetHTMLTextAreaElementValue( 3278 this.ref, js.Pointer(&ret), 3279 ) 3280 return 3281 } 3282 3283 // SetValue sets the value of property "HTMLTextAreaElement.value" to val. 3284 // 3285 // It returns false if the property cannot be set. 3286 func (this HTMLTextAreaElement) SetValue(val js.String) bool { 3287 return js.True == bindings.SetHTMLTextAreaElementValue( 3288 this.ref, 3289 val.Ref(), 3290 ) 3291 } 3292 3293 // TextLength returns the value of property "HTMLTextAreaElement.textLength". 3294 // 3295 // It returns ok=false if there is no such property. 3296 func (this HTMLTextAreaElement) TextLength() (ret uint32, ok bool) { 3297 ok = js.True == bindings.GetHTMLTextAreaElementTextLength( 3298 this.ref, js.Pointer(&ret), 3299 ) 3300 return 3301 } 3302 3303 // WillValidate returns the value of property "HTMLTextAreaElement.willValidate". 3304 // 3305 // It returns ok=false if there is no such property. 3306 func (this HTMLTextAreaElement) WillValidate() (ret bool, ok bool) { 3307 ok = js.True == bindings.GetHTMLTextAreaElementWillValidate( 3308 this.ref, js.Pointer(&ret), 3309 ) 3310 return 3311 } 3312 3313 // Validity returns the value of property "HTMLTextAreaElement.validity". 3314 // 3315 // It returns ok=false if there is no such property. 3316 func (this HTMLTextAreaElement) Validity() (ret ValidityState, ok bool) { 3317 ok = js.True == bindings.GetHTMLTextAreaElementValidity( 3318 this.ref, js.Pointer(&ret), 3319 ) 3320 return 3321 } 3322 3323 // ValidationMessage returns the value of property "HTMLTextAreaElement.validationMessage". 3324 // 3325 // It returns ok=false if there is no such property. 3326 func (this HTMLTextAreaElement) ValidationMessage() (ret js.String, ok bool) { 3327 ok = js.True == bindings.GetHTMLTextAreaElementValidationMessage( 3328 this.ref, js.Pointer(&ret), 3329 ) 3330 return 3331 } 3332 3333 // Labels returns the value of property "HTMLTextAreaElement.labels". 3334 // 3335 // It returns ok=false if there is no such property. 3336 func (this HTMLTextAreaElement) Labels() (ret NodeList, ok bool) { 3337 ok = js.True == bindings.GetHTMLTextAreaElementLabels( 3338 this.ref, js.Pointer(&ret), 3339 ) 3340 return 3341 } 3342 3343 // SelectionStart returns the value of property "HTMLTextAreaElement.selectionStart". 3344 // 3345 // It returns ok=false if there is no such property. 3346 func (this HTMLTextAreaElement) SelectionStart() (ret uint32, ok bool) { 3347 ok = js.True == bindings.GetHTMLTextAreaElementSelectionStart( 3348 this.ref, js.Pointer(&ret), 3349 ) 3350 return 3351 } 3352 3353 // SetSelectionStart sets the value of property "HTMLTextAreaElement.selectionStart" to val. 3354 // 3355 // It returns false if the property cannot be set. 3356 func (this HTMLTextAreaElement) SetSelectionStart(val uint32) bool { 3357 return js.True == bindings.SetHTMLTextAreaElementSelectionStart( 3358 this.ref, 3359 uint32(val), 3360 ) 3361 } 3362 3363 // SelectionEnd returns the value of property "HTMLTextAreaElement.selectionEnd". 3364 // 3365 // It returns ok=false if there is no such property. 3366 func (this HTMLTextAreaElement) SelectionEnd() (ret uint32, ok bool) { 3367 ok = js.True == bindings.GetHTMLTextAreaElementSelectionEnd( 3368 this.ref, js.Pointer(&ret), 3369 ) 3370 return 3371 } 3372 3373 // SetSelectionEnd sets the value of property "HTMLTextAreaElement.selectionEnd" to val. 3374 // 3375 // It returns false if the property cannot be set. 3376 func (this HTMLTextAreaElement) SetSelectionEnd(val uint32) bool { 3377 return js.True == bindings.SetHTMLTextAreaElementSelectionEnd( 3378 this.ref, 3379 uint32(val), 3380 ) 3381 } 3382 3383 // SelectionDirection returns the value of property "HTMLTextAreaElement.selectionDirection". 3384 // 3385 // It returns ok=false if there is no such property. 3386 func (this HTMLTextAreaElement) SelectionDirection() (ret js.String, ok bool) { 3387 ok = js.True == bindings.GetHTMLTextAreaElementSelectionDirection( 3388 this.ref, js.Pointer(&ret), 3389 ) 3390 return 3391 } 3392 3393 // SetSelectionDirection sets the value of property "HTMLTextAreaElement.selectionDirection" to val. 3394 // 3395 // It returns false if the property cannot be set. 3396 func (this HTMLTextAreaElement) SetSelectionDirection(val js.String) bool { 3397 return js.True == bindings.SetHTMLTextAreaElementSelectionDirection( 3398 this.ref, 3399 val.Ref(), 3400 ) 3401 } 3402 3403 // HasFuncCheckValidity returns true if the method "HTMLTextAreaElement.checkValidity" exists. 3404 func (this HTMLTextAreaElement) HasFuncCheckValidity() bool { 3405 return js.True == bindings.HasFuncHTMLTextAreaElementCheckValidity( 3406 this.ref, 3407 ) 3408 } 3409 3410 // FuncCheckValidity returns the method "HTMLTextAreaElement.checkValidity". 3411 func (this HTMLTextAreaElement) FuncCheckValidity() (fn js.Func[func() bool]) { 3412 bindings.FuncHTMLTextAreaElementCheckValidity( 3413 this.ref, js.Pointer(&fn), 3414 ) 3415 return 3416 } 3417 3418 // CheckValidity calls the method "HTMLTextAreaElement.checkValidity". 3419 func (this HTMLTextAreaElement) CheckValidity() (ret bool) { 3420 bindings.CallHTMLTextAreaElementCheckValidity( 3421 this.ref, js.Pointer(&ret), 3422 ) 3423 3424 return 3425 } 3426 3427 // TryCheckValidity calls the method "HTMLTextAreaElement.checkValidity" 3428 // in a try/catch block and returns (_, err, ok = false) when it went through 3429 // the catch clause. 3430 func (this HTMLTextAreaElement) TryCheckValidity() (ret bool, exception js.Any, ok bool) { 3431 ok = js.True == bindings.TryHTMLTextAreaElementCheckValidity( 3432 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3433 ) 3434 3435 return 3436 } 3437 3438 // HasFuncReportValidity returns true if the method "HTMLTextAreaElement.reportValidity" exists. 3439 func (this HTMLTextAreaElement) HasFuncReportValidity() bool { 3440 return js.True == bindings.HasFuncHTMLTextAreaElementReportValidity( 3441 this.ref, 3442 ) 3443 } 3444 3445 // FuncReportValidity returns the method "HTMLTextAreaElement.reportValidity". 3446 func (this HTMLTextAreaElement) FuncReportValidity() (fn js.Func[func() bool]) { 3447 bindings.FuncHTMLTextAreaElementReportValidity( 3448 this.ref, js.Pointer(&fn), 3449 ) 3450 return 3451 } 3452 3453 // ReportValidity calls the method "HTMLTextAreaElement.reportValidity". 3454 func (this HTMLTextAreaElement) ReportValidity() (ret bool) { 3455 bindings.CallHTMLTextAreaElementReportValidity( 3456 this.ref, js.Pointer(&ret), 3457 ) 3458 3459 return 3460 } 3461 3462 // TryReportValidity calls the method "HTMLTextAreaElement.reportValidity" 3463 // in a try/catch block and returns (_, err, ok = false) when it went through 3464 // the catch clause. 3465 func (this HTMLTextAreaElement) TryReportValidity() (ret bool, exception js.Any, ok bool) { 3466 ok = js.True == bindings.TryHTMLTextAreaElementReportValidity( 3467 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3468 ) 3469 3470 return 3471 } 3472 3473 // HasFuncSetCustomValidity returns true if the method "HTMLTextAreaElement.setCustomValidity" exists. 3474 func (this HTMLTextAreaElement) HasFuncSetCustomValidity() bool { 3475 return js.True == bindings.HasFuncHTMLTextAreaElementSetCustomValidity( 3476 this.ref, 3477 ) 3478 } 3479 3480 // FuncSetCustomValidity returns the method "HTMLTextAreaElement.setCustomValidity". 3481 func (this HTMLTextAreaElement) FuncSetCustomValidity() (fn js.Func[func(err js.String)]) { 3482 bindings.FuncHTMLTextAreaElementSetCustomValidity( 3483 this.ref, js.Pointer(&fn), 3484 ) 3485 return 3486 } 3487 3488 // SetCustomValidity calls the method "HTMLTextAreaElement.setCustomValidity". 3489 func (this HTMLTextAreaElement) SetCustomValidity(err js.String) (ret js.Void) { 3490 bindings.CallHTMLTextAreaElementSetCustomValidity( 3491 this.ref, js.Pointer(&ret), 3492 err.Ref(), 3493 ) 3494 3495 return 3496 } 3497 3498 // TrySetCustomValidity calls the method "HTMLTextAreaElement.setCustomValidity" 3499 // in a try/catch block and returns (_, err, ok = false) when it went through 3500 // the catch clause. 3501 func (this HTMLTextAreaElement) TrySetCustomValidity(err js.String) (ret js.Void, exception js.Any, ok bool) { 3502 ok = js.True == bindings.TryHTMLTextAreaElementSetCustomValidity( 3503 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3504 err.Ref(), 3505 ) 3506 3507 return 3508 } 3509 3510 // HasFuncSelect returns true if the method "HTMLTextAreaElement.select" exists. 3511 func (this HTMLTextAreaElement) HasFuncSelect() bool { 3512 return js.True == bindings.HasFuncHTMLTextAreaElementSelect( 3513 this.ref, 3514 ) 3515 } 3516 3517 // FuncSelect returns the method "HTMLTextAreaElement.select". 3518 func (this HTMLTextAreaElement) FuncSelect() (fn js.Func[func()]) { 3519 bindings.FuncHTMLTextAreaElementSelect( 3520 this.ref, js.Pointer(&fn), 3521 ) 3522 return 3523 } 3524 3525 // Select calls the method "HTMLTextAreaElement.select". 3526 func (this HTMLTextAreaElement) Select() (ret js.Void) { 3527 bindings.CallHTMLTextAreaElementSelect( 3528 this.ref, js.Pointer(&ret), 3529 ) 3530 3531 return 3532 } 3533 3534 // TrySelect calls the method "HTMLTextAreaElement.select" 3535 // in a try/catch block and returns (_, err, ok = false) when it went through 3536 // the catch clause. 3537 func (this HTMLTextAreaElement) TrySelect() (ret js.Void, exception js.Any, ok bool) { 3538 ok = js.True == bindings.TryHTMLTextAreaElementSelect( 3539 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3540 ) 3541 3542 return 3543 } 3544 3545 // HasFuncSetRangeText returns true if the method "HTMLTextAreaElement.setRangeText" exists. 3546 func (this HTMLTextAreaElement) HasFuncSetRangeText() bool { 3547 return js.True == bindings.HasFuncHTMLTextAreaElementSetRangeText( 3548 this.ref, 3549 ) 3550 } 3551 3552 // FuncSetRangeText returns the method "HTMLTextAreaElement.setRangeText". 3553 func (this HTMLTextAreaElement) FuncSetRangeText() (fn js.Func[func(replacement js.String)]) { 3554 bindings.FuncHTMLTextAreaElementSetRangeText( 3555 this.ref, js.Pointer(&fn), 3556 ) 3557 return 3558 } 3559 3560 // SetRangeText calls the method "HTMLTextAreaElement.setRangeText". 3561 func (this HTMLTextAreaElement) SetRangeText(replacement js.String) (ret js.Void) { 3562 bindings.CallHTMLTextAreaElementSetRangeText( 3563 this.ref, js.Pointer(&ret), 3564 replacement.Ref(), 3565 ) 3566 3567 return 3568 } 3569 3570 // TrySetRangeText calls the method "HTMLTextAreaElement.setRangeText" 3571 // in a try/catch block and returns (_, err, ok = false) when it went through 3572 // the catch clause. 3573 func (this HTMLTextAreaElement) TrySetRangeText(replacement js.String) (ret js.Void, exception js.Any, ok bool) { 3574 ok = js.True == bindings.TryHTMLTextAreaElementSetRangeText( 3575 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3576 replacement.Ref(), 3577 ) 3578 3579 return 3580 } 3581 3582 // HasFuncSetRangeText1 returns true if the method "HTMLTextAreaElement.setRangeText" exists. 3583 func (this HTMLTextAreaElement) HasFuncSetRangeText1() bool { 3584 return js.True == bindings.HasFuncHTMLTextAreaElementSetRangeText1( 3585 this.ref, 3586 ) 3587 } 3588 3589 // FuncSetRangeText1 returns the method "HTMLTextAreaElement.setRangeText". 3590 func (this HTMLTextAreaElement) FuncSetRangeText1() (fn js.Func[func(replacement js.String, start uint32, end uint32, selectionMode SelectionMode)]) { 3591 bindings.FuncHTMLTextAreaElementSetRangeText1( 3592 this.ref, js.Pointer(&fn), 3593 ) 3594 return 3595 } 3596 3597 // SetRangeText1 calls the method "HTMLTextAreaElement.setRangeText". 3598 func (this HTMLTextAreaElement) SetRangeText1(replacement js.String, start uint32, end uint32, selectionMode SelectionMode) (ret js.Void) { 3599 bindings.CallHTMLTextAreaElementSetRangeText1( 3600 this.ref, js.Pointer(&ret), 3601 replacement.Ref(), 3602 uint32(start), 3603 uint32(end), 3604 uint32(selectionMode), 3605 ) 3606 3607 return 3608 } 3609 3610 // TrySetRangeText1 calls the method "HTMLTextAreaElement.setRangeText" 3611 // in a try/catch block and returns (_, err, ok = false) when it went through 3612 // the catch clause. 3613 func (this HTMLTextAreaElement) TrySetRangeText1(replacement js.String, start uint32, end uint32, selectionMode SelectionMode) (ret js.Void, exception js.Any, ok bool) { 3614 ok = js.True == bindings.TryHTMLTextAreaElementSetRangeText1( 3615 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3616 replacement.Ref(), 3617 uint32(start), 3618 uint32(end), 3619 uint32(selectionMode), 3620 ) 3621 3622 return 3623 } 3624 3625 // HasFuncSetRangeText2 returns true if the method "HTMLTextAreaElement.setRangeText" exists. 3626 func (this HTMLTextAreaElement) HasFuncSetRangeText2() bool { 3627 return js.True == bindings.HasFuncHTMLTextAreaElementSetRangeText2( 3628 this.ref, 3629 ) 3630 } 3631 3632 // FuncSetRangeText2 returns the method "HTMLTextAreaElement.setRangeText". 3633 func (this HTMLTextAreaElement) FuncSetRangeText2() (fn js.Func[func(replacement js.String, start uint32, end uint32)]) { 3634 bindings.FuncHTMLTextAreaElementSetRangeText2( 3635 this.ref, js.Pointer(&fn), 3636 ) 3637 return 3638 } 3639 3640 // SetRangeText2 calls the method "HTMLTextAreaElement.setRangeText". 3641 func (this HTMLTextAreaElement) SetRangeText2(replacement js.String, start uint32, end uint32) (ret js.Void) { 3642 bindings.CallHTMLTextAreaElementSetRangeText2( 3643 this.ref, js.Pointer(&ret), 3644 replacement.Ref(), 3645 uint32(start), 3646 uint32(end), 3647 ) 3648 3649 return 3650 } 3651 3652 // TrySetRangeText2 calls the method "HTMLTextAreaElement.setRangeText" 3653 // in a try/catch block and returns (_, err, ok = false) when it went through 3654 // the catch clause. 3655 func (this HTMLTextAreaElement) TrySetRangeText2(replacement js.String, start uint32, end uint32) (ret js.Void, exception js.Any, ok bool) { 3656 ok = js.True == bindings.TryHTMLTextAreaElementSetRangeText2( 3657 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3658 replacement.Ref(), 3659 uint32(start), 3660 uint32(end), 3661 ) 3662 3663 return 3664 } 3665 3666 // HasFuncSetSelectionRange returns true if the method "HTMLTextAreaElement.setSelectionRange" exists. 3667 func (this HTMLTextAreaElement) HasFuncSetSelectionRange() bool { 3668 return js.True == bindings.HasFuncHTMLTextAreaElementSetSelectionRange( 3669 this.ref, 3670 ) 3671 } 3672 3673 // FuncSetSelectionRange returns the method "HTMLTextAreaElement.setSelectionRange". 3674 func (this HTMLTextAreaElement) FuncSetSelectionRange() (fn js.Func[func(start uint32, end uint32, direction js.String)]) { 3675 bindings.FuncHTMLTextAreaElementSetSelectionRange( 3676 this.ref, js.Pointer(&fn), 3677 ) 3678 return 3679 } 3680 3681 // SetSelectionRange calls the method "HTMLTextAreaElement.setSelectionRange". 3682 func (this HTMLTextAreaElement) SetSelectionRange(start uint32, end uint32, direction js.String) (ret js.Void) { 3683 bindings.CallHTMLTextAreaElementSetSelectionRange( 3684 this.ref, js.Pointer(&ret), 3685 uint32(start), 3686 uint32(end), 3687 direction.Ref(), 3688 ) 3689 3690 return 3691 } 3692 3693 // TrySetSelectionRange calls the method "HTMLTextAreaElement.setSelectionRange" 3694 // in a try/catch block and returns (_, err, ok = false) when it went through 3695 // the catch clause. 3696 func (this HTMLTextAreaElement) TrySetSelectionRange(start uint32, end uint32, direction js.String) (ret js.Void, exception js.Any, ok bool) { 3697 ok = js.True == bindings.TryHTMLTextAreaElementSetSelectionRange( 3698 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3699 uint32(start), 3700 uint32(end), 3701 direction.Ref(), 3702 ) 3703 3704 return 3705 } 3706 3707 // HasFuncSetSelectionRange1 returns true if the method "HTMLTextAreaElement.setSelectionRange" exists. 3708 func (this HTMLTextAreaElement) HasFuncSetSelectionRange1() bool { 3709 return js.True == bindings.HasFuncHTMLTextAreaElementSetSelectionRange1( 3710 this.ref, 3711 ) 3712 } 3713 3714 // FuncSetSelectionRange1 returns the method "HTMLTextAreaElement.setSelectionRange". 3715 func (this HTMLTextAreaElement) FuncSetSelectionRange1() (fn js.Func[func(start uint32, end uint32)]) { 3716 bindings.FuncHTMLTextAreaElementSetSelectionRange1( 3717 this.ref, js.Pointer(&fn), 3718 ) 3719 return 3720 } 3721 3722 // SetSelectionRange1 calls the method "HTMLTextAreaElement.setSelectionRange". 3723 func (this HTMLTextAreaElement) SetSelectionRange1(start uint32, end uint32) (ret js.Void) { 3724 bindings.CallHTMLTextAreaElementSetSelectionRange1( 3725 this.ref, js.Pointer(&ret), 3726 uint32(start), 3727 uint32(end), 3728 ) 3729 3730 return 3731 } 3732 3733 // TrySetSelectionRange1 calls the method "HTMLTextAreaElement.setSelectionRange" 3734 // in a try/catch block and returns (_, err, ok = false) when it went through 3735 // the catch clause. 3736 func (this HTMLTextAreaElement) TrySetSelectionRange1(start uint32, end uint32) (ret js.Void, exception js.Any, ok bool) { 3737 ok = js.True == bindings.TryHTMLTextAreaElementSetSelectionRange1( 3738 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3739 uint32(start), 3740 uint32(end), 3741 ) 3742 3743 return 3744 } 3745 3746 type HTMLTimeElement struct { 3747 HTMLElement 3748 } 3749 3750 func (this HTMLTimeElement) Once() HTMLTimeElement { 3751 this.ref.Once() 3752 return this 3753 } 3754 3755 func (this HTMLTimeElement) Ref() js.Ref { 3756 return this.HTMLElement.Ref() 3757 } 3758 3759 func (this HTMLTimeElement) FromRef(ref js.Ref) HTMLTimeElement { 3760 this.HTMLElement = this.HTMLElement.FromRef(ref) 3761 return this 3762 } 3763 3764 func (this HTMLTimeElement) Free() { 3765 this.ref.Free() 3766 } 3767 3768 // DateTime returns the value of property "HTMLTimeElement.dateTime". 3769 // 3770 // It returns ok=false if there is no such property. 3771 func (this HTMLTimeElement) DateTime() (ret js.String, ok bool) { 3772 ok = js.True == bindings.GetHTMLTimeElementDateTime( 3773 this.ref, js.Pointer(&ret), 3774 ) 3775 return 3776 } 3777 3778 // SetDateTime sets the value of property "HTMLTimeElement.dateTime" to val. 3779 // 3780 // It returns false if the property cannot be set. 3781 func (this HTMLTimeElement) SetDateTime(val js.String) bool { 3782 return js.True == bindings.SetHTMLTimeElementDateTime( 3783 this.ref, 3784 val.Ref(), 3785 ) 3786 } 3787 3788 type HTMLTitleElement struct { 3789 HTMLElement 3790 } 3791 3792 func (this HTMLTitleElement) Once() HTMLTitleElement { 3793 this.ref.Once() 3794 return this 3795 } 3796 3797 func (this HTMLTitleElement) Ref() js.Ref { 3798 return this.HTMLElement.Ref() 3799 } 3800 3801 func (this HTMLTitleElement) FromRef(ref js.Ref) HTMLTitleElement { 3802 this.HTMLElement = this.HTMLElement.FromRef(ref) 3803 return this 3804 } 3805 3806 func (this HTMLTitleElement) Free() { 3807 this.ref.Free() 3808 } 3809 3810 // Text returns the value of property "HTMLTitleElement.text". 3811 // 3812 // It returns ok=false if there is no such property. 3813 func (this HTMLTitleElement) Text() (ret js.String, ok bool) { 3814 ok = js.True == bindings.GetHTMLTitleElementText( 3815 this.ref, js.Pointer(&ret), 3816 ) 3817 return 3818 } 3819 3820 // SetText sets the value of property "HTMLTitleElement.text" to val. 3821 // 3822 // It returns false if the property cannot be set. 3823 func (this HTMLTitleElement) SetText(val js.String) bool { 3824 return js.True == bindings.SetHTMLTitleElementText( 3825 this.ref, 3826 val.Ref(), 3827 ) 3828 } 3829 3830 const ( 3831 HTMLTrackElement_NONE uint16 = 0 3832 HTMLTrackElement_LOADING uint16 = 1 3833 HTMLTrackElement_LOADED uint16 = 2 3834 HTMLTrackElement_ERROR uint16 = 3 3835 ) 3836 3837 type HTMLTrackElement struct { 3838 HTMLElement 3839 } 3840 3841 func (this HTMLTrackElement) Once() HTMLTrackElement { 3842 this.ref.Once() 3843 return this 3844 } 3845 3846 func (this HTMLTrackElement) Ref() js.Ref { 3847 return this.HTMLElement.Ref() 3848 } 3849 3850 func (this HTMLTrackElement) FromRef(ref js.Ref) HTMLTrackElement { 3851 this.HTMLElement = this.HTMLElement.FromRef(ref) 3852 return this 3853 } 3854 3855 func (this HTMLTrackElement) Free() { 3856 this.ref.Free() 3857 } 3858 3859 // Kind returns the value of property "HTMLTrackElement.kind". 3860 // 3861 // It returns ok=false if there is no such property. 3862 func (this HTMLTrackElement) Kind() (ret js.String, ok bool) { 3863 ok = js.True == bindings.GetHTMLTrackElementKind( 3864 this.ref, js.Pointer(&ret), 3865 ) 3866 return 3867 } 3868 3869 // SetKind sets the value of property "HTMLTrackElement.kind" to val. 3870 // 3871 // It returns false if the property cannot be set. 3872 func (this HTMLTrackElement) SetKind(val js.String) bool { 3873 return js.True == bindings.SetHTMLTrackElementKind( 3874 this.ref, 3875 val.Ref(), 3876 ) 3877 } 3878 3879 // Src returns the value of property "HTMLTrackElement.src". 3880 // 3881 // It returns ok=false if there is no such property. 3882 func (this HTMLTrackElement) Src() (ret js.String, ok bool) { 3883 ok = js.True == bindings.GetHTMLTrackElementSrc( 3884 this.ref, js.Pointer(&ret), 3885 ) 3886 return 3887 } 3888 3889 // SetSrc sets the value of property "HTMLTrackElement.src" to val. 3890 // 3891 // It returns false if the property cannot be set. 3892 func (this HTMLTrackElement) SetSrc(val js.String) bool { 3893 return js.True == bindings.SetHTMLTrackElementSrc( 3894 this.ref, 3895 val.Ref(), 3896 ) 3897 } 3898 3899 // Srclang returns the value of property "HTMLTrackElement.srclang". 3900 // 3901 // It returns ok=false if there is no such property. 3902 func (this HTMLTrackElement) Srclang() (ret js.String, ok bool) { 3903 ok = js.True == bindings.GetHTMLTrackElementSrclang( 3904 this.ref, js.Pointer(&ret), 3905 ) 3906 return 3907 } 3908 3909 // SetSrclang sets the value of property "HTMLTrackElement.srclang" to val. 3910 // 3911 // It returns false if the property cannot be set. 3912 func (this HTMLTrackElement) SetSrclang(val js.String) bool { 3913 return js.True == bindings.SetHTMLTrackElementSrclang( 3914 this.ref, 3915 val.Ref(), 3916 ) 3917 } 3918 3919 // Label returns the value of property "HTMLTrackElement.label". 3920 // 3921 // It returns ok=false if there is no such property. 3922 func (this HTMLTrackElement) Label() (ret js.String, ok bool) { 3923 ok = js.True == bindings.GetHTMLTrackElementLabel( 3924 this.ref, js.Pointer(&ret), 3925 ) 3926 return 3927 } 3928 3929 // SetLabel sets the value of property "HTMLTrackElement.label" to val. 3930 // 3931 // It returns false if the property cannot be set. 3932 func (this HTMLTrackElement) SetLabel(val js.String) bool { 3933 return js.True == bindings.SetHTMLTrackElementLabel( 3934 this.ref, 3935 val.Ref(), 3936 ) 3937 } 3938 3939 // Default returns the value of property "HTMLTrackElement.default". 3940 // 3941 // It returns ok=false if there is no such property. 3942 func (this HTMLTrackElement) Default() (ret bool, ok bool) { 3943 ok = js.True == bindings.GetHTMLTrackElementDefault( 3944 this.ref, js.Pointer(&ret), 3945 ) 3946 return 3947 } 3948 3949 // SetDefault sets the value of property "HTMLTrackElement.default" to val. 3950 // 3951 // It returns false if the property cannot be set. 3952 func (this HTMLTrackElement) SetDefault(val bool) bool { 3953 return js.True == bindings.SetHTMLTrackElementDefault( 3954 this.ref, 3955 js.Bool(bool(val)), 3956 ) 3957 } 3958 3959 // ReadyState returns the value of property "HTMLTrackElement.readyState". 3960 // 3961 // It returns ok=false if there is no such property. 3962 func (this HTMLTrackElement) ReadyState() (ret uint16, ok bool) { 3963 ok = js.True == bindings.GetHTMLTrackElementReadyState( 3964 this.ref, js.Pointer(&ret), 3965 ) 3966 return 3967 } 3968 3969 // Track returns the value of property "HTMLTrackElement.track". 3970 // 3971 // It returns ok=false if there is no such property. 3972 func (this HTMLTrackElement) Track() (ret TextTrack, ok bool) { 3973 ok = js.True == bindings.GetHTMLTrackElementTrack( 3974 this.ref, js.Pointer(&ret), 3975 ) 3976 return 3977 } 3978 3979 type HTMLUListElement struct { 3980 HTMLElement 3981 } 3982 3983 func (this HTMLUListElement) Once() HTMLUListElement { 3984 this.ref.Once() 3985 return this 3986 } 3987 3988 func (this HTMLUListElement) Ref() js.Ref { 3989 return this.HTMLElement.Ref() 3990 } 3991 3992 func (this HTMLUListElement) FromRef(ref js.Ref) HTMLUListElement { 3993 this.HTMLElement = this.HTMLElement.FromRef(ref) 3994 return this 3995 } 3996 3997 func (this HTMLUListElement) Free() { 3998 this.ref.Free() 3999 } 4000 4001 // Compact returns the value of property "HTMLUListElement.compact". 4002 // 4003 // It returns ok=false if there is no such property. 4004 func (this HTMLUListElement) Compact() (ret bool, ok bool) { 4005 ok = js.True == bindings.GetHTMLUListElementCompact( 4006 this.ref, js.Pointer(&ret), 4007 ) 4008 return 4009 } 4010 4011 // SetCompact sets the value of property "HTMLUListElement.compact" to val. 4012 // 4013 // It returns false if the property cannot be set. 4014 func (this HTMLUListElement) SetCompact(val bool) bool { 4015 return js.True == bindings.SetHTMLUListElementCompact( 4016 this.ref, 4017 js.Bool(bool(val)), 4018 ) 4019 } 4020 4021 // Type returns the value of property "HTMLUListElement.type". 4022 // 4023 // It returns ok=false if there is no such property. 4024 func (this HTMLUListElement) Type() (ret js.String, ok bool) { 4025 ok = js.True == bindings.GetHTMLUListElementType( 4026 this.ref, js.Pointer(&ret), 4027 ) 4028 return 4029 } 4030 4031 // SetType sets the value of property "HTMLUListElement.type" to val. 4032 // 4033 // It returns false if the property cannot be set. 4034 func (this HTMLUListElement) SetType(val js.String) bool { 4035 return js.True == bindings.SetHTMLUListElementType( 4036 this.ref, 4037 val.Ref(), 4038 ) 4039 } 4040 4041 type HTMLUnknownElement struct { 4042 HTMLElement 4043 } 4044 4045 func (this HTMLUnknownElement) Once() HTMLUnknownElement { 4046 this.ref.Once() 4047 return this 4048 } 4049 4050 func (this HTMLUnknownElement) Ref() js.Ref { 4051 return this.HTMLElement.Ref() 4052 } 4053 4054 func (this HTMLUnknownElement) FromRef(ref js.Ref) HTMLUnknownElement { 4055 this.HTMLElement = this.HTMLElement.FromRef(ref) 4056 return this 4057 } 4058 4059 func (this HTMLUnknownElement) Free() { 4060 this.ref.Free() 4061 } 4062 4063 type HashChangeEventInit struct { 4064 // OldURL is "HashChangeEventInit.oldURL" 4065 // 4066 // Optional, defaults to "". 4067 OldURL js.String 4068 // NewURL is "HashChangeEventInit.newURL" 4069 // 4070 // Optional, defaults to "". 4071 NewURL js.String 4072 // Bubbles is "HashChangeEventInit.bubbles" 4073 // 4074 // Optional, defaults to false. 4075 // 4076 // NOTE: FFI_USE_Bubbles MUST be set to true to make this field effective. 4077 Bubbles bool 4078 // Cancelable is "HashChangeEventInit.cancelable" 4079 // 4080 // Optional, defaults to false. 4081 // 4082 // NOTE: FFI_USE_Cancelable MUST be set to true to make this field effective. 4083 Cancelable bool 4084 // Composed is "HashChangeEventInit.composed" 4085 // 4086 // Optional, defaults to false. 4087 // 4088 // NOTE: FFI_USE_Composed MUST be set to true to make this field effective. 4089 Composed bool 4090 4091 FFI_USE_Bubbles bool // for Bubbles. 4092 FFI_USE_Cancelable bool // for Cancelable. 4093 FFI_USE_Composed bool // for Composed. 4094 4095 FFI_USE bool 4096 } 4097 4098 // FromRef calls UpdateFrom and returns a HashChangeEventInit with all fields set. 4099 func (p HashChangeEventInit) FromRef(ref js.Ref) HashChangeEventInit { 4100 p.UpdateFrom(ref) 4101 return p 4102 } 4103 4104 // New creates a new HashChangeEventInit in the application heap. 4105 func (p HashChangeEventInit) New() js.Ref { 4106 return bindings.HashChangeEventInitJSLoad( 4107 js.Pointer(&p), js.True, 0, 4108 ) 4109 } 4110 4111 // UpdateFrom copies value of all fields of the heap object to p. 4112 func (p *HashChangeEventInit) UpdateFrom(ref js.Ref) { 4113 bindings.HashChangeEventInitJSStore( 4114 js.Pointer(p), ref, 4115 ) 4116 } 4117 4118 // Update writes all fields of the p to the heap object referenced by ref. 4119 func (p *HashChangeEventInit) Update(ref js.Ref) { 4120 bindings.HashChangeEventInitJSLoad( 4121 js.Pointer(p), js.False, ref, 4122 ) 4123 } 4124 4125 // FreeMembers frees fields with heap reference, if recursive is true 4126 // free all heap references reachable from p. 4127 func (p *HashChangeEventInit) FreeMembers(recursive bool) { 4128 js.Free( 4129 p.OldURL.Ref(), 4130 p.NewURL.Ref(), 4131 ) 4132 p.OldURL = p.OldURL.FromRef(js.Undefined) 4133 p.NewURL = p.NewURL.FromRef(js.Undefined) 4134 } 4135 4136 func NewHashChangeEvent(typ js.String, eventInitDict HashChangeEventInit) (ret HashChangeEvent) { 4137 ret.ref = bindings.NewHashChangeEventByHashChangeEvent( 4138 typ.Ref(), 4139 js.Pointer(&eventInitDict)) 4140 return 4141 } 4142 4143 func NewHashChangeEventByHashChangeEvent1(typ js.String) (ret HashChangeEvent) { 4144 ret.ref = bindings.NewHashChangeEventByHashChangeEvent1( 4145 typ.Ref()) 4146 return 4147 } 4148 4149 type HashChangeEvent struct { 4150 Event 4151 } 4152 4153 func (this HashChangeEvent) Once() HashChangeEvent { 4154 this.ref.Once() 4155 return this 4156 } 4157 4158 func (this HashChangeEvent) Ref() js.Ref { 4159 return this.Event.Ref() 4160 } 4161 4162 func (this HashChangeEvent) FromRef(ref js.Ref) HashChangeEvent { 4163 this.Event = this.Event.FromRef(ref) 4164 return this 4165 } 4166 4167 func (this HashChangeEvent) Free() { 4168 this.ref.Free() 4169 } 4170 4171 // OldURL returns the value of property "HashChangeEvent.oldURL". 4172 // 4173 // It returns ok=false if there is no such property. 4174 func (this HashChangeEvent) OldURL() (ret js.String, ok bool) { 4175 ok = js.True == bindings.GetHashChangeEventOldURL( 4176 this.ref, js.Pointer(&ret), 4177 ) 4178 return 4179 } 4180 4181 // NewURL returns the value of property "HashChangeEvent.newURL". 4182 // 4183 // It returns ok=false if there is no such property. 4184 func (this HashChangeEvent) NewURL() (ret js.String, ok bool) { 4185 ok = js.True == bindings.GetHashChangeEventNewURL( 4186 this.ref, js.Pointer(&ret), 4187 ) 4188 return 4189 } 4190 4191 type HevcBitstreamFormat uint32 4192 4193 const ( 4194 _ HevcBitstreamFormat = iota 4195 4196 HevcBitstreamFormat_ANNEXB 4197 HevcBitstreamFormat_HEVC 4198 ) 4199 4200 func (HevcBitstreamFormat) FromRef(str js.Ref) HevcBitstreamFormat { 4201 return HevcBitstreamFormat(bindings.ConstOfHevcBitstreamFormat(str)) 4202 } 4203 4204 func (x HevcBitstreamFormat) String() (string, bool) { 4205 switch x { 4206 case HevcBitstreamFormat_ANNEXB: 4207 return "annexb", true 4208 case HevcBitstreamFormat_HEVC: 4209 return "hevc", true 4210 default: 4211 return "", false 4212 } 4213 } 4214 4215 type HevcEncoderConfig struct { 4216 // Format is "HevcEncoderConfig.format" 4217 // 4218 // Optional, defaults to "hevc". 4219 Format HevcBitstreamFormat 4220 4221 FFI_USE bool 4222 } 4223 4224 // FromRef calls UpdateFrom and returns a HevcEncoderConfig with all fields set. 4225 func (p HevcEncoderConfig) FromRef(ref js.Ref) HevcEncoderConfig { 4226 p.UpdateFrom(ref) 4227 return p 4228 } 4229 4230 // New creates a new HevcEncoderConfig in the application heap. 4231 func (p HevcEncoderConfig) New() js.Ref { 4232 return bindings.HevcEncoderConfigJSLoad( 4233 js.Pointer(&p), js.True, 0, 4234 ) 4235 } 4236 4237 // UpdateFrom copies value of all fields of the heap object to p. 4238 func (p *HevcEncoderConfig) UpdateFrom(ref js.Ref) { 4239 bindings.HevcEncoderConfigJSStore( 4240 js.Pointer(p), ref, 4241 ) 4242 } 4243 4244 // Update writes all fields of the p to the heap object referenced by ref. 4245 func (p *HevcEncoderConfig) Update(ref js.Ref) { 4246 bindings.HevcEncoderConfigJSLoad( 4247 js.Pointer(p), js.False, ref, 4248 ) 4249 } 4250 4251 // FreeMembers frees fields with heap reference, if recursive is true 4252 // free all heap references reachable from p. 4253 func (p *HevcEncoderConfig) FreeMembers(recursive bool) { 4254 } 4255 4256 type HighlightType uint32 4257 4258 const ( 4259 _ HighlightType = iota 4260 4261 HighlightType_HIGHLIGHT 4262 HighlightType_SPELLING_ERROR 4263 HighlightType_GRAMMAR_ERROR 4264 ) 4265 4266 func (HighlightType) FromRef(str js.Ref) HighlightType { 4267 return HighlightType(bindings.ConstOfHighlightType(str)) 4268 } 4269 4270 func (x HighlightType) String() (string, bool) { 4271 switch x { 4272 case HighlightType_HIGHLIGHT: 4273 return "highlight", true 4274 case HighlightType_SPELLING_ERROR: 4275 return "spelling-error", true 4276 case HighlightType_GRAMMAR_ERROR: 4277 return "grammar-error", true 4278 default: 4279 return "", false 4280 } 4281 } 4282 4283 func NewHighlight(initialRanges ...AbstractRange) (ret Highlight) { 4284 ret.ref = bindings.NewHighlightByHighlight( 4285 js.SliceData(initialRanges), 4286 js.SizeU(len(initialRanges))) 4287 return 4288 } 4289 4290 type Highlight struct { 4291 ref js.Ref 4292 } 4293 4294 func (this Highlight) Once() Highlight { 4295 this.ref.Once() 4296 return this 4297 } 4298 4299 func (this Highlight) Ref() js.Ref { 4300 return this.ref 4301 } 4302 4303 func (this Highlight) FromRef(ref js.Ref) Highlight { 4304 this.ref = ref 4305 return this 4306 } 4307 4308 func (this Highlight) Free() { 4309 this.ref.Free() 4310 } 4311 4312 // Priority returns the value of property "Highlight.priority". 4313 // 4314 // It returns ok=false if there is no such property. 4315 func (this Highlight) Priority() (ret int32, ok bool) { 4316 ok = js.True == bindings.GetHighlightPriority( 4317 this.ref, js.Pointer(&ret), 4318 ) 4319 return 4320 } 4321 4322 // SetPriority sets the value of property "Highlight.priority" to val. 4323 // 4324 // It returns false if the property cannot be set. 4325 func (this Highlight) SetPriority(val int32) bool { 4326 return js.True == bindings.SetHighlightPriority( 4327 this.ref, 4328 int32(val), 4329 ) 4330 } 4331 4332 // Type returns the value of property "Highlight.type". 4333 // 4334 // It returns ok=false if there is no such property. 4335 func (this Highlight) Type() (ret HighlightType, ok bool) { 4336 ok = js.True == bindings.GetHighlightType( 4337 this.ref, js.Pointer(&ret), 4338 ) 4339 return 4340 } 4341 4342 // SetType sets the value of property "Highlight.type" to val. 4343 // 4344 // It returns false if the property cannot be set. 4345 func (this Highlight) SetType(val HighlightType) bool { 4346 return js.True == bindings.SetHighlightType( 4347 this.ref, 4348 uint32(val), 4349 ) 4350 } 4351 4352 type HkdfParams struct { 4353 // Hash is "HkdfParams.hash" 4354 // 4355 // Required 4356 Hash HashAlgorithmIdentifier 4357 // Salt is "HkdfParams.salt" 4358 // 4359 // Required 4360 Salt BufferSource 4361 // Info is "HkdfParams.info" 4362 // 4363 // Required 4364 Info BufferSource 4365 // Name is "HkdfParams.name" 4366 // 4367 // Required 4368 Name js.String 4369 4370 FFI_USE bool 4371 } 4372 4373 // FromRef calls UpdateFrom and returns a HkdfParams with all fields set. 4374 func (p HkdfParams) FromRef(ref js.Ref) HkdfParams { 4375 p.UpdateFrom(ref) 4376 return p 4377 } 4378 4379 // New creates a new HkdfParams in the application heap. 4380 func (p HkdfParams) New() js.Ref { 4381 return bindings.HkdfParamsJSLoad( 4382 js.Pointer(&p), js.True, 0, 4383 ) 4384 } 4385 4386 // UpdateFrom copies value of all fields of the heap object to p. 4387 func (p *HkdfParams) UpdateFrom(ref js.Ref) { 4388 bindings.HkdfParamsJSStore( 4389 js.Pointer(p), ref, 4390 ) 4391 } 4392 4393 // Update writes all fields of the p to the heap object referenced by ref. 4394 func (p *HkdfParams) Update(ref js.Ref) { 4395 bindings.HkdfParamsJSLoad( 4396 js.Pointer(p), js.False, ref, 4397 ) 4398 } 4399 4400 // FreeMembers frees fields with heap reference, if recursive is true 4401 // free all heap references reachable from p. 4402 func (p *HkdfParams) FreeMembers(recursive bool) { 4403 js.Free( 4404 p.Hash.Ref(), 4405 p.Salt.Ref(), 4406 p.Info.Ref(), 4407 p.Name.Ref(), 4408 ) 4409 p.Hash = p.Hash.FromRef(js.Undefined) 4410 p.Salt = p.Salt.FromRef(js.Undefined) 4411 p.Info = p.Info.FromRef(js.Undefined) 4412 p.Name = p.Name.FromRef(js.Undefined) 4413 } 4414 4415 type HmacImportParams struct { 4416 // Hash is "HmacImportParams.hash" 4417 // 4418 // Required 4419 Hash HashAlgorithmIdentifier 4420 // Length is "HmacImportParams.length" 4421 // 4422 // Optional 4423 // 4424 // NOTE: FFI_USE_Length MUST be set to true to make this field effective. 4425 Length uint32 4426 // Name is "HmacImportParams.name" 4427 // 4428 // Required 4429 Name js.String 4430 4431 FFI_USE_Length bool // for Length. 4432 4433 FFI_USE bool 4434 } 4435 4436 // FromRef calls UpdateFrom and returns a HmacImportParams with all fields set. 4437 func (p HmacImportParams) FromRef(ref js.Ref) HmacImportParams { 4438 p.UpdateFrom(ref) 4439 return p 4440 } 4441 4442 // New creates a new HmacImportParams in the application heap. 4443 func (p HmacImportParams) New() js.Ref { 4444 return bindings.HmacImportParamsJSLoad( 4445 js.Pointer(&p), js.True, 0, 4446 ) 4447 } 4448 4449 // UpdateFrom copies value of all fields of the heap object to p. 4450 func (p *HmacImportParams) UpdateFrom(ref js.Ref) { 4451 bindings.HmacImportParamsJSStore( 4452 js.Pointer(p), ref, 4453 ) 4454 } 4455 4456 // Update writes all fields of the p to the heap object referenced by ref. 4457 func (p *HmacImportParams) Update(ref js.Ref) { 4458 bindings.HmacImportParamsJSLoad( 4459 js.Pointer(p), js.False, ref, 4460 ) 4461 } 4462 4463 // FreeMembers frees fields with heap reference, if recursive is true 4464 // free all heap references reachable from p. 4465 func (p *HmacImportParams) FreeMembers(recursive bool) { 4466 js.Free( 4467 p.Hash.Ref(), 4468 p.Name.Ref(), 4469 ) 4470 p.Hash = p.Hash.FromRef(js.Undefined) 4471 p.Name = p.Name.FromRef(js.Undefined) 4472 } 4473 4474 type KeyAlgorithm struct { 4475 // Name is "KeyAlgorithm.name" 4476 // 4477 // Required 4478 Name js.String 4479 4480 FFI_USE bool 4481 } 4482 4483 // FromRef calls UpdateFrom and returns a KeyAlgorithm with all fields set. 4484 func (p KeyAlgorithm) FromRef(ref js.Ref) KeyAlgorithm { 4485 p.UpdateFrom(ref) 4486 return p 4487 } 4488 4489 // New creates a new KeyAlgorithm in the application heap. 4490 func (p KeyAlgorithm) New() js.Ref { 4491 return bindings.KeyAlgorithmJSLoad( 4492 js.Pointer(&p), js.True, 0, 4493 ) 4494 } 4495 4496 // UpdateFrom copies value of all fields of the heap object to p. 4497 func (p *KeyAlgorithm) UpdateFrom(ref js.Ref) { 4498 bindings.KeyAlgorithmJSStore( 4499 js.Pointer(p), ref, 4500 ) 4501 } 4502 4503 // Update writes all fields of the p to the heap object referenced by ref. 4504 func (p *KeyAlgorithm) Update(ref js.Ref) { 4505 bindings.KeyAlgorithmJSLoad( 4506 js.Pointer(p), js.False, ref, 4507 ) 4508 } 4509 4510 // FreeMembers frees fields with heap reference, if recursive is true 4511 // free all heap references reachable from p. 4512 func (p *KeyAlgorithm) FreeMembers(recursive bool) { 4513 js.Free( 4514 p.Name.Ref(), 4515 ) 4516 p.Name = p.Name.FromRef(js.Undefined) 4517 } 4518 4519 type HmacKeyAlgorithm struct { 4520 // Hash is "HmacKeyAlgorithm.hash" 4521 // 4522 // Required 4523 // 4524 // NOTE: Hash.FFI_USE MUST be set to true to get Hash used. 4525 Hash KeyAlgorithm 4526 // Length is "HmacKeyAlgorithm.length" 4527 // 4528 // Required 4529 Length uint32 4530 // Name is "HmacKeyAlgorithm.name" 4531 // 4532 // Required 4533 Name js.String 4534 4535 FFI_USE bool 4536 } 4537 4538 // FromRef calls UpdateFrom and returns a HmacKeyAlgorithm with all fields set. 4539 func (p HmacKeyAlgorithm) FromRef(ref js.Ref) HmacKeyAlgorithm { 4540 p.UpdateFrom(ref) 4541 return p 4542 } 4543 4544 // New creates a new HmacKeyAlgorithm in the application heap. 4545 func (p HmacKeyAlgorithm) New() js.Ref { 4546 return bindings.HmacKeyAlgorithmJSLoad( 4547 js.Pointer(&p), js.True, 0, 4548 ) 4549 } 4550 4551 // UpdateFrom copies value of all fields of the heap object to p. 4552 func (p *HmacKeyAlgorithm) UpdateFrom(ref js.Ref) { 4553 bindings.HmacKeyAlgorithmJSStore( 4554 js.Pointer(p), ref, 4555 ) 4556 } 4557 4558 // Update writes all fields of the p to the heap object referenced by ref. 4559 func (p *HmacKeyAlgorithm) Update(ref js.Ref) { 4560 bindings.HmacKeyAlgorithmJSLoad( 4561 js.Pointer(p), js.False, ref, 4562 ) 4563 } 4564 4565 // FreeMembers frees fields with heap reference, if recursive is true 4566 // free all heap references reachable from p. 4567 func (p *HmacKeyAlgorithm) FreeMembers(recursive bool) { 4568 js.Free( 4569 p.Name.Ref(), 4570 ) 4571 p.Name = p.Name.FromRef(js.Undefined) 4572 if recursive { 4573 p.Hash.FreeMembers(true) 4574 } 4575 } 4576 4577 type HmacKeyGenParams struct { 4578 // Hash is "HmacKeyGenParams.hash" 4579 // 4580 // Required 4581 Hash HashAlgorithmIdentifier 4582 // Length is "HmacKeyGenParams.length" 4583 // 4584 // Optional 4585 // 4586 // NOTE: FFI_USE_Length MUST be set to true to make this field effective. 4587 Length uint32 4588 // Name is "HmacKeyGenParams.name" 4589 // 4590 // Required 4591 Name js.String 4592 4593 FFI_USE_Length bool // for Length. 4594 4595 FFI_USE bool 4596 } 4597 4598 // FromRef calls UpdateFrom and returns a HmacKeyGenParams with all fields set. 4599 func (p HmacKeyGenParams) FromRef(ref js.Ref) HmacKeyGenParams { 4600 p.UpdateFrom(ref) 4601 return p 4602 } 4603 4604 // New creates a new HmacKeyGenParams in the application heap. 4605 func (p HmacKeyGenParams) New() js.Ref { 4606 return bindings.HmacKeyGenParamsJSLoad( 4607 js.Pointer(&p), js.True, 0, 4608 ) 4609 } 4610 4611 // UpdateFrom copies value of all fields of the heap object to p. 4612 func (p *HmacKeyGenParams) UpdateFrom(ref js.Ref) { 4613 bindings.HmacKeyGenParamsJSStore( 4614 js.Pointer(p), ref, 4615 ) 4616 } 4617 4618 // Update writes all fields of the p to the heap object referenced by ref. 4619 func (p *HmacKeyGenParams) Update(ref js.Ref) { 4620 bindings.HmacKeyGenParamsJSLoad( 4621 js.Pointer(p), js.False, ref, 4622 ) 4623 } 4624 4625 // FreeMembers frees fields with heap reference, if recursive is true 4626 // free all heap references reachable from p. 4627 func (p *HmacKeyGenParams) FreeMembers(recursive bool) { 4628 js.Free( 4629 p.Hash.Ref(), 4630 p.Name.Ref(), 4631 ) 4632 p.Hash = p.Hash.FromRef(js.Undefined) 4633 p.Name = p.Name.FromRef(js.Undefined) 4634 } 4635 4636 type IDBCursorDirection uint32 4637 4638 const ( 4639 _ IDBCursorDirection = iota 4640 4641 IDBCursorDirection_NEXT 4642 IDBCursorDirection_NEXTUNIQUE 4643 IDBCursorDirection_PREV 4644 IDBCursorDirection_PREVUNIQUE 4645 ) 4646 4647 func (IDBCursorDirection) FromRef(str js.Ref) IDBCursorDirection { 4648 return IDBCursorDirection(bindings.ConstOfIDBCursorDirection(str)) 4649 } 4650 4651 func (x IDBCursorDirection) String() (string, bool) { 4652 switch x { 4653 case IDBCursorDirection_NEXT: 4654 return "next", true 4655 case IDBCursorDirection_NEXTUNIQUE: 4656 return "nextunique", true 4657 case IDBCursorDirection_PREV: 4658 return "prev", true 4659 case IDBCursorDirection_PREVUNIQUE: 4660 return "prevunique", true 4661 default: 4662 return "", false 4663 } 4664 } 4665 4666 type IDBIndex struct { 4667 ref js.Ref 4668 } 4669 4670 func (this IDBIndex) Once() IDBIndex { 4671 this.ref.Once() 4672 return this 4673 } 4674 4675 func (this IDBIndex) Ref() js.Ref { 4676 return this.ref 4677 } 4678 4679 func (this IDBIndex) FromRef(ref js.Ref) IDBIndex { 4680 this.ref = ref 4681 return this 4682 } 4683 4684 func (this IDBIndex) Free() { 4685 this.ref.Free() 4686 } 4687 4688 // Name returns the value of property "IDBIndex.name". 4689 // 4690 // It returns ok=false if there is no such property. 4691 func (this IDBIndex) Name() (ret js.String, ok bool) { 4692 ok = js.True == bindings.GetIDBIndexName( 4693 this.ref, js.Pointer(&ret), 4694 ) 4695 return 4696 } 4697 4698 // SetName sets the value of property "IDBIndex.name" to val. 4699 // 4700 // It returns false if the property cannot be set. 4701 func (this IDBIndex) SetName(val js.String) bool { 4702 return js.True == bindings.SetIDBIndexName( 4703 this.ref, 4704 val.Ref(), 4705 ) 4706 } 4707 4708 // ObjectStore returns the value of property "IDBIndex.objectStore". 4709 // 4710 // It returns ok=false if there is no such property. 4711 func (this IDBIndex) ObjectStore() (ret IDBObjectStore, ok bool) { 4712 ok = js.True == bindings.GetIDBIndexObjectStore( 4713 this.ref, js.Pointer(&ret), 4714 ) 4715 return 4716 } 4717 4718 // KeyPath returns the value of property "IDBIndex.keyPath". 4719 // 4720 // It returns ok=false if there is no such property. 4721 func (this IDBIndex) KeyPath() (ret js.Any, ok bool) { 4722 ok = js.True == bindings.GetIDBIndexKeyPath( 4723 this.ref, js.Pointer(&ret), 4724 ) 4725 return 4726 } 4727 4728 // MultiEntry returns the value of property "IDBIndex.multiEntry". 4729 // 4730 // It returns ok=false if there is no such property. 4731 func (this IDBIndex) MultiEntry() (ret bool, ok bool) { 4732 ok = js.True == bindings.GetIDBIndexMultiEntry( 4733 this.ref, js.Pointer(&ret), 4734 ) 4735 return 4736 } 4737 4738 // Unique returns the value of property "IDBIndex.unique". 4739 // 4740 // It returns ok=false if there is no such property. 4741 func (this IDBIndex) Unique() (ret bool, ok bool) { 4742 ok = js.True == bindings.GetIDBIndexUnique( 4743 this.ref, js.Pointer(&ret), 4744 ) 4745 return 4746 } 4747 4748 // HasFuncGet returns true if the method "IDBIndex.get" exists. 4749 func (this IDBIndex) HasFuncGet() bool { 4750 return js.True == bindings.HasFuncIDBIndexGet( 4751 this.ref, 4752 ) 4753 } 4754 4755 // FuncGet returns the method "IDBIndex.get". 4756 func (this IDBIndex) FuncGet() (fn js.Func[func(query js.Any) IDBRequest]) { 4757 bindings.FuncIDBIndexGet( 4758 this.ref, js.Pointer(&fn), 4759 ) 4760 return 4761 } 4762 4763 // Get calls the method "IDBIndex.get". 4764 func (this IDBIndex) Get(query js.Any) (ret IDBRequest) { 4765 bindings.CallIDBIndexGet( 4766 this.ref, js.Pointer(&ret), 4767 query.Ref(), 4768 ) 4769 4770 return 4771 } 4772 4773 // TryGet calls the method "IDBIndex.get" 4774 // in a try/catch block and returns (_, err, ok = false) when it went through 4775 // the catch clause. 4776 func (this IDBIndex) TryGet(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 4777 ok = js.True == bindings.TryIDBIndexGet( 4778 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4779 query.Ref(), 4780 ) 4781 4782 return 4783 } 4784 4785 // HasFuncGetKey returns true if the method "IDBIndex.getKey" exists. 4786 func (this IDBIndex) HasFuncGetKey() bool { 4787 return js.True == bindings.HasFuncIDBIndexGetKey( 4788 this.ref, 4789 ) 4790 } 4791 4792 // FuncGetKey returns the method "IDBIndex.getKey". 4793 func (this IDBIndex) FuncGetKey() (fn js.Func[func(query js.Any) IDBRequest]) { 4794 bindings.FuncIDBIndexGetKey( 4795 this.ref, js.Pointer(&fn), 4796 ) 4797 return 4798 } 4799 4800 // GetKey calls the method "IDBIndex.getKey". 4801 func (this IDBIndex) GetKey(query js.Any) (ret IDBRequest) { 4802 bindings.CallIDBIndexGetKey( 4803 this.ref, js.Pointer(&ret), 4804 query.Ref(), 4805 ) 4806 4807 return 4808 } 4809 4810 // TryGetKey calls the method "IDBIndex.getKey" 4811 // in a try/catch block and returns (_, err, ok = false) when it went through 4812 // the catch clause. 4813 func (this IDBIndex) TryGetKey(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 4814 ok = js.True == bindings.TryIDBIndexGetKey( 4815 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4816 query.Ref(), 4817 ) 4818 4819 return 4820 } 4821 4822 // HasFuncGetAll returns true if the method "IDBIndex.getAll" exists. 4823 func (this IDBIndex) HasFuncGetAll() bool { 4824 return js.True == bindings.HasFuncIDBIndexGetAll( 4825 this.ref, 4826 ) 4827 } 4828 4829 // FuncGetAll returns the method "IDBIndex.getAll". 4830 func (this IDBIndex) FuncGetAll() (fn js.Func[func(query js.Any, count uint32) IDBRequest]) { 4831 bindings.FuncIDBIndexGetAll( 4832 this.ref, js.Pointer(&fn), 4833 ) 4834 return 4835 } 4836 4837 // GetAll calls the method "IDBIndex.getAll". 4838 func (this IDBIndex) GetAll(query js.Any, count uint32) (ret IDBRequest) { 4839 bindings.CallIDBIndexGetAll( 4840 this.ref, js.Pointer(&ret), 4841 query.Ref(), 4842 uint32(count), 4843 ) 4844 4845 return 4846 } 4847 4848 // TryGetAll calls the method "IDBIndex.getAll" 4849 // in a try/catch block and returns (_, err, ok = false) when it went through 4850 // the catch clause. 4851 func (this IDBIndex) TryGetAll(query js.Any, count uint32) (ret IDBRequest, exception js.Any, ok bool) { 4852 ok = js.True == bindings.TryIDBIndexGetAll( 4853 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4854 query.Ref(), 4855 uint32(count), 4856 ) 4857 4858 return 4859 } 4860 4861 // HasFuncGetAll1 returns true if the method "IDBIndex.getAll" exists. 4862 func (this IDBIndex) HasFuncGetAll1() bool { 4863 return js.True == bindings.HasFuncIDBIndexGetAll1( 4864 this.ref, 4865 ) 4866 } 4867 4868 // FuncGetAll1 returns the method "IDBIndex.getAll". 4869 func (this IDBIndex) FuncGetAll1() (fn js.Func[func(query js.Any) IDBRequest]) { 4870 bindings.FuncIDBIndexGetAll1( 4871 this.ref, js.Pointer(&fn), 4872 ) 4873 return 4874 } 4875 4876 // GetAll1 calls the method "IDBIndex.getAll". 4877 func (this IDBIndex) GetAll1(query js.Any) (ret IDBRequest) { 4878 bindings.CallIDBIndexGetAll1( 4879 this.ref, js.Pointer(&ret), 4880 query.Ref(), 4881 ) 4882 4883 return 4884 } 4885 4886 // TryGetAll1 calls the method "IDBIndex.getAll" 4887 // in a try/catch block and returns (_, err, ok = false) when it went through 4888 // the catch clause. 4889 func (this IDBIndex) TryGetAll1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 4890 ok = js.True == bindings.TryIDBIndexGetAll1( 4891 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4892 query.Ref(), 4893 ) 4894 4895 return 4896 } 4897 4898 // HasFuncGetAll2 returns true if the method "IDBIndex.getAll" exists. 4899 func (this IDBIndex) HasFuncGetAll2() bool { 4900 return js.True == bindings.HasFuncIDBIndexGetAll2( 4901 this.ref, 4902 ) 4903 } 4904 4905 // FuncGetAll2 returns the method "IDBIndex.getAll". 4906 func (this IDBIndex) FuncGetAll2() (fn js.Func[func() IDBRequest]) { 4907 bindings.FuncIDBIndexGetAll2( 4908 this.ref, js.Pointer(&fn), 4909 ) 4910 return 4911 } 4912 4913 // GetAll2 calls the method "IDBIndex.getAll". 4914 func (this IDBIndex) GetAll2() (ret IDBRequest) { 4915 bindings.CallIDBIndexGetAll2( 4916 this.ref, js.Pointer(&ret), 4917 ) 4918 4919 return 4920 } 4921 4922 // TryGetAll2 calls the method "IDBIndex.getAll" 4923 // in a try/catch block and returns (_, err, ok = false) when it went through 4924 // the catch clause. 4925 func (this IDBIndex) TryGetAll2() (ret IDBRequest, exception js.Any, ok bool) { 4926 ok = js.True == bindings.TryIDBIndexGetAll2( 4927 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4928 ) 4929 4930 return 4931 } 4932 4933 // HasFuncGetAllKeys returns true if the method "IDBIndex.getAllKeys" exists. 4934 func (this IDBIndex) HasFuncGetAllKeys() bool { 4935 return js.True == bindings.HasFuncIDBIndexGetAllKeys( 4936 this.ref, 4937 ) 4938 } 4939 4940 // FuncGetAllKeys returns the method "IDBIndex.getAllKeys". 4941 func (this IDBIndex) FuncGetAllKeys() (fn js.Func[func(query js.Any, count uint32) IDBRequest]) { 4942 bindings.FuncIDBIndexGetAllKeys( 4943 this.ref, js.Pointer(&fn), 4944 ) 4945 return 4946 } 4947 4948 // GetAllKeys calls the method "IDBIndex.getAllKeys". 4949 func (this IDBIndex) GetAllKeys(query js.Any, count uint32) (ret IDBRequest) { 4950 bindings.CallIDBIndexGetAllKeys( 4951 this.ref, js.Pointer(&ret), 4952 query.Ref(), 4953 uint32(count), 4954 ) 4955 4956 return 4957 } 4958 4959 // TryGetAllKeys calls the method "IDBIndex.getAllKeys" 4960 // in a try/catch block and returns (_, err, ok = false) when it went through 4961 // the catch clause. 4962 func (this IDBIndex) TryGetAllKeys(query js.Any, count uint32) (ret IDBRequest, exception js.Any, ok bool) { 4963 ok = js.True == bindings.TryIDBIndexGetAllKeys( 4964 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4965 query.Ref(), 4966 uint32(count), 4967 ) 4968 4969 return 4970 } 4971 4972 // HasFuncGetAllKeys1 returns true if the method "IDBIndex.getAllKeys" exists. 4973 func (this IDBIndex) HasFuncGetAllKeys1() bool { 4974 return js.True == bindings.HasFuncIDBIndexGetAllKeys1( 4975 this.ref, 4976 ) 4977 } 4978 4979 // FuncGetAllKeys1 returns the method "IDBIndex.getAllKeys". 4980 func (this IDBIndex) FuncGetAllKeys1() (fn js.Func[func(query js.Any) IDBRequest]) { 4981 bindings.FuncIDBIndexGetAllKeys1( 4982 this.ref, js.Pointer(&fn), 4983 ) 4984 return 4985 } 4986 4987 // GetAllKeys1 calls the method "IDBIndex.getAllKeys". 4988 func (this IDBIndex) GetAllKeys1(query js.Any) (ret IDBRequest) { 4989 bindings.CallIDBIndexGetAllKeys1( 4990 this.ref, js.Pointer(&ret), 4991 query.Ref(), 4992 ) 4993 4994 return 4995 } 4996 4997 // TryGetAllKeys1 calls the method "IDBIndex.getAllKeys" 4998 // in a try/catch block and returns (_, err, ok = false) when it went through 4999 // the catch clause. 5000 func (this IDBIndex) TryGetAllKeys1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 5001 ok = js.True == bindings.TryIDBIndexGetAllKeys1( 5002 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5003 query.Ref(), 5004 ) 5005 5006 return 5007 } 5008 5009 // HasFuncGetAllKeys2 returns true if the method "IDBIndex.getAllKeys" exists. 5010 func (this IDBIndex) HasFuncGetAllKeys2() bool { 5011 return js.True == bindings.HasFuncIDBIndexGetAllKeys2( 5012 this.ref, 5013 ) 5014 } 5015 5016 // FuncGetAllKeys2 returns the method "IDBIndex.getAllKeys". 5017 func (this IDBIndex) FuncGetAllKeys2() (fn js.Func[func() IDBRequest]) { 5018 bindings.FuncIDBIndexGetAllKeys2( 5019 this.ref, js.Pointer(&fn), 5020 ) 5021 return 5022 } 5023 5024 // GetAllKeys2 calls the method "IDBIndex.getAllKeys". 5025 func (this IDBIndex) GetAllKeys2() (ret IDBRequest) { 5026 bindings.CallIDBIndexGetAllKeys2( 5027 this.ref, js.Pointer(&ret), 5028 ) 5029 5030 return 5031 } 5032 5033 // TryGetAllKeys2 calls the method "IDBIndex.getAllKeys" 5034 // in a try/catch block and returns (_, err, ok = false) when it went through 5035 // the catch clause. 5036 func (this IDBIndex) TryGetAllKeys2() (ret IDBRequest, exception js.Any, ok bool) { 5037 ok = js.True == bindings.TryIDBIndexGetAllKeys2( 5038 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5039 ) 5040 5041 return 5042 } 5043 5044 // HasFuncCount returns true if the method "IDBIndex.count" exists. 5045 func (this IDBIndex) HasFuncCount() bool { 5046 return js.True == bindings.HasFuncIDBIndexCount( 5047 this.ref, 5048 ) 5049 } 5050 5051 // FuncCount returns the method "IDBIndex.count". 5052 func (this IDBIndex) FuncCount() (fn js.Func[func(query js.Any) IDBRequest]) { 5053 bindings.FuncIDBIndexCount( 5054 this.ref, js.Pointer(&fn), 5055 ) 5056 return 5057 } 5058 5059 // Count calls the method "IDBIndex.count". 5060 func (this IDBIndex) Count(query js.Any) (ret IDBRequest) { 5061 bindings.CallIDBIndexCount( 5062 this.ref, js.Pointer(&ret), 5063 query.Ref(), 5064 ) 5065 5066 return 5067 } 5068 5069 // TryCount calls the method "IDBIndex.count" 5070 // in a try/catch block and returns (_, err, ok = false) when it went through 5071 // the catch clause. 5072 func (this IDBIndex) TryCount(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 5073 ok = js.True == bindings.TryIDBIndexCount( 5074 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5075 query.Ref(), 5076 ) 5077 5078 return 5079 } 5080 5081 // HasFuncCount1 returns true if the method "IDBIndex.count" exists. 5082 func (this IDBIndex) HasFuncCount1() bool { 5083 return js.True == bindings.HasFuncIDBIndexCount1( 5084 this.ref, 5085 ) 5086 } 5087 5088 // FuncCount1 returns the method "IDBIndex.count". 5089 func (this IDBIndex) FuncCount1() (fn js.Func[func() IDBRequest]) { 5090 bindings.FuncIDBIndexCount1( 5091 this.ref, js.Pointer(&fn), 5092 ) 5093 return 5094 } 5095 5096 // Count1 calls the method "IDBIndex.count". 5097 func (this IDBIndex) Count1() (ret IDBRequest) { 5098 bindings.CallIDBIndexCount1( 5099 this.ref, js.Pointer(&ret), 5100 ) 5101 5102 return 5103 } 5104 5105 // TryCount1 calls the method "IDBIndex.count" 5106 // in a try/catch block and returns (_, err, ok = false) when it went through 5107 // the catch clause. 5108 func (this IDBIndex) TryCount1() (ret IDBRequest, exception js.Any, ok bool) { 5109 ok = js.True == bindings.TryIDBIndexCount1( 5110 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5111 ) 5112 5113 return 5114 } 5115 5116 // HasFuncOpenCursor returns true if the method "IDBIndex.openCursor" exists. 5117 func (this IDBIndex) HasFuncOpenCursor() bool { 5118 return js.True == bindings.HasFuncIDBIndexOpenCursor( 5119 this.ref, 5120 ) 5121 } 5122 5123 // FuncOpenCursor returns the method "IDBIndex.openCursor". 5124 func (this IDBIndex) FuncOpenCursor() (fn js.Func[func(query js.Any, direction IDBCursorDirection) IDBRequest]) { 5125 bindings.FuncIDBIndexOpenCursor( 5126 this.ref, js.Pointer(&fn), 5127 ) 5128 return 5129 } 5130 5131 // OpenCursor calls the method "IDBIndex.openCursor". 5132 func (this IDBIndex) OpenCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest) { 5133 bindings.CallIDBIndexOpenCursor( 5134 this.ref, js.Pointer(&ret), 5135 query.Ref(), 5136 uint32(direction), 5137 ) 5138 5139 return 5140 } 5141 5142 // TryOpenCursor calls the method "IDBIndex.openCursor" 5143 // in a try/catch block and returns (_, err, ok = false) when it went through 5144 // the catch clause. 5145 func (this IDBIndex) TryOpenCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest, exception js.Any, ok bool) { 5146 ok = js.True == bindings.TryIDBIndexOpenCursor( 5147 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5148 query.Ref(), 5149 uint32(direction), 5150 ) 5151 5152 return 5153 } 5154 5155 // HasFuncOpenCursor1 returns true if the method "IDBIndex.openCursor" exists. 5156 func (this IDBIndex) HasFuncOpenCursor1() bool { 5157 return js.True == bindings.HasFuncIDBIndexOpenCursor1( 5158 this.ref, 5159 ) 5160 } 5161 5162 // FuncOpenCursor1 returns the method "IDBIndex.openCursor". 5163 func (this IDBIndex) FuncOpenCursor1() (fn js.Func[func(query js.Any) IDBRequest]) { 5164 bindings.FuncIDBIndexOpenCursor1( 5165 this.ref, js.Pointer(&fn), 5166 ) 5167 return 5168 } 5169 5170 // OpenCursor1 calls the method "IDBIndex.openCursor". 5171 func (this IDBIndex) OpenCursor1(query js.Any) (ret IDBRequest) { 5172 bindings.CallIDBIndexOpenCursor1( 5173 this.ref, js.Pointer(&ret), 5174 query.Ref(), 5175 ) 5176 5177 return 5178 } 5179 5180 // TryOpenCursor1 calls the method "IDBIndex.openCursor" 5181 // in a try/catch block and returns (_, err, ok = false) when it went through 5182 // the catch clause. 5183 func (this IDBIndex) TryOpenCursor1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 5184 ok = js.True == bindings.TryIDBIndexOpenCursor1( 5185 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5186 query.Ref(), 5187 ) 5188 5189 return 5190 } 5191 5192 // HasFuncOpenCursor2 returns true if the method "IDBIndex.openCursor" exists. 5193 func (this IDBIndex) HasFuncOpenCursor2() bool { 5194 return js.True == bindings.HasFuncIDBIndexOpenCursor2( 5195 this.ref, 5196 ) 5197 } 5198 5199 // FuncOpenCursor2 returns the method "IDBIndex.openCursor". 5200 func (this IDBIndex) FuncOpenCursor2() (fn js.Func[func() IDBRequest]) { 5201 bindings.FuncIDBIndexOpenCursor2( 5202 this.ref, js.Pointer(&fn), 5203 ) 5204 return 5205 } 5206 5207 // OpenCursor2 calls the method "IDBIndex.openCursor". 5208 func (this IDBIndex) OpenCursor2() (ret IDBRequest) { 5209 bindings.CallIDBIndexOpenCursor2( 5210 this.ref, js.Pointer(&ret), 5211 ) 5212 5213 return 5214 } 5215 5216 // TryOpenCursor2 calls the method "IDBIndex.openCursor" 5217 // in a try/catch block and returns (_, err, ok = false) when it went through 5218 // the catch clause. 5219 func (this IDBIndex) TryOpenCursor2() (ret IDBRequest, exception js.Any, ok bool) { 5220 ok = js.True == bindings.TryIDBIndexOpenCursor2( 5221 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5222 ) 5223 5224 return 5225 } 5226 5227 // HasFuncOpenKeyCursor returns true if the method "IDBIndex.openKeyCursor" exists. 5228 func (this IDBIndex) HasFuncOpenKeyCursor() bool { 5229 return js.True == bindings.HasFuncIDBIndexOpenKeyCursor( 5230 this.ref, 5231 ) 5232 } 5233 5234 // FuncOpenKeyCursor returns the method "IDBIndex.openKeyCursor". 5235 func (this IDBIndex) FuncOpenKeyCursor() (fn js.Func[func(query js.Any, direction IDBCursorDirection) IDBRequest]) { 5236 bindings.FuncIDBIndexOpenKeyCursor( 5237 this.ref, js.Pointer(&fn), 5238 ) 5239 return 5240 } 5241 5242 // OpenKeyCursor calls the method "IDBIndex.openKeyCursor". 5243 func (this IDBIndex) OpenKeyCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest) { 5244 bindings.CallIDBIndexOpenKeyCursor( 5245 this.ref, js.Pointer(&ret), 5246 query.Ref(), 5247 uint32(direction), 5248 ) 5249 5250 return 5251 } 5252 5253 // TryOpenKeyCursor calls the method "IDBIndex.openKeyCursor" 5254 // in a try/catch block and returns (_, err, ok = false) when it went through 5255 // the catch clause. 5256 func (this IDBIndex) TryOpenKeyCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest, exception js.Any, ok bool) { 5257 ok = js.True == bindings.TryIDBIndexOpenKeyCursor( 5258 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5259 query.Ref(), 5260 uint32(direction), 5261 ) 5262 5263 return 5264 } 5265 5266 // HasFuncOpenKeyCursor1 returns true if the method "IDBIndex.openKeyCursor" exists. 5267 func (this IDBIndex) HasFuncOpenKeyCursor1() bool { 5268 return js.True == bindings.HasFuncIDBIndexOpenKeyCursor1( 5269 this.ref, 5270 ) 5271 } 5272 5273 // FuncOpenKeyCursor1 returns the method "IDBIndex.openKeyCursor". 5274 func (this IDBIndex) FuncOpenKeyCursor1() (fn js.Func[func(query js.Any) IDBRequest]) { 5275 bindings.FuncIDBIndexOpenKeyCursor1( 5276 this.ref, js.Pointer(&fn), 5277 ) 5278 return 5279 } 5280 5281 // OpenKeyCursor1 calls the method "IDBIndex.openKeyCursor". 5282 func (this IDBIndex) OpenKeyCursor1(query js.Any) (ret IDBRequest) { 5283 bindings.CallIDBIndexOpenKeyCursor1( 5284 this.ref, js.Pointer(&ret), 5285 query.Ref(), 5286 ) 5287 5288 return 5289 } 5290 5291 // TryOpenKeyCursor1 calls the method "IDBIndex.openKeyCursor" 5292 // in a try/catch block and returns (_, err, ok = false) when it went through 5293 // the catch clause. 5294 func (this IDBIndex) TryOpenKeyCursor1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 5295 ok = js.True == bindings.TryIDBIndexOpenKeyCursor1( 5296 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5297 query.Ref(), 5298 ) 5299 5300 return 5301 } 5302 5303 // HasFuncOpenKeyCursor2 returns true if the method "IDBIndex.openKeyCursor" exists. 5304 func (this IDBIndex) HasFuncOpenKeyCursor2() bool { 5305 return js.True == bindings.HasFuncIDBIndexOpenKeyCursor2( 5306 this.ref, 5307 ) 5308 } 5309 5310 // FuncOpenKeyCursor2 returns the method "IDBIndex.openKeyCursor". 5311 func (this IDBIndex) FuncOpenKeyCursor2() (fn js.Func[func() IDBRequest]) { 5312 bindings.FuncIDBIndexOpenKeyCursor2( 5313 this.ref, js.Pointer(&fn), 5314 ) 5315 return 5316 } 5317 5318 // OpenKeyCursor2 calls the method "IDBIndex.openKeyCursor". 5319 func (this IDBIndex) OpenKeyCursor2() (ret IDBRequest) { 5320 bindings.CallIDBIndexOpenKeyCursor2( 5321 this.ref, js.Pointer(&ret), 5322 ) 5323 5324 return 5325 } 5326 5327 // TryOpenKeyCursor2 calls the method "IDBIndex.openKeyCursor" 5328 // in a try/catch block and returns (_, err, ok = false) when it went through 5329 // the catch clause. 5330 func (this IDBIndex) TryOpenKeyCursor2() (ret IDBRequest, exception js.Any, ok bool) { 5331 ok = js.True == bindings.TryIDBIndexOpenKeyCursor2( 5332 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5333 ) 5334 5335 return 5336 } 5337 5338 type IDBIndexParameters struct { 5339 // Unique is "IDBIndexParameters.unique" 5340 // 5341 // Optional, defaults to false. 5342 // 5343 // NOTE: FFI_USE_Unique MUST be set to true to make this field effective. 5344 Unique bool 5345 // MultiEntry is "IDBIndexParameters.multiEntry" 5346 // 5347 // Optional, defaults to false. 5348 // 5349 // NOTE: FFI_USE_MultiEntry MUST be set to true to make this field effective. 5350 MultiEntry bool 5351 5352 FFI_USE_Unique bool // for Unique. 5353 FFI_USE_MultiEntry bool // for MultiEntry. 5354 5355 FFI_USE bool 5356 } 5357 5358 // FromRef calls UpdateFrom and returns a IDBIndexParameters with all fields set. 5359 func (p IDBIndexParameters) FromRef(ref js.Ref) IDBIndexParameters { 5360 p.UpdateFrom(ref) 5361 return p 5362 } 5363 5364 // New creates a new IDBIndexParameters in the application heap. 5365 func (p IDBIndexParameters) New() js.Ref { 5366 return bindings.IDBIndexParametersJSLoad( 5367 js.Pointer(&p), js.True, 0, 5368 ) 5369 } 5370 5371 // UpdateFrom copies value of all fields of the heap object to p. 5372 func (p *IDBIndexParameters) UpdateFrom(ref js.Ref) { 5373 bindings.IDBIndexParametersJSStore( 5374 js.Pointer(p), ref, 5375 ) 5376 } 5377 5378 // Update writes all fields of the p to the heap object referenced by ref. 5379 func (p *IDBIndexParameters) Update(ref js.Ref) { 5380 bindings.IDBIndexParametersJSLoad( 5381 js.Pointer(p), js.False, ref, 5382 ) 5383 } 5384 5385 // FreeMembers frees fields with heap reference, if recursive is true 5386 // free all heap references reachable from p. 5387 func (p *IDBIndexParameters) FreeMembers(recursive bool) { 5388 } 5389 5390 type IDBTransactionMode uint32 5391 5392 const ( 5393 _ IDBTransactionMode = iota 5394 5395 IDBTransactionMode_READONLY 5396 IDBTransactionMode_READWRITE 5397 IDBTransactionMode_VERSIONCHANGE 5398 ) 5399 5400 func (IDBTransactionMode) FromRef(str js.Ref) IDBTransactionMode { 5401 return IDBTransactionMode(bindings.ConstOfIDBTransactionMode(str)) 5402 } 5403 5404 func (x IDBTransactionMode) String() (string, bool) { 5405 switch x { 5406 case IDBTransactionMode_READONLY: 5407 return "readonly", true 5408 case IDBTransactionMode_READWRITE: 5409 return "readwrite", true 5410 case IDBTransactionMode_VERSIONCHANGE: 5411 return "versionchange", true 5412 default: 5413 return "", false 5414 } 5415 } 5416 5417 type IDBTransactionDurability uint32 5418 5419 const ( 5420 _ IDBTransactionDurability = iota 5421 5422 IDBTransactionDurability_DEFAULT 5423 IDBTransactionDurability_STRICT 5424 IDBTransactionDurability_RELAXED 5425 ) 5426 5427 func (IDBTransactionDurability) FromRef(str js.Ref) IDBTransactionDurability { 5428 return IDBTransactionDurability(bindings.ConstOfIDBTransactionDurability(str)) 5429 } 5430 5431 func (x IDBTransactionDurability) String() (string, bool) { 5432 switch x { 5433 case IDBTransactionDurability_DEFAULT: 5434 return "default", true 5435 case IDBTransactionDurability_STRICT: 5436 return "strict", true 5437 case IDBTransactionDurability_RELAXED: 5438 return "relaxed", true 5439 default: 5440 return "", false 5441 } 5442 } 5443 5444 type IDBTransactionOptions struct { 5445 // Durability is "IDBTransactionOptions.durability" 5446 // 5447 // Optional, defaults to "default". 5448 Durability IDBTransactionDurability 5449 5450 FFI_USE bool 5451 } 5452 5453 // FromRef calls UpdateFrom and returns a IDBTransactionOptions with all fields set. 5454 func (p IDBTransactionOptions) FromRef(ref js.Ref) IDBTransactionOptions { 5455 p.UpdateFrom(ref) 5456 return p 5457 } 5458 5459 // New creates a new IDBTransactionOptions in the application heap. 5460 func (p IDBTransactionOptions) New() js.Ref { 5461 return bindings.IDBTransactionOptionsJSLoad( 5462 js.Pointer(&p), js.True, 0, 5463 ) 5464 } 5465 5466 // UpdateFrom copies value of all fields of the heap object to p. 5467 func (p *IDBTransactionOptions) UpdateFrom(ref js.Ref) { 5468 bindings.IDBTransactionOptionsJSStore( 5469 js.Pointer(p), ref, 5470 ) 5471 } 5472 5473 // Update writes all fields of the p to the heap object referenced by ref. 5474 func (p *IDBTransactionOptions) Update(ref js.Ref) { 5475 bindings.IDBTransactionOptionsJSLoad( 5476 js.Pointer(p), js.False, ref, 5477 ) 5478 } 5479 5480 // FreeMembers frees fields with heap reference, if recursive is true 5481 // free all heap references reachable from p. 5482 func (p *IDBTransactionOptions) FreeMembers(recursive bool) { 5483 } 5484 5485 type IDBObjectStoreParameters struct { 5486 // KeyPath is "IDBObjectStoreParameters.keyPath" 5487 // 5488 // Optional, defaults to null. 5489 KeyPath OneOf_String_ArrayString 5490 // AutoIncrement is "IDBObjectStoreParameters.autoIncrement" 5491 // 5492 // Optional, defaults to false. 5493 // 5494 // NOTE: FFI_USE_AutoIncrement MUST be set to true to make this field effective. 5495 AutoIncrement bool 5496 5497 FFI_USE_AutoIncrement bool // for AutoIncrement. 5498 5499 FFI_USE bool 5500 } 5501 5502 // FromRef calls UpdateFrom and returns a IDBObjectStoreParameters with all fields set. 5503 func (p IDBObjectStoreParameters) FromRef(ref js.Ref) IDBObjectStoreParameters { 5504 p.UpdateFrom(ref) 5505 return p 5506 } 5507 5508 // New creates a new IDBObjectStoreParameters in the application heap. 5509 func (p IDBObjectStoreParameters) New() js.Ref { 5510 return bindings.IDBObjectStoreParametersJSLoad( 5511 js.Pointer(&p), js.True, 0, 5512 ) 5513 } 5514 5515 // UpdateFrom copies value of all fields of the heap object to p. 5516 func (p *IDBObjectStoreParameters) UpdateFrom(ref js.Ref) { 5517 bindings.IDBObjectStoreParametersJSStore( 5518 js.Pointer(p), ref, 5519 ) 5520 } 5521 5522 // Update writes all fields of the p to the heap object referenced by ref. 5523 func (p *IDBObjectStoreParameters) Update(ref js.Ref) { 5524 bindings.IDBObjectStoreParametersJSLoad( 5525 js.Pointer(p), js.False, ref, 5526 ) 5527 } 5528 5529 // FreeMembers frees fields with heap reference, if recursive is true 5530 // free all heap references reachable from p. 5531 func (p *IDBObjectStoreParameters) FreeMembers(recursive bool) { 5532 js.Free( 5533 p.KeyPath.Ref(), 5534 ) 5535 p.KeyPath = p.KeyPath.FromRef(js.Undefined) 5536 } 5537 5538 type IDBDatabase struct { 5539 EventTarget 5540 } 5541 5542 func (this IDBDatabase) Once() IDBDatabase { 5543 this.ref.Once() 5544 return this 5545 } 5546 5547 func (this IDBDatabase) Ref() js.Ref { 5548 return this.EventTarget.Ref() 5549 } 5550 5551 func (this IDBDatabase) FromRef(ref js.Ref) IDBDatabase { 5552 this.EventTarget = this.EventTarget.FromRef(ref) 5553 return this 5554 } 5555 5556 func (this IDBDatabase) Free() { 5557 this.ref.Free() 5558 } 5559 5560 // Name returns the value of property "IDBDatabase.name". 5561 // 5562 // It returns ok=false if there is no such property. 5563 func (this IDBDatabase) Name() (ret js.String, ok bool) { 5564 ok = js.True == bindings.GetIDBDatabaseName( 5565 this.ref, js.Pointer(&ret), 5566 ) 5567 return 5568 } 5569 5570 // Version returns the value of property "IDBDatabase.version". 5571 // 5572 // It returns ok=false if there is no such property. 5573 func (this IDBDatabase) Version() (ret uint64, ok bool) { 5574 ok = js.True == bindings.GetIDBDatabaseVersion( 5575 this.ref, js.Pointer(&ret), 5576 ) 5577 return 5578 } 5579 5580 // ObjectStoreNames returns the value of property "IDBDatabase.objectStoreNames". 5581 // 5582 // It returns ok=false if there is no such property. 5583 func (this IDBDatabase) ObjectStoreNames() (ret DOMStringList, ok bool) { 5584 ok = js.True == bindings.GetIDBDatabaseObjectStoreNames( 5585 this.ref, js.Pointer(&ret), 5586 ) 5587 return 5588 } 5589 5590 // HasFuncTransaction returns true if the method "IDBDatabase.transaction" exists. 5591 func (this IDBDatabase) HasFuncTransaction() bool { 5592 return js.True == bindings.HasFuncIDBDatabaseTransaction( 5593 this.ref, 5594 ) 5595 } 5596 5597 // FuncTransaction returns the method "IDBDatabase.transaction". 5598 func (this IDBDatabase) FuncTransaction() (fn js.Func[func(storeNames OneOf_String_ArrayString, mode IDBTransactionMode, options IDBTransactionOptions) IDBTransaction]) { 5599 bindings.FuncIDBDatabaseTransaction( 5600 this.ref, js.Pointer(&fn), 5601 ) 5602 return 5603 } 5604 5605 // Transaction calls the method "IDBDatabase.transaction". 5606 func (this IDBDatabase) Transaction(storeNames OneOf_String_ArrayString, mode IDBTransactionMode, options IDBTransactionOptions) (ret IDBTransaction) { 5607 bindings.CallIDBDatabaseTransaction( 5608 this.ref, js.Pointer(&ret), 5609 storeNames.Ref(), 5610 uint32(mode), 5611 js.Pointer(&options), 5612 ) 5613 5614 return 5615 } 5616 5617 // TryTransaction calls the method "IDBDatabase.transaction" 5618 // in a try/catch block and returns (_, err, ok = false) when it went through 5619 // the catch clause. 5620 func (this IDBDatabase) TryTransaction(storeNames OneOf_String_ArrayString, mode IDBTransactionMode, options IDBTransactionOptions) (ret IDBTransaction, exception js.Any, ok bool) { 5621 ok = js.True == bindings.TryIDBDatabaseTransaction( 5622 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5623 storeNames.Ref(), 5624 uint32(mode), 5625 js.Pointer(&options), 5626 ) 5627 5628 return 5629 } 5630 5631 // HasFuncTransaction1 returns true if the method "IDBDatabase.transaction" exists. 5632 func (this IDBDatabase) HasFuncTransaction1() bool { 5633 return js.True == bindings.HasFuncIDBDatabaseTransaction1( 5634 this.ref, 5635 ) 5636 } 5637 5638 // FuncTransaction1 returns the method "IDBDatabase.transaction". 5639 func (this IDBDatabase) FuncTransaction1() (fn js.Func[func(storeNames OneOf_String_ArrayString, mode IDBTransactionMode) IDBTransaction]) { 5640 bindings.FuncIDBDatabaseTransaction1( 5641 this.ref, js.Pointer(&fn), 5642 ) 5643 return 5644 } 5645 5646 // Transaction1 calls the method "IDBDatabase.transaction". 5647 func (this IDBDatabase) Transaction1(storeNames OneOf_String_ArrayString, mode IDBTransactionMode) (ret IDBTransaction) { 5648 bindings.CallIDBDatabaseTransaction1( 5649 this.ref, js.Pointer(&ret), 5650 storeNames.Ref(), 5651 uint32(mode), 5652 ) 5653 5654 return 5655 } 5656 5657 // TryTransaction1 calls the method "IDBDatabase.transaction" 5658 // in a try/catch block and returns (_, err, ok = false) when it went through 5659 // the catch clause. 5660 func (this IDBDatabase) TryTransaction1(storeNames OneOf_String_ArrayString, mode IDBTransactionMode) (ret IDBTransaction, exception js.Any, ok bool) { 5661 ok = js.True == bindings.TryIDBDatabaseTransaction1( 5662 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5663 storeNames.Ref(), 5664 uint32(mode), 5665 ) 5666 5667 return 5668 } 5669 5670 // HasFuncTransaction2 returns true if the method "IDBDatabase.transaction" exists. 5671 func (this IDBDatabase) HasFuncTransaction2() bool { 5672 return js.True == bindings.HasFuncIDBDatabaseTransaction2( 5673 this.ref, 5674 ) 5675 } 5676 5677 // FuncTransaction2 returns the method "IDBDatabase.transaction". 5678 func (this IDBDatabase) FuncTransaction2() (fn js.Func[func(storeNames OneOf_String_ArrayString) IDBTransaction]) { 5679 bindings.FuncIDBDatabaseTransaction2( 5680 this.ref, js.Pointer(&fn), 5681 ) 5682 return 5683 } 5684 5685 // Transaction2 calls the method "IDBDatabase.transaction". 5686 func (this IDBDatabase) Transaction2(storeNames OneOf_String_ArrayString) (ret IDBTransaction) { 5687 bindings.CallIDBDatabaseTransaction2( 5688 this.ref, js.Pointer(&ret), 5689 storeNames.Ref(), 5690 ) 5691 5692 return 5693 } 5694 5695 // TryTransaction2 calls the method "IDBDatabase.transaction" 5696 // in a try/catch block and returns (_, err, ok = false) when it went through 5697 // the catch clause. 5698 func (this IDBDatabase) TryTransaction2(storeNames OneOf_String_ArrayString) (ret IDBTransaction, exception js.Any, ok bool) { 5699 ok = js.True == bindings.TryIDBDatabaseTransaction2( 5700 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5701 storeNames.Ref(), 5702 ) 5703 5704 return 5705 } 5706 5707 // HasFuncClose returns true if the method "IDBDatabase.close" exists. 5708 func (this IDBDatabase) HasFuncClose() bool { 5709 return js.True == bindings.HasFuncIDBDatabaseClose( 5710 this.ref, 5711 ) 5712 } 5713 5714 // FuncClose returns the method "IDBDatabase.close". 5715 func (this IDBDatabase) FuncClose() (fn js.Func[func()]) { 5716 bindings.FuncIDBDatabaseClose( 5717 this.ref, js.Pointer(&fn), 5718 ) 5719 return 5720 } 5721 5722 // Close calls the method "IDBDatabase.close". 5723 func (this IDBDatabase) Close() (ret js.Void) { 5724 bindings.CallIDBDatabaseClose( 5725 this.ref, js.Pointer(&ret), 5726 ) 5727 5728 return 5729 } 5730 5731 // TryClose calls the method "IDBDatabase.close" 5732 // in a try/catch block and returns (_, err, ok = false) when it went through 5733 // the catch clause. 5734 func (this IDBDatabase) TryClose() (ret js.Void, exception js.Any, ok bool) { 5735 ok = js.True == bindings.TryIDBDatabaseClose( 5736 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5737 ) 5738 5739 return 5740 } 5741 5742 // HasFuncCreateObjectStore returns true if the method "IDBDatabase.createObjectStore" exists. 5743 func (this IDBDatabase) HasFuncCreateObjectStore() bool { 5744 return js.True == bindings.HasFuncIDBDatabaseCreateObjectStore( 5745 this.ref, 5746 ) 5747 } 5748 5749 // FuncCreateObjectStore returns the method "IDBDatabase.createObjectStore". 5750 func (this IDBDatabase) FuncCreateObjectStore() (fn js.Func[func(name js.String, options IDBObjectStoreParameters) IDBObjectStore]) { 5751 bindings.FuncIDBDatabaseCreateObjectStore( 5752 this.ref, js.Pointer(&fn), 5753 ) 5754 return 5755 } 5756 5757 // CreateObjectStore calls the method "IDBDatabase.createObjectStore". 5758 func (this IDBDatabase) CreateObjectStore(name js.String, options IDBObjectStoreParameters) (ret IDBObjectStore) { 5759 bindings.CallIDBDatabaseCreateObjectStore( 5760 this.ref, js.Pointer(&ret), 5761 name.Ref(), 5762 js.Pointer(&options), 5763 ) 5764 5765 return 5766 } 5767 5768 // TryCreateObjectStore calls the method "IDBDatabase.createObjectStore" 5769 // in a try/catch block and returns (_, err, ok = false) when it went through 5770 // the catch clause. 5771 func (this IDBDatabase) TryCreateObjectStore(name js.String, options IDBObjectStoreParameters) (ret IDBObjectStore, exception js.Any, ok bool) { 5772 ok = js.True == bindings.TryIDBDatabaseCreateObjectStore( 5773 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5774 name.Ref(), 5775 js.Pointer(&options), 5776 ) 5777 5778 return 5779 } 5780 5781 // HasFuncCreateObjectStore1 returns true if the method "IDBDatabase.createObjectStore" exists. 5782 func (this IDBDatabase) HasFuncCreateObjectStore1() bool { 5783 return js.True == bindings.HasFuncIDBDatabaseCreateObjectStore1( 5784 this.ref, 5785 ) 5786 } 5787 5788 // FuncCreateObjectStore1 returns the method "IDBDatabase.createObjectStore". 5789 func (this IDBDatabase) FuncCreateObjectStore1() (fn js.Func[func(name js.String) IDBObjectStore]) { 5790 bindings.FuncIDBDatabaseCreateObjectStore1( 5791 this.ref, js.Pointer(&fn), 5792 ) 5793 return 5794 } 5795 5796 // CreateObjectStore1 calls the method "IDBDatabase.createObjectStore". 5797 func (this IDBDatabase) CreateObjectStore1(name js.String) (ret IDBObjectStore) { 5798 bindings.CallIDBDatabaseCreateObjectStore1( 5799 this.ref, js.Pointer(&ret), 5800 name.Ref(), 5801 ) 5802 5803 return 5804 } 5805 5806 // TryCreateObjectStore1 calls the method "IDBDatabase.createObjectStore" 5807 // in a try/catch block and returns (_, err, ok = false) when it went through 5808 // the catch clause. 5809 func (this IDBDatabase) TryCreateObjectStore1(name js.String) (ret IDBObjectStore, exception js.Any, ok bool) { 5810 ok = js.True == bindings.TryIDBDatabaseCreateObjectStore1( 5811 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5812 name.Ref(), 5813 ) 5814 5815 return 5816 } 5817 5818 // HasFuncDeleteObjectStore returns true if the method "IDBDatabase.deleteObjectStore" exists. 5819 func (this IDBDatabase) HasFuncDeleteObjectStore() bool { 5820 return js.True == bindings.HasFuncIDBDatabaseDeleteObjectStore( 5821 this.ref, 5822 ) 5823 } 5824 5825 // FuncDeleteObjectStore returns the method "IDBDatabase.deleteObjectStore". 5826 func (this IDBDatabase) FuncDeleteObjectStore() (fn js.Func[func(name js.String)]) { 5827 bindings.FuncIDBDatabaseDeleteObjectStore( 5828 this.ref, js.Pointer(&fn), 5829 ) 5830 return 5831 } 5832 5833 // DeleteObjectStore calls the method "IDBDatabase.deleteObjectStore". 5834 func (this IDBDatabase) DeleteObjectStore(name js.String) (ret js.Void) { 5835 bindings.CallIDBDatabaseDeleteObjectStore( 5836 this.ref, js.Pointer(&ret), 5837 name.Ref(), 5838 ) 5839 5840 return 5841 } 5842 5843 // TryDeleteObjectStore calls the method "IDBDatabase.deleteObjectStore" 5844 // in a try/catch block and returns (_, err, ok = false) when it went through 5845 // the catch clause. 5846 func (this IDBDatabase) TryDeleteObjectStore(name js.String) (ret js.Void, exception js.Any, ok bool) { 5847 ok = js.True == bindings.TryIDBDatabaseDeleteObjectStore( 5848 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5849 name.Ref(), 5850 ) 5851 5852 return 5853 } 5854 5855 type IDBTransaction struct { 5856 EventTarget 5857 } 5858 5859 func (this IDBTransaction) Once() IDBTransaction { 5860 this.ref.Once() 5861 return this 5862 } 5863 5864 func (this IDBTransaction) Ref() js.Ref { 5865 return this.EventTarget.Ref() 5866 } 5867 5868 func (this IDBTransaction) FromRef(ref js.Ref) IDBTransaction { 5869 this.EventTarget = this.EventTarget.FromRef(ref) 5870 return this 5871 } 5872 5873 func (this IDBTransaction) Free() { 5874 this.ref.Free() 5875 } 5876 5877 // ObjectStoreNames returns the value of property "IDBTransaction.objectStoreNames". 5878 // 5879 // It returns ok=false if there is no such property. 5880 func (this IDBTransaction) ObjectStoreNames() (ret DOMStringList, ok bool) { 5881 ok = js.True == bindings.GetIDBTransactionObjectStoreNames( 5882 this.ref, js.Pointer(&ret), 5883 ) 5884 return 5885 } 5886 5887 // Mode returns the value of property "IDBTransaction.mode". 5888 // 5889 // It returns ok=false if there is no such property. 5890 func (this IDBTransaction) Mode() (ret IDBTransactionMode, ok bool) { 5891 ok = js.True == bindings.GetIDBTransactionMode( 5892 this.ref, js.Pointer(&ret), 5893 ) 5894 return 5895 } 5896 5897 // Durability returns the value of property "IDBTransaction.durability". 5898 // 5899 // It returns ok=false if there is no such property. 5900 func (this IDBTransaction) Durability() (ret IDBTransactionDurability, ok bool) { 5901 ok = js.True == bindings.GetIDBTransactionDurability( 5902 this.ref, js.Pointer(&ret), 5903 ) 5904 return 5905 } 5906 5907 // Db returns the value of property "IDBTransaction.db". 5908 // 5909 // It returns ok=false if there is no such property. 5910 func (this IDBTransaction) Db() (ret IDBDatabase, ok bool) { 5911 ok = js.True == bindings.GetIDBTransactionDb( 5912 this.ref, js.Pointer(&ret), 5913 ) 5914 return 5915 } 5916 5917 // Error returns the value of property "IDBTransaction.error". 5918 // 5919 // It returns ok=false if there is no such property. 5920 func (this IDBTransaction) Error() (ret DOMException, ok bool) { 5921 ok = js.True == bindings.GetIDBTransactionError( 5922 this.ref, js.Pointer(&ret), 5923 ) 5924 return 5925 } 5926 5927 // HasFuncObjectStore returns true if the method "IDBTransaction.objectStore" exists. 5928 func (this IDBTransaction) HasFuncObjectStore() bool { 5929 return js.True == bindings.HasFuncIDBTransactionObjectStore( 5930 this.ref, 5931 ) 5932 } 5933 5934 // FuncObjectStore returns the method "IDBTransaction.objectStore". 5935 func (this IDBTransaction) FuncObjectStore() (fn js.Func[func(name js.String) IDBObjectStore]) { 5936 bindings.FuncIDBTransactionObjectStore( 5937 this.ref, js.Pointer(&fn), 5938 ) 5939 return 5940 } 5941 5942 // ObjectStore calls the method "IDBTransaction.objectStore". 5943 func (this IDBTransaction) ObjectStore(name js.String) (ret IDBObjectStore) { 5944 bindings.CallIDBTransactionObjectStore( 5945 this.ref, js.Pointer(&ret), 5946 name.Ref(), 5947 ) 5948 5949 return 5950 } 5951 5952 // TryObjectStore calls the method "IDBTransaction.objectStore" 5953 // in a try/catch block and returns (_, err, ok = false) when it went through 5954 // the catch clause. 5955 func (this IDBTransaction) TryObjectStore(name js.String) (ret IDBObjectStore, exception js.Any, ok bool) { 5956 ok = js.True == bindings.TryIDBTransactionObjectStore( 5957 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5958 name.Ref(), 5959 ) 5960 5961 return 5962 } 5963 5964 // HasFuncCommit returns true if the method "IDBTransaction.commit" exists. 5965 func (this IDBTransaction) HasFuncCommit() bool { 5966 return js.True == bindings.HasFuncIDBTransactionCommit( 5967 this.ref, 5968 ) 5969 } 5970 5971 // FuncCommit returns the method "IDBTransaction.commit". 5972 func (this IDBTransaction) FuncCommit() (fn js.Func[func()]) { 5973 bindings.FuncIDBTransactionCommit( 5974 this.ref, js.Pointer(&fn), 5975 ) 5976 return 5977 } 5978 5979 // Commit calls the method "IDBTransaction.commit". 5980 func (this IDBTransaction) Commit() (ret js.Void) { 5981 bindings.CallIDBTransactionCommit( 5982 this.ref, js.Pointer(&ret), 5983 ) 5984 5985 return 5986 } 5987 5988 // TryCommit calls the method "IDBTransaction.commit" 5989 // in a try/catch block and returns (_, err, ok = false) when it went through 5990 // the catch clause. 5991 func (this IDBTransaction) TryCommit() (ret js.Void, exception js.Any, ok bool) { 5992 ok = js.True == bindings.TryIDBTransactionCommit( 5993 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5994 ) 5995 5996 return 5997 } 5998 5999 // HasFuncAbort returns true if the method "IDBTransaction.abort" exists. 6000 func (this IDBTransaction) HasFuncAbort() bool { 6001 return js.True == bindings.HasFuncIDBTransactionAbort( 6002 this.ref, 6003 ) 6004 } 6005 6006 // FuncAbort returns the method "IDBTransaction.abort". 6007 func (this IDBTransaction) FuncAbort() (fn js.Func[func()]) { 6008 bindings.FuncIDBTransactionAbort( 6009 this.ref, js.Pointer(&fn), 6010 ) 6011 return 6012 } 6013 6014 // Abort calls the method "IDBTransaction.abort". 6015 func (this IDBTransaction) Abort() (ret js.Void) { 6016 bindings.CallIDBTransactionAbort( 6017 this.ref, js.Pointer(&ret), 6018 ) 6019 6020 return 6021 } 6022 6023 // TryAbort calls the method "IDBTransaction.abort" 6024 // in a try/catch block and returns (_, err, ok = false) when it went through 6025 // the catch clause. 6026 func (this IDBTransaction) TryAbort() (ret js.Void, exception js.Any, ok bool) { 6027 ok = js.True == bindings.TryIDBTransactionAbort( 6028 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6029 ) 6030 6031 return 6032 } 6033 6034 type IDBObjectStore struct { 6035 ref js.Ref 6036 } 6037 6038 func (this IDBObjectStore) Once() IDBObjectStore { 6039 this.ref.Once() 6040 return this 6041 } 6042 6043 func (this IDBObjectStore) Ref() js.Ref { 6044 return this.ref 6045 } 6046 6047 func (this IDBObjectStore) FromRef(ref js.Ref) IDBObjectStore { 6048 this.ref = ref 6049 return this 6050 } 6051 6052 func (this IDBObjectStore) Free() { 6053 this.ref.Free() 6054 } 6055 6056 // Name returns the value of property "IDBObjectStore.name". 6057 // 6058 // It returns ok=false if there is no such property. 6059 func (this IDBObjectStore) Name() (ret js.String, ok bool) { 6060 ok = js.True == bindings.GetIDBObjectStoreName( 6061 this.ref, js.Pointer(&ret), 6062 ) 6063 return 6064 } 6065 6066 // SetName sets the value of property "IDBObjectStore.name" to val. 6067 // 6068 // It returns false if the property cannot be set. 6069 func (this IDBObjectStore) SetName(val js.String) bool { 6070 return js.True == bindings.SetIDBObjectStoreName( 6071 this.ref, 6072 val.Ref(), 6073 ) 6074 } 6075 6076 // KeyPath returns the value of property "IDBObjectStore.keyPath". 6077 // 6078 // It returns ok=false if there is no such property. 6079 func (this IDBObjectStore) KeyPath() (ret js.Any, ok bool) { 6080 ok = js.True == bindings.GetIDBObjectStoreKeyPath( 6081 this.ref, js.Pointer(&ret), 6082 ) 6083 return 6084 } 6085 6086 // IndexNames returns the value of property "IDBObjectStore.indexNames". 6087 // 6088 // It returns ok=false if there is no such property. 6089 func (this IDBObjectStore) IndexNames() (ret DOMStringList, ok bool) { 6090 ok = js.True == bindings.GetIDBObjectStoreIndexNames( 6091 this.ref, js.Pointer(&ret), 6092 ) 6093 return 6094 } 6095 6096 // Transaction returns the value of property "IDBObjectStore.transaction". 6097 // 6098 // It returns ok=false if there is no such property. 6099 func (this IDBObjectStore) Transaction() (ret IDBTransaction, ok bool) { 6100 ok = js.True == bindings.GetIDBObjectStoreTransaction( 6101 this.ref, js.Pointer(&ret), 6102 ) 6103 return 6104 } 6105 6106 // AutoIncrement returns the value of property "IDBObjectStore.autoIncrement". 6107 // 6108 // It returns ok=false if there is no such property. 6109 func (this IDBObjectStore) AutoIncrement() (ret bool, ok bool) { 6110 ok = js.True == bindings.GetIDBObjectStoreAutoIncrement( 6111 this.ref, js.Pointer(&ret), 6112 ) 6113 return 6114 } 6115 6116 // HasFuncPut returns true if the method "IDBObjectStore.put" exists. 6117 func (this IDBObjectStore) HasFuncPut() bool { 6118 return js.True == bindings.HasFuncIDBObjectStorePut( 6119 this.ref, 6120 ) 6121 } 6122 6123 // FuncPut returns the method "IDBObjectStore.put". 6124 func (this IDBObjectStore) FuncPut() (fn js.Func[func(value js.Any, key js.Any) IDBRequest]) { 6125 bindings.FuncIDBObjectStorePut( 6126 this.ref, js.Pointer(&fn), 6127 ) 6128 return 6129 } 6130 6131 // Put calls the method "IDBObjectStore.put". 6132 func (this IDBObjectStore) Put(value js.Any, key js.Any) (ret IDBRequest) { 6133 bindings.CallIDBObjectStorePut( 6134 this.ref, js.Pointer(&ret), 6135 value.Ref(), 6136 key.Ref(), 6137 ) 6138 6139 return 6140 } 6141 6142 // TryPut calls the method "IDBObjectStore.put" 6143 // in a try/catch block and returns (_, err, ok = false) when it went through 6144 // the catch clause. 6145 func (this IDBObjectStore) TryPut(value js.Any, key js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6146 ok = js.True == bindings.TryIDBObjectStorePut( 6147 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6148 value.Ref(), 6149 key.Ref(), 6150 ) 6151 6152 return 6153 } 6154 6155 // HasFuncPut1 returns true if the method "IDBObjectStore.put" exists. 6156 func (this IDBObjectStore) HasFuncPut1() bool { 6157 return js.True == bindings.HasFuncIDBObjectStorePut1( 6158 this.ref, 6159 ) 6160 } 6161 6162 // FuncPut1 returns the method "IDBObjectStore.put". 6163 func (this IDBObjectStore) FuncPut1() (fn js.Func[func(value js.Any) IDBRequest]) { 6164 bindings.FuncIDBObjectStorePut1( 6165 this.ref, js.Pointer(&fn), 6166 ) 6167 return 6168 } 6169 6170 // Put1 calls the method "IDBObjectStore.put". 6171 func (this IDBObjectStore) Put1(value js.Any) (ret IDBRequest) { 6172 bindings.CallIDBObjectStorePut1( 6173 this.ref, js.Pointer(&ret), 6174 value.Ref(), 6175 ) 6176 6177 return 6178 } 6179 6180 // TryPut1 calls the method "IDBObjectStore.put" 6181 // in a try/catch block and returns (_, err, ok = false) when it went through 6182 // the catch clause. 6183 func (this IDBObjectStore) TryPut1(value js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6184 ok = js.True == bindings.TryIDBObjectStorePut1( 6185 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6186 value.Ref(), 6187 ) 6188 6189 return 6190 } 6191 6192 // HasFuncAdd returns true if the method "IDBObjectStore.add" exists. 6193 func (this IDBObjectStore) HasFuncAdd() bool { 6194 return js.True == bindings.HasFuncIDBObjectStoreAdd( 6195 this.ref, 6196 ) 6197 } 6198 6199 // FuncAdd returns the method "IDBObjectStore.add". 6200 func (this IDBObjectStore) FuncAdd() (fn js.Func[func(value js.Any, key js.Any) IDBRequest]) { 6201 bindings.FuncIDBObjectStoreAdd( 6202 this.ref, js.Pointer(&fn), 6203 ) 6204 return 6205 } 6206 6207 // Add calls the method "IDBObjectStore.add". 6208 func (this IDBObjectStore) Add(value js.Any, key js.Any) (ret IDBRequest) { 6209 bindings.CallIDBObjectStoreAdd( 6210 this.ref, js.Pointer(&ret), 6211 value.Ref(), 6212 key.Ref(), 6213 ) 6214 6215 return 6216 } 6217 6218 // TryAdd calls the method "IDBObjectStore.add" 6219 // in a try/catch block and returns (_, err, ok = false) when it went through 6220 // the catch clause. 6221 func (this IDBObjectStore) TryAdd(value js.Any, key js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6222 ok = js.True == bindings.TryIDBObjectStoreAdd( 6223 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6224 value.Ref(), 6225 key.Ref(), 6226 ) 6227 6228 return 6229 } 6230 6231 // HasFuncAdd1 returns true if the method "IDBObjectStore.add" exists. 6232 func (this IDBObjectStore) HasFuncAdd1() bool { 6233 return js.True == bindings.HasFuncIDBObjectStoreAdd1( 6234 this.ref, 6235 ) 6236 } 6237 6238 // FuncAdd1 returns the method "IDBObjectStore.add". 6239 func (this IDBObjectStore) FuncAdd1() (fn js.Func[func(value js.Any) IDBRequest]) { 6240 bindings.FuncIDBObjectStoreAdd1( 6241 this.ref, js.Pointer(&fn), 6242 ) 6243 return 6244 } 6245 6246 // Add1 calls the method "IDBObjectStore.add". 6247 func (this IDBObjectStore) Add1(value js.Any) (ret IDBRequest) { 6248 bindings.CallIDBObjectStoreAdd1( 6249 this.ref, js.Pointer(&ret), 6250 value.Ref(), 6251 ) 6252 6253 return 6254 } 6255 6256 // TryAdd1 calls the method "IDBObjectStore.add" 6257 // in a try/catch block and returns (_, err, ok = false) when it went through 6258 // the catch clause. 6259 func (this IDBObjectStore) TryAdd1(value js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6260 ok = js.True == bindings.TryIDBObjectStoreAdd1( 6261 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6262 value.Ref(), 6263 ) 6264 6265 return 6266 } 6267 6268 // HasFuncDelete returns true if the method "IDBObjectStore.delete" exists. 6269 func (this IDBObjectStore) HasFuncDelete() bool { 6270 return js.True == bindings.HasFuncIDBObjectStoreDelete( 6271 this.ref, 6272 ) 6273 } 6274 6275 // FuncDelete returns the method "IDBObjectStore.delete". 6276 func (this IDBObjectStore) FuncDelete() (fn js.Func[func(query js.Any) IDBRequest]) { 6277 bindings.FuncIDBObjectStoreDelete( 6278 this.ref, js.Pointer(&fn), 6279 ) 6280 return 6281 } 6282 6283 // Delete calls the method "IDBObjectStore.delete". 6284 func (this IDBObjectStore) Delete(query js.Any) (ret IDBRequest) { 6285 bindings.CallIDBObjectStoreDelete( 6286 this.ref, js.Pointer(&ret), 6287 query.Ref(), 6288 ) 6289 6290 return 6291 } 6292 6293 // TryDelete calls the method "IDBObjectStore.delete" 6294 // in a try/catch block and returns (_, err, ok = false) when it went through 6295 // the catch clause. 6296 func (this IDBObjectStore) TryDelete(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6297 ok = js.True == bindings.TryIDBObjectStoreDelete( 6298 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6299 query.Ref(), 6300 ) 6301 6302 return 6303 } 6304 6305 // HasFuncClear returns true if the method "IDBObjectStore.clear" exists. 6306 func (this IDBObjectStore) HasFuncClear() bool { 6307 return js.True == bindings.HasFuncIDBObjectStoreClear( 6308 this.ref, 6309 ) 6310 } 6311 6312 // FuncClear returns the method "IDBObjectStore.clear". 6313 func (this IDBObjectStore) FuncClear() (fn js.Func[func() IDBRequest]) { 6314 bindings.FuncIDBObjectStoreClear( 6315 this.ref, js.Pointer(&fn), 6316 ) 6317 return 6318 } 6319 6320 // Clear calls the method "IDBObjectStore.clear". 6321 func (this IDBObjectStore) Clear() (ret IDBRequest) { 6322 bindings.CallIDBObjectStoreClear( 6323 this.ref, js.Pointer(&ret), 6324 ) 6325 6326 return 6327 } 6328 6329 // TryClear calls the method "IDBObjectStore.clear" 6330 // in a try/catch block and returns (_, err, ok = false) when it went through 6331 // the catch clause. 6332 func (this IDBObjectStore) TryClear() (ret IDBRequest, exception js.Any, ok bool) { 6333 ok = js.True == bindings.TryIDBObjectStoreClear( 6334 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6335 ) 6336 6337 return 6338 } 6339 6340 // HasFuncGet returns true if the method "IDBObjectStore.get" exists. 6341 func (this IDBObjectStore) HasFuncGet() bool { 6342 return js.True == bindings.HasFuncIDBObjectStoreGet( 6343 this.ref, 6344 ) 6345 } 6346 6347 // FuncGet returns the method "IDBObjectStore.get". 6348 func (this IDBObjectStore) FuncGet() (fn js.Func[func(query js.Any) IDBRequest]) { 6349 bindings.FuncIDBObjectStoreGet( 6350 this.ref, js.Pointer(&fn), 6351 ) 6352 return 6353 } 6354 6355 // Get calls the method "IDBObjectStore.get". 6356 func (this IDBObjectStore) Get(query js.Any) (ret IDBRequest) { 6357 bindings.CallIDBObjectStoreGet( 6358 this.ref, js.Pointer(&ret), 6359 query.Ref(), 6360 ) 6361 6362 return 6363 } 6364 6365 // TryGet calls the method "IDBObjectStore.get" 6366 // in a try/catch block and returns (_, err, ok = false) when it went through 6367 // the catch clause. 6368 func (this IDBObjectStore) TryGet(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6369 ok = js.True == bindings.TryIDBObjectStoreGet( 6370 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6371 query.Ref(), 6372 ) 6373 6374 return 6375 } 6376 6377 // HasFuncGetKey returns true if the method "IDBObjectStore.getKey" exists. 6378 func (this IDBObjectStore) HasFuncGetKey() bool { 6379 return js.True == bindings.HasFuncIDBObjectStoreGetKey( 6380 this.ref, 6381 ) 6382 } 6383 6384 // FuncGetKey returns the method "IDBObjectStore.getKey". 6385 func (this IDBObjectStore) FuncGetKey() (fn js.Func[func(query js.Any) IDBRequest]) { 6386 bindings.FuncIDBObjectStoreGetKey( 6387 this.ref, js.Pointer(&fn), 6388 ) 6389 return 6390 } 6391 6392 // GetKey calls the method "IDBObjectStore.getKey". 6393 func (this IDBObjectStore) GetKey(query js.Any) (ret IDBRequest) { 6394 bindings.CallIDBObjectStoreGetKey( 6395 this.ref, js.Pointer(&ret), 6396 query.Ref(), 6397 ) 6398 6399 return 6400 } 6401 6402 // TryGetKey calls the method "IDBObjectStore.getKey" 6403 // in a try/catch block and returns (_, err, ok = false) when it went through 6404 // the catch clause. 6405 func (this IDBObjectStore) TryGetKey(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6406 ok = js.True == bindings.TryIDBObjectStoreGetKey( 6407 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6408 query.Ref(), 6409 ) 6410 6411 return 6412 } 6413 6414 // HasFuncGetAll returns true if the method "IDBObjectStore.getAll" exists. 6415 func (this IDBObjectStore) HasFuncGetAll() bool { 6416 return js.True == bindings.HasFuncIDBObjectStoreGetAll( 6417 this.ref, 6418 ) 6419 } 6420 6421 // FuncGetAll returns the method "IDBObjectStore.getAll". 6422 func (this IDBObjectStore) FuncGetAll() (fn js.Func[func(query js.Any, count uint32) IDBRequest]) { 6423 bindings.FuncIDBObjectStoreGetAll( 6424 this.ref, js.Pointer(&fn), 6425 ) 6426 return 6427 } 6428 6429 // GetAll calls the method "IDBObjectStore.getAll". 6430 func (this IDBObjectStore) GetAll(query js.Any, count uint32) (ret IDBRequest) { 6431 bindings.CallIDBObjectStoreGetAll( 6432 this.ref, js.Pointer(&ret), 6433 query.Ref(), 6434 uint32(count), 6435 ) 6436 6437 return 6438 } 6439 6440 // TryGetAll calls the method "IDBObjectStore.getAll" 6441 // in a try/catch block and returns (_, err, ok = false) when it went through 6442 // the catch clause. 6443 func (this IDBObjectStore) TryGetAll(query js.Any, count uint32) (ret IDBRequest, exception js.Any, ok bool) { 6444 ok = js.True == bindings.TryIDBObjectStoreGetAll( 6445 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6446 query.Ref(), 6447 uint32(count), 6448 ) 6449 6450 return 6451 } 6452 6453 // HasFuncGetAll1 returns true if the method "IDBObjectStore.getAll" exists. 6454 func (this IDBObjectStore) HasFuncGetAll1() bool { 6455 return js.True == bindings.HasFuncIDBObjectStoreGetAll1( 6456 this.ref, 6457 ) 6458 } 6459 6460 // FuncGetAll1 returns the method "IDBObjectStore.getAll". 6461 func (this IDBObjectStore) FuncGetAll1() (fn js.Func[func(query js.Any) IDBRequest]) { 6462 bindings.FuncIDBObjectStoreGetAll1( 6463 this.ref, js.Pointer(&fn), 6464 ) 6465 return 6466 } 6467 6468 // GetAll1 calls the method "IDBObjectStore.getAll". 6469 func (this IDBObjectStore) GetAll1(query js.Any) (ret IDBRequest) { 6470 bindings.CallIDBObjectStoreGetAll1( 6471 this.ref, js.Pointer(&ret), 6472 query.Ref(), 6473 ) 6474 6475 return 6476 } 6477 6478 // TryGetAll1 calls the method "IDBObjectStore.getAll" 6479 // in a try/catch block and returns (_, err, ok = false) when it went through 6480 // the catch clause. 6481 func (this IDBObjectStore) TryGetAll1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6482 ok = js.True == bindings.TryIDBObjectStoreGetAll1( 6483 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6484 query.Ref(), 6485 ) 6486 6487 return 6488 } 6489 6490 // HasFuncGetAll2 returns true if the method "IDBObjectStore.getAll" exists. 6491 func (this IDBObjectStore) HasFuncGetAll2() bool { 6492 return js.True == bindings.HasFuncIDBObjectStoreGetAll2( 6493 this.ref, 6494 ) 6495 } 6496 6497 // FuncGetAll2 returns the method "IDBObjectStore.getAll". 6498 func (this IDBObjectStore) FuncGetAll2() (fn js.Func[func() IDBRequest]) { 6499 bindings.FuncIDBObjectStoreGetAll2( 6500 this.ref, js.Pointer(&fn), 6501 ) 6502 return 6503 } 6504 6505 // GetAll2 calls the method "IDBObjectStore.getAll". 6506 func (this IDBObjectStore) GetAll2() (ret IDBRequest) { 6507 bindings.CallIDBObjectStoreGetAll2( 6508 this.ref, js.Pointer(&ret), 6509 ) 6510 6511 return 6512 } 6513 6514 // TryGetAll2 calls the method "IDBObjectStore.getAll" 6515 // in a try/catch block and returns (_, err, ok = false) when it went through 6516 // the catch clause. 6517 func (this IDBObjectStore) TryGetAll2() (ret IDBRequest, exception js.Any, ok bool) { 6518 ok = js.True == bindings.TryIDBObjectStoreGetAll2( 6519 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6520 ) 6521 6522 return 6523 } 6524 6525 // HasFuncGetAllKeys returns true if the method "IDBObjectStore.getAllKeys" exists. 6526 func (this IDBObjectStore) HasFuncGetAllKeys() bool { 6527 return js.True == bindings.HasFuncIDBObjectStoreGetAllKeys( 6528 this.ref, 6529 ) 6530 } 6531 6532 // FuncGetAllKeys returns the method "IDBObjectStore.getAllKeys". 6533 func (this IDBObjectStore) FuncGetAllKeys() (fn js.Func[func(query js.Any, count uint32) IDBRequest]) { 6534 bindings.FuncIDBObjectStoreGetAllKeys( 6535 this.ref, js.Pointer(&fn), 6536 ) 6537 return 6538 } 6539 6540 // GetAllKeys calls the method "IDBObjectStore.getAllKeys". 6541 func (this IDBObjectStore) GetAllKeys(query js.Any, count uint32) (ret IDBRequest) { 6542 bindings.CallIDBObjectStoreGetAllKeys( 6543 this.ref, js.Pointer(&ret), 6544 query.Ref(), 6545 uint32(count), 6546 ) 6547 6548 return 6549 } 6550 6551 // TryGetAllKeys calls the method "IDBObjectStore.getAllKeys" 6552 // in a try/catch block and returns (_, err, ok = false) when it went through 6553 // the catch clause. 6554 func (this IDBObjectStore) TryGetAllKeys(query js.Any, count uint32) (ret IDBRequest, exception js.Any, ok bool) { 6555 ok = js.True == bindings.TryIDBObjectStoreGetAllKeys( 6556 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6557 query.Ref(), 6558 uint32(count), 6559 ) 6560 6561 return 6562 } 6563 6564 // HasFuncGetAllKeys1 returns true if the method "IDBObjectStore.getAllKeys" exists. 6565 func (this IDBObjectStore) HasFuncGetAllKeys1() bool { 6566 return js.True == bindings.HasFuncIDBObjectStoreGetAllKeys1( 6567 this.ref, 6568 ) 6569 } 6570 6571 // FuncGetAllKeys1 returns the method "IDBObjectStore.getAllKeys". 6572 func (this IDBObjectStore) FuncGetAllKeys1() (fn js.Func[func(query js.Any) IDBRequest]) { 6573 bindings.FuncIDBObjectStoreGetAllKeys1( 6574 this.ref, js.Pointer(&fn), 6575 ) 6576 return 6577 } 6578 6579 // GetAllKeys1 calls the method "IDBObjectStore.getAllKeys". 6580 func (this IDBObjectStore) GetAllKeys1(query js.Any) (ret IDBRequest) { 6581 bindings.CallIDBObjectStoreGetAllKeys1( 6582 this.ref, js.Pointer(&ret), 6583 query.Ref(), 6584 ) 6585 6586 return 6587 } 6588 6589 // TryGetAllKeys1 calls the method "IDBObjectStore.getAllKeys" 6590 // in a try/catch block and returns (_, err, ok = false) when it went through 6591 // the catch clause. 6592 func (this IDBObjectStore) TryGetAllKeys1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6593 ok = js.True == bindings.TryIDBObjectStoreGetAllKeys1( 6594 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6595 query.Ref(), 6596 ) 6597 6598 return 6599 } 6600 6601 // HasFuncGetAllKeys2 returns true if the method "IDBObjectStore.getAllKeys" exists. 6602 func (this IDBObjectStore) HasFuncGetAllKeys2() bool { 6603 return js.True == bindings.HasFuncIDBObjectStoreGetAllKeys2( 6604 this.ref, 6605 ) 6606 } 6607 6608 // FuncGetAllKeys2 returns the method "IDBObjectStore.getAllKeys". 6609 func (this IDBObjectStore) FuncGetAllKeys2() (fn js.Func[func() IDBRequest]) { 6610 bindings.FuncIDBObjectStoreGetAllKeys2( 6611 this.ref, js.Pointer(&fn), 6612 ) 6613 return 6614 } 6615 6616 // GetAllKeys2 calls the method "IDBObjectStore.getAllKeys". 6617 func (this IDBObjectStore) GetAllKeys2() (ret IDBRequest) { 6618 bindings.CallIDBObjectStoreGetAllKeys2( 6619 this.ref, js.Pointer(&ret), 6620 ) 6621 6622 return 6623 } 6624 6625 // TryGetAllKeys2 calls the method "IDBObjectStore.getAllKeys" 6626 // in a try/catch block and returns (_, err, ok = false) when it went through 6627 // the catch clause. 6628 func (this IDBObjectStore) TryGetAllKeys2() (ret IDBRequest, exception js.Any, ok bool) { 6629 ok = js.True == bindings.TryIDBObjectStoreGetAllKeys2( 6630 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6631 ) 6632 6633 return 6634 } 6635 6636 // HasFuncCount returns true if the method "IDBObjectStore.count" exists. 6637 func (this IDBObjectStore) HasFuncCount() bool { 6638 return js.True == bindings.HasFuncIDBObjectStoreCount( 6639 this.ref, 6640 ) 6641 } 6642 6643 // FuncCount returns the method "IDBObjectStore.count". 6644 func (this IDBObjectStore) FuncCount() (fn js.Func[func(query js.Any) IDBRequest]) { 6645 bindings.FuncIDBObjectStoreCount( 6646 this.ref, js.Pointer(&fn), 6647 ) 6648 return 6649 } 6650 6651 // Count calls the method "IDBObjectStore.count". 6652 func (this IDBObjectStore) Count(query js.Any) (ret IDBRequest) { 6653 bindings.CallIDBObjectStoreCount( 6654 this.ref, js.Pointer(&ret), 6655 query.Ref(), 6656 ) 6657 6658 return 6659 } 6660 6661 // TryCount calls the method "IDBObjectStore.count" 6662 // in a try/catch block and returns (_, err, ok = false) when it went through 6663 // the catch clause. 6664 func (this IDBObjectStore) TryCount(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6665 ok = js.True == bindings.TryIDBObjectStoreCount( 6666 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6667 query.Ref(), 6668 ) 6669 6670 return 6671 } 6672 6673 // HasFuncCount1 returns true if the method "IDBObjectStore.count" exists. 6674 func (this IDBObjectStore) HasFuncCount1() bool { 6675 return js.True == bindings.HasFuncIDBObjectStoreCount1( 6676 this.ref, 6677 ) 6678 } 6679 6680 // FuncCount1 returns the method "IDBObjectStore.count". 6681 func (this IDBObjectStore) FuncCount1() (fn js.Func[func() IDBRequest]) { 6682 bindings.FuncIDBObjectStoreCount1( 6683 this.ref, js.Pointer(&fn), 6684 ) 6685 return 6686 } 6687 6688 // Count1 calls the method "IDBObjectStore.count". 6689 func (this IDBObjectStore) Count1() (ret IDBRequest) { 6690 bindings.CallIDBObjectStoreCount1( 6691 this.ref, js.Pointer(&ret), 6692 ) 6693 6694 return 6695 } 6696 6697 // TryCount1 calls the method "IDBObjectStore.count" 6698 // in a try/catch block and returns (_, err, ok = false) when it went through 6699 // the catch clause. 6700 func (this IDBObjectStore) TryCount1() (ret IDBRequest, exception js.Any, ok bool) { 6701 ok = js.True == bindings.TryIDBObjectStoreCount1( 6702 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6703 ) 6704 6705 return 6706 } 6707 6708 // HasFuncOpenCursor returns true if the method "IDBObjectStore.openCursor" exists. 6709 func (this IDBObjectStore) HasFuncOpenCursor() bool { 6710 return js.True == bindings.HasFuncIDBObjectStoreOpenCursor( 6711 this.ref, 6712 ) 6713 } 6714 6715 // FuncOpenCursor returns the method "IDBObjectStore.openCursor". 6716 func (this IDBObjectStore) FuncOpenCursor() (fn js.Func[func(query js.Any, direction IDBCursorDirection) IDBRequest]) { 6717 bindings.FuncIDBObjectStoreOpenCursor( 6718 this.ref, js.Pointer(&fn), 6719 ) 6720 return 6721 } 6722 6723 // OpenCursor calls the method "IDBObjectStore.openCursor". 6724 func (this IDBObjectStore) OpenCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest) { 6725 bindings.CallIDBObjectStoreOpenCursor( 6726 this.ref, js.Pointer(&ret), 6727 query.Ref(), 6728 uint32(direction), 6729 ) 6730 6731 return 6732 } 6733 6734 // TryOpenCursor calls the method "IDBObjectStore.openCursor" 6735 // in a try/catch block and returns (_, err, ok = false) when it went through 6736 // the catch clause. 6737 func (this IDBObjectStore) TryOpenCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest, exception js.Any, ok bool) { 6738 ok = js.True == bindings.TryIDBObjectStoreOpenCursor( 6739 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6740 query.Ref(), 6741 uint32(direction), 6742 ) 6743 6744 return 6745 } 6746 6747 // HasFuncOpenCursor1 returns true if the method "IDBObjectStore.openCursor" exists. 6748 func (this IDBObjectStore) HasFuncOpenCursor1() bool { 6749 return js.True == bindings.HasFuncIDBObjectStoreOpenCursor1( 6750 this.ref, 6751 ) 6752 } 6753 6754 // FuncOpenCursor1 returns the method "IDBObjectStore.openCursor". 6755 func (this IDBObjectStore) FuncOpenCursor1() (fn js.Func[func(query js.Any) IDBRequest]) { 6756 bindings.FuncIDBObjectStoreOpenCursor1( 6757 this.ref, js.Pointer(&fn), 6758 ) 6759 return 6760 } 6761 6762 // OpenCursor1 calls the method "IDBObjectStore.openCursor". 6763 func (this IDBObjectStore) OpenCursor1(query js.Any) (ret IDBRequest) { 6764 bindings.CallIDBObjectStoreOpenCursor1( 6765 this.ref, js.Pointer(&ret), 6766 query.Ref(), 6767 ) 6768 6769 return 6770 } 6771 6772 // TryOpenCursor1 calls the method "IDBObjectStore.openCursor" 6773 // in a try/catch block and returns (_, err, ok = false) when it went through 6774 // the catch clause. 6775 func (this IDBObjectStore) TryOpenCursor1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6776 ok = js.True == bindings.TryIDBObjectStoreOpenCursor1( 6777 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6778 query.Ref(), 6779 ) 6780 6781 return 6782 } 6783 6784 // HasFuncOpenCursor2 returns true if the method "IDBObjectStore.openCursor" exists. 6785 func (this IDBObjectStore) HasFuncOpenCursor2() bool { 6786 return js.True == bindings.HasFuncIDBObjectStoreOpenCursor2( 6787 this.ref, 6788 ) 6789 } 6790 6791 // FuncOpenCursor2 returns the method "IDBObjectStore.openCursor". 6792 func (this IDBObjectStore) FuncOpenCursor2() (fn js.Func[func() IDBRequest]) { 6793 bindings.FuncIDBObjectStoreOpenCursor2( 6794 this.ref, js.Pointer(&fn), 6795 ) 6796 return 6797 } 6798 6799 // OpenCursor2 calls the method "IDBObjectStore.openCursor". 6800 func (this IDBObjectStore) OpenCursor2() (ret IDBRequest) { 6801 bindings.CallIDBObjectStoreOpenCursor2( 6802 this.ref, js.Pointer(&ret), 6803 ) 6804 6805 return 6806 } 6807 6808 // TryOpenCursor2 calls the method "IDBObjectStore.openCursor" 6809 // in a try/catch block and returns (_, err, ok = false) when it went through 6810 // the catch clause. 6811 func (this IDBObjectStore) TryOpenCursor2() (ret IDBRequest, exception js.Any, ok bool) { 6812 ok = js.True == bindings.TryIDBObjectStoreOpenCursor2( 6813 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6814 ) 6815 6816 return 6817 } 6818 6819 // HasFuncOpenKeyCursor returns true if the method "IDBObjectStore.openKeyCursor" exists. 6820 func (this IDBObjectStore) HasFuncOpenKeyCursor() bool { 6821 return js.True == bindings.HasFuncIDBObjectStoreOpenKeyCursor( 6822 this.ref, 6823 ) 6824 } 6825 6826 // FuncOpenKeyCursor returns the method "IDBObjectStore.openKeyCursor". 6827 func (this IDBObjectStore) FuncOpenKeyCursor() (fn js.Func[func(query js.Any, direction IDBCursorDirection) IDBRequest]) { 6828 bindings.FuncIDBObjectStoreOpenKeyCursor( 6829 this.ref, js.Pointer(&fn), 6830 ) 6831 return 6832 } 6833 6834 // OpenKeyCursor calls the method "IDBObjectStore.openKeyCursor". 6835 func (this IDBObjectStore) OpenKeyCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest) { 6836 bindings.CallIDBObjectStoreOpenKeyCursor( 6837 this.ref, js.Pointer(&ret), 6838 query.Ref(), 6839 uint32(direction), 6840 ) 6841 6842 return 6843 } 6844 6845 // TryOpenKeyCursor calls the method "IDBObjectStore.openKeyCursor" 6846 // in a try/catch block and returns (_, err, ok = false) when it went through 6847 // the catch clause. 6848 func (this IDBObjectStore) TryOpenKeyCursor(query js.Any, direction IDBCursorDirection) (ret IDBRequest, exception js.Any, ok bool) { 6849 ok = js.True == bindings.TryIDBObjectStoreOpenKeyCursor( 6850 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6851 query.Ref(), 6852 uint32(direction), 6853 ) 6854 6855 return 6856 } 6857 6858 // HasFuncOpenKeyCursor1 returns true if the method "IDBObjectStore.openKeyCursor" exists. 6859 func (this IDBObjectStore) HasFuncOpenKeyCursor1() bool { 6860 return js.True == bindings.HasFuncIDBObjectStoreOpenKeyCursor1( 6861 this.ref, 6862 ) 6863 } 6864 6865 // FuncOpenKeyCursor1 returns the method "IDBObjectStore.openKeyCursor". 6866 func (this IDBObjectStore) FuncOpenKeyCursor1() (fn js.Func[func(query js.Any) IDBRequest]) { 6867 bindings.FuncIDBObjectStoreOpenKeyCursor1( 6868 this.ref, js.Pointer(&fn), 6869 ) 6870 return 6871 } 6872 6873 // OpenKeyCursor1 calls the method "IDBObjectStore.openKeyCursor". 6874 func (this IDBObjectStore) OpenKeyCursor1(query js.Any) (ret IDBRequest) { 6875 bindings.CallIDBObjectStoreOpenKeyCursor1( 6876 this.ref, js.Pointer(&ret), 6877 query.Ref(), 6878 ) 6879 6880 return 6881 } 6882 6883 // TryOpenKeyCursor1 calls the method "IDBObjectStore.openKeyCursor" 6884 // in a try/catch block and returns (_, err, ok = false) when it went through 6885 // the catch clause. 6886 func (this IDBObjectStore) TryOpenKeyCursor1(query js.Any) (ret IDBRequest, exception js.Any, ok bool) { 6887 ok = js.True == bindings.TryIDBObjectStoreOpenKeyCursor1( 6888 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6889 query.Ref(), 6890 ) 6891 6892 return 6893 } 6894 6895 // HasFuncOpenKeyCursor2 returns true if the method "IDBObjectStore.openKeyCursor" exists. 6896 func (this IDBObjectStore) HasFuncOpenKeyCursor2() bool { 6897 return js.True == bindings.HasFuncIDBObjectStoreOpenKeyCursor2( 6898 this.ref, 6899 ) 6900 } 6901 6902 // FuncOpenKeyCursor2 returns the method "IDBObjectStore.openKeyCursor". 6903 func (this IDBObjectStore) FuncOpenKeyCursor2() (fn js.Func[func() IDBRequest]) { 6904 bindings.FuncIDBObjectStoreOpenKeyCursor2( 6905 this.ref, js.Pointer(&fn), 6906 ) 6907 return 6908 } 6909 6910 // OpenKeyCursor2 calls the method "IDBObjectStore.openKeyCursor". 6911 func (this IDBObjectStore) OpenKeyCursor2() (ret IDBRequest) { 6912 bindings.CallIDBObjectStoreOpenKeyCursor2( 6913 this.ref, js.Pointer(&ret), 6914 ) 6915 6916 return 6917 } 6918 6919 // TryOpenKeyCursor2 calls the method "IDBObjectStore.openKeyCursor" 6920 // in a try/catch block and returns (_, err, ok = false) when it went through 6921 // the catch clause. 6922 func (this IDBObjectStore) TryOpenKeyCursor2() (ret IDBRequest, exception js.Any, ok bool) { 6923 ok = js.True == bindings.TryIDBObjectStoreOpenKeyCursor2( 6924 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6925 ) 6926 6927 return 6928 } 6929 6930 // HasFuncIndex returns true if the method "IDBObjectStore.index" exists. 6931 func (this IDBObjectStore) HasFuncIndex() bool { 6932 return js.True == bindings.HasFuncIDBObjectStoreIndex( 6933 this.ref, 6934 ) 6935 } 6936 6937 // FuncIndex returns the method "IDBObjectStore.index". 6938 func (this IDBObjectStore) FuncIndex() (fn js.Func[func(name js.String) IDBIndex]) { 6939 bindings.FuncIDBObjectStoreIndex( 6940 this.ref, js.Pointer(&fn), 6941 ) 6942 return 6943 } 6944 6945 // Index calls the method "IDBObjectStore.index". 6946 func (this IDBObjectStore) Index(name js.String) (ret IDBIndex) { 6947 bindings.CallIDBObjectStoreIndex( 6948 this.ref, js.Pointer(&ret), 6949 name.Ref(), 6950 ) 6951 6952 return 6953 } 6954 6955 // TryIndex calls the method "IDBObjectStore.index" 6956 // in a try/catch block and returns (_, err, ok = false) when it went through 6957 // the catch clause. 6958 func (this IDBObjectStore) TryIndex(name js.String) (ret IDBIndex, exception js.Any, ok bool) { 6959 ok = js.True == bindings.TryIDBObjectStoreIndex( 6960 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6961 name.Ref(), 6962 ) 6963 6964 return 6965 } 6966 6967 // HasFuncCreateIndex returns true if the method "IDBObjectStore.createIndex" exists. 6968 func (this IDBObjectStore) HasFuncCreateIndex() bool { 6969 return js.True == bindings.HasFuncIDBObjectStoreCreateIndex( 6970 this.ref, 6971 ) 6972 } 6973 6974 // FuncCreateIndex returns the method "IDBObjectStore.createIndex". 6975 func (this IDBObjectStore) FuncCreateIndex() (fn js.Func[func(name js.String, keyPath OneOf_String_ArrayString, options IDBIndexParameters) IDBIndex]) { 6976 bindings.FuncIDBObjectStoreCreateIndex( 6977 this.ref, js.Pointer(&fn), 6978 ) 6979 return 6980 } 6981 6982 // CreateIndex calls the method "IDBObjectStore.createIndex". 6983 func (this IDBObjectStore) CreateIndex(name js.String, keyPath OneOf_String_ArrayString, options IDBIndexParameters) (ret IDBIndex) { 6984 bindings.CallIDBObjectStoreCreateIndex( 6985 this.ref, js.Pointer(&ret), 6986 name.Ref(), 6987 keyPath.Ref(), 6988 js.Pointer(&options), 6989 ) 6990 6991 return 6992 } 6993 6994 // TryCreateIndex calls the method "IDBObjectStore.createIndex" 6995 // in a try/catch block and returns (_, err, ok = false) when it went through 6996 // the catch clause. 6997 func (this IDBObjectStore) TryCreateIndex(name js.String, keyPath OneOf_String_ArrayString, options IDBIndexParameters) (ret IDBIndex, exception js.Any, ok bool) { 6998 ok = js.True == bindings.TryIDBObjectStoreCreateIndex( 6999 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7000 name.Ref(), 7001 keyPath.Ref(), 7002 js.Pointer(&options), 7003 ) 7004 7005 return 7006 } 7007 7008 // HasFuncCreateIndex1 returns true if the method "IDBObjectStore.createIndex" exists. 7009 func (this IDBObjectStore) HasFuncCreateIndex1() bool { 7010 return js.True == bindings.HasFuncIDBObjectStoreCreateIndex1( 7011 this.ref, 7012 ) 7013 } 7014 7015 // FuncCreateIndex1 returns the method "IDBObjectStore.createIndex". 7016 func (this IDBObjectStore) FuncCreateIndex1() (fn js.Func[func(name js.String, keyPath OneOf_String_ArrayString) IDBIndex]) { 7017 bindings.FuncIDBObjectStoreCreateIndex1( 7018 this.ref, js.Pointer(&fn), 7019 ) 7020 return 7021 } 7022 7023 // CreateIndex1 calls the method "IDBObjectStore.createIndex". 7024 func (this IDBObjectStore) CreateIndex1(name js.String, keyPath OneOf_String_ArrayString) (ret IDBIndex) { 7025 bindings.CallIDBObjectStoreCreateIndex1( 7026 this.ref, js.Pointer(&ret), 7027 name.Ref(), 7028 keyPath.Ref(), 7029 ) 7030 7031 return 7032 } 7033 7034 // TryCreateIndex1 calls the method "IDBObjectStore.createIndex" 7035 // in a try/catch block and returns (_, err, ok = false) when it went through 7036 // the catch clause. 7037 func (this IDBObjectStore) TryCreateIndex1(name js.String, keyPath OneOf_String_ArrayString) (ret IDBIndex, exception js.Any, ok bool) { 7038 ok = js.True == bindings.TryIDBObjectStoreCreateIndex1( 7039 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7040 name.Ref(), 7041 keyPath.Ref(), 7042 ) 7043 7044 return 7045 } 7046 7047 // HasFuncDeleteIndex returns true if the method "IDBObjectStore.deleteIndex" exists. 7048 func (this IDBObjectStore) HasFuncDeleteIndex() bool { 7049 return js.True == bindings.HasFuncIDBObjectStoreDeleteIndex( 7050 this.ref, 7051 ) 7052 } 7053 7054 // FuncDeleteIndex returns the method "IDBObjectStore.deleteIndex". 7055 func (this IDBObjectStore) FuncDeleteIndex() (fn js.Func[func(name js.String)]) { 7056 bindings.FuncIDBObjectStoreDeleteIndex( 7057 this.ref, js.Pointer(&fn), 7058 ) 7059 return 7060 } 7061 7062 // DeleteIndex calls the method "IDBObjectStore.deleteIndex". 7063 func (this IDBObjectStore) DeleteIndex(name js.String) (ret js.Void) { 7064 bindings.CallIDBObjectStoreDeleteIndex( 7065 this.ref, js.Pointer(&ret), 7066 name.Ref(), 7067 ) 7068 7069 return 7070 } 7071 7072 // TryDeleteIndex calls the method "IDBObjectStore.deleteIndex" 7073 // in a try/catch block and returns (_, err, ok = false) when it went through 7074 // the catch clause. 7075 func (this IDBObjectStore) TryDeleteIndex(name js.String) (ret js.Void, exception js.Any, ok bool) { 7076 ok = js.True == bindings.TryIDBObjectStoreDeleteIndex( 7077 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7078 name.Ref(), 7079 ) 7080 7081 return 7082 } 7083 7084 type OneOf_IDBObjectStore_IDBIndex_IDBCursor struct { 7085 ref js.Ref 7086 } 7087 7088 func (x OneOf_IDBObjectStore_IDBIndex_IDBCursor) Ref() js.Ref { 7089 return x.ref 7090 } 7091 7092 func (x OneOf_IDBObjectStore_IDBIndex_IDBCursor) Free() { 7093 x.ref.Free() 7094 } 7095 7096 func (x OneOf_IDBObjectStore_IDBIndex_IDBCursor) FromRef(ref js.Ref) OneOf_IDBObjectStore_IDBIndex_IDBCursor { 7097 return OneOf_IDBObjectStore_IDBIndex_IDBCursor{ 7098 ref: ref, 7099 } 7100 } 7101 7102 func (x OneOf_IDBObjectStore_IDBIndex_IDBCursor) IDBObjectStore() IDBObjectStore { 7103 return IDBObjectStore{}.FromRef(x.ref) 7104 } 7105 7106 func (x OneOf_IDBObjectStore_IDBIndex_IDBCursor) IDBIndex() IDBIndex { 7107 return IDBIndex{}.FromRef(x.ref) 7108 } 7109 7110 func (x OneOf_IDBObjectStore_IDBIndex_IDBCursor) IDBCursor() IDBCursor { 7111 return IDBCursor{}.FromRef(x.ref) 7112 }