github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis03_js_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 package web 5 6 import ( 7 "github.com/primecitizens/pcz/std/core/abi" 8 "github.com/primecitizens/pcz/std/ffi/js" 9 "github.com/primecitizens/pcz/std/plat/js/web/bindings" 10 ) 11 12 type Baseline struct { 13 ref js.Ref 14 } 15 16 func (this Baseline) Once() Baseline { 17 this.ref.Once() 18 return this 19 } 20 21 func (this Baseline) Ref() js.Ref { 22 return this.ref 23 } 24 25 func (this Baseline) FromRef(ref js.Ref) Baseline { 26 this.ref = ref 27 return this 28 } 29 30 func (this Baseline) Free() { 31 this.ref.Free() 32 } 33 34 // Name returns the value of property "Baseline.name". 35 // 36 // It returns ok=false if there is no such property. 37 func (this Baseline) Name() (ret js.String, ok bool) { 38 ok = js.True == bindings.GetBaselineName( 39 this.ref, js.Pointer(&ret), 40 ) 41 return 42 } 43 44 // Value returns the value of property "Baseline.value". 45 // 46 // It returns ok=false if there is no such property. 47 func (this Baseline) Value() (ret float64, ok bool) { 48 ok = js.True == bindings.GetBaselineValue( 49 this.ref, js.Pointer(&ret), 50 ) 51 return 52 } 53 54 type Font struct { 55 ref js.Ref 56 } 57 58 func (this Font) Once() Font { 59 this.ref.Once() 60 return this 61 } 62 63 func (this Font) Ref() js.Ref { 64 return this.ref 65 } 66 67 func (this Font) FromRef(ref js.Ref) Font { 68 this.ref = ref 69 return this 70 } 71 72 func (this Font) Free() { 73 this.ref.Free() 74 } 75 76 // Name returns the value of property "Font.name". 77 // 78 // It returns ok=false if there is no such property. 79 func (this Font) Name() (ret js.String, ok bool) { 80 ok = js.True == bindings.GetFontName( 81 this.ref, js.Pointer(&ret), 82 ) 83 return 84 } 85 86 // GlyphsRendered returns the value of property "Font.glyphsRendered". 87 // 88 // It returns ok=false if there is no such property. 89 func (this Font) GlyphsRendered() (ret uint32, ok bool) { 90 ok = js.True == bindings.GetFontGlyphsRendered( 91 this.ref, js.Pointer(&ret), 92 ) 93 return 94 } 95 96 type FontMetrics struct { 97 ref js.Ref 98 } 99 100 func (this FontMetrics) Once() FontMetrics { 101 this.ref.Once() 102 return this 103 } 104 105 func (this FontMetrics) Ref() js.Ref { 106 return this.ref 107 } 108 109 func (this FontMetrics) FromRef(ref js.Ref) FontMetrics { 110 this.ref = ref 111 return this 112 } 113 114 func (this FontMetrics) Free() { 115 this.ref.Free() 116 } 117 118 // Width returns the value of property "FontMetrics.width". 119 // 120 // It returns ok=false if there is no such property. 121 func (this FontMetrics) Width() (ret float64, ok bool) { 122 ok = js.True == bindings.GetFontMetricsWidth( 123 this.ref, js.Pointer(&ret), 124 ) 125 return 126 } 127 128 // Advances returns the value of property "FontMetrics.advances". 129 // 130 // It returns ok=false if there is no such property. 131 func (this FontMetrics) Advances() (ret js.FrozenArray[float64], ok bool) { 132 ok = js.True == bindings.GetFontMetricsAdvances( 133 this.ref, js.Pointer(&ret), 134 ) 135 return 136 } 137 138 // BoundingBoxLeft returns the value of property "FontMetrics.boundingBoxLeft". 139 // 140 // It returns ok=false if there is no such property. 141 func (this FontMetrics) BoundingBoxLeft() (ret float64, ok bool) { 142 ok = js.True == bindings.GetFontMetricsBoundingBoxLeft( 143 this.ref, js.Pointer(&ret), 144 ) 145 return 146 } 147 148 // BoundingBoxRight returns the value of property "FontMetrics.boundingBoxRight". 149 // 150 // It returns ok=false if there is no such property. 151 func (this FontMetrics) BoundingBoxRight() (ret float64, ok bool) { 152 ok = js.True == bindings.GetFontMetricsBoundingBoxRight( 153 this.ref, js.Pointer(&ret), 154 ) 155 return 156 } 157 158 // Height returns the value of property "FontMetrics.height". 159 // 160 // It returns ok=false if there is no such property. 161 func (this FontMetrics) Height() (ret float64, ok bool) { 162 ok = js.True == bindings.GetFontMetricsHeight( 163 this.ref, js.Pointer(&ret), 164 ) 165 return 166 } 167 168 // EmHeightAscent returns the value of property "FontMetrics.emHeightAscent". 169 // 170 // It returns ok=false if there is no such property. 171 func (this FontMetrics) EmHeightAscent() (ret float64, ok bool) { 172 ok = js.True == bindings.GetFontMetricsEmHeightAscent( 173 this.ref, js.Pointer(&ret), 174 ) 175 return 176 } 177 178 // EmHeightDescent returns the value of property "FontMetrics.emHeightDescent". 179 // 180 // It returns ok=false if there is no such property. 181 func (this FontMetrics) EmHeightDescent() (ret float64, ok bool) { 182 ok = js.True == bindings.GetFontMetricsEmHeightDescent( 183 this.ref, js.Pointer(&ret), 184 ) 185 return 186 } 187 188 // BoundingBoxAscent returns the value of property "FontMetrics.boundingBoxAscent". 189 // 190 // It returns ok=false if there is no such property. 191 func (this FontMetrics) BoundingBoxAscent() (ret float64, ok bool) { 192 ok = js.True == bindings.GetFontMetricsBoundingBoxAscent( 193 this.ref, js.Pointer(&ret), 194 ) 195 return 196 } 197 198 // BoundingBoxDescent returns the value of property "FontMetrics.boundingBoxDescent". 199 // 200 // It returns ok=false if there is no such property. 201 func (this FontMetrics) BoundingBoxDescent() (ret float64, ok bool) { 202 ok = js.True == bindings.GetFontMetricsBoundingBoxDescent( 203 this.ref, js.Pointer(&ret), 204 ) 205 return 206 } 207 208 // FontBoundingBoxAscent returns the value of property "FontMetrics.fontBoundingBoxAscent". 209 // 210 // It returns ok=false if there is no such property. 211 func (this FontMetrics) FontBoundingBoxAscent() (ret float64, ok bool) { 212 ok = js.True == bindings.GetFontMetricsFontBoundingBoxAscent( 213 this.ref, js.Pointer(&ret), 214 ) 215 return 216 } 217 218 // FontBoundingBoxDescent returns the value of property "FontMetrics.fontBoundingBoxDescent". 219 // 220 // It returns ok=false if there is no such property. 221 func (this FontMetrics) FontBoundingBoxDescent() (ret float64, ok bool) { 222 ok = js.True == bindings.GetFontMetricsFontBoundingBoxDescent( 223 this.ref, js.Pointer(&ret), 224 ) 225 return 226 } 227 228 // DominantBaseline returns the value of property "FontMetrics.dominantBaseline". 229 // 230 // It returns ok=false if there is no such property. 231 func (this FontMetrics) DominantBaseline() (ret Baseline, ok bool) { 232 ok = js.True == bindings.GetFontMetricsDominantBaseline( 233 this.ref, js.Pointer(&ret), 234 ) 235 return 236 } 237 238 // Baselines returns the value of property "FontMetrics.baselines". 239 // 240 // It returns ok=false if there is no such property. 241 func (this FontMetrics) Baselines() (ret js.FrozenArray[Baseline], ok bool) { 242 ok = js.True == bindings.GetFontMetricsBaselines( 243 this.ref, js.Pointer(&ret), 244 ) 245 return 246 } 247 248 // Fonts returns the value of property "FontMetrics.fonts". 249 // 250 // It returns ok=false if there is no such property. 251 func (this FontMetrics) Fonts() (ret js.FrozenArray[Font], ok bool) { 252 ok = js.True == bindings.GetFontMetricsFonts( 253 this.ref, js.Pointer(&ret), 254 ) 255 return 256 } 257 258 type StaticRangeInit struct { 259 // StartContainer is "StaticRangeInit.startContainer" 260 // 261 // Required 262 StartContainer Node 263 // StartOffset is "StaticRangeInit.startOffset" 264 // 265 // Required 266 StartOffset uint32 267 // EndContainer is "StaticRangeInit.endContainer" 268 // 269 // Required 270 EndContainer Node 271 // EndOffset is "StaticRangeInit.endOffset" 272 // 273 // Required 274 EndOffset uint32 275 276 FFI_USE bool 277 } 278 279 // FromRef calls UpdateFrom and returns a StaticRangeInit with all fields set. 280 func (p StaticRangeInit) FromRef(ref js.Ref) StaticRangeInit { 281 p.UpdateFrom(ref) 282 return p 283 } 284 285 // New creates a new StaticRangeInit in the application heap. 286 func (p StaticRangeInit) New() js.Ref { 287 return bindings.StaticRangeInitJSLoad( 288 js.Pointer(&p), js.True, 0, 289 ) 290 } 291 292 // UpdateFrom copies value of all fields of the heap object to p. 293 func (p *StaticRangeInit) UpdateFrom(ref js.Ref) { 294 bindings.StaticRangeInitJSStore( 295 js.Pointer(p), ref, 296 ) 297 } 298 299 // Update writes all fields of the p to the heap object referenced by ref. 300 func (p *StaticRangeInit) Update(ref js.Ref) { 301 bindings.StaticRangeInitJSLoad( 302 js.Pointer(p), js.False, ref, 303 ) 304 } 305 306 // FreeMembers frees fields with heap reference, if recursive is true 307 // free all heap references reachable from p. 308 func (p *StaticRangeInit) FreeMembers(recursive bool) { 309 js.Free( 310 p.StartContainer.Ref(), 311 p.EndContainer.Ref(), 312 ) 313 p.StartContainer = p.StartContainer.FromRef(js.Undefined) 314 p.EndContainer = p.EndContainer.FromRef(js.Undefined) 315 } 316 317 func NewStaticRange(init StaticRangeInit) (ret StaticRange) { 318 ret.ref = bindings.NewStaticRangeByStaticRange( 319 js.Pointer(&init)) 320 return 321 } 322 323 type StaticRange struct { 324 AbstractRange 325 } 326 327 func (this StaticRange) Once() StaticRange { 328 this.ref.Once() 329 return this 330 } 331 332 func (this StaticRange) Ref() js.Ref { 333 return this.AbstractRange.Ref() 334 } 335 336 func (this StaticRange) FromRef(ref js.Ref) StaticRange { 337 this.AbstractRange = this.AbstractRange.FromRef(ref) 338 return this 339 } 340 341 func (this StaticRange) Free() { 342 this.ref.Free() 343 } 344 345 type Selection struct { 346 ref js.Ref 347 } 348 349 func (this Selection) Once() Selection { 350 this.ref.Once() 351 return this 352 } 353 354 func (this Selection) Ref() js.Ref { 355 return this.ref 356 } 357 358 func (this Selection) FromRef(ref js.Ref) Selection { 359 this.ref = ref 360 return this 361 } 362 363 func (this Selection) Free() { 364 this.ref.Free() 365 } 366 367 // AnchorNode returns the value of property "Selection.anchorNode". 368 // 369 // It returns ok=false if there is no such property. 370 func (this Selection) AnchorNode() (ret Node, ok bool) { 371 ok = js.True == bindings.GetSelectionAnchorNode( 372 this.ref, js.Pointer(&ret), 373 ) 374 return 375 } 376 377 // AnchorOffset returns the value of property "Selection.anchorOffset". 378 // 379 // It returns ok=false if there is no such property. 380 func (this Selection) AnchorOffset() (ret uint32, ok bool) { 381 ok = js.True == bindings.GetSelectionAnchorOffset( 382 this.ref, js.Pointer(&ret), 383 ) 384 return 385 } 386 387 // FocusNode returns the value of property "Selection.focusNode". 388 // 389 // It returns ok=false if there is no such property. 390 func (this Selection) FocusNode() (ret Node, ok bool) { 391 ok = js.True == bindings.GetSelectionFocusNode( 392 this.ref, js.Pointer(&ret), 393 ) 394 return 395 } 396 397 // FocusOffset returns the value of property "Selection.focusOffset". 398 // 399 // It returns ok=false if there is no such property. 400 func (this Selection) FocusOffset() (ret uint32, ok bool) { 401 ok = js.True == bindings.GetSelectionFocusOffset( 402 this.ref, js.Pointer(&ret), 403 ) 404 return 405 } 406 407 // IsCollapsed returns the value of property "Selection.isCollapsed". 408 // 409 // It returns ok=false if there is no such property. 410 func (this Selection) IsCollapsed() (ret bool, ok bool) { 411 ok = js.True == bindings.GetSelectionIsCollapsed( 412 this.ref, js.Pointer(&ret), 413 ) 414 return 415 } 416 417 // RangeCount returns the value of property "Selection.rangeCount". 418 // 419 // It returns ok=false if there is no such property. 420 func (this Selection) RangeCount() (ret uint32, ok bool) { 421 ok = js.True == bindings.GetSelectionRangeCount( 422 this.ref, js.Pointer(&ret), 423 ) 424 return 425 } 426 427 // Type returns the value of property "Selection.type". 428 // 429 // It returns ok=false if there is no such property. 430 func (this Selection) Type() (ret js.String, ok bool) { 431 ok = js.True == bindings.GetSelectionType( 432 this.ref, js.Pointer(&ret), 433 ) 434 return 435 } 436 437 // Direction returns the value of property "Selection.direction". 438 // 439 // It returns ok=false if there is no such property. 440 func (this Selection) Direction() (ret js.String, ok bool) { 441 ok = js.True == bindings.GetSelectionDirection( 442 this.ref, js.Pointer(&ret), 443 ) 444 return 445 } 446 447 // HasFuncGetRangeAt returns true if the method "Selection.getRangeAt" exists. 448 func (this Selection) HasFuncGetRangeAt() bool { 449 return js.True == bindings.HasFuncSelectionGetRangeAt( 450 this.ref, 451 ) 452 } 453 454 // FuncGetRangeAt returns the method "Selection.getRangeAt". 455 func (this Selection) FuncGetRangeAt() (fn js.Func[func(index uint32) Range]) { 456 bindings.FuncSelectionGetRangeAt( 457 this.ref, js.Pointer(&fn), 458 ) 459 return 460 } 461 462 // GetRangeAt calls the method "Selection.getRangeAt". 463 func (this Selection) GetRangeAt(index uint32) (ret Range) { 464 bindings.CallSelectionGetRangeAt( 465 this.ref, js.Pointer(&ret), 466 uint32(index), 467 ) 468 469 return 470 } 471 472 // TryGetRangeAt calls the method "Selection.getRangeAt" 473 // in a try/catch block and returns (_, err, ok = false) when it went through 474 // the catch clause. 475 func (this Selection) TryGetRangeAt(index uint32) (ret Range, exception js.Any, ok bool) { 476 ok = js.True == bindings.TrySelectionGetRangeAt( 477 this.ref, js.Pointer(&ret), js.Pointer(&exception), 478 uint32(index), 479 ) 480 481 return 482 } 483 484 // HasFuncAddRange returns true if the method "Selection.addRange" exists. 485 func (this Selection) HasFuncAddRange() bool { 486 return js.True == bindings.HasFuncSelectionAddRange( 487 this.ref, 488 ) 489 } 490 491 // FuncAddRange returns the method "Selection.addRange". 492 func (this Selection) FuncAddRange() (fn js.Func[func(rng Range)]) { 493 bindings.FuncSelectionAddRange( 494 this.ref, js.Pointer(&fn), 495 ) 496 return 497 } 498 499 // AddRange calls the method "Selection.addRange". 500 func (this Selection) AddRange(rng Range) (ret js.Void) { 501 bindings.CallSelectionAddRange( 502 this.ref, js.Pointer(&ret), 503 rng.Ref(), 504 ) 505 506 return 507 } 508 509 // TryAddRange calls the method "Selection.addRange" 510 // in a try/catch block and returns (_, err, ok = false) when it went through 511 // the catch clause. 512 func (this Selection) TryAddRange(rng Range) (ret js.Void, exception js.Any, ok bool) { 513 ok = js.True == bindings.TrySelectionAddRange( 514 this.ref, js.Pointer(&ret), js.Pointer(&exception), 515 rng.Ref(), 516 ) 517 518 return 519 } 520 521 // HasFuncRemoveRange returns true if the method "Selection.removeRange" exists. 522 func (this Selection) HasFuncRemoveRange() bool { 523 return js.True == bindings.HasFuncSelectionRemoveRange( 524 this.ref, 525 ) 526 } 527 528 // FuncRemoveRange returns the method "Selection.removeRange". 529 func (this Selection) FuncRemoveRange() (fn js.Func[func(rng Range)]) { 530 bindings.FuncSelectionRemoveRange( 531 this.ref, js.Pointer(&fn), 532 ) 533 return 534 } 535 536 // RemoveRange calls the method "Selection.removeRange". 537 func (this Selection) RemoveRange(rng Range) (ret js.Void) { 538 bindings.CallSelectionRemoveRange( 539 this.ref, js.Pointer(&ret), 540 rng.Ref(), 541 ) 542 543 return 544 } 545 546 // TryRemoveRange calls the method "Selection.removeRange" 547 // in a try/catch block and returns (_, err, ok = false) when it went through 548 // the catch clause. 549 func (this Selection) TryRemoveRange(rng Range) (ret js.Void, exception js.Any, ok bool) { 550 ok = js.True == bindings.TrySelectionRemoveRange( 551 this.ref, js.Pointer(&ret), js.Pointer(&exception), 552 rng.Ref(), 553 ) 554 555 return 556 } 557 558 // HasFuncRemoveAllRanges returns true if the method "Selection.removeAllRanges" exists. 559 func (this Selection) HasFuncRemoveAllRanges() bool { 560 return js.True == bindings.HasFuncSelectionRemoveAllRanges( 561 this.ref, 562 ) 563 } 564 565 // FuncRemoveAllRanges returns the method "Selection.removeAllRanges". 566 func (this Selection) FuncRemoveAllRanges() (fn js.Func[func()]) { 567 bindings.FuncSelectionRemoveAllRanges( 568 this.ref, js.Pointer(&fn), 569 ) 570 return 571 } 572 573 // RemoveAllRanges calls the method "Selection.removeAllRanges". 574 func (this Selection) RemoveAllRanges() (ret js.Void) { 575 bindings.CallSelectionRemoveAllRanges( 576 this.ref, js.Pointer(&ret), 577 ) 578 579 return 580 } 581 582 // TryRemoveAllRanges calls the method "Selection.removeAllRanges" 583 // in a try/catch block and returns (_, err, ok = false) when it went through 584 // the catch clause. 585 func (this Selection) TryRemoveAllRanges() (ret js.Void, exception js.Any, ok bool) { 586 ok = js.True == bindings.TrySelectionRemoveAllRanges( 587 this.ref, js.Pointer(&ret), js.Pointer(&exception), 588 ) 589 590 return 591 } 592 593 // HasFuncEmpty returns true if the method "Selection.empty" exists. 594 func (this Selection) HasFuncEmpty() bool { 595 return js.True == bindings.HasFuncSelectionEmpty( 596 this.ref, 597 ) 598 } 599 600 // FuncEmpty returns the method "Selection.empty". 601 func (this Selection) FuncEmpty() (fn js.Func[func()]) { 602 bindings.FuncSelectionEmpty( 603 this.ref, js.Pointer(&fn), 604 ) 605 return 606 } 607 608 // Empty calls the method "Selection.empty". 609 func (this Selection) Empty() (ret js.Void) { 610 bindings.CallSelectionEmpty( 611 this.ref, js.Pointer(&ret), 612 ) 613 614 return 615 } 616 617 // TryEmpty calls the method "Selection.empty" 618 // in a try/catch block and returns (_, err, ok = false) when it went through 619 // the catch clause. 620 func (this Selection) TryEmpty() (ret js.Void, exception js.Any, ok bool) { 621 ok = js.True == bindings.TrySelectionEmpty( 622 this.ref, js.Pointer(&ret), js.Pointer(&exception), 623 ) 624 625 return 626 } 627 628 // HasFuncGetComposedRanges returns true if the method "Selection.getComposedRanges" exists. 629 func (this Selection) HasFuncGetComposedRanges() bool { 630 return js.True == bindings.HasFuncSelectionGetComposedRanges( 631 this.ref, 632 ) 633 } 634 635 // FuncGetComposedRanges returns the method "Selection.getComposedRanges". 636 func (this Selection) FuncGetComposedRanges() (fn js.Func[func(shadowRoots ...ShadowRoot) js.Array[StaticRange]]) { 637 bindings.FuncSelectionGetComposedRanges( 638 this.ref, js.Pointer(&fn), 639 ) 640 return 641 } 642 643 // GetComposedRanges calls the method "Selection.getComposedRanges". 644 func (this Selection) GetComposedRanges(shadowRoots ...ShadowRoot) (ret js.Array[StaticRange]) { 645 bindings.CallSelectionGetComposedRanges( 646 this.ref, js.Pointer(&ret), 647 js.SliceData(shadowRoots), 648 js.SizeU(len(shadowRoots)), 649 ) 650 651 return 652 } 653 654 // TryGetComposedRanges calls the method "Selection.getComposedRanges" 655 // in a try/catch block and returns (_, err, ok = false) when it went through 656 // the catch clause. 657 func (this Selection) TryGetComposedRanges(shadowRoots ...ShadowRoot) (ret js.Array[StaticRange], exception js.Any, ok bool) { 658 ok = js.True == bindings.TrySelectionGetComposedRanges( 659 this.ref, js.Pointer(&ret), js.Pointer(&exception), 660 js.SliceData(shadowRoots), 661 js.SizeU(len(shadowRoots)), 662 ) 663 664 return 665 } 666 667 // HasFuncCollapse returns true if the method "Selection.collapse" exists. 668 func (this Selection) HasFuncCollapse() bool { 669 return js.True == bindings.HasFuncSelectionCollapse( 670 this.ref, 671 ) 672 } 673 674 // FuncCollapse returns the method "Selection.collapse". 675 func (this Selection) FuncCollapse() (fn js.Func[func(node Node, offset uint32)]) { 676 bindings.FuncSelectionCollapse( 677 this.ref, js.Pointer(&fn), 678 ) 679 return 680 } 681 682 // Collapse calls the method "Selection.collapse". 683 func (this Selection) Collapse(node Node, offset uint32) (ret js.Void) { 684 bindings.CallSelectionCollapse( 685 this.ref, js.Pointer(&ret), 686 node.Ref(), 687 uint32(offset), 688 ) 689 690 return 691 } 692 693 // TryCollapse calls the method "Selection.collapse" 694 // in a try/catch block and returns (_, err, ok = false) when it went through 695 // the catch clause. 696 func (this Selection) TryCollapse(node Node, offset uint32) (ret js.Void, exception js.Any, ok bool) { 697 ok = js.True == bindings.TrySelectionCollapse( 698 this.ref, js.Pointer(&ret), js.Pointer(&exception), 699 node.Ref(), 700 uint32(offset), 701 ) 702 703 return 704 } 705 706 // HasFuncCollapse1 returns true if the method "Selection.collapse" exists. 707 func (this Selection) HasFuncCollapse1() bool { 708 return js.True == bindings.HasFuncSelectionCollapse1( 709 this.ref, 710 ) 711 } 712 713 // FuncCollapse1 returns the method "Selection.collapse". 714 func (this Selection) FuncCollapse1() (fn js.Func[func(node Node)]) { 715 bindings.FuncSelectionCollapse1( 716 this.ref, js.Pointer(&fn), 717 ) 718 return 719 } 720 721 // Collapse1 calls the method "Selection.collapse". 722 func (this Selection) Collapse1(node Node) (ret js.Void) { 723 bindings.CallSelectionCollapse1( 724 this.ref, js.Pointer(&ret), 725 node.Ref(), 726 ) 727 728 return 729 } 730 731 // TryCollapse1 calls the method "Selection.collapse" 732 // in a try/catch block and returns (_, err, ok = false) when it went through 733 // the catch clause. 734 func (this Selection) TryCollapse1(node Node) (ret js.Void, exception js.Any, ok bool) { 735 ok = js.True == bindings.TrySelectionCollapse1( 736 this.ref, js.Pointer(&ret), js.Pointer(&exception), 737 node.Ref(), 738 ) 739 740 return 741 } 742 743 // HasFuncSetPosition returns true if the method "Selection.setPosition" exists. 744 func (this Selection) HasFuncSetPosition() bool { 745 return js.True == bindings.HasFuncSelectionSetPosition( 746 this.ref, 747 ) 748 } 749 750 // FuncSetPosition returns the method "Selection.setPosition". 751 func (this Selection) FuncSetPosition() (fn js.Func[func(node Node, offset uint32)]) { 752 bindings.FuncSelectionSetPosition( 753 this.ref, js.Pointer(&fn), 754 ) 755 return 756 } 757 758 // SetPosition calls the method "Selection.setPosition". 759 func (this Selection) SetPosition(node Node, offset uint32) (ret js.Void) { 760 bindings.CallSelectionSetPosition( 761 this.ref, js.Pointer(&ret), 762 node.Ref(), 763 uint32(offset), 764 ) 765 766 return 767 } 768 769 // TrySetPosition calls the method "Selection.setPosition" 770 // in a try/catch block and returns (_, err, ok = false) when it went through 771 // the catch clause. 772 func (this Selection) TrySetPosition(node Node, offset uint32) (ret js.Void, exception js.Any, ok bool) { 773 ok = js.True == bindings.TrySelectionSetPosition( 774 this.ref, js.Pointer(&ret), js.Pointer(&exception), 775 node.Ref(), 776 uint32(offset), 777 ) 778 779 return 780 } 781 782 // HasFuncSetPosition1 returns true if the method "Selection.setPosition" exists. 783 func (this Selection) HasFuncSetPosition1() bool { 784 return js.True == bindings.HasFuncSelectionSetPosition1( 785 this.ref, 786 ) 787 } 788 789 // FuncSetPosition1 returns the method "Selection.setPosition". 790 func (this Selection) FuncSetPosition1() (fn js.Func[func(node Node)]) { 791 bindings.FuncSelectionSetPosition1( 792 this.ref, js.Pointer(&fn), 793 ) 794 return 795 } 796 797 // SetPosition1 calls the method "Selection.setPosition". 798 func (this Selection) SetPosition1(node Node) (ret js.Void) { 799 bindings.CallSelectionSetPosition1( 800 this.ref, js.Pointer(&ret), 801 node.Ref(), 802 ) 803 804 return 805 } 806 807 // TrySetPosition1 calls the method "Selection.setPosition" 808 // in a try/catch block and returns (_, err, ok = false) when it went through 809 // the catch clause. 810 func (this Selection) TrySetPosition1(node Node) (ret js.Void, exception js.Any, ok bool) { 811 ok = js.True == bindings.TrySelectionSetPosition1( 812 this.ref, js.Pointer(&ret), js.Pointer(&exception), 813 node.Ref(), 814 ) 815 816 return 817 } 818 819 // HasFuncCollapseToStart returns true if the method "Selection.collapseToStart" exists. 820 func (this Selection) HasFuncCollapseToStart() bool { 821 return js.True == bindings.HasFuncSelectionCollapseToStart( 822 this.ref, 823 ) 824 } 825 826 // FuncCollapseToStart returns the method "Selection.collapseToStart". 827 func (this Selection) FuncCollapseToStart() (fn js.Func[func()]) { 828 bindings.FuncSelectionCollapseToStart( 829 this.ref, js.Pointer(&fn), 830 ) 831 return 832 } 833 834 // CollapseToStart calls the method "Selection.collapseToStart". 835 func (this Selection) CollapseToStart() (ret js.Void) { 836 bindings.CallSelectionCollapseToStart( 837 this.ref, js.Pointer(&ret), 838 ) 839 840 return 841 } 842 843 // TryCollapseToStart calls the method "Selection.collapseToStart" 844 // in a try/catch block and returns (_, err, ok = false) when it went through 845 // the catch clause. 846 func (this Selection) TryCollapseToStart() (ret js.Void, exception js.Any, ok bool) { 847 ok = js.True == bindings.TrySelectionCollapseToStart( 848 this.ref, js.Pointer(&ret), js.Pointer(&exception), 849 ) 850 851 return 852 } 853 854 // HasFuncCollapseToEnd returns true if the method "Selection.collapseToEnd" exists. 855 func (this Selection) HasFuncCollapseToEnd() bool { 856 return js.True == bindings.HasFuncSelectionCollapseToEnd( 857 this.ref, 858 ) 859 } 860 861 // FuncCollapseToEnd returns the method "Selection.collapseToEnd". 862 func (this Selection) FuncCollapseToEnd() (fn js.Func[func()]) { 863 bindings.FuncSelectionCollapseToEnd( 864 this.ref, js.Pointer(&fn), 865 ) 866 return 867 } 868 869 // CollapseToEnd calls the method "Selection.collapseToEnd". 870 func (this Selection) CollapseToEnd() (ret js.Void) { 871 bindings.CallSelectionCollapseToEnd( 872 this.ref, js.Pointer(&ret), 873 ) 874 875 return 876 } 877 878 // TryCollapseToEnd calls the method "Selection.collapseToEnd" 879 // in a try/catch block and returns (_, err, ok = false) when it went through 880 // the catch clause. 881 func (this Selection) TryCollapseToEnd() (ret js.Void, exception js.Any, ok bool) { 882 ok = js.True == bindings.TrySelectionCollapseToEnd( 883 this.ref, js.Pointer(&ret), js.Pointer(&exception), 884 ) 885 886 return 887 } 888 889 // HasFuncExtend returns true if the method "Selection.extend" exists. 890 func (this Selection) HasFuncExtend() bool { 891 return js.True == bindings.HasFuncSelectionExtend( 892 this.ref, 893 ) 894 } 895 896 // FuncExtend returns the method "Selection.extend". 897 func (this Selection) FuncExtend() (fn js.Func[func(node Node, offset uint32)]) { 898 bindings.FuncSelectionExtend( 899 this.ref, js.Pointer(&fn), 900 ) 901 return 902 } 903 904 // Extend calls the method "Selection.extend". 905 func (this Selection) Extend(node Node, offset uint32) (ret js.Void) { 906 bindings.CallSelectionExtend( 907 this.ref, js.Pointer(&ret), 908 node.Ref(), 909 uint32(offset), 910 ) 911 912 return 913 } 914 915 // TryExtend calls the method "Selection.extend" 916 // in a try/catch block and returns (_, err, ok = false) when it went through 917 // the catch clause. 918 func (this Selection) TryExtend(node Node, offset uint32) (ret js.Void, exception js.Any, ok bool) { 919 ok = js.True == bindings.TrySelectionExtend( 920 this.ref, js.Pointer(&ret), js.Pointer(&exception), 921 node.Ref(), 922 uint32(offset), 923 ) 924 925 return 926 } 927 928 // HasFuncExtend1 returns true if the method "Selection.extend" exists. 929 func (this Selection) HasFuncExtend1() bool { 930 return js.True == bindings.HasFuncSelectionExtend1( 931 this.ref, 932 ) 933 } 934 935 // FuncExtend1 returns the method "Selection.extend". 936 func (this Selection) FuncExtend1() (fn js.Func[func(node Node)]) { 937 bindings.FuncSelectionExtend1( 938 this.ref, js.Pointer(&fn), 939 ) 940 return 941 } 942 943 // Extend1 calls the method "Selection.extend". 944 func (this Selection) Extend1(node Node) (ret js.Void) { 945 bindings.CallSelectionExtend1( 946 this.ref, js.Pointer(&ret), 947 node.Ref(), 948 ) 949 950 return 951 } 952 953 // TryExtend1 calls the method "Selection.extend" 954 // in a try/catch block and returns (_, err, ok = false) when it went through 955 // the catch clause. 956 func (this Selection) TryExtend1(node Node) (ret js.Void, exception js.Any, ok bool) { 957 ok = js.True == bindings.TrySelectionExtend1( 958 this.ref, js.Pointer(&ret), js.Pointer(&exception), 959 node.Ref(), 960 ) 961 962 return 963 } 964 965 // HasFuncSetBaseAndExtent returns true if the method "Selection.setBaseAndExtent" exists. 966 func (this Selection) HasFuncSetBaseAndExtent() bool { 967 return js.True == bindings.HasFuncSelectionSetBaseAndExtent( 968 this.ref, 969 ) 970 } 971 972 // FuncSetBaseAndExtent returns the method "Selection.setBaseAndExtent". 973 func (this Selection) FuncSetBaseAndExtent() (fn js.Func[func(anchorNode Node, anchorOffset uint32, focusNode Node, focusOffset uint32)]) { 974 bindings.FuncSelectionSetBaseAndExtent( 975 this.ref, js.Pointer(&fn), 976 ) 977 return 978 } 979 980 // SetBaseAndExtent calls the method "Selection.setBaseAndExtent". 981 func (this Selection) SetBaseAndExtent(anchorNode Node, anchorOffset uint32, focusNode Node, focusOffset uint32) (ret js.Void) { 982 bindings.CallSelectionSetBaseAndExtent( 983 this.ref, js.Pointer(&ret), 984 anchorNode.Ref(), 985 uint32(anchorOffset), 986 focusNode.Ref(), 987 uint32(focusOffset), 988 ) 989 990 return 991 } 992 993 // TrySetBaseAndExtent calls the method "Selection.setBaseAndExtent" 994 // in a try/catch block and returns (_, err, ok = false) when it went through 995 // the catch clause. 996 func (this Selection) TrySetBaseAndExtent(anchorNode Node, anchorOffset uint32, focusNode Node, focusOffset uint32) (ret js.Void, exception js.Any, ok bool) { 997 ok = js.True == bindings.TrySelectionSetBaseAndExtent( 998 this.ref, js.Pointer(&ret), js.Pointer(&exception), 999 anchorNode.Ref(), 1000 uint32(anchorOffset), 1001 focusNode.Ref(), 1002 uint32(focusOffset), 1003 ) 1004 1005 return 1006 } 1007 1008 // HasFuncSelectAllChildren returns true if the method "Selection.selectAllChildren" exists. 1009 func (this Selection) HasFuncSelectAllChildren() bool { 1010 return js.True == bindings.HasFuncSelectionSelectAllChildren( 1011 this.ref, 1012 ) 1013 } 1014 1015 // FuncSelectAllChildren returns the method "Selection.selectAllChildren". 1016 func (this Selection) FuncSelectAllChildren() (fn js.Func[func(node Node)]) { 1017 bindings.FuncSelectionSelectAllChildren( 1018 this.ref, js.Pointer(&fn), 1019 ) 1020 return 1021 } 1022 1023 // SelectAllChildren calls the method "Selection.selectAllChildren". 1024 func (this Selection) SelectAllChildren(node Node) (ret js.Void) { 1025 bindings.CallSelectionSelectAllChildren( 1026 this.ref, js.Pointer(&ret), 1027 node.Ref(), 1028 ) 1029 1030 return 1031 } 1032 1033 // TrySelectAllChildren calls the method "Selection.selectAllChildren" 1034 // in a try/catch block and returns (_, err, ok = false) when it went through 1035 // the catch clause. 1036 func (this Selection) TrySelectAllChildren(node Node) (ret js.Void, exception js.Any, ok bool) { 1037 ok = js.True == bindings.TrySelectionSelectAllChildren( 1038 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1039 node.Ref(), 1040 ) 1041 1042 return 1043 } 1044 1045 // HasFuncModify returns true if the method "Selection.modify" exists. 1046 func (this Selection) HasFuncModify() bool { 1047 return js.True == bindings.HasFuncSelectionModify( 1048 this.ref, 1049 ) 1050 } 1051 1052 // FuncModify returns the method "Selection.modify". 1053 func (this Selection) FuncModify() (fn js.Func[func(alter js.String, direction js.String, granularity js.String)]) { 1054 bindings.FuncSelectionModify( 1055 this.ref, js.Pointer(&fn), 1056 ) 1057 return 1058 } 1059 1060 // Modify calls the method "Selection.modify". 1061 func (this Selection) Modify(alter js.String, direction js.String, granularity js.String) (ret js.Void) { 1062 bindings.CallSelectionModify( 1063 this.ref, js.Pointer(&ret), 1064 alter.Ref(), 1065 direction.Ref(), 1066 granularity.Ref(), 1067 ) 1068 1069 return 1070 } 1071 1072 // TryModify calls the method "Selection.modify" 1073 // in a try/catch block and returns (_, err, ok = false) when it went through 1074 // the catch clause. 1075 func (this Selection) TryModify(alter js.String, direction js.String, granularity js.String) (ret js.Void, exception js.Any, ok bool) { 1076 ok = js.True == bindings.TrySelectionModify( 1077 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1078 alter.Ref(), 1079 direction.Ref(), 1080 granularity.Ref(), 1081 ) 1082 1083 return 1084 } 1085 1086 // HasFuncModify1 returns true if the method "Selection.modify" exists. 1087 func (this Selection) HasFuncModify1() bool { 1088 return js.True == bindings.HasFuncSelectionModify1( 1089 this.ref, 1090 ) 1091 } 1092 1093 // FuncModify1 returns the method "Selection.modify". 1094 func (this Selection) FuncModify1() (fn js.Func[func(alter js.String, direction js.String)]) { 1095 bindings.FuncSelectionModify1( 1096 this.ref, js.Pointer(&fn), 1097 ) 1098 return 1099 } 1100 1101 // Modify1 calls the method "Selection.modify". 1102 func (this Selection) Modify1(alter js.String, direction js.String) (ret js.Void) { 1103 bindings.CallSelectionModify1( 1104 this.ref, js.Pointer(&ret), 1105 alter.Ref(), 1106 direction.Ref(), 1107 ) 1108 1109 return 1110 } 1111 1112 // TryModify1 calls the method "Selection.modify" 1113 // in a try/catch block and returns (_, err, ok = false) when it went through 1114 // the catch clause. 1115 func (this Selection) TryModify1(alter js.String, direction js.String) (ret js.Void, exception js.Any, ok bool) { 1116 ok = js.True == bindings.TrySelectionModify1( 1117 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1118 alter.Ref(), 1119 direction.Ref(), 1120 ) 1121 1122 return 1123 } 1124 1125 // HasFuncModify2 returns true if the method "Selection.modify" exists. 1126 func (this Selection) HasFuncModify2() bool { 1127 return js.True == bindings.HasFuncSelectionModify2( 1128 this.ref, 1129 ) 1130 } 1131 1132 // FuncModify2 returns the method "Selection.modify". 1133 func (this Selection) FuncModify2() (fn js.Func[func(alter js.String)]) { 1134 bindings.FuncSelectionModify2( 1135 this.ref, js.Pointer(&fn), 1136 ) 1137 return 1138 } 1139 1140 // Modify2 calls the method "Selection.modify". 1141 func (this Selection) Modify2(alter js.String) (ret js.Void) { 1142 bindings.CallSelectionModify2( 1143 this.ref, js.Pointer(&ret), 1144 alter.Ref(), 1145 ) 1146 1147 return 1148 } 1149 1150 // TryModify2 calls the method "Selection.modify" 1151 // in a try/catch block and returns (_, err, ok = false) when it went through 1152 // the catch clause. 1153 func (this Selection) TryModify2(alter js.String) (ret js.Void, exception js.Any, ok bool) { 1154 ok = js.True == bindings.TrySelectionModify2( 1155 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1156 alter.Ref(), 1157 ) 1158 1159 return 1160 } 1161 1162 // HasFuncModify3 returns true if the method "Selection.modify" exists. 1163 func (this Selection) HasFuncModify3() bool { 1164 return js.True == bindings.HasFuncSelectionModify3( 1165 this.ref, 1166 ) 1167 } 1168 1169 // FuncModify3 returns the method "Selection.modify". 1170 func (this Selection) FuncModify3() (fn js.Func[func()]) { 1171 bindings.FuncSelectionModify3( 1172 this.ref, js.Pointer(&fn), 1173 ) 1174 return 1175 } 1176 1177 // Modify3 calls the method "Selection.modify". 1178 func (this Selection) Modify3() (ret js.Void) { 1179 bindings.CallSelectionModify3( 1180 this.ref, js.Pointer(&ret), 1181 ) 1182 1183 return 1184 } 1185 1186 // TryModify3 calls the method "Selection.modify" 1187 // in a try/catch block and returns (_, err, ok = false) when it went through 1188 // the catch clause. 1189 func (this Selection) TryModify3() (ret js.Void, exception js.Any, ok bool) { 1190 ok = js.True == bindings.TrySelectionModify3( 1191 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1192 ) 1193 1194 return 1195 } 1196 1197 // HasFuncDeleteFromDocument returns true if the method "Selection.deleteFromDocument" exists. 1198 func (this Selection) HasFuncDeleteFromDocument() bool { 1199 return js.True == bindings.HasFuncSelectionDeleteFromDocument( 1200 this.ref, 1201 ) 1202 } 1203 1204 // FuncDeleteFromDocument returns the method "Selection.deleteFromDocument". 1205 func (this Selection) FuncDeleteFromDocument() (fn js.Func[func()]) { 1206 bindings.FuncSelectionDeleteFromDocument( 1207 this.ref, js.Pointer(&fn), 1208 ) 1209 return 1210 } 1211 1212 // DeleteFromDocument calls the method "Selection.deleteFromDocument". 1213 func (this Selection) DeleteFromDocument() (ret js.Void) { 1214 bindings.CallSelectionDeleteFromDocument( 1215 this.ref, js.Pointer(&ret), 1216 ) 1217 1218 return 1219 } 1220 1221 // TryDeleteFromDocument calls the method "Selection.deleteFromDocument" 1222 // in a try/catch block and returns (_, err, ok = false) when it went through 1223 // the catch clause. 1224 func (this Selection) TryDeleteFromDocument() (ret js.Void, exception js.Any, ok bool) { 1225 ok = js.True == bindings.TrySelectionDeleteFromDocument( 1226 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1227 ) 1228 1229 return 1230 } 1231 1232 // HasFuncContainsNode returns true if the method "Selection.containsNode" exists. 1233 func (this Selection) HasFuncContainsNode() bool { 1234 return js.True == bindings.HasFuncSelectionContainsNode( 1235 this.ref, 1236 ) 1237 } 1238 1239 // FuncContainsNode returns the method "Selection.containsNode". 1240 func (this Selection) FuncContainsNode() (fn js.Func[func(node Node, allowPartialContainment bool) bool]) { 1241 bindings.FuncSelectionContainsNode( 1242 this.ref, js.Pointer(&fn), 1243 ) 1244 return 1245 } 1246 1247 // ContainsNode calls the method "Selection.containsNode". 1248 func (this Selection) ContainsNode(node Node, allowPartialContainment bool) (ret bool) { 1249 bindings.CallSelectionContainsNode( 1250 this.ref, js.Pointer(&ret), 1251 node.Ref(), 1252 js.Bool(bool(allowPartialContainment)), 1253 ) 1254 1255 return 1256 } 1257 1258 // TryContainsNode calls the method "Selection.containsNode" 1259 // in a try/catch block and returns (_, err, ok = false) when it went through 1260 // the catch clause. 1261 func (this Selection) TryContainsNode(node Node, allowPartialContainment bool) (ret bool, exception js.Any, ok bool) { 1262 ok = js.True == bindings.TrySelectionContainsNode( 1263 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1264 node.Ref(), 1265 js.Bool(bool(allowPartialContainment)), 1266 ) 1267 1268 return 1269 } 1270 1271 // HasFuncContainsNode1 returns true if the method "Selection.containsNode" exists. 1272 func (this Selection) HasFuncContainsNode1() bool { 1273 return js.True == bindings.HasFuncSelectionContainsNode1( 1274 this.ref, 1275 ) 1276 } 1277 1278 // FuncContainsNode1 returns the method "Selection.containsNode". 1279 func (this Selection) FuncContainsNode1() (fn js.Func[func(node Node) bool]) { 1280 bindings.FuncSelectionContainsNode1( 1281 this.ref, js.Pointer(&fn), 1282 ) 1283 return 1284 } 1285 1286 // ContainsNode1 calls the method "Selection.containsNode". 1287 func (this Selection) ContainsNode1(node Node) (ret bool) { 1288 bindings.CallSelectionContainsNode1( 1289 this.ref, js.Pointer(&ret), 1290 node.Ref(), 1291 ) 1292 1293 return 1294 } 1295 1296 // TryContainsNode1 calls the method "Selection.containsNode" 1297 // in a try/catch block and returns (_, err, ok = false) when it went through 1298 // the catch clause. 1299 func (this Selection) TryContainsNode1(node Node) (ret bool, exception js.Any, ok bool) { 1300 ok = js.True == bindings.TrySelectionContainsNode1( 1301 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1302 node.Ref(), 1303 ) 1304 1305 return 1306 } 1307 1308 // HasFuncToString returns true if the method "Selection.toString" exists. 1309 func (this Selection) HasFuncToString() bool { 1310 return js.True == bindings.HasFuncSelectionToString( 1311 this.ref, 1312 ) 1313 } 1314 1315 // FuncToString returns the method "Selection.toString". 1316 func (this Selection) FuncToString() (fn js.Func[func() js.String]) { 1317 bindings.FuncSelectionToString( 1318 this.ref, js.Pointer(&fn), 1319 ) 1320 return 1321 } 1322 1323 // ToString calls the method "Selection.toString". 1324 func (this Selection) ToString() (ret js.String) { 1325 bindings.CallSelectionToString( 1326 this.ref, js.Pointer(&ret), 1327 ) 1328 1329 return 1330 } 1331 1332 // TryToString calls the method "Selection.toString" 1333 // in a try/catch block and returns (_, err, ok = false) when it went through 1334 // the catch clause. 1335 func (this Selection) TryToString() (ret js.String, exception js.Any, ok bool) { 1336 ok = js.True == bindings.TrySelectionToString( 1337 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1338 ) 1339 1340 return 1341 } 1342 1343 type CaretPosition struct { 1344 ref js.Ref 1345 } 1346 1347 func (this CaretPosition) Once() CaretPosition { 1348 this.ref.Once() 1349 return this 1350 } 1351 1352 func (this CaretPosition) Ref() js.Ref { 1353 return this.ref 1354 } 1355 1356 func (this CaretPosition) FromRef(ref js.Ref) CaretPosition { 1357 this.ref = ref 1358 return this 1359 } 1360 1361 func (this CaretPosition) Free() { 1362 this.ref.Free() 1363 } 1364 1365 // OffsetNode returns the value of property "CaretPosition.offsetNode". 1366 // 1367 // It returns ok=false if there is no such property. 1368 func (this CaretPosition) OffsetNode() (ret Node, ok bool) { 1369 ok = js.True == bindings.GetCaretPositionOffsetNode( 1370 this.ref, js.Pointer(&ret), 1371 ) 1372 return 1373 } 1374 1375 // Offset returns the value of property "CaretPosition.offset". 1376 // 1377 // It returns ok=false if there is no such property. 1378 func (this CaretPosition) Offset() (ret uint32, ok bool) { 1379 ok = js.True == bindings.GetCaretPositionOffset( 1380 this.ref, js.Pointer(&ret), 1381 ) 1382 return 1383 } 1384 1385 // HasFuncGetClientRect returns true if the method "CaretPosition.getClientRect" exists. 1386 func (this CaretPosition) HasFuncGetClientRect() bool { 1387 return js.True == bindings.HasFuncCaretPositionGetClientRect( 1388 this.ref, 1389 ) 1390 } 1391 1392 // FuncGetClientRect returns the method "CaretPosition.getClientRect". 1393 func (this CaretPosition) FuncGetClientRect() (fn js.Func[func() DOMRect]) { 1394 bindings.FuncCaretPositionGetClientRect( 1395 this.ref, js.Pointer(&fn), 1396 ) 1397 return 1398 } 1399 1400 // GetClientRect calls the method "CaretPosition.getClientRect". 1401 func (this CaretPosition) GetClientRect() (ret DOMRect) { 1402 bindings.CallCaretPositionGetClientRect( 1403 this.ref, js.Pointer(&ret), 1404 ) 1405 1406 return 1407 } 1408 1409 // TryGetClientRect calls the method "CaretPosition.getClientRect" 1410 // in a try/catch block and returns (_, err, ok = false) when it went through 1411 // the catch clause. 1412 func (this CaretPosition) TryGetClientRect() (ret DOMRect, exception js.Any, ok bool) { 1413 ok = js.True == bindings.TryCaretPositionGetClientRect( 1414 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1415 ) 1416 1417 return 1418 } 1419 1420 const ( 1421 XPathResult_ANY_TYPE uint16 = 0 1422 XPathResult_NUMBER_TYPE uint16 = 1 1423 XPathResult_STRING_TYPE uint16 = 2 1424 XPathResult_BOOLEAN_TYPE uint16 = 3 1425 XPathResult_UNORDERED_NODE_ITERATOR_TYPE uint16 = 4 1426 XPathResult_ORDERED_NODE_ITERATOR_TYPE uint16 = 5 1427 XPathResult_UNORDERED_NODE_SNAPSHOT_TYPE uint16 = 6 1428 XPathResult_ORDERED_NODE_SNAPSHOT_TYPE uint16 = 7 1429 XPathResult_ANY_UNORDERED_NODE_TYPE uint16 = 8 1430 XPathResult_FIRST_ORDERED_NODE_TYPE uint16 = 9 1431 ) 1432 1433 type XPathResult struct { 1434 ref js.Ref 1435 } 1436 1437 func (this XPathResult) Once() XPathResult { 1438 this.ref.Once() 1439 return this 1440 } 1441 1442 func (this XPathResult) Ref() js.Ref { 1443 return this.ref 1444 } 1445 1446 func (this XPathResult) FromRef(ref js.Ref) XPathResult { 1447 this.ref = ref 1448 return this 1449 } 1450 1451 func (this XPathResult) Free() { 1452 this.ref.Free() 1453 } 1454 1455 // ResultType returns the value of property "XPathResult.resultType". 1456 // 1457 // It returns ok=false if there is no such property. 1458 func (this XPathResult) ResultType() (ret uint16, ok bool) { 1459 ok = js.True == bindings.GetXPathResultResultType( 1460 this.ref, js.Pointer(&ret), 1461 ) 1462 return 1463 } 1464 1465 // NumberValue returns the value of property "XPathResult.numberValue". 1466 // 1467 // It returns ok=false if there is no such property. 1468 func (this XPathResult) NumberValue() (ret float64, ok bool) { 1469 ok = js.True == bindings.GetXPathResultNumberValue( 1470 this.ref, js.Pointer(&ret), 1471 ) 1472 return 1473 } 1474 1475 // StringValue returns the value of property "XPathResult.stringValue". 1476 // 1477 // It returns ok=false if there is no such property. 1478 func (this XPathResult) StringValue() (ret js.String, ok bool) { 1479 ok = js.True == bindings.GetXPathResultStringValue( 1480 this.ref, js.Pointer(&ret), 1481 ) 1482 return 1483 } 1484 1485 // BooleanValue returns the value of property "XPathResult.booleanValue". 1486 // 1487 // It returns ok=false if there is no such property. 1488 func (this XPathResult) BooleanValue() (ret bool, ok bool) { 1489 ok = js.True == bindings.GetXPathResultBooleanValue( 1490 this.ref, js.Pointer(&ret), 1491 ) 1492 return 1493 } 1494 1495 // SingleNodeValue returns the value of property "XPathResult.singleNodeValue". 1496 // 1497 // It returns ok=false if there is no such property. 1498 func (this XPathResult) SingleNodeValue() (ret Node, ok bool) { 1499 ok = js.True == bindings.GetXPathResultSingleNodeValue( 1500 this.ref, js.Pointer(&ret), 1501 ) 1502 return 1503 } 1504 1505 // InvalidIteratorState returns the value of property "XPathResult.invalidIteratorState". 1506 // 1507 // It returns ok=false if there is no such property. 1508 func (this XPathResult) InvalidIteratorState() (ret bool, ok bool) { 1509 ok = js.True == bindings.GetXPathResultInvalidIteratorState( 1510 this.ref, js.Pointer(&ret), 1511 ) 1512 return 1513 } 1514 1515 // SnapshotLength returns the value of property "XPathResult.snapshotLength". 1516 // 1517 // It returns ok=false if there is no such property. 1518 func (this XPathResult) SnapshotLength() (ret uint32, ok bool) { 1519 ok = js.True == bindings.GetXPathResultSnapshotLength( 1520 this.ref, js.Pointer(&ret), 1521 ) 1522 return 1523 } 1524 1525 // HasFuncIterateNext returns true if the method "XPathResult.iterateNext" exists. 1526 func (this XPathResult) HasFuncIterateNext() bool { 1527 return js.True == bindings.HasFuncXPathResultIterateNext( 1528 this.ref, 1529 ) 1530 } 1531 1532 // FuncIterateNext returns the method "XPathResult.iterateNext". 1533 func (this XPathResult) FuncIterateNext() (fn js.Func[func() Node]) { 1534 bindings.FuncXPathResultIterateNext( 1535 this.ref, js.Pointer(&fn), 1536 ) 1537 return 1538 } 1539 1540 // IterateNext calls the method "XPathResult.iterateNext". 1541 func (this XPathResult) IterateNext() (ret Node) { 1542 bindings.CallXPathResultIterateNext( 1543 this.ref, js.Pointer(&ret), 1544 ) 1545 1546 return 1547 } 1548 1549 // TryIterateNext calls the method "XPathResult.iterateNext" 1550 // in a try/catch block and returns (_, err, ok = false) when it went through 1551 // the catch clause. 1552 func (this XPathResult) TryIterateNext() (ret Node, exception js.Any, ok bool) { 1553 ok = js.True == bindings.TryXPathResultIterateNext( 1554 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1555 ) 1556 1557 return 1558 } 1559 1560 // HasFuncSnapshotItem returns true if the method "XPathResult.snapshotItem" exists. 1561 func (this XPathResult) HasFuncSnapshotItem() bool { 1562 return js.True == bindings.HasFuncXPathResultSnapshotItem( 1563 this.ref, 1564 ) 1565 } 1566 1567 // FuncSnapshotItem returns the method "XPathResult.snapshotItem". 1568 func (this XPathResult) FuncSnapshotItem() (fn js.Func[func(index uint32) Node]) { 1569 bindings.FuncXPathResultSnapshotItem( 1570 this.ref, js.Pointer(&fn), 1571 ) 1572 return 1573 } 1574 1575 // SnapshotItem calls the method "XPathResult.snapshotItem". 1576 func (this XPathResult) SnapshotItem(index uint32) (ret Node) { 1577 bindings.CallXPathResultSnapshotItem( 1578 this.ref, js.Pointer(&ret), 1579 uint32(index), 1580 ) 1581 1582 return 1583 } 1584 1585 // TrySnapshotItem calls the method "XPathResult.snapshotItem" 1586 // in a try/catch block and returns (_, err, ok = false) when it went through 1587 // the catch clause. 1588 func (this XPathResult) TrySnapshotItem(index uint32) (ret Node, exception js.Any, ok bool) { 1589 ok = js.True == bindings.TryXPathResultSnapshotItem( 1590 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1591 uint32(index), 1592 ) 1593 1594 return 1595 } 1596 1597 type XPathExpression struct { 1598 ref js.Ref 1599 } 1600 1601 func (this XPathExpression) Once() XPathExpression { 1602 this.ref.Once() 1603 return this 1604 } 1605 1606 func (this XPathExpression) Ref() js.Ref { 1607 return this.ref 1608 } 1609 1610 func (this XPathExpression) FromRef(ref js.Ref) XPathExpression { 1611 this.ref = ref 1612 return this 1613 } 1614 1615 func (this XPathExpression) Free() { 1616 this.ref.Free() 1617 } 1618 1619 // HasFuncEvaluate returns true if the method "XPathExpression.evaluate" exists. 1620 func (this XPathExpression) HasFuncEvaluate() bool { 1621 return js.True == bindings.HasFuncXPathExpressionEvaluate( 1622 this.ref, 1623 ) 1624 } 1625 1626 // FuncEvaluate returns the method "XPathExpression.evaluate". 1627 func (this XPathExpression) FuncEvaluate() (fn js.Func[func(contextNode Node, typ uint16, result XPathResult) XPathResult]) { 1628 bindings.FuncXPathExpressionEvaluate( 1629 this.ref, js.Pointer(&fn), 1630 ) 1631 return 1632 } 1633 1634 // Evaluate calls the method "XPathExpression.evaluate". 1635 func (this XPathExpression) Evaluate(contextNode Node, typ uint16, result XPathResult) (ret XPathResult) { 1636 bindings.CallXPathExpressionEvaluate( 1637 this.ref, js.Pointer(&ret), 1638 contextNode.Ref(), 1639 uint32(typ), 1640 result.Ref(), 1641 ) 1642 1643 return 1644 } 1645 1646 // TryEvaluate calls the method "XPathExpression.evaluate" 1647 // in a try/catch block and returns (_, err, ok = false) when it went through 1648 // the catch clause. 1649 func (this XPathExpression) TryEvaluate(contextNode Node, typ uint16, result XPathResult) (ret XPathResult, exception js.Any, ok bool) { 1650 ok = js.True == bindings.TryXPathExpressionEvaluate( 1651 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1652 contextNode.Ref(), 1653 uint32(typ), 1654 result.Ref(), 1655 ) 1656 1657 return 1658 } 1659 1660 // HasFuncEvaluate1 returns true if the method "XPathExpression.evaluate" exists. 1661 func (this XPathExpression) HasFuncEvaluate1() bool { 1662 return js.True == bindings.HasFuncXPathExpressionEvaluate1( 1663 this.ref, 1664 ) 1665 } 1666 1667 // FuncEvaluate1 returns the method "XPathExpression.evaluate". 1668 func (this XPathExpression) FuncEvaluate1() (fn js.Func[func(contextNode Node, typ uint16) XPathResult]) { 1669 bindings.FuncXPathExpressionEvaluate1( 1670 this.ref, js.Pointer(&fn), 1671 ) 1672 return 1673 } 1674 1675 // Evaluate1 calls the method "XPathExpression.evaluate". 1676 func (this XPathExpression) Evaluate1(contextNode Node, typ uint16) (ret XPathResult) { 1677 bindings.CallXPathExpressionEvaluate1( 1678 this.ref, js.Pointer(&ret), 1679 contextNode.Ref(), 1680 uint32(typ), 1681 ) 1682 1683 return 1684 } 1685 1686 // TryEvaluate1 calls the method "XPathExpression.evaluate" 1687 // in a try/catch block and returns (_, err, ok = false) when it went through 1688 // the catch clause. 1689 func (this XPathExpression) TryEvaluate1(contextNode Node, typ uint16) (ret XPathResult, exception js.Any, ok bool) { 1690 ok = js.True == bindings.TryXPathExpressionEvaluate1( 1691 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1692 contextNode.Ref(), 1693 uint32(typ), 1694 ) 1695 1696 return 1697 } 1698 1699 // HasFuncEvaluate2 returns true if the method "XPathExpression.evaluate" exists. 1700 func (this XPathExpression) HasFuncEvaluate2() bool { 1701 return js.True == bindings.HasFuncXPathExpressionEvaluate2( 1702 this.ref, 1703 ) 1704 } 1705 1706 // FuncEvaluate2 returns the method "XPathExpression.evaluate". 1707 func (this XPathExpression) FuncEvaluate2() (fn js.Func[func(contextNode Node) XPathResult]) { 1708 bindings.FuncXPathExpressionEvaluate2( 1709 this.ref, js.Pointer(&fn), 1710 ) 1711 return 1712 } 1713 1714 // Evaluate2 calls the method "XPathExpression.evaluate". 1715 func (this XPathExpression) Evaluate2(contextNode Node) (ret XPathResult) { 1716 bindings.CallXPathExpressionEvaluate2( 1717 this.ref, js.Pointer(&ret), 1718 contextNode.Ref(), 1719 ) 1720 1721 return 1722 } 1723 1724 // TryEvaluate2 calls the method "XPathExpression.evaluate" 1725 // in a try/catch block and returns (_, err, ok = false) when it went through 1726 // the catch clause. 1727 func (this XPathExpression) TryEvaluate2(contextNode Node) (ret XPathResult, exception js.Any, ok bool) { 1728 ok = js.True == bindings.TryXPathExpressionEvaluate2( 1729 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1730 contextNode.Ref(), 1731 ) 1732 1733 return 1734 } 1735 1736 type XPathNSResolverFunc func(this js.Ref, prefix js.String) js.Ref 1737 1738 func (fn XPathNSResolverFunc) Register() js.Func[func(prefix js.String) js.String] { 1739 return js.RegisterCallback[func(prefix js.String) js.String]( 1740 fn, abi.FuncPCABIInternal(fn), 1741 ) 1742 } 1743 1744 func (fn XPathNSResolverFunc) DispatchCallback( 1745 targetPC uintptr, ctx *js.CallbackContext, 1746 ) { 1747 args := ctx.Args() 1748 if len(args) != 1+1 /* js this */ || 1749 targetPC != uintptr(abi.FuncPCABIInternal(fn)) { 1750 js.ThrowInvalidCallbackInvocation() 1751 } 1752 1753 if ctx.Return(fn( 1754 args[0], 1755 1756 js.String{}.FromRef(args[0+1]), 1757 )) { 1758 return 1759 } 1760 1761 js.ThrowCallbackValueNotReturned() 1762 } 1763 1764 type XPathNSResolver[T any] struct { 1765 Fn func(arg T, this js.Ref, prefix js.String) js.Ref 1766 Arg T 1767 } 1768 1769 func (cb *XPathNSResolver[T]) Register() js.Func[func(prefix js.String) js.String] { 1770 return js.RegisterCallback[func(prefix js.String) js.String]( 1771 cb, abi.FuncPCABIInternal(cb.Fn), 1772 ) 1773 } 1774 1775 func (cb *XPathNSResolver[T]) DispatchCallback( 1776 targetPC uintptr, ctx *js.CallbackContext, 1777 ) { 1778 args := ctx.Args() 1779 if len(args) != 1+1 /* js this */ || 1780 targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) { 1781 js.ThrowInvalidCallbackInvocation() 1782 } 1783 1784 if ctx.Return(cb.Fn( 1785 cb.Arg, 1786 args[0], 1787 1788 js.String{}.FromRef(args[0+1]), 1789 )) { 1790 return 1791 } 1792 1793 js.ThrowCallbackValueNotReturned() 1794 } 1795 1796 type DocumentType struct { 1797 Node 1798 } 1799 1800 func (this DocumentType) Once() DocumentType { 1801 this.ref.Once() 1802 return this 1803 } 1804 1805 func (this DocumentType) Ref() js.Ref { 1806 return this.Node.Ref() 1807 } 1808 1809 func (this DocumentType) FromRef(ref js.Ref) DocumentType { 1810 this.Node = this.Node.FromRef(ref) 1811 return this 1812 } 1813 1814 func (this DocumentType) Free() { 1815 this.ref.Free() 1816 } 1817 1818 // Name returns the value of property "DocumentType.name". 1819 // 1820 // It returns ok=false if there is no such property. 1821 func (this DocumentType) Name() (ret js.String, ok bool) { 1822 ok = js.True == bindings.GetDocumentTypeName( 1823 this.ref, js.Pointer(&ret), 1824 ) 1825 return 1826 } 1827 1828 // PublicId returns the value of property "DocumentType.publicId". 1829 // 1830 // It returns ok=false if there is no such property. 1831 func (this DocumentType) PublicId() (ret js.String, ok bool) { 1832 ok = js.True == bindings.GetDocumentTypePublicId( 1833 this.ref, js.Pointer(&ret), 1834 ) 1835 return 1836 } 1837 1838 // SystemId returns the value of property "DocumentType.systemId". 1839 // 1840 // It returns ok=false if there is no such property. 1841 func (this DocumentType) SystemId() (ret js.String, ok bool) { 1842 ok = js.True == bindings.GetDocumentTypeSystemId( 1843 this.ref, js.Pointer(&ret), 1844 ) 1845 return 1846 } 1847 1848 // HasFuncBefore returns true if the method "DocumentType.before" exists. 1849 func (this DocumentType) HasFuncBefore() bool { 1850 return js.True == bindings.HasFuncDocumentTypeBefore( 1851 this.ref, 1852 ) 1853 } 1854 1855 // FuncBefore returns the method "DocumentType.before". 1856 func (this DocumentType) FuncBefore() (fn js.Func[func(nodes ...OneOf_Node_String)]) { 1857 bindings.FuncDocumentTypeBefore( 1858 this.ref, js.Pointer(&fn), 1859 ) 1860 return 1861 } 1862 1863 // Before calls the method "DocumentType.before". 1864 func (this DocumentType) Before(nodes ...OneOf_Node_String) (ret js.Void) { 1865 bindings.CallDocumentTypeBefore( 1866 this.ref, js.Pointer(&ret), 1867 js.SliceData(nodes), 1868 js.SizeU(len(nodes)), 1869 ) 1870 1871 return 1872 } 1873 1874 // TryBefore calls the method "DocumentType.before" 1875 // in a try/catch block and returns (_, err, ok = false) when it went through 1876 // the catch clause. 1877 func (this DocumentType) TryBefore(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) { 1878 ok = js.True == bindings.TryDocumentTypeBefore( 1879 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1880 js.SliceData(nodes), 1881 js.SizeU(len(nodes)), 1882 ) 1883 1884 return 1885 } 1886 1887 // HasFuncAfter returns true if the method "DocumentType.after" exists. 1888 func (this DocumentType) HasFuncAfter() bool { 1889 return js.True == bindings.HasFuncDocumentTypeAfter( 1890 this.ref, 1891 ) 1892 } 1893 1894 // FuncAfter returns the method "DocumentType.after". 1895 func (this DocumentType) FuncAfter() (fn js.Func[func(nodes ...OneOf_Node_String)]) { 1896 bindings.FuncDocumentTypeAfter( 1897 this.ref, js.Pointer(&fn), 1898 ) 1899 return 1900 } 1901 1902 // After calls the method "DocumentType.after". 1903 func (this DocumentType) After(nodes ...OneOf_Node_String) (ret js.Void) { 1904 bindings.CallDocumentTypeAfter( 1905 this.ref, js.Pointer(&ret), 1906 js.SliceData(nodes), 1907 js.SizeU(len(nodes)), 1908 ) 1909 1910 return 1911 } 1912 1913 // TryAfter calls the method "DocumentType.after" 1914 // in a try/catch block and returns (_, err, ok = false) when it went through 1915 // the catch clause. 1916 func (this DocumentType) TryAfter(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) { 1917 ok = js.True == bindings.TryDocumentTypeAfter( 1918 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1919 js.SliceData(nodes), 1920 js.SizeU(len(nodes)), 1921 ) 1922 1923 return 1924 } 1925 1926 // HasFuncReplaceWith returns true if the method "DocumentType.replaceWith" exists. 1927 func (this DocumentType) HasFuncReplaceWith() bool { 1928 return js.True == bindings.HasFuncDocumentTypeReplaceWith( 1929 this.ref, 1930 ) 1931 } 1932 1933 // FuncReplaceWith returns the method "DocumentType.replaceWith". 1934 func (this DocumentType) FuncReplaceWith() (fn js.Func[func(nodes ...OneOf_Node_String)]) { 1935 bindings.FuncDocumentTypeReplaceWith( 1936 this.ref, js.Pointer(&fn), 1937 ) 1938 return 1939 } 1940 1941 // ReplaceWith calls the method "DocumentType.replaceWith". 1942 func (this DocumentType) ReplaceWith(nodes ...OneOf_Node_String) (ret js.Void) { 1943 bindings.CallDocumentTypeReplaceWith( 1944 this.ref, js.Pointer(&ret), 1945 js.SliceData(nodes), 1946 js.SizeU(len(nodes)), 1947 ) 1948 1949 return 1950 } 1951 1952 // TryReplaceWith calls the method "DocumentType.replaceWith" 1953 // in a try/catch block and returns (_, err, ok = false) when it went through 1954 // the catch clause. 1955 func (this DocumentType) TryReplaceWith(nodes ...OneOf_Node_String) (ret js.Void, exception js.Any, ok bool) { 1956 ok = js.True == bindings.TryDocumentTypeReplaceWith( 1957 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1958 js.SliceData(nodes), 1959 js.SizeU(len(nodes)), 1960 ) 1961 1962 return 1963 } 1964 1965 // HasFuncRemove returns true if the method "DocumentType.remove" exists. 1966 func (this DocumentType) HasFuncRemove() bool { 1967 return js.True == bindings.HasFuncDocumentTypeRemove( 1968 this.ref, 1969 ) 1970 } 1971 1972 // FuncRemove returns the method "DocumentType.remove". 1973 func (this DocumentType) FuncRemove() (fn js.Func[func()]) { 1974 bindings.FuncDocumentTypeRemove( 1975 this.ref, js.Pointer(&fn), 1976 ) 1977 return 1978 } 1979 1980 // Remove calls the method "DocumentType.remove". 1981 func (this DocumentType) Remove() (ret js.Void) { 1982 bindings.CallDocumentTypeRemove( 1983 this.ref, js.Pointer(&ret), 1984 ) 1985 1986 return 1987 } 1988 1989 // TryRemove calls the method "DocumentType.remove" 1990 // in a try/catch block and returns (_, err, ok = false) when it went through 1991 // the catch clause. 1992 func (this DocumentType) TryRemove() (ret js.Void, exception js.Any, ok bool) { 1993 ok = js.True == bindings.TryDocumentTypeRemove( 1994 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1995 ) 1996 1997 return 1998 } 1999 2000 type XMLDocument struct { 2001 Document 2002 } 2003 2004 func (this XMLDocument) Once() XMLDocument { 2005 this.ref.Once() 2006 return this 2007 } 2008 2009 func (this XMLDocument) Ref() js.Ref { 2010 return this.Document.Ref() 2011 } 2012 2013 func (this XMLDocument) FromRef(ref js.Ref) XMLDocument { 2014 this.Document = this.Document.FromRef(ref) 2015 return this 2016 } 2017 2018 func (this XMLDocument) Free() { 2019 this.ref.Free() 2020 } 2021 2022 type DOMImplementation struct { 2023 ref js.Ref 2024 } 2025 2026 func (this DOMImplementation) Once() DOMImplementation { 2027 this.ref.Once() 2028 return this 2029 } 2030 2031 func (this DOMImplementation) Ref() js.Ref { 2032 return this.ref 2033 } 2034 2035 func (this DOMImplementation) FromRef(ref js.Ref) DOMImplementation { 2036 this.ref = ref 2037 return this 2038 } 2039 2040 func (this DOMImplementation) Free() { 2041 this.ref.Free() 2042 } 2043 2044 // HasFuncCreateDocumentType returns true if the method "DOMImplementation.createDocumentType" exists. 2045 func (this DOMImplementation) HasFuncCreateDocumentType() bool { 2046 return js.True == bindings.HasFuncDOMImplementationCreateDocumentType( 2047 this.ref, 2048 ) 2049 } 2050 2051 // FuncCreateDocumentType returns the method "DOMImplementation.createDocumentType". 2052 func (this DOMImplementation) FuncCreateDocumentType() (fn js.Func[func(qualifiedName js.String, publicId js.String, systemId js.String) DocumentType]) { 2053 bindings.FuncDOMImplementationCreateDocumentType( 2054 this.ref, js.Pointer(&fn), 2055 ) 2056 return 2057 } 2058 2059 // CreateDocumentType calls the method "DOMImplementation.createDocumentType". 2060 func (this DOMImplementation) CreateDocumentType(qualifiedName js.String, publicId js.String, systemId js.String) (ret DocumentType) { 2061 bindings.CallDOMImplementationCreateDocumentType( 2062 this.ref, js.Pointer(&ret), 2063 qualifiedName.Ref(), 2064 publicId.Ref(), 2065 systemId.Ref(), 2066 ) 2067 2068 return 2069 } 2070 2071 // TryCreateDocumentType calls the method "DOMImplementation.createDocumentType" 2072 // in a try/catch block and returns (_, err, ok = false) when it went through 2073 // the catch clause. 2074 func (this DOMImplementation) TryCreateDocumentType(qualifiedName js.String, publicId js.String, systemId js.String) (ret DocumentType, exception js.Any, ok bool) { 2075 ok = js.True == bindings.TryDOMImplementationCreateDocumentType( 2076 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2077 qualifiedName.Ref(), 2078 publicId.Ref(), 2079 systemId.Ref(), 2080 ) 2081 2082 return 2083 } 2084 2085 // HasFuncCreateDocument returns true if the method "DOMImplementation.createDocument" exists. 2086 func (this DOMImplementation) HasFuncCreateDocument() bool { 2087 return js.True == bindings.HasFuncDOMImplementationCreateDocument( 2088 this.ref, 2089 ) 2090 } 2091 2092 // FuncCreateDocument returns the method "DOMImplementation.createDocument". 2093 func (this DOMImplementation) FuncCreateDocument() (fn js.Func[func(namespace js.String, qualifiedName js.String, doctype DocumentType) XMLDocument]) { 2094 bindings.FuncDOMImplementationCreateDocument( 2095 this.ref, js.Pointer(&fn), 2096 ) 2097 return 2098 } 2099 2100 // CreateDocument calls the method "DOMImplementation.createDocument". 2101 func (this DOMImplementation) CreateDocument(namespace js.String, qualifiedName js.String, doctype DocumentType) (ret XMLDocument) { 2102 bindings.CallDOMImplementationCreateDocument( 2103 this.ref, js.Pointer(&ret), 2104 namespace.Ref(), 2105 qualifiedName.Ref(), 2106 doctype.Ref(), 2107 ) 2108 2109 return 2110 } 2111 2112 // TryCreateDocument calls the method "DOMImplementation.createDocument" 2113 // in a try/catch block and returns (_, err, ok = false) when it went through 2114 // the catch clause. 2115 func (this DOMImplementation) TryCreateDocument(namespace js.String, qualifiedName js.String, doctype DocumentType) (ret XMLDocument, exception js.Any, ok bool) { 2116 ok = js.True == bindings.TryDOMImplementationCreateDocument( 2117 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2118 namespace.Ref(), 2119 qualifiedName.Ref(), 2120 doctype.Ref(), 2121 ) 2122 2123 return 2124 } 2125 2126 // HasFuncCreateDocument1 returns true if the method "DOMImplementation.createDocument" exists. 2127 func (this DOMImplementation) HasFuncCreateDocument1() bool { 2128 return js.True == bindings.HasFuncDOMImplementationCreateDocument1( 2129 this.ref, 2130 ) 2131 } 2132 2133 // FuncCreateDocument1 returns the method "DOMImplementation.createDocument". 2134 func (this DOMImplementation) FuncCreateDocument1() (fn js.Func[func(namespace js.String, qualifiedName js.String) XMLDocument]) { 2135 bindings.FuncDOMImplementationCreateDocument1( 2136 this.ref, js.Pointer(&fn), 2137 ) 2138 return 2139 } 2140 2141 // CreateDocument1 calls the method "DOMImplementation.createDocument". 2142 func (this DOMImplementation) CreateDocument1(namespace js.String, qualifiedName js.String) (ret XMLDocument) { 2143 bindings.CallDOMImplementationCreateDocument1( 2144 this.ref, js.Pointer(&ret), 2145 namespace.Ref(), 2146 qualifiedName.Ref(), 2147 ) 2148 2149 return 2150 } 2151 2152 // TryCreateDocument1 calls the method "DOMImplementation.createDocument" 2153 // in a try/catch block and returns (_, err, ok = false) when it went through 2154 // the catch clause. 2155 func (this DOMImplementation) TryCreateDocument1(namespace js.String, qualifiedName js.String) (ret XMLDocument, exception js.Any, ok bool) { 2156 ok = js.True == bindings.TryDOMImplementationCreateDocument1( 2157 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2158 namespace.Ref(), 2159 qualifiedName.Ref(), 2160 ) 2161 2162 return 2163 } 2164 2165 // HasFuncCreateHTMLDocument returns true if the method "DOMImplementation.createHTMLDocument" exists. 2166 func (this DOMImplementation) HasFuncCreateHTMLDocument() bool { 2167 return js.True == bindings.HasFuncDOMImplementationCreateHTMLDocument( 2168 this.ref, 2169 ) 2170 } 2171 2172 // FuncCreateHTMLDocument returns the method "DOMImplementation.createHTMLDocument". 2173 func (this DOMImplementation) FuncCreateHTMLDocument() (fn js.Func[func(title js.String) Document]) { 2174 bindings.FuncDOMImplementationCreateHTMLDocument( 2175 this.ref, js.Pointer(&fn), 2176 ) 2177 return 2178 } 2179 2180 // CreateHTMLDocument calls the method "DOMImplementation.createHTMLDocument". 2181 func (this DOMImplementation) CreateHTMLDocument(title js.String) (ret Document) { 2182 bindings.CallDOMImplementationCreateHTMLDocument( 2183 this.ref, js.Pointer(&ret), 2184 title.Ref(), 2185 ) 2186 2187 return 2188 } 2189 2190 // TryCreateHTMLDocument calls the method "DOMImplementation.createHTMLDocument" 2191 // in a try/catch block and returns (_, err, ok = false) when it went through 2192 // the catch clause. 2193 func (this DOMImplementation) TryCreateHTMLDocument(title js.String) (ret Document, exception js.Any, ok bool) { 2194 ok = js.True == bindings.TryDOMImplementationCreateHTMLDocument( 2195 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2196 title.Ref(), 2197 ) 2198 2199 return 2200 } 2201 2202 // HasFuncCreateHTMLDocument1 returns true if the method "DOMImplementation.createHTMLDocument" exists. 2203 func (this DOMImplementation) HasFuncCreateHTMLDocument1() bool { 2204 return js.True == bindings.HasFuncDOMImplementationCreateHTMLDocument1( 2205 this.ref, 2206 ) 2207 } 2208 2209 // FuncCreateHTMLDocument1 returns the method "DOMImplementation.createHTMLDocument". 2210 func (this DOMImplementation) FuncCreateHTMLDocument1() (fn js.Func[func() Document]) { 2211 bindings.FuncDOMImplementationCreateHTMLDocument1( 2212 this.ref, js.Pointer(&fn), 2213 ) 2214 return 2215 } 2216 2217 // CreateHTMLDocument1 calls the method "DOMImplementation.createHTMLDocument". 2218 func (this DOMImplementation) CreateHTMLDocument1() (ret Document) { 2219 bindings.CallDOMImplementationCreateHTMLDocument1( 2220 this.ref, js.Pointer(&ret), 2221 ) 2222 2223 return 2224 } 2225 2226 // TryCreateHTMLDocument1 calls the method "DOMImplementation.createHTMLDocument" 2227 // in a try/catch block and returns (_, err, ok = false) when it went through 2228 // the catch clause. 2229 func (this DOMImplementation) TryCreateHTMLDocument1() (ret Document, exception js.Any, ok bool) { 2230 ok = js.True == bindings.TryDOMImplementationCreateHTMLDocument1( 2231 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2232 ) 2233 2234 return 2235 } 2236 2237 // HasFuncHasFeature returns true if the method "DOMImplementation.hasFeature" exists. 2238 func (this DOMImplementation) HasFuncHasFeature() bool { 2239 return js.True == bindings.HasFuncDOMImplementationHasFeature( 2240 this.ref, 2241 ) 2242 } 2243 2244 // FuncHasFeature returns the method "DOMImplementation.hasFeature". 2245 func (this DOMImplementation) FuncHasFeature() (fn js.Func[func() bool]) { 2246 bindings.FuncDOMImplementationHasFeature( 2247 this.ref, js.Pointer(&fn), 2248 ) 2249 return 2250 } 2251 2252 // HasFeature calls the method "DOMImplementation.hasFeature". 2253 func (this DOMImplementation) HasFeature() (ret bool) { 2254 bindings.CallDOMImplementationHasFeature( 2255 this.ref, js.Pointer(&ret), 2256 ) 2257 2258 return 2259 } 2260 2261 // TryHasFeature calls the method "DOMImplementation.hasFeature" 2262 // in a try/catch block and returns (_, err, ok = false) when it went through 2263 // the catch clause. 2264 func (this DOMImplementation) TryHasFeature() (ret bool, exception js.Any, ok bool) { 2265 ok = js.True == bindings.TryDOMImplementationHasFeature( 2266 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2267 ) 2268 2269 return 2270 } 2271 2272 type FragmentDirective struct { 2273 ref js.Ref 2274 } 2275 2276 func (this FragmentDirective) Once() FragmentDirective { 2277 this.ref.Once() 2278 return this 2279 } 2280 2281 func (this FragmentDirective) Ref() js.Ref { 2282 return this.ref 2283 } 2284 2285 func (this FragmentDirective) FromRef(ref js.Ref) FragmentDirective { 2286 this.ref = ref 2287 return this 2288 } 2289 2290 func (this FragmentDirective) Free() { 2291 this.ref.Free() 2292 } 2293 2294 type PermissionsPolicy struct { 2295 ref js.Ref 2296 } 2297 2298 func (this PermissionsPolicy) Once() PermissionsPolicy { 2299 this.ref.Once() 2300 return this 2301 } 2302 2303 func (this PermissionsPolicy) Ref() js.Ref { 2304 return this.ref 2305 } 2306 2307 func (this PermissionsPolicy) FromRef(ref js.Ref) PermissionsPolicy { 2308 this.ref = ref 2309 return this 2310 } 2311 2312 func (this PermissionsPolicy) Free() { 2313 this.ref.Free() 2314 } 2315 2316 // HasFuncAllowsFeature returns true if the method "PermissionsPolicy.allowsFeature" exists. 2317 func (this PermissionsPolicy) HasFuncAllowsFeature() bool { 2318 return js.True == bindings.HasFuncPermissionsPolicyAllowsFeature( 2319 this.ref, 2320 ) 2321 } 2322 2323 // FuncAllowsFeature returns the method "PermissionsPolicy.allowsFeature". 2324 func (this PermissionsPolicy) FuncAllowsFeature() (fn js.Func[func(feature js.String, origin js.String) bool]) { 2325 bindings.FuncPermissionsPolicyAllowsFeature( 2326 this.ref, js.Pointer(&fn), 2327 ) 2328 return 2329 } 2330 2331 // AllowsFeature calls the method "PermissionsPolicy.allowsFeature". 2332 func (this PermissionsPolicy) AllowsFeature(feature js.String, origin js.String) (ret bool) { 2333 bindings.CallPermissionsPolicyAllowsFeature( 2334 this.ref, js.Pointer(&ret), 2335 feature.Ref(), 2336 origin.Ref(), 2337 ) 2338 2339 return 2340 } 2341 2342 // TryAllowsFeature calls the method "PermissionsPolicy.allowsFeature" 2343 // in a try/catch block and returns (_, err, ok = false) when it went through 2344 // the catch clause. 2345 func (this PermissionsPolicy) TryAllowsFeature(feature js.String, origin js.String) (ret bool, exception js.Any, ok bool) { 2346 ok = js.True == bindings.TryPermissionsPolicyAllowsFeature( 2347 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2348 feature.Ref(), 2349 origin.Ref(), 2350 ) 2351 2352 return 2353 } 2354 2355 // HasFuncAllowsFeature1 returns true if the method "PermissionsPolicy.allowsFeature" exists. 2356 func (this PermissionsPolicy) HasFuncAllowsFeature1() bool { 2357 return js.True == bindings.HasFuncPermissionsPolicyAllowsFeature1( 2358 this.ref, 2359 ) 2360 } 2361 2362 // FuncAllowsFeature1 returns the method "PermissionsPolicy.allowsFeature". 2363 func (this PermissionsPolicy) FuncAllowsFeature1() (fn js.Func[func(feature js.String) bool]) { 2364 bindings.FuncPermissionsPolicyAllowsFeature1( 2365 this.ref, js.Pointer(&fn), 2366 ) 2367 return 2368 } 2369 2370 // AllowsFeature1 calls the method "PermissionsPolicy.allowsFeature". 2371 func (this PermissionsPolicy) AllowsFeature1(feature js.String) (ret bool) { 2372 bindings.CallPermissionsPolicyAllowsFeature1( 2373 this.ref, js.Pointer(&ret), 2374 feature.Ref(), 2375 ) 2376 2377 return 2378 } 2379 2380 // TryAllowsFeature1 calls the method "PermissionsPolicy.allowsFeature" 2381 // in a try/catch block and returns (_, err, ok = false) when it went through 2382 // the catch clause. 2383 func (this PermissionsPolicy) TryAllowsFeature1(feature js.String) (ret bool, exception js.Any, ok bool) { 2384 ok = js.True == bindings.TryPermissionsPolicyAllowsFeature1( 2385 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2386 feature.Ref(), 2387 ) 2388 2389 return 2390 } 2391 2392 // HasFuncFeatures returns true if the method "PermissionsPolicy.features" exists. 2393 func (this PermissionsPolicy) HasFuncFeatures() bool { 2394 return js.True == bindings.HasFuncPermissionsPolicyFeatures( 2395 this.ref, 2396 ) 2397 } 2398 2399 // FuncFeatures returns the method "PermissionsPolicy.features". 2400 func (this PermissionsPolicy) FuncFeatures() (fn js.Func[func() js.Array[js.String]]) { 2401 bindings.FuncPermissionsPolicyFeatures( 2402 this.ref, js.Pointer(&fn), 2403 ) 2404 return 2405 } 2406 2407 // Features calls the method "PermissionsPolicy.features". 2408 func (this PermissionsPolicy) Features() (ret js.Array[js.String]) { 2409 bindings.CallPermissionsPolicyFeatures( 2410 this.ref, js.Pointer(&ret), 2411 ) 2412 2413 return 2414 } 2415 2416 // TryFeatures calls the method "PermissionsPolicy.features" 2417 // in a try/catch block and returns (_, err, ok = false) when it went through 2418 // the catch clause. 2419 func (this PermissionsPolicy) TryFeatures() (ret js.Array[js.String], exception js.Any, ok bool) { 2420 ok = js.True == bindings.TryPermissionsPolicyFeatures( 2421 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2422 ) 2423 2424 return 2425 } 2426 2427 // HasFuncAllowedFeatures returns true if the method "PermissionsPolicy.allowedFeatures" exists. 2428 func (this PermissionsPolicy) HasFuncAllowedFeatures() bool { 2429 return js.True == bindings.HasFuncPermissionsPolicyAllowedFeatures( 2430 this.ref, 2431 ) 2432 } 2433 2434 // FuncAllowedFeatures returns the method "PermissionsPolicy.allowedFeatures". 2435 func (this PermissionsPolicy) FuncAllowedFeatures() (fn js.Func[func() js.Array[js.String]]) { 2436 bindings.FuncPermissionsPolicyAllowedFeatures( 2437 this.ref, js.Pointer(&fn), 2438 ) 2439 return 2440 } 2441 2442 // AllowedFeatures calls the method "PermissionsPolicy.allowedFeatures". 2443 func (this PermissionsPolicy) AllowedFeatures() (ret js.Array[js.String]) { 2444 bindings.CallPermissionsPolicyAllowedFeatures( 2445 this.ref, js.Pointer(&ret), 2446 ) 2447 2448 return 2449 } 2450 2451 // TryAllowedFeatures calls the method "PermissionsPolicy.allowedFeatures" 2452 // in a try/catch block and returns (_, err, ok = false) when it went through 2453 // the catch clause. 2454 func (this PermissionsPolicy) TryAllowedFeatures() (ret js.Array[js.String], exception js.Any, ok bool) { 2455 ok = js.True == bindings.TryPermissionsPolicyAllowedFeatures( 2456 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2457 ) 2458 2459 return 2460 } 2461 2462 // HasFuncGetAllowlistForFeature returns true if the method "PermissionsPolicy.getAllowlistForFeature" exists. 2463 func (this PermissionsPolicy) HasFuncGetAllowlistForFeature() bool { 2464 return js.True == bindings.HasFuncPermissionsPolicyGetAllowlistForFeature( 2465 this.ref, 2466 ) 2467 } 2468 2469 // FuncGetAllowlistForFeature returns the method "PermissionsPolicy.getAllowlistForFeature". 2470 func (this PermissionsPolicy) FuncGetAllowlistForFeature() (fn js.Func[func(feature js.String) js.Array[js.String]]) { 2471 bindings.FuncPermissionsPolicyGetAllowlistForFeature( 2472 this.ref, js.Pointer(&fn), 2473 ) 2474 return 2475 } 2476 2477 // GetAllowlistForFeature calls the method "PermissionsPolicy.getAllowlistForFeature". 2478 func (this PermissionsPolicy) GetAllowlistForFeature(feature js.String) (ret js.Array[js.String]) { 2479 bindings.CallPermissionsPolicyGetAllowlistForFeature( 2480 this.ref, js.Pointer(&ret), 2481 feature.Ref(), 2482 ) 2483 2484 return 2485 } 2486 2487 // TryGetAllowlistForFeature calls the method "PermissionsPolicy.getAllowlistForFeature" 2488 // in a try/catch block and returns (_, err, ok = false) when it went through 2489 // the catch clause. 2490 func (this PermissionsPolicy) TryGetAllowlistForFeature(feature js.String) (ret js.Array[js.String], exception js.Any, ok bool) { 2491 ok = js.True == bindings.TryPermissionsPolicyGetAllowlistForFeature( 2492 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2493 feature.Ref(), 2494 ) 2495 2496 return 2497 } 2498 2499 type DocumentTimelineOptions struct { 2500 // OriginTime is "DocumentTimelineOptions.originTime" 2501 // 2502 // Optional, defaults to 0. 2503 // 2504 // NOTE: FFI_USE_OriginTime MUST be set to true to make this field effective. 2505 OriginTime DOMHighResTimeStamp 2506 2507 FFI_USE_OriginTime bool // for OriginTime. 2508 2509 FFI_USE bool 2510 } 2511 2512 // FromRef calls UpdateFrom and returns a DocumentTimelineOptions with all fields set. 2513 func (p DocumentTimelineOptions) FromRef(ref js.Ref) DocumentTimelineOptions { 2514 p.UpdateFrom(ref) 2515 return p 2516 } 2517 2518 // New creates a new DocumentTimelineOptions in the application heap. 2519 func (p DocumentTimelineOptions) New() js.Ref { 2520 return bindings.DocumentTimelineOptionsJSLoad( 2521 js.Pointer(&p), js.True, 0, 2522 ) 2523 } 2524 2525 // UpdateFrom copies value of all fields of the heap object to p. 2526 func (p *DocumentTimelineOptions) UpdateFrom(ref js.Ref) { 2527 bindings.DocumentTimelineOptionsJSStore( 2528 js.Pointer(p), ref, 2529 ) 2530 } 2531 2532 // Update writes all fields of the p to the heap object referenced by ref. 2533 func (p *DocumentTimelineOptions) Update(ref js.Ref) { 2534 bindings.DocumentTimelineOptionsJSLoad( 2535 js.Pointer(p), js.False, ref, 2536 ) 2537 } 2538 2539 // FreeMembers frees fields with heap reference, if recursive is true 2540 // free all heap references reachable from p. 2541 func (p *DocumentTimelineOptions) FreeMembers(recursive bool) { 2542 } 2543 2544 func NewDocumentTimeline(options DocumentTimelineOptions) (ret DocumentTimeline) { 2545 ret.ref = bindings.NewDocumentTimelineByDocumentTimeline( 2546 js.Pointer(&options)) 2547 return 2548 } 2549 2550 func NewDocumentTimelineByDocumentTimeline1() (ret DocumentTimeline) { 2551 ret.ref = bindings.NewDocumentTimelineByDocumentTimeline1() 2552 return 2553 } 2554 2555 type DocumentTimeline struct { 2556 AnimationTimeline 2557 } 2558 2559 func (this DocumentTimeline) Once() DocumentTimeline { 2560 this.ref.Once() 2561 return this 2562 } 2563 2564 func (this DocumentTimeline) Ref() js.Ref { 2565 return this.AnimationTimeline.Ref() 2566 } 2567 2568 func (this DocumentTimeline) FromRef(ref js.Ref) DocumentTimeline { 2569 this.AnimationTimeline = this.AnimationTimeline.FromRef(ref) 2570 return this 2571 } 2572 2573 func (this DocumentTimeline) Free() { 2574 this.ref.Free() 2575 } 2576 2577 type NamedFlowMap struct { 2578 ref js.Ref 2579 } 2580 2581 func (this NamedFlowMap) Once() NamedFlowMap { 2582 this.ref.Once() 2583 return this 2584 } 2585 2586 func (this NamedFlowMap) Ref() js.Ref { 2587 return this.ref 2588 } 2589 2590 func (this NamedFlowMap) FromRef(ref js.Ref) NamedFlowMap { 2591 this.ref = ref 2592 return this 2593 } 2594 2595 func (this NamedFlowMap) Free() { 2596 this.ref.Free() 2597 } 2598 2599 type FocusOptions struct { 2600 // PreventScroll is "FocusOptions.preventScroll" 2601 // 2602 // Optional, defaults to false. 2603 // 2604 // NOTE: FFI_USE_PreventScroll MUST be set to true to make this field effective. 2605 PreventScroll bool 2606 // FocusVisible is "FocusOptions.focusVisible" 2607 // 2608 // Optional 2609 // 2610 // NOTE: FFI_USE_FocusVisible MUST be set to true to make this field effective. 2611 FocusVisible bool 2612 2613 FFI_USE_PreventScroll bool // for PreventScroll. 2614 FFI_USE_FocusVisible bool // for FocusVisible. 2615 2616 FFI_USE bool 2617 } 2618 2619 // FromRef calls UpdateFrom and returns a FocusOptions with all fields set. 2620 func (p FocusOptions) FromRef(ref js.Ref) FocusOptions { 2621 p.UpdateFrom(ref) 2622 return p 2623 } 2624 2625 // New creates a new FocusOptions in the application heap. 2626 func (p FocusOptions) New() js.Ref { 2627 return bindings.FocusOptionsJSLoad( 2628 js.Pointer(&p), js.True, 0, 2629 ) 2630 } 2631 2632 // UpdateFrom copies value of all fields of the heap object to p. 2633 func (p *FocusOptions) UpdateFrom(ref js.Ref) { 2634 bindings.FocusOptionsJSStore( 2635 js.Pointer(p), ref, 2636 ) 2637 } 2638 2639 // Update writes all fields of the p to the heap object referenced by ref. 2640 func (p *FocusOptions) Update(ref js.Ref) { 2641 bindings.FocusOptionsJSLoad( 2642 js.Pointer(p), js.False, ref, 2643 ) 2644 } 2645 2646 // FreeMembers frees fields with heap reference, if recursive is true 2647 // free all heap references reachable from p. 2648 func (p *FocusOptions) FreeMembers(recursive bool) { 2649 } 2650 2651 type SVGAnimatedString struct { 2652 ref js.Ref 2653 } 2654 2655 func (this SVGAnimatedString) Once() SVGAnimatedString { 2656 this.ref.Once() 2657 return this 2658 } 2659 2660 func (this SVGAnimatedString) Ref() js.Ref { 2661 return this.ref 2662 } 2663 2664 func (this SVGAnimatedString) FromRef(ref js.Ref) SVGAnimatedString { 2665 this.ref = ref 2666 return this 2667 } 2668 2669 func (this SVGAnimatedString) Free() { 2670 this.ref.Free() 2671 } 2672 2673 // BaseVal returns the value of property "SVGAnimatedString.baseVal". 2674 // 2675 // It returns ok=false if there is no such property. 2676 func (this SVGAnimatedString) BaseVal() (ret js.String, ok bool) { 2677 ok = js.True == bindings.GetSVGAnimatedStringBaseVal( 2678 this.ref, js.Pointer(&ret), 2679 ) 2680 return 2681 } 2682 2683 // SetBaseVal sets the value of property "SVGAnimatedString.baseVal" to val. 2684 // 2685 // It returns false if the property cannot be set. 2686 func (this SVGAnimatedString) SetBaseVal(val js.String) bool { 2687 return js.True == bindings.SetSVGAnimatedStringBaseVal( 2688 this.ref, 2689 val.Ref(), 2690 ) 2691 } 2692 2693 // AnimVal returns the value of property "SVGAnimatedString.animVal". 2694 // 2695 // It returns ok=false if there is no such property. 2696 func (this SVGAnimatedString) AnimVal() (ret js.String, ok bool) { 2697 ok = js.True == bindings.GetSVGAnimatedStringAnimVal( 2698 this.ref, js.Pointer(&ret), 2699 ) 2700 return 2701 } 2702 2703 type CSSStyleDeclaration struct { 2704 ref js.Ref 2705 } 2706 2707 func (this CSSStyleDeclaration) Once() CSSStyleDeclaration { 2708 this.ref.Once() 2709 return this 2710 } 2711 2712 func (this CSSStyleDeclaration) Ref() js.Ref { 2713 return this.ref 2714 } 2715 2716 func (this CSSStyleDeclaration) FromRef(ref js.Ref) CSSStyleDeclaration { 2717 this.ref = ref 2718 return this 2719 } 2720 2721 func (this CSSStyleDeclaration) Free() { 2722 this.ref.Free() 2723 } 2724 2725 // CssText returns the value of property "CSSStyleDeclaration.cssText". 2726 // 2727 // It returns ok=false if there is no such property. 2728 func (this CSSStyleDeclaration) CssText() (ret js.String, ok bool) { 2729 ok = js.True == bindings.GetCSSStyleDeclarationCssText( 2730 this.ref, js.Pointer(&ret), 2731 ) 2732 return 2733 } 2734 2735 // SetCssText sets the value of property "CSSStyleDeclaration.cssText" to val. 2736 // 2737 // It returns false if the property cannot be set. 2738 func (this CSSStyleDeclaration) SetCssText(val js.String) bool { 2739 return js.True == bindings.SetCSSStyleDeclarationCssText( 2740 this.ref, 2741 val.Ref(), 2742 ) 2743 } 2744 2745 // Length returns the value of property "CSSStyleDeclaration.length". 2746 // 2747 // It returns ok=false if there is no such property. 2748 func (this CSSStyleDeclaration) Length() (ret uint32, ok bool) { 2749 ok = js.True == bindings.GetCSSStyleDeclarationLength( 2750 this.ref, js.Pointer(&ret), 2751 ) 2752 return 2753 } 2754 2755 // ParentRule returns the value of property "CSSStyleDeclaration.parentRule". 2756 // 2757 // It returns ok=false if there is no such property. 2758 func (this CSSStyleDeclaration) ParentRule() (ret CSSRule, ok bool) { 2759 ok = js.True == bindings.GetCSSStyleDeclarationParentRule( 2760 this.ref, js.Pointer(&ret), 2761 ) 2762 return 2763 } 2764 2765 // CssFloat returns the value of property "CSSStyleDeclaration.cssFloat". 2766 // 2767 // It returns ok=false if there is no such property. 2768 func (this CSSStyleDeclaration) CssFloat() (ret js.String, ok bool) { 2769 ok = js.True == bindings.GetCSSStyleDeclarationCssFloat( 2770 this.ref, js.Pointer(&ret), 2771 ) 2772 return 2773 } 2774 2775 // SetCssFloat sets the value of property "CSSStyleDeclaration.cssFloat" to val. 2776 // 2777 // It returns false if the property cannot be set. 2778 func (this CSSStyleDeclaration) SetCssFloat(val js.String) bool { 2779 return js.True == bindings.SetCSSStyleDeclarationCssFloat( 2780 this.ref, 2781 val.Ref(), 2782 ) 2783 } 2784 2785 // HasFuncItem returns true if the method "CSSStyleDeclaration.item" exists. 2786 func (this CSSStyleDeclaration) HasFuncItem() bool { 2787 return js.True == bindings.HasFuncCSSStyleDeclarationItem( 2788 this.ref, 2789 ) 2790 } 2791 2792 // FuncItem returns the method "CSSStyleDeclaration.item". 2793 func (this CSSStyleDeclaration) FuncItem() (fn js.Func[func(index uint32) js.String]) { 2794 bindings.FuncCSSStyleDeclarationItem( 2795 this.ref, js.Pointer(&fn), 2796 ) 2797 return 2798 } 2799 2800 // Item calls the method "CSSStyleDeclaration.item". 2801 func (this CSSStyleDeclaration) Item(index uint32) (ret js.String) { 2802 bindings.CallCSSStyleDeclarationItem( 2803 this.ref, js.Pointer(&ret), 2804 uint32(index), 2805 ) 2806 2807 return 2808 } 2809 2810 // TryItem calls the method "CSSStyleDeclaration.item" 2811 // in a try/catch block and returns (_, err, ok = false) when it went through 2812 // the catch clause. 2813 func (this CSSStyleDeclaration) TryItem(index uint32) (ret js.String, exception js.Any, ok bool) { 2814 ok = js.True == bindings.TryCSSStyleDeclarationItem( 2815 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2816 uint32(index), 2817 ) 2818 2819 return 2820 } 2821 2822 // HasFuncGetPropertyValue returns true if the method "CSSStyleDeclaration.getPropertyValue" exists. 2823 func (this CSSStyleDeclaration) HasFuncGetPropertyValue() bool { 2824 return js.True == bindings.HasFuncCSSStyleDeclarationGetPropertyValue( 2825 this.ref, 2826 ) 2827 } 2828 2829 // FuncGetPropertyValue returns the method "CSSStyleDeclaration.getPropertyValue". 2830 func (this CSSStyleDeclaration) FuncGetPropertyValue() (fn js.Func[func(property js.String) js.String]) { 2831 bindings.FuncCSSStyleDeclarationGetPropertyValue( 2832 this.ref, js.Pointer(&fn), 2833 ) 2834 return 2835 } 2836 2837 // GetPropertyValue calls the method "CSSStyleDeclaration.getPropertyValue". 2838 func (this CSSStyleDeclaration) GetPropertyValue(property js.String) (ret js.String) { 2839 bindings.CallCSSStyleDeclarationGetPropertyValue( 2840 this.ref, js.Pointer(&ret), 2841 property.Ref(), 2842 ) 2843 2844 return 2845 } 2846 2847 // TryGetPropertyValue calls the method "CSSStyleDeclaration.getPropertyValue" 2848 // in a try/catch block and returns (_, err, ok = false) when it went through 2849 // the catch clause. 2850 func (this CSSStyleDeclaration) TryGetPropertyValue(property js.String) (ret js.String, exception js.Any, ok bool) { 2851 ok = js.True == bindings.TryCSSStyleDeclarationGetPropertyValue( 2852 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2853 property.Ref(), 2854 ) 2855 2856 return 2857 } 2858 2859 // HasFuncGetPropertyPriority returns true if the method "CSSStyleDeclaration.getPropertyPriority" exists. 2860 func (this CSSStyleDeclaration) HasFuncGetPropertyPriority() bool { 2861 return js.True == bindings.HasFuncCSSStyleDeclarationGetPropertyPriority( 2862 this.ref, 2863 ) 2864 } 2865 2866 // FuncGetPropertyPriority returns the method "CSSStyleDeclaration.getPropertyPriority". 2867 func (this CSSStyleDeclaration) FuncGetPropertyPriority() (fn js.Func[func(property js.String) js.String]) { 2868 bindings.FuncCSSStyleDeclarationGetPropertyPriority( 2869 this.ref, js.Pointer(&fn), 2870 ) 2871 return 2872 } 2873 2874 // GetPropertyPriority calls the method "CSSStyleDeclaration.getPropertyPriority". 2875 func (this CSSStyleDeclaration) GetPropertyPriority(property js.String) (ret js.String) { 2876 bindings.CallCSSStyleDeclarationGetPropertyPriority( 2877 this.ref, js.Pointer(&ret), 2878 property.Ref(), 2879 ) 2880 2881 return 2882 } 2883 2884 // TryGetPropertyPriority calls the method "CSSStyleDeclaration.getPropertyPriority" 2885 // in a try/catch block and returns (_, err, ok = false) when it went through 2886 // the catch clause. 2887 func (this CSSStyleDeclaration) TryGetPropertyPriority(property js.String) (ret js.String, exception js.Any, ok bool) { 2888 ok = js.True == bindings.TryCSSStyleDeclarationGetPropertyPriority( 2889 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2890 property.Ref(), 2891 ) 2892 2893 return 2894 } 2895 2896 // HasFuncSetProperty returns true if the method "CSSStyleDeclaration.setProperty" exists. 2897 func (this CSSStyleDeclaration) HasFuncSetProperty() bool { 2898 return js.True == bindings.HasFuncCSSStyleDeclarationSetProperty( 2899 this.ref, 2900 ) 2901 } 2902 2903 // FuncSetProperty returns the method "CSSStyleDeclaration.setProperty". 2904 func (this CSSStyleDeclaration) FuncSetProperty() (fn js.Func[func(property js.String, value js.String, priority js.String)]) { 2905 bindings.FuncCSSStyleDeclarationSetProperty( 2906 this.ref, js.Pointer(&fn), 2907 ) 2908 return 2909 } 2910 2911 // SetProperty calls the method "CSSStyleDeclaration.setProperty". 2912 func (this CSSStyleDeclaration) SetProperty(property js.String, value js.String, priority js.String) (ret js.Void) { 2913 bindings.CallCSSStyleDeclarationSetProperty( 2914 this.ref, js.Pointer(&ret), 2915 property.Ref(), 2916 value.Ref(), 2917 priority.Ref(), 2918 ) 2919 2920 return 2921 } 2922 2923 // TrySetProperty calls the method "CSSStyleDeclaration.setProperty" 2924 // in a try/catch block and returns (_, err, ok = false) when it went through 2925 // the catch clause. 2926 func (this CSSStyleDeclaration) TrySetProperty(property js.String, value js.String, priority js.String) (ret js.Void, exception js.Any, ok bool) { 2927 ok = js.True == bindings.TryCSSStyleDeclarationSetProperty( 2928 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2929 property.Ref(), 2930 value.Ref(), 2931 priority.Ref(), 2932 ) 2933 2934 return 2935 } 2936 2937 // HasFuncSetProperty1 returns true if the method "CSSStyleDeclaration.setProperty" exists. 2938 func (this CSSStyleDeclaration) HasFuncSetProperty1() bool { 2939 return js.True == bindings.HasFuncCSSStyleDeclarationSetProperty1( 2940 this.ref, 2941 ) 2942 } 2943 2944 // FuncSetProperty1 returns the method "CSSStyleDeclaration.setProperty". 2945 func (this CSSStyleDeclaration) FuncSetProperty1() (fn js.Func[func(property js.String, value js.String)]) { 2946 bindings.FuncCSSStyleDeclarationSetProperty1( 2947 this.ref, js.Pointer(&fn), 2948 ) 2949 return 2950 } 2951 2952 // SetProperty1 calls the method "CSSStyleDeclaration.setProperty". 2953 func (this CSSStyleDeclaration) SetProperty1(property js.String, value js.String) (ret js.Void) { 2954 bindings.CallCSSStyleDeclarationSetProperty1( 2955 this.ref, js.Pointer(&ret), 2956 property.Ref(), 2957 value.Ref(), 2958 ) 2959 2960 return 2961 } 2962 2963 // TrySetProperty1 calls the method "CSSStyleDeclaration.setProperty" 2964 // in a try/catch block and returns (_, err, ok = false) when it went through 2965 // the catch clause. 2966 func (this CSSStyleDeclaration) TrySetProperty1(property js.String, value js.String) (ret js.Void, exception js.Any, ok bool) { 2967 ok = js.True == bindings.TryCSSStyleDeclarationSetProperty1( 2968 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2969 property.Ref(), 2970 value.Ref(), 2971 ) 2972 2973 return 2974 } 2975 2976 // HasFuncRemoveProperty returns true if the method "CSSStyleDeclaration.removeProperty" exists. 2977 func (this CSSStyleDeclaration) HasFuncRemoveProperty() bool { 2978 return js.True == bindings.HasFuncCSSStyleDeclarationRemoveProperty( 2979 this.ref, 2980 ) 2981 } 2982 2983 // FuncRemoveProperty returns the method "CSSStyleDeclaration.removeProperty". 2984 func (this CSSStyleDeclaration) FuncRemoveProperty() (fn js.Func[func(property js.String) js.String]) { 2985 bindings.FuncCSSStyleDeclarationRemoveProperty( 2986 this.ref, js.Pointer(&fn), 2987 ) 2988 return 2989 } 2990 2991 // RemoveProperty calls the method "CSSStyleDeclaration.removeProperty". 2992 func (this CSSStyleDeclaration) RemoveProperty(property js.String) (ret js.String) { 2993 bindings.CallCSSStyleDeclarationRemoveProperty( 2994 this.ref, js.Pointer(&ret), 2995 property.Ref(), 2996 ) 2997 2998 return 2999 } 3000 3001 // TryRemoveProperty calls the method "CSSStyleDeclaration.removeProperty" 3002 // in a try/catch block and returns (_, err, ok = false) when it went through 3003 // the catch clause. 3004 func (this CSSStyleDeclaration) TryRemoveProperty(property js.String) (ret js.String, exception js.Any, ok bool) { 3005 ok = js.True == bindings.TryCSSStyleDeclarationRemoveProperty( 3006 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3007 property.Ref(), 3008 ) 3009 3010 return 3011 } 3012 3013 type OneOf_CSSStyleValue_String struct { 3014 ref js.Ref 3015 } 3016 3017 func (x OneOf_CSSStyleValue_String) Ref() js.Ref { 3018 return x.ref 3019 } 3020 3021 func (x OneOf_CSSStyleValue_String) Free() { 3022 x.ref.Free() 3023 } 3024 3025 func (x OneOf_CSSStyleValue_String) FromRef(ref js.Ref) OneOf_CSSStyleValue_String { 3026 return OneOf_CSSStyleValue_String{ 3027 ref: ref, 3028 } 3029 } 3030 3031 func (x OneOf_CSSStyleValue_String) CSSStyleValue() CSSStyleValue { 3032 return CSSStyleValue{}.FromRef(x.ref) 3033 } 3034 3035 func (x OneOf_CSSStyleValue_String) String() js.String { 3036 return js.String{}.FromRef(x.ref) 3037 } 3038 3039 type StylePropertyMap struct { 3040 StylePropertyMapReadOnly 3041 } 3042 3043 func (this StylePropertyMap) Once() StylePropertyMap { 3044 this.ref.Once() 3045 return this 3046 } 3047 3048 func (this StylePropertyMap) Ref() js.Ref { 3049 return this.StylePropertyMapReadOnly.Ref() 3050 } 3051 3052 func (this StylePropertyMap) FromRef(ref js.Ref) StylePropertyMap { 3053 this.StylePropertyMapReadOnly = this.StylePropertyMapReadOnly.FromRef(ref) 3054 return this 3055 } 3056 3057 func (this StylePropertyMap) Free() { 3058 this.ref.Free() 3059 } 3060 3061 // HasFuncSet returns true if the method "StylePropertyMap.set" exists. 3062 func (this StylePropertyMap) HasFuncSet() bool { 3063 return js.True == bindings.HasFuncStylePropertyMapSet( 3064 this.ref, 3065 ) 3066 } 3067 3068 // FuncSet returns the method "StylePropertyMap.set". 3069 func (this StylePropertyMap) FuncSet() (fn js.Func[func(property js.String, values ...OneOf_CSSStyleValue_String)]) { 3070 bindings.FuncStylePropertyMapSet( 3071 this.ref, js.Pointer(&fn), 3072 ) 3073 return 3074 } 3075 3076 // Set calls the method "StylePropertyMap.set". 3077 func (this StylePropertyMap) Set(property js.String, values ...OneOf_CSSStyleValue_String) (ret js.Void) { 3078 bindings.CallStylePropertyMapSet( 3079 this.ref, js.Pointer(&ret), 3080 property.Ref(), 3081 js.SliceData(values), 3082 js.SizeU(len(values)), 3083 ) 3084 3085 return 3086 } 3087 3088 // TrySet calls the method "StylePropertyMap.set" 3089 // in a try/catch block and returns (_, err, ok = false) when it went through 3090 // the catch clause. 3091 func (this StylePropertyMap) TrySet(property js.String, values ...OneOf_CSSStyleValue_String) (ret js.Void, exception js.Any, ok bool) { 3092 ok = js.True == bindings.TryStylePropertyMapSet( 3093 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3094 property.Ref(), 3095 js.SliceData(values), 3096 js.SizeU(len(values)), 3097 ) 3098 3099 return 3100 } 3101 3102 // HasFuncAppend returns true if the method "StylePropertyMap.append" exists. 3103 func (this StylePropertyMap) HasFuncAppend() bool { 3104 return js.True == bindings.HasFuncStylePropertyMapAppend( 3105 this.ref, 3106 ) 3107 } 3108 3109 // FuncAppend returns the method "StylePropertyMap.append". 3110 func (this StylePropertyMap) FuncAppend() (fn js.Func[func(property js.String, values ...OneOf_CSSStyleValue_String)]) { 3111 bindings.FuncStylePropertyMapAppend( 3112 this.ref, js.Pointer(&fn), 3113 ) 3114 return 3115 } 3116 3117 // Append calls the method "StylePropertyMap.append". 3118 func (this StylePropertyMap) Append(property js.String, values ...OneOf_CSSStyleValue_String) (ret js.Void) { 3119 bindings.CallStylePropertyMapAppend( 3120 this.ref, js.Pointer(&ret), 3121 property.Ref(), 3122 js.SliceData(values), 3123 js.SizeU(len(values)), 3124 ) 3125 3126 return 3127 } 3128 3129 // TryAppend calls the method "StylePropertyMap.append" 3130 // in a try/catch block and returns (_, err, ok = false) when it went through 3131 // the catch clause. 3132 func (this StylePropertyMap) TryAppend(property js.String, values ...OneOf_CSSStyleValue_String) (ret js.Void, exception js.Any, ok bool) { 3133 ok = js.True == bindings.TryStylePropertyMapAppend( 3134 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3135 property.Ref(), 3136 js.SliceData(values), 3137 js.SizeU(len(values)), 3138 ) 3139 3140 return 3141 } 3142 3143 // HasFuncDelete returns true if the method "StylePropertyMap.delete" exists. 3144 func (this StylePropertyMap) HasFuncDelete() bool { 3145 return js.True == bindings.HasFuncStylePropertyMapDelete( 3146 this.ref, 3147 ) 3148 } 3149 3150 // FuncDelete returns the method "StylePropertyMap.delete". 3151 func (this StylePropertyMap) FuncDelete() (fn js.Func[func(property js.String)]) { 3152 bindings.FuncStylePropertyMapDelete( 3153 this.ref, js.Pointer(&fn), 3154 ) 3155 return 3156 } 3157 3158 // Delete calls the method "StylePropertyMap.delete". 3159 func (this StylePropertyMap) Delete(property js.String) (ret js.Void) { 3160 bindings.CallStylePropertyMapDelete( 3161 this.ref, js.Pointer(&ret), 3162 property.Ref(), 3163 ) 3164 3165 return 3166 } 3167 3168 // TryDelete calls the method "StylePropertyMap.delete" 3169 // in a try/catch block and returns (_, err, ok = false) when it went through 3170 // the catch clause. 3171 func (this StylePropertyMap) TryDelete(property js.String) (ret js.Void, exception js.Any, ok bool) { 3172 ok = js.True == bindings.TryStylePropertyMapDelete( 3173 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3174 property.Ref(), 3175 ) 3176 3177 return 3178 } 3179 3180 // HasFuncClear returns true if the method "StylePropertyMap.clear" exists. 3181 func (this StylePropertyMap) HasFuncClear() bool { 3182 return js.True == bindings.HasFuncStylePropertyMapClear( 3183 this.ref, 3184 ) 3185 } 3186 3187 // FuncClear returns the method "StylePropertyMap.clear". 3188 func (this StylePropertyMap) FuncClear() (fn js.Func[func()]) { 3189 bindings.FuncStylePropertyMapClear( 3190 this.ref, js.Pointer(&fn), 3191 ) 3192 return 3193 } 3194 3195 // Clear calls the method "StylePropertyMap.clear". 3196 func (this StylePropertyMap) Clear() (ret js.Void) { 3197 bindings.CallStylePropertyMapClear( 3198 this.ref, js.Pointer(&ret), 3199 ) 3200 3201 return 3202 } 3203 3204 // TryClear calls the method "StylePropertyMap.clear" 3205 // in a try/catch block and returns (_, err, ok = false) when it went through 3206 // the catch clause. 3207 func (this StylePropertyMap) TryClear() (ret js.Void, exception js.Any, ok bool) { 3208 ok = js.True == bindings.TryStylePropertyMapClear( 3209 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3210 ) 3211 3212 return 3213 } 3214 3215 type OnErrorEventHandlerNonNullFunc func(this js.Ref, event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Ref 3216 3217 func (fn OnErrorEventHandlerNonNullFunc) Register() js.Func[func(event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Any] { 3218 return js.RegisterCallback[func(event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Any]( 3219 fn, abi.FuncPCABIInternal(fn), 3220 ) 3221 } 3222 3223 func (fn OnErrorEventHandlerNonNullFunc) DispatchCallback( 3224 targetPC uintptr, ctx *js.CallbackContext, 3225 ) { 3226 args := ctx.Args() 3227 if len(args) != 5+1 /* js this */ || 3228 targetPC != uintptr(abi.FuncPCABIInternal(fn)) { 3229 js.ThrowInvalidCallbackInvocation() 3230 } 3231 3232 if ctx.Return(fn( 3233 args[0], 3234 3235 OneOf_Event_String{}.FromRef(args[0+1]), 3236 js.String{}.FromRef(args[1+1]), 3237 js.Number[uint32]{}.FromRef(args[2+1]).Get(), 3238 js.Number[uint32]{}.FromRef(args[3+1]).Get(), 3239 js.Any{}.FromRef(args[4+1]), 3240 )) { 3241 return 3242 } 3243 3244 js.ThrowCallbackValueNotReturned() 3245 } 3246 3247 type OnErrorEventHandlerNonNull[T any] struct { 3248 Fn func(arg T, this js.Ref, event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Ref 3249 Arg T 3250 } 3251 3252 func (cb *OnErrorEventHandlerNonNull[T]) Register() js.Func[func(event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Any] { 3253 return js.RegisterCallback[func(event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Any]( 3254 cb, abi.FuncPCABIInternal(cb.Fn), 3255 ) 3256 } 3257 3258 func (cb *OnErrorEventHandlerNonNull[T]) DispatchCallback( 3259 targetPC uintptr, ctx *js.CallbackContext, 3260 ) { 3261 args := ctx.Args() 3262 if len(args) != 5+1 /* js this */ || 3263 targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) { 3264 js.ThrowInvalidCallbackInvocation() 3265 } 3266 3267 if ctx.Return(cb.Fn( 3268 cb.Arg, 3269 args[0], 3270 3271 OneOf_Event_String{}.FromRef(args[0+1]), 3272 js.String{}.FromRef(args[1+1]), 3273 js.Number[uint32]{}.FromRef(args[2+1]).Get(), 3274 js.Number[uint32]{}.FromRef(args[3+1]).Get(), 3275 js.Any{}.FromRef(args[4+1]), 3276 )) { 3277 return 3278 } 3279 3280 js.ThrowCallbackValueNotReturned() 3281 } 3282 3283 type OneOf_Event_String struct { 3284 ref js.Ref 3285 } 3286 3287 func (x OneOf_Event_String) Ref() js.Ref { 3288 return x.ref 3289 } 3290 3291 func (x OneOf_Event_String) Free() { 3292 x.ref.Free() 3293 } 3294 3295 func (x OneOf_Event_String) FromRef(ref js.Ref) OneOf_Event_String { 3296 return OneOf_Event_String{ 3297 ref: ref, 3298 } 3299 } 3300 3301 func (x OneOf_Event_String) Event() Event { 3302 return Event{}.FromRef(x.ref) 3303 } 3304 3305 func (x OneOf_Event_String) String() js.String { 3306 return js.String{}.FromRef(x.ref) 3307 } 3308 3309 type OnErrorEventHandler = js.Func[func(event OneOf_Event_String, source js.String, lineno uint32, colno uint32, err js.Any) js.Any] 3310 3311 const ( 3312 SVGLength_SVG_LENGTHTYPE_UNKNOWN uint16 = 0 3313 SVGLength_SVG_LENGTHTYPE_NUMBER uint16 = 1 3314 SVGLength_SVG_LENGTHTYPE_PERCENTAGE uint16 = 2 3315 SVGLength_SVG_LENGTHTYPE_EMS uint16 = 3 3316 SVGLength_SVG_LENGTHTYPE_EXS uint16 = 4 3317 SVGLength_SVG_LENGTHTYPE_PX uint16 = 5 3318 SVGLength_SVG_LENGTHTYPE_CM uint16 = 6 3319 SVGLength_SVG_LENGTHTYPE_MM uint16 = 7 3320 SVGLength_SVG_LENGTHTYPE_IN uint16 = 8 3321 SVGLength_SVG_LENGTHTYPE_PT uint16 = 9 3322 SVGLength_SVG_LENGTHTYPE_PC uint16 = 10 3323 ) 3324 3325 type SVGLength struct { 3326 ref js.Ref 3327 } 3328 3329 func (this SVGLength) Once() SVGLength { 3330 this.ref.Once() 3331 return this 3332 } 3333 3334 func (this SVGLength) Ref() js.Ref { 3335 return this.ref 3336 } 3337 3338 func (this SVGLength) FromRef(ref js.Ref) SVGLength { 3339 this.ref = ref 3340 return this 3341 } 3342 3343 func (this SVGLength) Free() { 3344 this.ref.Free() 3345 } 3346 3347 // UnitType returns the value of property "SVGLength.unitType". 3348 // 3349 // It returns ok=false if there is no such property. 3350 func (this SVGLength) UnitType() (ret uint16, ok bool) { 3351 ok = js.True == bindings.GetSVGLengthUnitType( 3352 this.ref, js.Pointer(&ret), 3353 ) 3354 return 3355 } 3356 3357 // Value returns the value of property "SVGLength.value". 3358 // 3359 // It returns ok=false if there is no such property. 3360 func (this SVGLength) Value() (ret float32, ok bool) { 3361 ok = js.True == bindings.GetSVGLengthValue( 3362 this.ref, js.Pointer(&ret), 3363 ) 3364 return 3365 } 3366 3367 // SetValue sets the value of property "SVGLength.value" to val. 3368 // 3369 // It returns false if the property cannot be set. 3370 func (this SVGLength) SetValue(val float32) bool { 3371 return js.True == bindings.SetSVGLengthValue( 3372 this.ref, 3373 float32(val), 3374 ) 3375 } 3376 3377 // ValueInSpecifiedUnits returns the value of property "SVGLength.valueInSpecifiedUnits". 3378 // 3379 // It returns ok=false if there is no such property. 3380 func (this SVGLength) ValueInSpecifiedUnits() (ret float32, ok bool) { 3381 ok = js.True == bindings.GetSVGLengthValueInSpecifiedUnits( 3382 this.ref, js.Pointer(&ret), 3383 ) 3384 return 3385 } 3386 3387 // SetValueInSpecifiedUnits sets the value of property "SVGLength.valueInSpecifiedUnits" to val. 3388 // 3389 // It returns false if the property cannot be set. 3390 func (this SVGLength) SetValueInSpecifiedUnits(val float32) bool { 3391 return js.True == bindings.SetSVGLengthValueInSpecifiedUnits( 3392 this.ref, 3393 float32(val), 3394 ) 3395 } 3396 3397 // ValueAsString returns the value of property "SVGLength.valueAsString". 3398 // 3399 // It returns ok=false if there is no such property. 3400 func (this SVGLength) ValueAsString() (ret js.String, ok bool) { 3401 ok = js.True == bindings.GetSVGLengthValueAsString( 3402 this.ref, js.Pointer(&ret), 3403 ) 3404 return 3405 } 3406 3407 // SetValueAsString sets the value of property "SVGLength.valueAsString" to val. 3408 // 3409 // It returns false if the property cannot be set. 3410 func (this SVGLength) SetValueAsString(val js.String) bool { 3411 return js.True == bindings.SetSVGLengthValueAsString( 3412 this.ref, 3413 val.Ref(), 3414 ) 3415 } 3416 3417 // HasFuncNewValueSpecifiedUnits returns true if the method "SVGLength.newValueSpecifiedUnits" exists. 3418 func (this SVGLength) HasFuncNewValueSpecifiedUnits() bool { 3419 return js.True == bindings.HasFuncSVGLengthNewValueSpecifiedUnits( 3420 this.ref, 3421 ) 3422 } 3423 3424 // FuncNewValueSpecifiedUnits returns the method "SVGLength.newValueSpecifiedUnits". 3425 func (this SVGLength) FuncNewValueSpecifiedUnits() (fn js.Func[func(unitType uint16, valueInSpecifiedUnits float32)]) { 3426 bindings.FuncSVGLengthNewValueSpecifiedUnits( 3427 this.ref, js.Pointer(&fn), 3428 ) 3429 return 3430 } 3431 3432 // NewValueSpecifiedUnits calls the method "SVGLength.newValueSpecifiedUnits". 3433 func (this SVGLength) NewValueSpecifiedUnits(unitType uint16, valueInSpecifiedUnits float32) (ret js.Void) { 3434 bindings.CallSVGLengthNewValueSpecifiedUnits( 3435 this.ref, js.Pointer(&ret), 3436 uint32(unitType), 3437 float32(valueInSpecifiedUnits), 3438 ) 3439 3440 return 3441 } 3442 3443 // TryNewValueSpecifiedUnits calls the method "SVGLength.newValueSpecifiedUnits" 3444 // in a try/catch block and returns (_, err, ok = false) when it went through 3445 // the catch clause. 3446 func (this SVGLength) TryNewValueSpecifiedUnits(unitType uint16, valueInSpecifiedUnits float32) (ret js.Void, exception js.Any, ok bool) { 3447 ok = js.True == bindings.TrySVGLengthNewValueSpecifiedUnits( 3448 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3449 uint32(unitType), 3450 float32(valueInSpecifiedUnits), 3451 ) 3452 3453 return 3454 } 3455 3456 // HasFuncConvertToSpecifiedUnits returns true if the method "SVGLength.convertToSpecifiedUnits" exists. 3457 func (this SVGLength) HasFuncConvertToSpecifiedUnits() bool { 3458 return js.True == bindings.HasFuncSVGLengthConvertToSpecifiedUnits( 3459 this.ref, 3460 ) 3461 } 3462 3463 // FuncConvertToSpecifiedUnits returns the method "SVGLength.convertToSpecifiedUnits". 3464 func (this SVGLength) FuncConvertToSpecifiedUnits() (fn js.Func[func(unitType uint16)]) { 3465 bindings.FuncSVGLengthConvertToSpecifiedUnits( 3466 this.ref, js.Pointer(&fn), 3467 ) 3468 return 3469 } 3470 3471 // ConvertToSpecifiedUnits calls the method "SVGLength.convertToSpecifiedUnits". 3472 func (this SVGLength) ConvertToSpecifiedUnits(unitType uint16) (ret js.Void) { 3473 bindings.CallSVGLengthConvertToSpecifiedUnits( 3474 this.ref, js.Pointer(&ret), 3475 uint32(unitType), 3476 ) 3477 3478 return 3479 } 3480 3481 // TryConvertToSpecifiedUnits calls the method "SVGLength.convertToSpecifiedUnits" 3482 // in a try/catch block and returns (_, err, ok = false) when it went through 3483 // the catch clause. 3484 func (this SVGLength) TryConvertToSpecifiedUnits(unitType uint16) (ret js.Void, exception js.Any, ok bool) { 3485 ok = js.True == bindings.TrySVGLengthConvertToSpecifiedUnits( 3486 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3487 uint32(unitType), 3488 ) 3489 3490 return 3491 } 3492 3493 type SVGAnimatedLength struct { 3494 ref js.Ref 3495 } 3496 3497 func (this SVGAnimatedLength) Once() SVGAnimatedLength { 3498 this.ref.Once() 3499 return this 3500 } 3501 3502 func (this SVGAnimatedLength) Ref() js.Ref { 3503 return this.ref 3504 } 3505 3506 func (this SVGAnimatedLength) FromRef(ref js.Ref) SVGAnimatedLength { 3507 this.ref = ref 3508 return this 3509 } 3510 3511 func (this SVGAnimatedLength) Free() { 3512 this.ref.Free() 3513 } 3514 3515 // BaseVal returns the value of property "SVGAnimatedLength.baseVal". 3516 // 3517 // It returns ok=false if there is no such property. 3518 func (this SVGAnimatedLength) BaseVal() (ret SVGLength, ok bool) { 3519 ok = js.True == bindings.GetSVGAnimatedLengthBaseVal( 3520 this.ref, js.Pointer(&ret), 3521 ) 3522 return 3523 } 3524 3525 // AnimVal returns the value of property "SVGAnimatedLength.animVal". 3526 // 3527 // It returns ok=false if there is no such property. 3528 func (this SVGAnimatedLength) AnimVal() (ret SVGLength, ok bool) { 3529 ok = js.True == bindings.GetSVGAnimatedLengthAnimVal( 3530 this.ref, js.Pointer(&ret), 3531 ) 3532 return 3533 } 3534 3535 type SVGUseElement struct { 3536 SVGGraphicsElement 3537 } 3538 3539 func (this SVGUseElement) Once() SVGUseElement { 3540 this.ref.Once() 3541 return this 3542 } 3543 3544 func (this SVGUseElement) Ref() js.Ref { 3545 return this.SVGGraphicsElement.Ref() 3546 } 3547 3548 func (this SVGUseElement) FromRef(ref js.Ref) SVGUseElement { 3549 this.SVGGraphicsElement = this.SVGGraphicsElement.FromRef(ref) 3550 return this 3551 } 3552 3553 func (this SVGUseElement) Free() { 3554 this.ref.Free() 3555 } 3556 3557 // X returns the value of property "SVGUseElement.x". 3558 // 3559 // It returns ok=false if there is no such property. 3560 func (this SVGUseElement) X() (ret SVGAnimatedLength, ok bool) { 3561 ok = js.True == bindings.GetSVGUseElementX( 3562 this.ref, js.Pointer(&ret), 3563 ) 3564 return 3565 } 3566 3567 // Y returns the value of property "SVGUseElement.y". 3568 // 3569 // It returns ok=false if there is no such property. 3570 func (this SVGUseElement) Y() (ret SVGAnimatedLength, ok bool) { 3571 ok = js.True == bindings.GetSVGUseElementY( 3572 this.ref, js.Pointer(&ret), 3573 ) 3574 return 3575 } 3576 3577 // Width returns the value of property "SVGUseElement.width". 3578 // 3579 // It returns ok=false if there is no such property. 3580 func (this SVGUseElement) Width() (ret SVGAnimatedLength, ok bool) { 3581 ok = js.True == bindings.GetSVGUseElementWidth( 3582 this.ref, js.Pointer(&ret), 3583 ) 3584 return 3585 } 3586 3587 // Height returns the value of property "SVGUseElement.height". 3588 // 3589 // It returns ok=false if there is no such property. 3590 func (this SVGUseElement) Height() (ret SVGAnimatedLength, ok bool) { 3591 ok = js.True == bindings.GetSVGUseElementHeight( 3592 this.ref, js.Pointer(&ret), 3593 ) 3594 return 3595 } 3596 3597 // InstanceRoot returns the value of property "SVGUseElement.instanceRoot". 3598 // 3599 // It returns ok=false if there is no such property. 3600 func (this SVGUseElement) InstanceRoot() (ret SVGElement, ok bool) { 3601 ok = js.True == bindings.GetSVGUseElementInstanceRoot( 3602 this.ref, js.Pointer(&ret), 3603 ) 3604 return 3605 } 3606 3607 // AnimatedInstanceRoot returns the value of property "SVGUseElement.animatedInstanceRoot". 3608 // 3609 // It returns ok=false if there is no such property. 3610 func (this SVGUseElement) AnimatedInstanceRoot() (ret SVGElement, ok bool) { 3611 ok = js.True == bindings.GetSVGUseElementAnimatedInstanceRoot( 3612 this.ref, js.Pointer(&ret), 3613 ) 3614 return 3615 } 3616 3617 // Href returns the value of property "SVGUseElement.href". 3618 // 3619 // It returns ok=false if there is no such property. 3620 func (this SVGUseElement) Href() (ret SVGAnimatedString, ok bool) { 3621 ok = js.True == bindings.GetSVGUseElementHref( 3622 this.ref, js.Pointer(&ret), 3623 ) 3624 return 3625 } 3626 3627 type DOMStringMap struct { 3628 ref js.Ref 3629 } 3630 3631 func (this DOMStringMap) Once() DOMStringMap { 3632 this.ref.Once() 3633 return this 3634 } 3635 3636 func (this DOMStringMap) Ref() js.Ref { 3637 return this.ref 3638 } 3639 3640 func (this DOMStringMap) FromRef(ref js.Ref) DOMStringMap { 3641 this.ref = ref 3642 return this 3643 } 3644 3645 func (this DOMStringMap) Free() { 3646 this.ref.Free() 3647 } 3648 3649 // HasFuncGet returns true if the method "DOMStringMap." exists. 3650 func (this DOMStringMap) HasFuncGet() bool { 3651 return js.True == bindings.HasFuncDOMStringMapGet( 3652 this.ref, 3653 ) 3654 } 3655 3656 // FuncGet returns the method "DOMStringMap.". 3657 func (this DOMStringMap) FuncGet() (fn js.Func[func(name js.String) js.String]) { 3658 bindings.FuncDOMStringMapGet( 3659 this.ref, js.Pointer(&fn), 3660 ) 3661 return 3662 } 3663 3664 // Get calls the method "DOMStringMap.". 3665 func (this DOMStringMap) Get(name js.String) (ret js.String) { 3666 bindings.CallDOMStringMapGet( 3667 this.ref, js.Pointer(&ret), 3668 name.Ref(), 3669 ) 3670 3671 return 3672 } 3673 3674 // TryGet calls the method "DOMStringMap." 3675 // in a try/catch block and returns (_, err, ok = false) when it went through 3676 // the catch clause. 3677 func (this DOMStringMap) TryGet(name js.String) (ret js.String, exception js.Any, ok bool) { 3678 ok = js.True == bindings.TryDOMStringMapGet( 3679 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3680 name.Ref(), 3681 ) 3682 3683 return 3684 } 3685 3686 // HasFuncSet returns true if the method "DOMStringMap." exists. 3687 func (this DOMStringMap) HasFuncSet() bool { 3688 return js.True == bindings.HasFuncDOMStringMapSet( 3689 this.ref, 3690 ) 3691 } 3692 3693 // FuncSet returns the method "DOMStringMap.". 3694 func (this DOMStringMap) FuncSet() (fn js.Func[func(name js.String, value js.String)]) { 3695 bindings.FuncDOMStringMapSet( 3696 this.ref, js.Pointer(&fn), 3697 ) 3698 return 3699 } 3700 3701 // Set calls the method "DOMStringMap.". 3702 func (this DOMStringMap) Set(name js.String, value js.String) (ret js.Void) { 3703 bindings.CallDOMStringMapSet( 3704 this.ref, js.Pointer(&ret), 3705 name.Ref(), 3706 value.Ref(), 3707 ) 3708 3709 return 3710 } 3711 3712 // TrySet calls the method "DOMStringMap." 3713 // in a try/catch block and returns (_, err, ok = false) when it went through 3714 // the catch clause. 3715 func (this DOMStringMap) TrySet(name js.String, value js.String) (ret js.Void, exception js.Any, ok bool) { 3716 ok = js.True == bindings.TryDOMStringMapSet( 3717 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3718 name.Ref(), 3719 value.Ref(), 3720 ) 3721 3722 return 3723 } 3724 3725 // HasFuncDelete returns true if the method "DOMStringMap." exists. 3726 func (this DOMStringMap) HasFuncDelete() bool { 3727 return js.True == bindings.HasFuncDOMStringMapDelete( 3728 this.ref, 3729 ) 3730 } 3731 3732 // FuncDelete returns the method "DOMStringMap.". 3733 func (this DOMStringMap) FuncDelete() (fn js.Func[func(name js.String)]) { 3734 bindings.FuncDOMStringMapDelete( 3735 this.ref, js.Pointer(&fn), 3736 ) 3737 return 3738 } 3739 3740 // Delete calls the method "DOMStringMap.". 3741 func (this DOMStringMap) Delete(name js.String) (ret js.Void) { 3742 bindings.CallDOMStringMapDelete( 3743 this.ref, js.Pointer(&ret), 3744 name.Ref(), 3745 ) 3746 3747 return 3748 } 3749 3750 // TryDelete calls the method "DOMStringMap." 3751 // in a try/catch block and returns (_, err, ok = false) when it went through 3752 // the catch clause. 3753 func (this DOMStringMap) TryDelete(name js.String) (ret js.Void, exception js.Any, ok bool) { 3754 ok = js.True == bindings.TryDOMStringMapDelete( 3755 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3756 name.Ref(), 3757 ) 3758 3759 return 3760 } 3761 3762 type SVGElement struct { 3763 Element 3764 } 3765 3766 func (this SVGElement) Once() SVGElement { 3767 this.ref.Once() 3768 return this 3769 } 3770 3771 func (this SVGElement) Ref() js.Ref { 3772 return this.Element.Ref() 3773 } 3774 3775 func (this SVGElement) FromRef(ref js.Ref) SVGElement { 3776 this.Element = this.Element.FromRef(ref) 3777 return this 3778 } 3779 3780 func (this SVGElement) Free() { 3781 this.ref.Free() 3782 } 3783 3784 // ClassName returns the value of property "SVGElement.className". 3785 // 3786 // It returns ok=false if there is no such property. 3787 func (this SVGElement) ClassName() (ret SVGAnimatedString, ok bool) { 3788 ok = js.True == bindings.GetSVGElementClassName( 3789 this.ref, js.Pointer(&ret), 3790 ) 3791 return 3792 } 3793 3794 // OwnerSVGElement returns the value of property "SVGElement.ownerSVGElement". 3795 // 3796 // It returns ok=false if there is no such property. 3797 func (this SVGElement) OwnerSVGElement() (ret SVGSVGElement, ok bool) { 3798 ok = js.True == bindings.GetSVGElementOwnerSVGElement( 3799 this.ref, js.Pointer(&ret), 3800 ) 3801 return 3802 } 3803 3804 // ViewportElement returns the value of property "SVGElement.viewportElement". 3805 // 3806 // It returns ok=false if there is no such property. 3807 func (this SVGElement) ViewportElement() (ret SVGElement, ok bool) { 3808 ok = js.True == bindings.GetSVGElementViewportElement( 3809 this.ref, js.Pointer(&ret), 3810 ) 3811 return 3812 } 3813 3814 // Style returns the value of property "SVGElement.style". 3815 // 3816 // It returns ok=false if there is no such property. 3817 func (this SVGElement) Style() (ret CSSStyleDeclaration, ok bool) { 3818 ok = js.True == bindings.GetSVGElementStyle( 3819 this.ref, js.Pointer(&ret), 3820 ) 3821 return 3822 } 3823 3824 // AttributeStyleMap returns the value of property "SVGElement.attributeStyleMap". 3825 // 3826 // It returns ok=false if there is no such property. 3827 func (this SVGElement) AttributeStyleMap() (ret StylePropertyMap, ok bool) { 3828 ok = js.True == bindings.GetSVGElementAttributeStyleMap( 3829 this.ref, js.Pointer(&ret), 3830 ) 3831 return 3832 } 3833 3834 // CorrespondingElement returns the value of property "SVGElement.correspondingElement". 3835 // 3836 // It returns ok=false if there is no such property. 3837 func (this SVGElement) CorrespondingElement() (ret SVGElement, ok bool) { 3838 ok = js.True == bindings.GetSVGElementCorrespondingElement( 3839 this.ref, js.Pointer(&ret), 3840 ) 3841 return 3842 } 3843 3844 // CorrespondingUseElement returns the value of property "SVGElement.correspondingUseElement". 3845 // 3846 // It returns ok=false if there is no such property. 3847 func (this SVGElement) CorrespondingUseElement() (ret SVGUseElement, ok bool) { 3848 ok = js.True == bindings.GetSVGElementCorrespondingUseElement( 3849 this.ref, js.Pointer(&ret), 3850 ) 3851 return 3852 } 3853 3854 // Dataset returns the value of property "SVGElement.dataset". 3855 // 3856 // It returns ok=false if there is no such property. 3857 func (this SVGElement) Dataset() (ret DOMStringMap, ok bool) { 3858 ok = js.True == bindings.GetSVGElementDataset( 3859 this.ref, js.Pointer(&ret), 3860 ) 3861 return 3862 } 3863 3864 // Nonce returns the value of property "SVGElement.nonce". 3865 // 3866 // It returns ok=false if there is no such property. 3867 func (this SVGElement) Nonce() (ret js.String, ok bool) { 3868 ok = js.True == bindings.GetSVGElementNonce( 3869 this.ref, js.Pointer(&ret), 3870 ) 3871 return 3872 } 3873 3874 // SetNonce sets the value of property "SVGElement.nonce" to val. 3875 // 3876 // It returns false if the property cannot be set. 3877 func (this SVGElement) SetNonce(val js.String) bool { 3878 return js.True == bindings.SetSVGElementNonce( 3879 this.ref, 3880 val.Ref(), 3881 ) 3882 } 3883 3884 // Autofocus returns the value of property "SVGElement.autofocus". 3885 // 3886 // It returns ok=false if there is no such property. 3887 func (this SVGElement) Autofocus() (ret bool, ok bool) { 3888 ok = js.True == bindings.GetSVGElementAutofocus( 3889 this.ref, js.Pointer(&ret), 3890 ) 3891 return 3892 } 3893 3894 // SetAutofocus sets the value of property "SVGElement.autofocus" to val. 3895 // 3896 // It returns false if the property cannot be set. 3897 func (this SVGElement) SetAutofocus(val bool) bool { 3898 return js.True == bindings.SetSVGElementAutofocus( 3899 this.ref, 3900 js.Bool(bool(val)), 3901 ) 3902 } 3903 3904 // TabIndex returns the value of property "SVGElement.tabIndex". 3905 // 3906 // It returns ok=false if there is no such property. 3907 func (this SVGElement) TabIndex() (ret int32, ok bool) { 3908 ok = js.True == bindings.GetSVGElementTabIndex( 3909 this.ref, js.Pointer(&ret), 3910 ) 3911 return 3912 } 3913 3914 // SetTabIndex sets the value of property "SVGElement.tabIndex" to val. 3915 // 3916 // It returns false if the property cannot be set. 3917 func (this SVGElement) SetTabIndex(val int32) bool { 3918 return js.True == bindings.SetSVGElementTabIndex( 3919 this.ref, 3920 int32(val), 3921 ) 3922 } 3923 3924 // HasFuncFocus returns true if the method "SVGElement.focus" exists. 3925 func (this SVGElement) HasFuncFocus() bool { 3926 return js.True == bindings.HasFuncSVGElementFocus( 3927 this.ref, 3928 ) 3929 } 3930 3931 // FuncFocus returns the method "SVGElement.focus". 3932 func (this SVGElement) FuncFocus() (fn js.Func[func(options FocusOptions)]) { 3933 bindings.FuncSVGElementFocus( 3934 this.ref, js.Pointer(&fn), 3935 ) 3936 return 3937 } 3938 3939 // Focus calls the method "SVGElement.focus". 3940 func (this SVGElement) Focus(options FocusOptions) (ret js.Void) { 3941 bindings.CallSVGElementFocus( 3942 this.ref, js.Pointer(&ret), 3943 js.Pointer(&options), 3944 ) 3945 3946 return 3947 } 3948 3949 // TryFocus calls the method "SVGElement.focus" 3950 // in a try/catch block and returns (_, err, ok = false) when it went through 3951 // the catch clause. 3952 func (this SVGElement) TryFocus(options FocusOptions) (ret js.Void, exception js.Any, ok bool) { 3953 ok = js.True == bindings.TrySVGElementFocus( 3954 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3955 js.Pointer(&options), 3956 ) 3957 3958 return 3959 } 3960 3961 // HasFuncFocus1 returns true if the method "SVGElement.focus" exists. 3962 func (this SVGElement) HasFuncFocus1() bool { 3963 return js.True == bindings.HasFuncSVGElementFocus1( 3964 this.ref, 3965 ) 3966 } 3967 3968 // FuncFocus1 returns the method "SVGElement.focus". 3969 func (this SVGElement) FuncFocus1() (fn js.Func[func()]) { 3970 bindings.FuncSVGElementFocus1( 3971 this.ref, js.Pointer(&fn), 3972 ) 3973 return 3974 } 3975 3976 // Focus1 calls the method "SVGElement.focus". 3977 func (this SVGElement) Focus1() (ret js.Void) { 3978 bindings.CallSVGElementFocus1( 3979 this.ref, js.Pointer(&ret), 3980 ) 3981 3982 return 3983 } 3984 3985 // TryFocus1 calls the method "SVGElement.focus" 3986 // in a try/catch block and returns (_, err, ok = false) when it went through 3987 // the catch clause. 3988 func (this SVGElement) TryFocus1() (ret js.Void, exception js.Any, ok bool) { 3989 ok = js.True == bindings.TrySVGElementFocus1( 3990 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3991 ) 3992 3993 return 3994 } 3995 3996 // HasFuncBlur returns true if the method "SVGElement.blur" exists. 3997 func (this SVGElement) HasFuncBlur() bool { 3998 return js.True == bindings.HasFuncSVGElementBlur( 3999 this.ref, 4000 ) 4001 } 4002 4003 // FuncBlur returns the method "SVGElement.blur". 4004 func (this SVGElement) FuncBlur() (fn js.Func[func()]) { 4005 bindings.FuncSVGElementBlur( 4006 this.ref, js.Pointer(&fn), 4007 ) 4008 return 4009 } 4010 4011 // Blur calls the method "SVGElement.blur". 4012 func (this SVGElement) Blur() (ret js.Void) { 4013 bindings.CallSVGElementBlur( 4014 this.ref, js.Pointer(&ret), 4015 ) 4016 4017 return 4018 } 4019 4020 // TryBlur calls the method "SVGElement.blur" 4021 // in a try/catch block and returns (_, err, ok = false) when it went through 4022 // the catch clause. 4023 func (this SVGElement) TryBlur() (ret js.Void, exception js.Any, ok bool) { 4024 ok = js.True == bindings.TrySVGElementBlur( 4025 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4026 ) 4027 4028 return 4029 } 4030 4031 type SVGNumber struct { 4032 ref js.Ref 4033 } 4034 4035 func (this SVGNumber) Once() SVGNumber { 4036 this.ref.Once() 4037 return this 4038 } 4039 4040 func (this SVGNumber) Ref() js.Ref { 4041 return this.ref 4042 } 4043 4044 func (this SVGNumber) FromRef(ref js.Ref) SVGNumber { 4045 this.ref = ref 4046 return this 4047 } 4048 4049 func (this SVGNumber) Free() { 4050 this.ref.Free() 4051 } 4052 4053 // Value returns the value of property "SVGNumber.value". 4054 // 4055 // It returns ok=false if there is no such property. 4056 func (this SVGNumber) Value() (ret float32, ok bool) { 4057 ok = js.True == bindings.GetSVGNumberValue( 4058 this.ref, js.Pointer(&ret), 4059 ) 4060 return 4061 } 4062 4063 // SetValue sets the value of property "SVGNumber.value" to val. 4064 // 4065 // It returns false if the property cannot be set. 4066 func (this SVGNumber) SetValue(val float32) bool { 4067 return js.True == bindings.SetSVGNumberValue( 4068 this.ref, 4069 float32(val), 4070 ) 4071 } 4072 4073 const ( 4074 SVGAngle_SVG_ANGLETYPE_UNKNOWN uint16 = 0 4075 SVGAngle_SVG_ANGLETYPE_UNSPECIFIED uint16 = 1 4076 SVGAngle_SVG_ANGLETYPE_DEG uint16 = 2 4077 SVGAngle_SVG_ANGLETYPE_RAD uint16 = 3 4078 SVGAngle_SVG_ANGLETYPE_GRAD uint16 = 4 4079 ) 4080 4081 type SVGAngle struct { 4082 ref js.Ref 4083 } 4084 4085 func (this SVGAngle) Once() SVGAngle { 4086 this.ref.Once() 4087 return this 4088 } 4089 4090 func (this SVGAngle) Ref() js.Ref { 4091 return this.ref 4092 } 4093 4094 func (this SVGAngle) FromRef(ref js.Ref) SVGAngle { 4095 this.ref = ref 4096 return this 4097 } 4098 4099 func (this SVGAngle) Free() { 4100 this.ref.Free() 4101 } 4102 4103 // UnitType returns the value of property "SVGAngle.unitType". 4104 // 4105 // It returns ok=false if there is no such property. 4106 func (this SVGAngle) UnitType() (ret uint16, ok bool) { 4107 ok = js.True == bindings.GetSVGAngleUnitType( 4108 this.ref, js.Pointer(&ret), 4109 ) 4110 return 4111 } 4112 4113 // Value returns the value of property "SVGAngle.value". 4114 // 4115 // It returns ok=false if there is no such property. 4116 func (this SVGAngle) Value() (ret float32, ok bool) { 4117 ok = js.True == bindings.GetSVGAngleValue( 4118 this.ref, js.Pointer(&ret), 4119 ) 4120 return 4121 } 4122 4123 // SetValue sets the value of property "SVGAngle.value" to val. 4124 // 4125 // It returns false if the property cannot be set. 4126 func (this SVGAngle) SetValue(val float32) bool { 4127 return js.True == bindings.SetSVGAngleValue( 4128 this.ref, 4129 float32(val), 4130 ) 4131 } 4132 4133 // ValueInSpecifiedUnits returns the value of property "SVGAngle.valueInSpecifiedUnits". 4134 // 4135 // It returns ok=false if there is no such property. 4136 func (this SVGAngle) ValueInSpecifiedUnits() (ret float32, ok bool) { 4137 ok = js.True == bindings.GetSVGAngleValueInSpecifiedUnits( 4138 this.ref, js.Pointer(&ret), 4139 ) 4140 return 4141 } 4142 4143 // SetValueInSpecifiedUnits sets the value of property "SVGAngle.valueInSpecifiedUnits" to val. 4144 // 4145 // It returns false if the property cannot be set. 4146 func (this SVGAngle) SetValueInSpecifiedUnits(val float32) bool { 4147 return js.True == bindings.SetSVGAngleValueInSpecifiedUnits( 4148 this.ref, 4149 float32(val), 4150 ) 4151 } 4152 4153 // ValueAsString returns the value of property "SVGAngle.valueAsString". 4154 // 4155 // It returns ok=false if there is no such property. 4156 func (this SVGAngle) ValueAsString() (ret js.String, ok bool) { 4157 ok = js.True == bindings.GetSVGAngleValueAsString( 4158 this.ref, js.Pointer(&ret), 4159 ) 4160 return 4161 } 4162 4163 // SetValueAsString sets the value of property "SVGAngle.valueAsString" to val. 4164 // 4165 // It returns false if the property cannot be set. 4166 func (this SVGAngle) SetValueAsString(val js.String) bool { 4167 return js.True == bindings.SetSVGAngleValueAsString( 4168 this.ref, 4169 val.Ref(), 4170 ) 4171 } 4172 4173 // HasFuncNewValueSpecifiedUnits returns true if the method "SVGAngle.newValueSpecifiedUnits" exists. 4174 func (this SVGAngle) HasFuncNewValueSpecifiedUnits() bool { 4175 return js.True == bindings.HasFuncSVGAngleNewValueSpecifiedUnits( 4176 this.ref, 4177 ) 4178 } 4179 4180 // FuncNewValueSpecifiedUnits returns the method "SVGAngle.newValueSpecifiedUnits". 4181 func (this SVGAngle) FuncNewValueSpecifiedUnits() (fn js.Func[func(unitType uint16, valueInSpecifiedUnits float32)]) { 4182 bindings.FuncSVGAngleNewValueSpecifiedUnits( 4183 this.ref, js.Pointer(&fn), 4184 ) 4185 return 4186 } 4187 4188 // NewValueSpecifiedUnits calls the method "SVGAngle.newValueSpecifiedUnits". 4189 func (this SVGAngle) NewValueSpecifiedUnits(unitType uint16, valueInSpecifiedUnits float32) (ret js.Void) { 4190 bindings.CallSVGAngleNewValueSpecifiedUnits( 4191 this.ref, js.Pointer(&ret), 4192 uint32(unitType), 4193 float32(valueInSpecifiedUnits), 4194 ) 4195 4196 return 4197 } 4198 4199 // TryNewValueSpecifiedUnits calls the method "SVGAngle.newValueSpecifiedUnits" 4200 // in a try/catch block and returns (_, err, ok = false) when it went through 4201 // the catch clause. 4202 func (this SVGAngle) TryNewValueSpecifiedUnits(unitType uint16, valueInSpecifiedUnits float32) (ret js.Void, exception js.Any, ok bool) { 4203 ok = js.True == bindings.TrySVGAngleNewValueSpecifiedUnits( 4204 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4205 uint32(unitType), 4206 float32(valueInSpecifiedUnits), 4207 ) 4208 4209 return 4210 } 4211 4212 // HasFuncConvertToSpecifiedUnits returns true if the method "SVGAngle.convertToSpecifiedUnits" exists. 4213 func (this SVGAngle) HasFuncConvertToSpecifiedUnits() bool { 4214 return js.True == bindings.HasFuncSVGAngleConvertToSpecifiedUnits( 4215 this.ref, 4216 ) 4217 } 4218 4219 // FuncConvertToSpecifiedUnits returns the method "SVGAngle.convertToSpecifiedUnits". 4220 func (this SVGAngle) FuncConvertToSpecifiedUnits() (fn js.Func[func(unitType uint16)]) { 4221 bindings.FuncSVGAngleConvertToSpecifiedUnits( 4222 this.ref, js.Pointer(&fn), 4223 ) 4224 return 4225 } 4226 4227 // ConvertToSpecifiedUnits calls the method "SVGAngle.convertToSpecifiedUnits". 4228 func (this SVGAngle) ConvertToSpecifiedUnits(unitType uint16) (ret js.Void) { 4229 bindings.CallSVGAngleConvertToSpecifiedUnits( 4230 this.ref, js.Pointer(&ret), 4231 uint32(unitType), 4232 ) 4233 4234 return 4235 } 4236 4237 // TryConvertToSpecifiedUnits calls the method "SVGAngle.convertToSpecifiedUnits" 4238 // in a try/catch block and returns (_, err, ok = false) when it went through 4239 // the catch clause. 4240 func (this SVGAngle) TryConvertToSpecifiedUnits(unitType uint16) (ret js.Void, exception js.Any, ok bool) { 4241 ok = js.True == bindings.TrySVGAngleConvertToSpecifiedUnits( 4242 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4243 uint32(unitType), 4244 ) 4245 4246 return 4247 } 4248 4249 type OneOf_String_ArrayFloat64 struct { 4250 ref js.Ref 4251 } 4252 4253 func (x OneOf_String_ArrayFloat64) Ref() js.Ref { 4254 return x.ref 4255 } 4256 4257 func (x OneOf_String_ArrayFloat64) Free() { 4258 x.ref.Free() 4259 } 4260 4261 func (x OneOf_String_ArrayFloat64) FromRef(ref js.Ref) OneOf_String_ArrayFloat64 { 4262 return OneOf_String_ArrayFloat64{ 4263 ref: ref, 4264 } 4265 } 4266 4267 func (x OneOf_String_ArrayFloat64) String() js.String { 4268 return js.String{}.FromRef(x.ref) 4269 } 4270 4271 func (x OneOf_String_ArrayFloat64) ArrayFloat64() js.Array[float64] { 4272 return js.Array[float64]{}.FromRef(x.ref) 4273 } 4274 4275 type DOMMatrixInit struct { 4276 // M13 is "DOMMatrixInit.m13" 4277 // 4278 // Optional, defaults to 0. 4279 // 4280 // NOTE: FFI_USE_M13 MUST be set to true to make this field effective. 4281 M13 float64 4282 // M14 is "DOMMatrixInit.m14" 4283 // 4284 // Optional, defaults to 0. 4285 // 4286 // NOTE: FFI_USE_M14 MUST be set to true to make this field effective. 4287 M14 float64 4288 // M23 is "DOMMatrixInit.m23" 4289 // 4290 // Optional, defaults to 0. 4291 // 4292 // NOTE: FFI_USE_M23 MUST be set to true to make this field effective. 4293 M23 float64 4294 // M24 is "DOMMatrixInit.m24" 4295 // 4296 // Optional, defaults to 0. 4297 // 4298 // NOTE: FFI_USE_M24 MUST be set to true to make this field effective. 4299 M24 float64 4300 // M31 is "DOMMatrixInit.m31" 4301 // 4302 // Optional, defaults to 0. 4303 // 4304 // NOTE: FFI_USE_M31 MUST be set to true to make this field effective. 4305 M31 float64 4306 // M32 is "DOMMatrixInit.m32" 4307 // 4308 // Optional, defaults to 0. 4309 // 4310 // NOTE: FFI_USE_M32 MUST be set to true to make this field effective. 4311 M32 float64 4312 // M33 is "DOMMatrixInit.m33" 4313 // 4314 // Optional, defaults to 1. 4315 // 4316 // NOTE: FFI_USE_M33 MUST be set to true to make this field effective. 4317 M33 float64 4318 // M34 is "DOMMatrixInit.m34" 4319 // 4320 // Optional, defaults to 0. 4321 // 4322 // NOTE: FFI_USE_M34 MUST be set to true to make this field effective. 4323 M34 float64 4324 // M43 is "DOMMatrixInit.m43" 4325 // 4326 // Optional, defaults to 0. 4327 // 4328 // NOTE: FFI_USE_M43 MUST be set to true to make this field effective. 4329 M43 float64 4330 // M44 is "DOMMatrixInit.m44" 4331 // 4332 // Optional, defaults to 1. 4333 // 4334 // NOTE: FFI_USE_M44 MUST be set to true to make this field effective. 4335 M44 float64 4336 // Is2D is "DOMMatrixInit.is2D" 4337 // 4338 // Optional 4339 // 4340 // NOTE: FFI_USE_Is2D MUST be set to true to make this field effective. 4341 Is2D bool 4342 // A is "DOMMatrixInit.a" 4343 // 4344 // Optional 4345 // 4346 // NOTE: FFI_USE_A MUST be set to true to make this field effective. 4347 A float64 4348 // B is "DOMMatrixInit.b" 4349 // 4350 // Optional 4351 // 4352 // NOTE: FFI_USE_B MUST be set to true to make this field effective. 4353 B float64 4354 // C is "DOMMatrixInit.c" 4355 // 4356 // Optional 4357 // 4358 // NOTE: FFI_USE_C MUST be set to true to make this field effective. 4359 C float64 4360 // D is "DOMMatrixInit.d" 4361 // 4362 // Optional 4363 // 4364 // NOTE: FFI_USE_D MUST be set to true to make this field effective. 4365 D float64 4366 // E is "DOMMatrixInit.e" 4367 // 4368 // Optional 4369 // 4370 // NOTE: FFI_USE_E MUST be set to true to make this field effective. 4371 E float64 4372 // F is "DOMMatrixInit.f" 4373 // 4374 // Optional 4375 // 4376 // NOTE: FFI_USE_F MUST be set to true to make this field effective. 4377 F float64 4378 // M11 is "DOMMatrixInit.m11" 4379 // 4380 // Optional 4381 // 4382 // NOTE: FFI_USE_M11 MUST be set to true to make this field effective. 4383 M11 float64 4384 // M12 is "DOMMatrixInit.m12" 4385 // 4386 // Optional 4387 // 4388 // NOTE: FFI_USE_M12 MUST be set to true to make this field effective. 4389 M12 float64 4390 // M21 is "DOMMatrixInit.m21" 4391 // 4392 // Optional 4393 // 4394 // NOTE: FFI_USE_M21 MUST be set to true to make this field effective. 4395 M21 float64 4396 // M22 is "DOMMatrixInit.m22" 4397 // 4398 // Optional 4399 // 4400 // NOTE: FFI_USE_M22 MUST be set to true to make this field effective. 4401 M22 float64 4402 // M41 is "DOMMatrixInit.m41" 4403 // 4404 // Optional 4405 // 4406 // NOTE: FFI_USE_M41 MUST be set to true to make this field effective. 4407 M41 float64 4408 // M42 is "DOMMatrixInit.m42" 4409 // 4410 // Optional 4411 // 4412 // NOTE: FFI_USE_M42 MUST be set to true to make this field effective. 4413 M42 float64 4414 4415 FFI_USE_M13 bool // for M13. 4416 FFI_USE_M14 bool // for M14. 4417 FFI_USE_M23 bool // for M23. 4418 FFI_USE_M24 bool // for M24. 4419 FFI_USE_M31 bool // for M31. 4420 FFI_USE_M32 bool // for M32. 4421 FFI_USE_M33 bool // for M33. 4422 FFI_USE_M34 bool // for M34. 4423 FFI_USE_M43 bool // for M43. 4424 FFI_USE_M44 bool // for M44. 4425 FFI_USE_Is2D bool // for Is2D. 4426 FFI_USE_A bool // for A. 4427 FFI_USE_B bool // for B. 4428 FFI_USE_C bool // for C. 4429 FFI_USE_D bool // for D. 4430 FFI_USE_E bool // for E. 4431 FFI_USE_F bool // for F. 4432 FFI_USE_M11 bool // for M11. 4433 FFI_USE_M12 bool // for M12. 4434 FFI_USE_M21 bool // for M21. 4435 FFI_USE_M22 bool // for M22. 4436 FFI_USE_M41 bool // for M41. 4437 FFI_USE_M42 bool // for M42. 4438 4439 FFI_USE bool 4440 } 4441 4442 // FromRef calls UpdateFrom and returns a DOMMatrixInit with all fields set. 4443 func (p DOMMatrixInit) FromRef(ref js.Ref) DOMMatrixInit { 4444 p.UpdateFrom(ref) 4445 return p 4446 } 4447 4448 // New creates a new DOMMatrixInit in the application heap. 4449 func (p DOMMatrixInit) New() js.Ref { 4450 return bindings.DOMMatrixInitJSLoad( 4451 js.Pointer(&p), js.True, 0, 4452 ) 4453 } 4454 4455 // UpdateFrom copies value of all fields of the heap object to p. 4456 func (p *DOMMatrixInit) UpdateFrom(ref js.Ref) { 4457 bindings.DOMMatrixInitJSStore( 4458 js.Pointer(p), ref, 4459 ) 4460 } 4461 4462 // Update writes all fields of the p to the heap object referenced by ref. 4463 func (p *DOMMatrixInit) Update(ref js.Ref) { 4464 bindings.DOMMatrixInitJSLoad( 4465 js.Pointer(p), js.False, ref, 4466 ) 4467 } 4468 4469 // FreeMembers frees fields with heap reference, if recursive is true 4470 // free all heap references reachable from p. 4471 func (p *DOMMatrixInit) FreeMembers(recursive bool) { 4472 } 4473 4474 func NewDOMMatrix(init OneOf_String_ArrayFloat64) (ret DOMMatrix) { 4475 ret.ref = bindings.NewDOMMatrixByDOMMatrix( 4476 init.Ref()) 4477 return 4478 } 4479 4480 func NewDOMMatrixByDOMMatrix1() (ret DOMMatrix) { 4481 ret.ref = bindings.NewDOMMatrixByDOMMatrix1() 4482 return 4483 } 4484 4485 type DOMMatrix struct { 4486 DOMMatrixReadOnly 4487 } 4488 4489 func (this DOMMatrix) Once() DOMMatrix { 4490 this.ref.Once() 4491 return this 4492 } 4493 4494 func (this DOMMatrix) Ref() js.Ref { 4495 return this.DOMMatrixReadOnly.Ref() 4496 } 4497 4498 func (this DOMMatrix) FromRef(ref js.Ref) DOMMatrix { 4499 this.DOMMatrixReadOnly = this.DOMMatrixReadOnly.FromRef(ref) 4500 return this 4501 } 4502 4503 func (this DOMMatrix) Free() { 4504 this.ref.Free() 4505 } 4506 4507 // A returns the value of property "DOMMatrix.a". 4508 // 4509 // It returns ok=false if there is no such property. 4510 func (this DOMMatrix) A() (ret float64, ok bool) { 4511 ok = js.True == bindings.GetDOMMatrixA( 4512 this.ref, js.Pointer(&ret), 4513 ) 4514 return 4515 } 4516 4517 // SetA sets the value of property "DOMMatrix.a" to val. 4518 // 4519 // It returns false if the property cannot be set. 4520 func (this DOMMatrix) SetA(val float64) bool { 4521 return js.True == bindings.SetDOMMatrixA( 4522 this.ref, 4523 float64(val), 4524 ) 4525 } 4526 4527 // B returns the value of property "DOMMatrix.b". 4528 // 4529 // It returns ok=false if there is no such property. 4530 func (this DOMMatrix) B() (ret float64, ok bool) { 4531 ok = js.True == bindings.GetDOMMatrixB( 4532 this.ref, js.Pointer(&ret), 4533 ) 4534 return 4535 } 4536 4537 // SetB sets the value of property "DOMMatrix.b" to val. 4538 // 4539 // It returns false if the property cannot be set. 4540 func (this DOMMatrix) SetB(val float64) bool { 4541 return js.True == bindings.SetDOMMatrixB( 4542 this.ref, 4543 float64(val), 4544 ) 4545 } 4546 4547 // C returns the value of property "DOMMatrix.c". 4548 // 4549 // It returns ok=false if there is no such property. 4550 func (this DOMMatrix) C() (ret float64, ok bool) { 4551 ok = js.True == bindings.GetDOMMatrixC( 4552 this.ref, js.Pointer(&ret), 4553 ) 4554 return 4555 } 4556 4557 // SetC sets the value of property "DOMMatrix.c" to val. 4558 // 4559 // It returns false if the property cannot be set. 4560 func (this DOMMatrix) SetC(val float64) bool { 4561 return js.True == bindings.SetDOMMatrixC( 4562 this.ref, 4563 float64(val), 4564 ) 4565 } 4566 4567 // D returns the value of property "DOMMatrix.d". 4568 // 4569 // It returns ok=false if there is no such property. 4570 func (this DOMMatrix) D() (ret float64, ok bool) { 4571 ok = js.True == bindings.GetDOMMatrixD( 4572 this.ref, js.Pointer(&ret), 4573 ) 4574 return 4575 } 4576 4577 // SetD sets the value of property "DOMMatrix.d" to val. 4578 // 4579 // It returns false if the property cannot be set. 4580 func (this DOMMatrix) SetD(val float64) bool { 4581 return js.True == bindings.SetDOMMatrixD( 4582 this.ref, 4583 float64(val), 4584 ) 4585 } 4586 4587 // E returns the value of property "DOMMatrix.e". 4588 // 4589 // It returns ok=false if there is no such property. 4590 func (this DOMMatrix) E() (ret float64, ok bool) { 4591 ok = js.True == bindings.GetDOMMatrixE( 4592 this.ref, js.Pointer(&ret), 4593 ) 4594 return 4595 } 4596 4597 // SetE sets the value of property "DOMMatrix.e" to val. 4598 // 4599 // It returns false if the property cannot be set. 4600 func (this DOMMatrix) SetE(val float64) bool { 4601 return js.True == bindings.SetDOMMatrixE( 4602 this.ref, 4603 float64(val), 4604 ) 4605 } 4606 4607 // F returns the value of property "DOMMatrix.f". 4608 // 4609 // It returns ok=false if there is no such property. 4610 func (this DOMMatrix) F() (ret float64, ok bool) { 4611 ok = js.True == bindings.GetDOMMatrixF( 4612 this.ref, js.Pointer(&ret), 4613 ) 4614 return 4615 } 4616 4617 // SetF sets the value of property "DOMMatrix.f" to val. 4618 // 4619 // It returns false if the property cannot be set. 4620 func (this DOMMatrix) SetF(val float64) bool { 4621 return js.True == bindings.SetDOMMatrixF( 4622 this.ref, 4623 float64(val), 4624 ) 4625 } 4626 4627 // M11 returns the value of property "DOMMatrix.m11". 4628 // 4629 // It returns ok=false if there is no such property. 4630 func (this DOMMatrix) M11() (ret float64, ok bool) { 4631 ok = js.True == bindings.GetDOMMatrixM11( 4632 this.ref, js.Pointer(&ret), 4633 ) 4634 return 4635 } 4636 4637 // SetM11 sets the value of property "DOMMatrix.m11" to val. 4638 // 4639 // It returns false if the property cannot be set. 4640 func (this DOMMatrix) SetM11(val float64) bool { 4641 return js.True == bindings.SetDOMMatrixM11( 4642 this.ref, 4643 float64(val), 4644 ) 4645 } 4646 4647 // M12 returns the value of property "DOMMatrix.m12". 4648 // 4649 // It returns ok=false if there is no such property. 4650 func (this DOMMatrix) M12() (ret float64, ok bool) { 4651 ok = js.True == bindings.GetDOMMatrixM12( 4652 this.ref, js.Pointer(&ret), 4653 ) 4654 return 4655 } 4656 4657 // SetM12 sets the value of property "DOMMatrix.m12" to val. 4658 // 4659 // It returns false if the property cannot be set. 4660 func (this DOMMatrix) SetM12(val float64) bool { 4661 return js.True == bindings.SetDOMMatrixM12( 4662 this.ref, 4663 float64(val), 4664 ) 4665 } 4666 4667 // M13 returns the value of property "DOMMatrix.m13". 4668 // 4669 // It returns ok=false if there is no such property. 4670 func (this DOMMatrix) M13() (ret float64, ok bool) { 4671 ok = js.True == bindings.GetDOMMatrixM13( 4672 this.ref, js.Pointer(&ret), 4673 ) 4674 return 4675 } 4676 4677 // SetM13 sets the value of property "DOMMatrix.m13" to val. 4678 // 4679 // It returns false if the property cannot be set. 4680 func (this DOMMatrix) SetM13(val float64) bool { 4681 return js.True == bindings.SetDOMMatrixM13( 4682 this.ref, 4683 float64(val), 4684 ) 4685 } 4686 4687 // M14 returns the value of property "DOMMatrix.m14". 4688 // 4689 // It returns ok=false if there is no such property. 4690 func (this DOMMatrix) M14() (ret float64, ok bool) { 4691 ok = js.True == bindings.GetDOMMatrixM14( 4692 this.ref, js.Pointer(&ret), 4693 ) 4694 return 4695 } 4696 4697 // SetM14 sets the value of property "DOMMatrix.m14" to val. 4698 // 4699 // It returns false if the property cannot be set. 4700 func (this DOMMatrix) SetM14(val float64) bool { 4701 return js.True == bindings.SetDOMMatrixM14( 4702 this.ref, 4703 float64(val), 4704 ) 4705 } 4706 4707 // M21 returns the value of property "DOMMatrix.m21". 4708 // 4709 // It returns ok=false if there is no such property. 4710 func (this DOMMatrix) M21() (ret float64, ok bool) { 4711 ok = js.True == bindings.GetDOMMatrixM21( 4712 this.ref, js.Pointer(&ret), 4713 ) 4714 return 4715 } 4716 4717 // SetM21 sets the value of property "DOMMatrix.m21" to val. 4718 // 4719 // It returns false if the property cannot be set. 4720 func (this DOMMatrix) SetM21(val float64) bool { 4721 return js.True == bindings.SetDOMMatrixM21( 4722 this.ref, 4723 float64(val), 4724 ) 4725 } 4726 4727 // M22 returns the value of property "DOMMatrix.m22". 4728 // 4729 // It returns ok=false if there is no such property. 4730 func (this DOMMatrix) M22() (ret float64, ok bool) { 4731 ok = js.True == bindings.GetDOMMatrixM22( 4732 this.ref, js.Pointer(&ret), 4733 ) 4734 return 4735 } 4736 4737 // SetM22 sets the value of property "DOMMatrix.m22" to val. 4738 // 4739 // It returns false if the property cannot be set. 4740 func (this DOMMatrix) SetM22(val float64) bool { 4741 return js.True == bindings.SetDOMMatrixM22( 4742 this.ref, 4743 float64(val), 4744 ) 4745 } 4746 4747 // M23 returns the value of property "DOMMatrix.m23". 4748 // 4749 // It returns ok=false if there is no such property. 4750 func (this DOMMatrix) M23() (ret float64, ok bool) { 4751 ok = js.True == bindings.GetDOMMatrixM23( 4752 this.ref, js.Pointer(&ret), 4753 ) 4754 return 4755 } 4756 4757 // SetM23 sets the value of property "DOMMatrix.m23" to val. 4758 // 4759 // It returns false if the property cannot be set. 4760 func (this DOMMatrix) SetM23(val float64) bool { 4761 return js.True == bindings.SetDOMMatrixM23( 4762 this.ref, 4763 float64(val), 4764 ) 4765 } 4766 4767 // M24 returns the value of property "DOMMatrix.m24". 4768 // 4769 // It returns ok=false if there is no such property. 4770 func (this DOMMatrix) M24() (ret float64, ok bool) { 4771 ok = js.True == bindings.GetDOMMatrixM24( 4772 this.ref, js.Pointer(&ret), 4773 ) 4774 return 4775 } 4776 4777 // SetM24 sets the value of property "DOMMatrix.m24" to val. 4778 // 4779 // It returns false if the property cannot be set. 4780 func (this DOMMatrix) SetM24(val float64) bool { 4781 return js.True == bindings.SetDOMMatrixM24( 4782 this.ref, 4783 float64(val), 4784 ) 4785 } 4786 4787 // M31 returns the value of property "DOMMatrix.m31". 4788 // 4789 // It returns ok=false if there is no such property. 4790 func (this DOMMatrix) M31() (ret float64, ok bool) { 4791 ok = js.True == bindings.GetDOMMatrixM31( 4792 this.ref, js.Pointer(&ret), 4793 ) 4794 return 4795 } 4796 4797 // SetM31 sets the value of property "DOMMatrix.m31" to val. 4798 // 4799 // It returns false if the property cannot be set. 4800 func (this DOMMatrix) SetM31(val float64) bool { 4801 return js.True == bindings.SetDOMMatrixM31( 4802 this.ref, 4803 float64(val), 4804 ) 4805 } 4806 4807 // M32 returns the value of property "DOMMatrix.m32". 4808 // 4809 // It returns ok=false if there is no such property. 4810 func (this DOMMatrix) M32() (ret float64, ok bool) { 4811 ok = js.True == bindings.GetDOMMatrixM32( 4812 this.ref, js.Pointer(&ret), 4813 ) 4814 return 4815 } 4816 4817 // SetM32 sets the value of property "DOMMatrix.m32" to val. 4818 // 4819 // It returns false if the property cannot be set. 4820 func (this DOMMatrix) SetM32(val float64) bool { 4821 return js.True == bindings.SetDOMMatrixM32( 4822 this.ref, 4823 float64(val), 4824 ) 4825 } 4826 4827 // M33 returns the value of property "DOMMatrix.m33". 4828 // 4829 // It returns ok=false if there is no such property. 4830 func (this DOMMatrix) M33() (ret float64, ok bool) { 4831 ok = js.True == bindings.GetDOMMatrixM33( 4832 this.ref, js.Pointer(&ret), 4833 ) 4834 return 4835 } 4836 4837 // SetM33 sets the value of property "DOMMatrix.m33" to val. 4838 // 4839 // It returns false if the property cannot be set. 4840 func (this DOMMatrix) SetM33(val float64) bool { 4841 return js.True == bindings.SetDOMMatrixM33( 4842 this.ref, 4843 float64(val), 4844 ) 4845 } 4846 4847 // M34 returns the value of property "DOMMatrix.m34". 4848 // 4849 // It returns ok=false if there is no such property. 4850 func (this DOMMatrix) M34() (ret float64, ok bool) { 4851 ok = js.True == bindings.GetDOMMatrixM34( 4852 this.ref, js.Pointer(&ret), 4853 ) 4854 return 4855 } 4856 4857 // SetM34 sets the value of property "DOMMatrix.m34" to val. 4858 // 4859 // It returns false if the property cannot be set. 4860 func (this DOMMatrix) SetM34(val float64) bool { 4861 return js.True == bindings.SetDOMMatrixM34( 4862 this.ref, 4863 float64(val), 4864 ) 4865 } 4866 4867 // M41 returns the value of property "DOMMatrix.m41". 4868 // 4869 // It returns ok=false if there is no such property. 4870 func (this DOMMatrix) M41() (ret float64, ok bool) { 4871 ok = js.True == bindings.GetDOMMatrixM41( 4872 this.ref, js.Pointer(&ret), 4873 ) 4874 return 4875 } 4876 4877 // SetM41 sets the value of property "DOMMatrix.m41" to val. 4878 // 4879 // It returns false if the property cannot be set. 4880 func (this DOMMatrix) SetM41(val float64) bool { 4881 return js.True == bindings.SetDOMMatrixM41( 4882 this.ref, 4883 float64(val), 4884 ) 4885 } 4886 4887 // M42 returns the value of property "DOMMatrix.m42". 4888 // 4889 // It returns ok=false if there is no such property. 4890 func (this DOMMatrix) M42() (ret float64, ok bool) { 4891 ok = js.True == bindings.GetDOMMatrixM42( 4892 this.ref, js.Pointer(&ret), 4893 ) 4894 return 4895 } 4896 4897 // SetM42 sets the value of property "DOMMatrix.m42" to val. 4898 // 4899 // It returns false if the property cannot be set. 4900 func (this DOMMatrix) SetM42(val float64) bool { 4901 return js.True == bindings.SetDOMMatrixM42( 4902 this.ref, 4903 float64(val), 4904 ) 4905 } 4906 4907 // M43 returns the value of property "DOMMatrix.m43". 4908 // 4909 // It returns ok=false if there is no such property. 4910 func (this DOMMatrix) M43() (ret float64, ok bool) { 4911 ok = js.True == bindings.GetDOMMatrixM43( 4912 this.ref, js.Pointer(&ret), 4913 ) 4914 return 4915 } 4916 4917 // SetM43 sets the value of property "DOMMatrix.m43" to val. 4918 // 4919 // It returns false if the property cannot be set. 4920 func (this DOMMatrix) SetM43(val float64) bool { 4921 return js.True == bindings.SetDOMMatrixM43( 4922 this.ref, 4923 float64(val), 4924 ) 4925 } 4926 4927 // M44 returns the value of property "DOMMatrix.m44". 4928 // 4929 // It returns ok=false if there is no such property. 4930 func (this DOMMatrix) M44() (ret float64, ok bool) { 4931 ok = js.True == bindings.GetDOMMatrixM44( 4932 this.ref, js.Pointer(&ret), 4933 ) 4934 return 4935 } 4936 4937 // SetM44 sets the value of property "DOMMatrix.m44" to val. 4938 // 4939 // It returns false if the property cannot be set. 4940 func (this DOMMatrix) SetM44(val float64) bool { 4941 return js.True == bindings.SetDOMMatrixM44( 4942 this.ref, 4943 float64(val), 4944 ) 4945 } 4946 4947 // HasFuncFromMatrix returns true if the static method "DOMMatrix.fromMatrix" exists. 4948 func (this DOMMatrix) HasFuncFromMatrix() bool { 4949 return js.True == bindings.HasFuncDOMMatrixFromMatrix( 4950 this.ref, 4951 ) 4952 } 4953 4954 // FuncFromMatrix returns the static method "DOMMatrix.fromMatrix". 4955 func (this DOMMatrix) FuncFromMatrix() (fn js.Func[func(other DOMMatrixInit) DOMMatrix]) { 4956 bindings.FuncDOMMatrixFromMatrix( 4957 this.ref, js.Pointer(&fn), 4958 ) 4959 return 4960 } 4961 4962 // FromMatrix calls the static method "DOMMatrix.fromMatrix". 4963 func (this DOMMatrix) FromMatrix(other DOMMatrixInit) (ret DOMMatrix) { 4964 bindings.CallDOMMatrixFromMatrix( 4965 this.ref, js.Pointer(&ret), 4966 js.Pointer(&other), 4967 ) 4968 4969 return 4970 } 4971 4972 // TryFromMatrix calls the static method "DOMMatrix.fromMatrix" 4973 // in a try/catch block and returns (_, err, ok = false) when it went through 4974 // the catch clause. 4975 func (this DOMMatrix) TryFromMatrix(other DOMMatrixInit) (ret DOMMatrix, exception js.Any, ok bool) { 4976 ok = js.True == bindings.TryDOMMatrixFromMatrix( 4977 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4978 js.Pointer(&other), 4979 ) 4980 4981 return 4982 } 4983 4984 // HasFuncFromMatrix1 returns true if the static method "DOMMatrix.fromMatrix" exists. 4985 func (this DOMMatrix) HasFuncFromMatrix1() bool { 4986 return js.True == bindings.HasFuncDOMMatrixFromMatrix1( 4987 this.ref, 4988 ) 4989 } 4990 4991 // FuncFromMatrix1 returns the static method "DOMMatrix.fromMatrix". 4992 func (this DOMMatrix) FuncFromMatrix1() (fn js.Func[func() DOMMatrix]) { 4993 bindings.FuncDOMMatrixFromMatrix1( 4994 this.ref, js.Pointer(&fn), 4995 ) 4996 return 4997 } 4998 4999 // FromMatrix1 calls the static method "DOMMatrix.fromMatrix". 5000 func (this DOMMatrix) FromMatrix1() (ret DOMMatrix) { 5001 bindings.CallDOMMatrixFromMatrix1( 5002 this.ref, js.Pointer(&ret), 5003 ) 5004 5005 return 5006 } 5007 5008 // TryFromMatrix1 calls the static method "DOMMatrix.fromMatrix" 5009 // in a try/catch block and returns (_, err, ok = false) when it went through 5010 // the catch clause. 5011 func (this DOMMatrix) TryFromMatrix1() (ret DOMMatrix, exception js.Any, ok bool) { 5012 ok = js.True == bindings.TryDOMMatrixFromMatrix1( 5013 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5014 ) 5015 5016 return 5017 } 5018 5019 // HasFuncFromFloat32Array returns true if the static method "DOMMatrix.fromFloat32Array" exists. 5020 func (this DOMMatrix) HasFuncFromFloat32Array() bool { 5021 return js.True == bindings.HasFuncDOMMatrixFromFloat32Array( 5022 this.ref, 5023 ) 5024 } 5025 5026 // FuncFromFloat32Array returns the static method "DOMMatrix.fromFloat32Array". 5027 func (this DOMMatrix) FuncFromFloat32Array() (fn js.Func[func(array32 js.TypedArray[float32]) DOMMatrix]) { 5028 bindings.FuncDOMMatrixFromFloat32Array( 5029 this.ref, js.Pointer(&fn), 5030 ) 5031 return 5032 } 5033 5034 // FromFloat32Array calls the static method "DOMMatrix.fromFloat32Array". 5035 func (this DOMMatrix) FromFloat32Array(array32 js.TypedArray[float32]) (ret DOMMatrix) { 5036 bindings.CallDOMMatrixFromFloat32Array( 5037 this.ref, js.Pointer(&ret), 5038 array32.Ref(), 5039 ) 5040 5041 return 5042 } 5043 5044 // TryFromFloat32Array calls the static method "DOMMatrix.fromFloat32Array" 5045 // in a try/catch block and returns (_, err, ok = false) when it went through 5046 // the catch clause. 5047 func (this DOMMatrix) TryFromFloat32Array(array32 js.TypedArray[float32]) (ret DOMMatrix, exception js.Any, ok bool) { 5048 ok = js.True == bindings.TryDOMMatrixFromFloat32Array( 5049 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5050 array32.Ref(), 5051 ) 5052 5053 return 5054 } 5055 5056 // HasFuncFromFloat64Array returns true if the static method "DOMMatrix.fromFloat64Array" exists. 5057 func (this DOMMatrix) HasFuncFromFloat64Array() bool { 5058 return js.True == bindings.HasFuncDOMMatrixFromFloat64Array( 5059 this.ref, 5060 ) 5061 } 5062 5063 // FuncFromFloat64Array returns the static method "DOMMatrix.fromFloat64Array". 5064 func (this DOMMatrix) FuncFromFloat64Array() (fn js.Func[func(array64 js.TypedArray[float64]) DOMMatrix]) { 5065 bindings.FuncDOMMatrixFromFloat64Array( 5066 this.ref, js.Pointer(&fn), 5067 ) 5068 return 5069 } 5070 5071 // FromFloat64Array calls the static method "DOMMatrix.fromFloat64Array". 5072 func (this DOMMatrix) FromFloat64Array(array64 js.TypedArray[float64]) (ret DOMMatrix) { 5073 bindings.CallDOMMatrixFromFloat64Array( 5074 this.ref, js.Pointer(&ret), 5075 array64.Ref(), 5076 ) 5077 5078 return 5079 } 5080 5081 // TryFromFloat64Array calls the static method "DOMMatrix.fromFloat64Array" 5082 // in a try/catch block and returns (_, err, ok = false) when it went through 5083 // the catch clause. 5084 func (this DOMMatrix) TryFromFloat64Array(array64 js.TypedArray[float64]) (ret DOMMatrix, exception js.Any, ok bool) { 5085 ok = js.True == bindings.TryDOMMatrixFromFloat64Array( 5086 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5087 array64.Ref(), 5088 ) 5089 5090 return 5091 } 5092 5093 // HasFuncMultiplySelf returns true if the method "DOMMatrix.multiplySelf" exists. 5094 func (this DOMMatrix) HasFuncMultiplySelf() bool { 5095 return js.True == bindings.HasFuncDOMMatrixMultiplySelf( 5096 this.ref, 5097 ) 5098 } 5099 5100 // FuncMultiplySelf returns the method "DOMMatrix.multiplySelf". 5101 func (this DOMMatrix) FuncMultiplySelf() (fn js.Func[func(other DOMMatrixInit) DOMMatrix]) { 5102 bindings.FuncDOMMatrixMultiplySelf( 5103 this.ref, js.Pointer(&fn), 5104 ) 5105 return 5106 } 5107 5108 // MultiplySelf calls the method "DOMMatrix.multiplySelf". 5109 func (this DOMMatrix) MultiplySelf(other DOMMatrixInit) (ret DOMMatrix) { 5110 bindings.CallDOMMatrixMultiplySelf( 5111 this.ref, js.Pointer(&ret), 5112 js.Pointer(&other), 5113 ) 5114 5115 return 5116 } 5117 5118 // TryMultiplySelf calls the method "DOMMatrix.multiplySelf" 5119 // in a try/catch block and returns (_, err, ok = false) when it went through 5120 // the catch clause. 5121 func (this DOMMatrix) TryMultiplySelf(other DOMMatrixInit) (ret DOMMatrix, exception js.Any, ok bool) { 5122 ok = js.True == bindings.TryDOMMatrixMultiplySelf( 5123 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5124 js.Pointer(&other), 5125 ) 5126 5127 return 5128 } 5129 5130 // HasFuncMultiplySelf1 returns true if the method "DOMMatrix.multiplySelf" exists. 5131 func (this DOMMatrix) HasFuncMultiplySelf1() bool { 5132 return js.True == bindings.HasFuncDOMMatrixMultiplySelf1( 5133 this.ref, 5134 ) 5135 } 5136 5137 // FuncMultiplySelf1 returns the method "DOMMatrix.multiplySelf". 5138 func (this DOMMatrix) FuncMultiplySelf1() (fn js.Func[func() DOMMatrix]) { 5139 bindings.FuncDOMMatrixMultiplySelf1( 5140 this.ref, js.Pointer(&fn), 5141 ) 5142 return 5143 } 5144 5145 // MultiplySelf1 calls the method "DOMMatrix.multiplySelf". 5146 func (this DOMMatrix) MultiplySelf1() (ret DOMMatrix) { 5147 bindings.CallDOMMatrixMultiplySelf1( 5148 this.ref, js.Pointer(&ret), 5149 ) 5150 5151 return 5152 } 5153 5154 // TryMultiplySelf1 calls the method "DOMMatrix.multiplySelf" 5155 // in a try/catch block and returns (_, err, ok = false) when it went through 5156 // the catch clause. 5157 func (this DOMMatrix) TryMultiplySelf1() (ret DOMMatrix, exception js.Any, ok bool) { 5158 ok = js.True == bindings.TryDOMMatrixMultiplySelf1( 5159 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5160 ) 5161 5162 return 5163 } 5164 5165 // HasFuncPreMultiplySelf returns true if the method "DOMMatrix.preMultiplySelf" exists. 5166 func (this DOMMatrix) HasFuncPreMultiplySelf() bool { 5167 return js.True == bindings.HasFuncDOMMatrixPreMultiplySelf( 5168 this.ref, 5169 ) 5170 } 5171 5172 // FuncPreMultiplySelf returns the method "DOMMatrix.preMultiplySelf". 5173 func (this DOMMatrix) FuncPreMultiplySelf() (fn js.Func[func(other DOMMatrixInit) DOMMatrix]) { 5174 bindings.FuncDOMMatrixPreMultiplySelf( 5175 this.ref, js.Pointer(&fn), 5176 ) 5177 return 5178 } 5179 5180 // PreMultiplySelf calls the method "DOMMatrix.preMultiplySelf". 5181 func (this DOMMatrix) PreMultiplySelf(other DOMMatrixInit) (ret DOMMatrix) { 5182 bindings.CallDOMMatrixPreMultiplySelf( 5183 this.ref, js.Pointer(&ret), 5184 js.Pointer(&other), 5185 ) 5186 5187 return 5188 } 5189 5190 // TryPreMultiplySelf calls the method "DOMMatrix.preMultiplySelf" 5191 // in a try/catch block and returns (_, err, ok = false) when it went through 5192 // the catch clause. 5193 func (this DOMMatrix) TryPreMultiplySelf(other DOMMatrixInit) (ret DOMMatrix, exception js.Any, ok bool) { 5194 ok = js.True == bindings.TryDOMMatrixPreMultiplySelf( 5195 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5196 js.Pointer(&other), 5197 ) 5198 5199 return 5200 } 5201 5202 // HasFuncPreMultiplySelf1 returns true if the method "DOMMatrix.preMultiplySelf" exists. 5203 func (this DOMMatrix) HasFuncPreMultiplySelf1() bool { 5204 return js.True == bindings.HasFuncDOMMatrixPreMultiplySelf1( 5205 this.ref, 5206 ) 5207 } 5208 5209 // FuncPreMultiplySelf1 returns the method "DOMMatrix.preMultiplySelf". 5210 func (this DOMMatrix) FuncPreMultiplySelf1() (fn js.Func[func() DOMMatrix]) { 5211 bindings.FuncDOMMatrixPreMultiplySelf1( 5212 this.ref, js.Pointer(&fn), 5213 ) 5214 return 5215 } 5216 5217 // PreMultiplySelf1 calls the method "DOMMatrix.preMultiplySelf". 5218 func (this DOMMatrix) PreMultiplySelf1() (ret DOMMatrix) { 5219 bindings.CallDOMMatrixPreMultiplySelf1( 5220 this.ref, js.Pointer(&ret), 5221 ) 5222 5223 return 5224 } 5225 5226 // TryPreMultiplySelf1 calls the method "DOMMatrix.preMultiplySelf" 5227 // in a try/catch block and returns (_, err, ok = false) when it went through 5228 // the catch clause. 5229 func (this DOMMatrix) TryPreMultiplySelf1() (ret DOMMatrix, exception js.Any, ok bool) { 5230 ok = js.True == bindings.TryDOMMatrixPreMultiplySelf1( 5231 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5232 ) 5233 5234 return 5235 } 5236 5237 // HasFuncTranslateSelf returns true if the method "DOMMatrix.translateSelf" exists. 5238 func (this DOMMatrix) HasFuncTranslateSelf() bool { 5239 return js.True == bindings.HasFuncDOMMatrixTranslateSelf( 5240 this.ref, 5241 ) 5242 } 5243 5244 // FuncTranslateSelf returns the method "DOMMatrix.translateSelf". 5245 func (this DOMMatrix) FuncTranslateSelf() (fn js.Func[func(tx float64, ty float64, tz float64) DOMMatrix]) { 5246 bindings.FuncDOMMatrixTranslateSelf( 5247 this.ref, js.Pointer(&fn), 5248 ) 5249 return 5250 } 5251 5252 // TranslateSelf calls the method "DOMMatrix.translateSelf". 5253 func (this DOMMatrix) TranslateSelf(tx float64, ty float64, tz float64) (ret DOMMatrix) { 5254 bindings.CallDOMMatrixTranslateSelf( 5255 this.ref, js.Pointer(&ret), 5256 float64(tx), 5257 float64(ty), 5258 float64(tz), 5259 ) 5260 5261 return 5262 } 5263 5264 // TryTranslateSelf calls the method "DOMMatrix.translateSelf" 5265 // in a try/catch block and returns (_, err, ok = false) when it went through 5266 // the catch clause. 5267 func (this DOMMatrix) TryTranslateSelf(tx float64, ty float64, tz float64) (ret DOMMatrix, exception js.Any, ok bool) { 5268 ok = js.True == bindings.TryDOMMatrixTranslateSelf( 5269 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5270 float64(tx), 5271 float64(ty), 5272 float64(tz), 5273 ) 5274 5275 return 5276 } 5277 5278 // HasFuncTranslateSelf1 returns true if the method "DOMMatrix.translateSelf" exists. 5279 func (this DOMMatrix) HasFuncTranslateSelf1() bool { 5280 return js.True == bindings.HasFuncDOMMatrixTranslateSelf1( 5281 this.ref, 5282 ) 5283 } 5284 5285 // FuncTranslateSelf1 returns the method "DOMMatrix.translateSelf". 5286 func (this DOMMatrix) FuncTranslateSelf1() (fn js.Func[func(tx float64, ty float64) DOMMatrix]) { 5287 bindings.FuncDOMMatrixTranslateSelf1( 5288 this.ref, js.Pointer(&fn), 5289 ) 5290 return 5291 } 5292 5293 // TranslateSelf1 calls the method "DOMMatrix.translateSelf". 5294 func (this DOMMatrix) TranslateSelf1(tx float64, ty float64) (ret DOMMatrix) { 5295 bindings.CallDOMMatrixTranslateSelf1( 5296 this.ref, js.Pointer(&ret), 5297 float64(tx), 5298 float64(ty), 5299 ) 5300 5301 return 5302 } 5303 5304 // TryTranslateSelf1 calls the method "DOMMatrix.translateSelf" 5305 // in a try/catch block and returns (_, err, ok = false) when it went through 5306 // the catch clause. 5307 func (this DOMMatrix) TryTranslateSelf1(tx float64, ty float64) (ret DOMMatrix, exception js.Any, ok bool) { 5308 ok = js.True == bindings.TryDOMMatrixTranslateSelf1( 5309 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5310 float64(tx), 5311 float64(ty), 5312 ) 5313 5314 return 5315 } 5316 5317 // HasFuncTranslateSelf2 returns true if the method "DOMMatrix.translateSelf" exists. 5318 func (this DOMMatrix) HasFuncTranslateSelf2() bool { 5319 return js.True == bindings.HasFuncDOMMatrixTranslateSelf2( 5320 this.ref, 5321 ) 5322 } 5323 5324 // FuncTranslateSelf2 returns the method "DOMMatrix.translateSelf". 5325 func (this DOMMatrix) FuncTranslateSelf2() (fn js.Func[func(tx float64) DOMMatrix]) { 5326 bindings.FuncDOMMatrixTranslateSelf2( 5327 this.ref, js.Pointer(&fn), 5328 ) 5329 return 5330 } 5331 5332 // TranslateSelf2 calls the method "DOMMatrix.translateSelf". 5333 func (this DOMMatrix) TranslateSelf2(tx float64) (ret DOMMatrix) { 5334 bindings.CallDOMMatrixTranslateSelf2( 5335 this.ref, js.Pointer(&ret), 5336 float64(tx), 5337 ) 5338 5339 return 5340 } 5341 5342 // TryTranslateSelf2 calls the method "DOMMatrix.translateSelf" 5343 // in a try/catch block and returns (_, err, ok = false) when it went through 5344 // the catch clause. 5345 func (this DOMMatrix) TryTranslateSelf2(tx float64) (ret DOMMatrix, exception js.Any, ok bool) { 5346 ok = js.True == bindings.TryDOMMatrixTranslateSelf2( 5347 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5348 float64(tx), 5349 ) 5350 5351 return 5352 } 5353 5354 // HasFuncTranslateSelf3 returns true if the method "DOMMatrix.translateSelf" exists. 5355 func (this DOMMatrix) HasFuncTranslateSelf3() bool { 5356 return js.True == bindings.HasFuncDOMMatrixTranslateSelf3( 5357 this.ref, 5358 ) 5359 } 5360 5361 // FuncTranslateSelf3 returns the method "DOMMatrix.translateSelf". 5362 func (this DOMMatrix) FuncTranslateSelf3() (fn js.Func[func() DOMMatrix]) { 5363 bindings.FuncDOMMatrixTranslateSelf3( 5364 this.ref, js.Pointer(&fn), 5365 ) 5366 return 5367 } 5368 5369 // TranslateSelf3 calls the method "DOMMatrix.translateSelf". 5370 func (this DOMMatrix) TranslateSelf3() (ret DOMMatrix) { 5371 bindings.CallDOMMatrixTranslateSelf3( 5372 this.ref, js.Pointer(&ret), 5373 ) 5374 5375 return 5376 } 5377 5378 // TryTranslateSelf3 calls the method "DOMMatrix.translateSelf" 5379 // in a try/catch block and returns (_, err, ok = false) when it went through 5380 // the catch clause. 5381 func (this DOMMatrix) TryTranslateSelf3() (ret DOMMatrix, exception js.Any, ok bool) { 5382 ok = js.True == bindings.TryDOMMatrixTranslateSelf3( 5383 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5384 ) 5385 5386 return 5387 } 5388 5389 // HasFuncScaleSelf returns true if the method "DOMMatrix.scaleSelf" exists. 5390 func (this DOMMatrix) HasFuncScaleSelf() bool { 5391 return js.True == bindings.HasFuncDOMMatrixScaleSelf( 5392 this.ref, 5393 ) 5394 } 5395 5396 // FuncScaleSelf returns the method "DOMMatrix.scaleSelf". 5397 func (this DOMMatrix) FuncScaleSelf() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64, originZ float64) DOMMatrix]) { 5398 bindings.FuncDOMMatrixScaleSelf( 5399 this.ref, js.Pointer(&fn), 5400 ) 5401 return 5402 } 5403 5404 // ScaleSelf calls the method "DOMMatrix.scaleSelf". 5405 func (this DOMMatrix) ScaleSelf(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64, originZ float64) (ret DOMMatrix) { 5406 bindings.CallDOMMatrixScaleSelf( 5407 this.ref, js.Pointer(&ret), 5408 float64(scaleX), 5409 float64(scaleY), 5410 float64(scaleZ), 5411 float64(originX), 5412 float64(originY), 5413 float64(originZ), 5414 ) 5415 5416 return 5417 } 5418 5419 // TryScaleSelf calls the method "DOMMatrix.scaleSelf" 5420 // in a try/catch block and returns (_, err, ok = false) when it went through 5421 // the catch clause. 5422 func (this DOMMatrix) TryScaleSelf(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64, originZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 5423 ok = js.True == bindings.TryDOMMatrixScaleSelf( 5424 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5425 float64(scaleX), 5426 float64(scaleY), 5427 float64(scaleZ), 5428 float64(originX), 5429 float64(originY), 5430 float64(originZ), 5431 ) 5432 5433 return 5434 } 5435 5436 // HasFuncScaleSelf1 returns true if the method "DOMMatrix.scaleSelf" exists. 5437 func (this DOMMatrix) HasFuncScaleSelf1() bool { 5438 return js.True == bindings.HasFuncDOMMatrixScaleSelf1( 5439 this.ref, 5440 ) 5441 } 5442 5443 // FuncScaleSelf1 returns the method "DOMMatrix.scaleSelf". 5444 func (this DOMMatrix) FuncScaleSelf1() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64) DOMMatrix]) { 5445 bindings.FuncDOMMatrixScaleSelf1( 5446 this.ref, js.Pointer(&fn), 5447 ) 5448 return 5449 } 5450 5451 // ScaleSelf1 calls the method "DOMMatrix.scaleSelf". 5452 func (this DOMMatrix) ScaleSelf1(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64) (ret DOMMatrix) { 5453 bindings.CallDOMMatrixScaleSelf1( 5454 this.ref, js.Pointer(&ret), 5455 float64(scaleX), 5456 float64(scaleY), 5457 float64(scaleZ), 5458 float64(originX), 5459 float64(originY), 5460 ) 5461 5462 return 5463 } 5464 5465 // TryScaleSelf1 calls the method "DOMMatrix.scaleSelf" 5466 // in a try/catch block and returns (_, err, ok = false) when it went through 5467 // the catch clause. 5468 func (this DOMMatrix) TryScaleSelf1(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64) (ret DOMMatrix, exception js.Any, ok bool) { 5469 ok = js.True == bindings.TryDOMMatrixScaleSelf1( 5470 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5471 float64(scaleX), 5472 float64(scaleY), 5473 float64(scaleZ), 5474 float64(originX), 5475 float64(originY), 5476 ) 5477 5478 return 5479 } 5480 5481 // HasFuncScaleSelf2 returns true if the method "DOMMatrix.scaleSelf" exists. 5482 func (this DOMMatrix) HasFuncScaleSelf2() bool { 5483 return js.True == bindings.HasFuncDOMMatrixScaleSelf2( 5484 this.ref, 5485 ) 5486 } 5487 5488 // FuncScaleSelf2 returns the method "DOMMatrix.scaleSelf". 5489 func (this DOMMatrix) FuncScaleSelf2() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64, originX float64) DOMMatrix]) { 5490 bindings.FuncDOMMatrixScaleSelf2( 5491 this.ref, js.Pointer(&fn), 5492 ) 5493 return 5494 } 5495 5496 // ScaleSelf2 calls the method "DOMMatrix.scaleSelf". 5497 func (this DOMMatrix) ScaleSelf2(scaleX float64, scaleY float64, scaleZ float64, originX float64) (ret DOMMatrix) { 5498 bindings.CallDOMMatrixScaleSelf2( 5499 this.ref, js.Pointer(&ret), 5500 float64(scaleX), 5501 float64(scaleY), 5502 float64(scaleZ), 5503 float64(originX), 5504 ) 5505 5506 return 5507 } 5508 5509 // TryScaleSelf2 calls the method "DOMMatrix.scaleSelf" 5510 // in a try/catch block and returns (_, err, ok = false) when it went through 5511 // the catch clause. 5512 func (this DOMMatrix) TryScaleSelf2(scaleX float64, scaleY float64, scaleZ float64, originX float64) (ret DOMMatrix, exception js.Any, ok bool) { 5513 ok = js.True == bindings.TryDOMMatrixScaleSelf2( 5514 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5515 float64(scaleX), 5516 float64(scaleY), 5517 float64(scaleZ), 5518 float64(originX), 5519 ) 5520 5521 return 5522 } 5523 5524 // HasFuncScaleSelf3 returns true if the method "DOMMatrix.scaleSelf" exists. 5525 func (this DOMMatrix) HasFuncScaleSelf3() bool { 5526 return js.True == bindings.HasFuncDOMMatrixScaleSelf3( 5527 this.ref, 5528 ) 5529 } 5530 5531 // FuncScaleSelf3 returns the method "DOMMatrix.scaleSelf". 5532 func (this DOMMatrix) FuncScaleSelf3() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64) DOMMatrix]) { 5533 bindings.FuncDOMMatrixScaleSelf3( 5534 this.ref, js.Pointer(&fn), 5535 ) 5536 return 5537 } 5538 5539 // ScaleSelf3 calls the method "DOMMatrix.scaleSelf". 5540 func (this DOMMatrix) ScaleSelf3(scaleX float64, scaleY float64, scaleZ float64) (ret DOMMatrix) { 5541 bindings.CallDOMMatrixScaleSelf3( 5542 this.ref, js.Pointer(&ret), 5543 float64(scaleX), 5544 float64(scaleY), 5545 float64(scaleZ), 5546 ) 5547 5548 return 5549 } 5550 5551 // TryScaleSelf3 calls the method "DOMMatrix.scaleSelf" 5552 // in a try/catch block and returns (_, err, ok = false) when it went through 5553 // the catch clause. 5554 func (this DOMMatrix) TryScaleSelf3(scaleX float64, scaleY float64, scaleZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 5555 ok = js.True == bindings.TryDOMMatrixScaleSelf3( 5556 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5557 float64(scaleX), 5558 float64(scaleY), 5559 float64(scaleZ), 5560 ) 5561 5562 return 5563 } 5564 5565 // HasFuncScaleSelf4 returns true if the method "DOMMatrix.scaleSelf" exists. 5566 func (this DOMMatrix) HasFuncScaleSelf4() bool { 5567 return js.True == bindings.HasFuncDOMMatrixScaleSelf4( 5568 this.ref, 5569 ) 5570 } 5571 5572 // FuncScaleSelf4 returns the method "DOMMatrix.scaleSelf". 5573 func (this DOMMatrix) FuncScaleSelf4() (fn js.Func[func(scaleX float64, scaleY float64) DOMMatrix]) { 5574 bindings.FuncDOMMatrixScaleSelf4( 5575 this.ref, js.Pointer(&fn), 5576 ) 5577 return 5578 } 5579 5580 // ScaleSelf4 calls the method "DOMMatrix.scaleSelf". 5581 func (this DOMMatrix) ScaleSelf4(scaleX float64, scaleY float64) (ret DOMMatrix) { 5582 bindings.CallDOMMatrixScaleSelf4( 5583 this.ref, js.Pointer(&ret), 5584 float64(scaleX), 5585 float64(scaleY), 5586 ) 5587 5588 return 5589 } 5590 5591 // TryScaleSelf4 calls the method "DOMMatrix.scaleSelf" 5592 // in a try/catch block and returns (_, err, ok = false) when it went through 5593 // the catch clause. 5594 func (this DOMMatrix) TryScaleSelf4(scaleX float64, scaleY float64) (ret DOMMatrix, exception js.Any, ok bool) { 5595 ok = js.True == bindings.TryDOMMatrixScaleSelf4( 5596 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5597 float64(scaleX), 5598 float64(scaleY), 5599 ) 5600 5601 return 5602 } 5603 5604 // HasFuncScaleSelf5 returns true if the method "DOMMatrix.scaleSelf" exists. 5605 func (this DOMMatrix) HasFuncScaleSelf5() bool { 5606 return js.True == bindings.HasFuncDOMMatrixScaleSelf5( 5607 this.ref, 5608 ) 5609 } 5610 5611 // FuncScaleSelf5 returns the method "DOMMatrix.scaleSelf". 5612 func (this DOMMatrix) FuncScaleSelf5() (fn js.Func[func(scaleX float64) DOMMatrix]) { 5613 bindings.FuncDOMMatrixScaleSelf5( 5614 this.ref, js.Pointer(&fn), 5615 ) 5616 return 5617 } 5618 5619 // ScaleSelf5 calls the method "DOMMatrix.scaleSelf". 5620 func (this DOMMatrix) ScaleSelf5(scaleX float64) (ret DOMMatrix) { 5621 bindings.CallDOMMatrixScaleSelf5( 5622 this.ref, js.Pointer(&ret), 5623 float64(scaleX), 5624 ) 5625 5626 return 5627 } 5628 5629 // TryScaleSelf5 calls the method "DOMMatrix.scaleSelf" 5630 // in a try/catch block and returns (_, err, ok = false) when it went through 5631 // the catch clause. 5632 func (this DOMMatrix) TryScaleSelf5(scaleX float64) (ret DOMMatrix, exception js.Any, ok bool) { 5633 ok = js.True == bindings.TryDOMMatrixScaleSelf5( 5634 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5635 float64(scaleX), 5636 ) 5637 5638 return 5639 } 5640 5641 // HasFuncScaleSelf6 returns true if the method "DOMMatrix.scaleSelf" exists. 5642 func (this DOMMatrix) HasFuncScaleSelf6() bool { 5643 return js.True == bindings.HasFuncDOMMatrixScaleSelf6( 5644 this.ref, 5645 ) 5646 } 5647 5648 // FuncScaleSelf6 returns the method "DOMMatrix.scaleSelf". 5649 func (this DOMMatrix) FuncScaleSelf6() (fn js.Func[func() DOMMatrix]) { 5650 bindings.FuncDOMMatrixScaleSelf6( 5651 this.ref, js.Pointer(&fn), 5652 ) 5653 return 5654 } 5655 5656 // ScaleSelf6 calls the method "DOMMatrix.scaleSelf". 5657 func (this DOMMatrix) ScaleSelf6() (ret DOMMatrix) { 5658 bindings.CallDOMMatrixScaleSelf6( 5659 this.ref, js.Pointer(&ret), 5660 ) 5661 5662 return 5663 } 5664 5665 // TryScaleSelf6 calls the method "DOMMatrix.scaleSelf" 5666 // in a try/catch block and returns (_, err, ok = false) when it went through 5667 // the catch clause. 5668 func (this DOMMatrix) TryScaleSelf6() (ret DOMMatrix, exception js.Any, ok bool) { 5669 ok = js.True == bindings.TryDOMMatrixScaleSelf6( 5670 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5671 ) 5672 5673 return 5674 } 5675 5676 // HasFuncScale3dSelf returns true if the method "DOMMatrix.scale3dSelf" exists. 5677 func (this DOMMatrix) HasFuncScale3dSelf() bool { 5678 return js.True == bindings.HasFuncDOMMatrixScale3dSelf( 5679 this.ref, 5680 ) 5681 } 5682 5683 // FuncScale3dSelf returns the method "DOMMatrix.scale3dSelf". 5684 func (this DOMMatrix) FuncScale3dSelf() (fn js.Func[func(scale float64, originX float64, originY float64, originZ float64) DOMMatrix]) { 5685 bindings.FuncDOMMatrixScale3dSelf( 5686 this.ref, js.Pointer(&fn), 5687 ) 5688 return 5689 } 5690 5691 // Scale3dSelf calls the method "DOMMatrix.scale3dSelf". 5692 func (this DOMMatrix) Scale3dSelf(scale float64, originX float64, originY float64, originZ float64) (ret DOMMatrix) { 5693 bindings.CallDOMMatrixScale3dSelf( 5694 this.ref, js.Pointer(&ret), 5695 float64(scale), 5696 float64(originX), 5697 float64(originY), 5698 float64(originZ), 5699 ) 5700 5701 return 5702 } 5703 5704 // TryScale3dSelf calls the method "DOMMatrix.scale3dSelf" 5705 // in a try/catch block and returns (_, err, ok = false) when it went through 5706 // the catch clause. 5707 func (this DOMMatrix) TryScale3dSelf(scale float64, originX float64, originY float64, originZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 5708 ok = js.True == bindings.TryDOMMatrixScale3dSelf( 5709 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5710 float64(scale), 5711 float64(originX), 5712 float64(originY), 5713 float64(originZ), 5714 ) 5715 5716 return 5717 } 5718 5719 // HasFuncScale3dSelf1 returns true if the method "DOMMatrix.scale3dSelf" exists. 5720 func (this DOMMatrix) HasFuncScale3dSelf1() bool { 5721 return js.True == bindings.HasFuncDOMMatrixScale3dSelf1( 5722 this.ref, 5723 ) 5724 } 5725 5726 // FuncScale3dSelf1 returns the method "DOMMatrix.scale3dSelf". 5727 func (this DOMMatrix) FuncScale3dSelf1() (fn js.Func[func(scale float64, originX float64, originY float64) DOMMatrix]) { 5728 bindings.FuncDOMMatrixScale3dSelf1( 5729 this.ref, js.Pointer(&fn), 5730 ) 5731 return 5732 } 5733 5734 // Scale3dSelf1 calls the method "DOMMatrix.scale3dSelf". 5735 func (this DOMMatrix) Scale3dSelf1(scale float64, originX float64, originY float64) (ret DOMMatrix) { 5736 bindings.CallDOMMatrixScale3dSelf1( 5737 this.ref, js.Pointer(&ret), 5738 float64(scale), 5739 float64(originX), 5740 float64(originY), 5741 ) 5742 5743 return 5744 } 5745 5746 // TryScale3dSelf1 calls the method "DOMMatrix.scale3dSelf" 5747 // in a try/catch block and returns (_, err, ok = false) when it went through 5748 // the catch clause. 5749 func (this DOMMatrix) TryScale3dSelf1(scale float64, originX float64, originY float64) (ret DOMMatrix, exception js.Any, ok bool) { 5750 ok = js.True == bindings.TryDOMMatrixScale3dSelf1( 5751 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5752 float64(scale), 5753 float64(originX), 5754 float64(originY), 5755 ) 5756 5757 return 5758 } 5759 5760 // HasFuncScale3dSelf2 returns true if the method "DOMMatrix.scale3dSelf" exists. 5761 func (this DOMMatrix) HasFuncScale3dSelf2() bool { 5762 return js.True == bindings.HasFuncDOMMatrixScale3dSelf2( 5763 this.ref, 5764 ) 5765 } 5766 5767 // FuncScale3dSelf2 returns the method "DOMMatrix.scale3dSelf". 5768 func (this DOMMatrix) FuncScale3dSelf2() (fn js.Func[func(scale float64, originX float64) DOMMatrix]) { 5769 bindings.FuncDOMMatrixScale3dSelf2( 5770 this.ref, js.Pointer(&fn), 5771 ) 5772 return 5773 } 5774 5775 // Scale3dSelf2 calls the method "DOMMatrix.scale3dSelf". 5776 func (this DOMMatrix) Scale3dSelf2(scale float64, originX float64) (ret DOMMatrix) { 5777 bindings.CallDOMMatrixScale3dSelf2( 5778 this.ref, js.Pointer(&ret), 5779 float64(scale), 5780 float64(originX), 5781 ) 5782 5783 return 5784 } 5785 5786 // TryScale3dSelf2 calls the method "DOMMatrix.scale3dSelf" 5787 // in a try/catch block and returns (_, err, ok = false) when it went through 5788 // the catch clause. 5789 func (this DOMMatrix) TryScale3dSelf2(scale float64, originX float64) (ret DOMMatrix, exception js.Any, ok bool) { 5790 ok = js.True == bindings.TryDOMMatrixScale3dSelf2( 5791 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5792 float64(scale), 5793 float64(originX), 5794 ) 5795 5796 return 5797 } 5798 5799 // HasFuncScale3dSelf3 returns true if the method "DOMMatrix.scale3dSelf" exists. 5800 func (this DOMMatrix) HasFuncScale3dSelf3() bool { 5801 return js.True == bindings.HasFuncDOMMatrixScale3dSelf3( 5802 this.ref, 5803 ) 5804 } 5805 5806 // FuncScale3dSelf3 returns the method "DOMMatrix.scale3dSelf". 5807 func (this DOMMatrix) FuncScale3dSelf3() (fn js.Func[func(scale float64) DOMMatrix]) { 5808 bindings.FuncDOMMatrixScale3dSelf3( 5809 this.ref, js.Pointer(&fn), 5810 ) 5811 return 5812 } 5813 5814 // Scale3dSelf3 calls the method "DOMMatrix.scale3dSelf". 5815 func (this DOMMatrix) Scale3dSelf3(scale float64) (ret DOMMatrix) { 5816 bindings.CallDOMMatrixScale3dSelf3( 5817 this.ref, js.Pointer(&ret), 5818 float64(scale), 5819 ) 5820 5821 return 5822 } 5823 5824 // TryScale3dSelf3 calls the method "DOMMatrix.scale3dSelf" 5825 // in a try/catch block and returns (_, err, ok = false) when it went through 5826 // the catch clause. 5827 func (this DOMMatrix) TryScale3dSelf3(scale float64) (ret DOMMatrix, exception js.Any, ok bool) { 5828 ok = js.True == bindings.TryDOMMatrixScale3dSelf3( 5829 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5830 float64(scale), 5831 ) 5832 5833 return 5834 } 5835 5836 // HasFuncScale3dSelf4 returns true if the method "DOMMatrix.scale3dSelf" exists. 5837 func (this DOMMatrix) HasFuncScale3dSelf4() bool { 5838 return js.True == bindings.HasFuncDOMMatrixScale3dSelf4( 5839 this.ref, 5840 ) 5841 } 5842 5843 // FuncScale3dSelf4 returns the method "DOMMatrix.scale3dSelf". 5844 func (this DOMMatrix) FuncScale3dSelf4() (fn js.Func[func() DOMMatrix]) { 5845 bindings.FuncDOMMatrixScale3dSelf4( 5846 this.ref, js.Pointer(&fn), 5847 ) 5848 return 5849 } 5850 5851 // Scale3dSelf4 calls the method "DOMMatrix.scale3dSelf". 5852 func (this DOMMatrix) Scale3dSelf4() (ret DOMMatrix) { 5853 bindings.CallDOMMatrixScale3dSelf4( 5854 this.ref, js.Pointer(&ret), 5855 ) 5856 5857 return 5858 } 5859 5860 // TryScale3dSelf4 calls the method "DOMMatrix.scale3dSelf" 5861 // in a try/catch block and returns (_, err, ok = false) when it went through 5862 // the catch clause. 5863 func (this DOMMatrix) TryScale3dSelf4() (ret DOMMatrix, exception js.Any, ok bool) { 5864 ok = js.True == bindings.TryDOMMatrixScale3dSelf4( 5865 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5866 ) 5867 5868 return 5869 } 5870 5871 // HasFuncRotateSelf returns true if the method "DOMMatrix.rotateSelf" exists. 5872 func (this DOMMatrix) HasFuncRotateSelf() bool { 5873 return js.True == bindings.HasFuncDOMMatrixRotateSelf( 5874 this.ref, 5875 ) 5876 } 5877 5878 // FuncRotateSelf returns the method "DOMMatrix.rotateSelf". 5879 func (this DOMMatrix) FuncRotateSelf() (fn js.Func[func(rotX float64, rotY float64, rotZ float64) DOMMatrix]) { 5880 bindings.FuncDOMMatrixRotateSelf( 5881 this.ref, js.Pointer(&fn), 5882 ) 5883 return 5884 } 5885 5886 // RotateSelf calls the method "DOMMatrix.rotateSelf". 5887 func (this DOMMatrix) RotateSelf(rotX float64, rotY float64, rotZ float64) (ret DOMMatrix) { 5888 bindings.CallDOMMatrixRotateSelf( 5889 this.ref, js.Pointer(&ret), 5890 float64(rotX), 5891 float64(rotY), 5892 float64(rotZ), 5893 ) 5894 5895 return 5896 } 5897 5898 // TryRotateSelf calls the method "DOMMatrix.rotateSelf" 5899 // in a try/catch block and returns (_, err, ok = false) when it went through 5900 // the catch clause. 5901 func (this DOMMatrix) TryRotateSelf(rotX float64, rotY float64, rotZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 5902 ok = js.True == bindings.TryDOMMatrixRotateSelf( 5903 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5904 float64(rotX), 5905 float64(rotY), 5906 float64(rotZ), 5907 ) 5908 5909 return 5910 } 5911 5912 // HasFuncRotateSelf1 returns true if the method "DOMMatrix.rotateSelf" exists. 5913 func (this DOMMatrix) HasFuncRotateSelf1() bool { 5914 return js.True == bindings.HasFuncDOMMatrixRotateSelf1( 5915 this.ref, 5916 ) 5917 } 5918 5919 // FuncRotateSelf1 returns the method "DOMMatrix.rotateSelf". 5920 func (this DOMMatrix) FuncRotateSelf1() (fn js.Func[func(rotX float64, rotY float64) DOMMatrix]) { 5921 bindings.FuncDOMMatrixRotateSelf1( 5922 this.ref, js.Pointer(&fn), 5923 ) 5924 return 5925 } 5926 5927 // RotateSelf1 calls the method "DOMMatrix.rotateSelf". 5928 func (this DOMMatrix) RotateSelf1(rotX float64, rotY float64) (ret DOMMatrix) { 5929 bindings.CallDOMMatrixRotateSelf1( 5930 this.ref, js.Pointer(&ret), 5931 float64(rotX), 5932 float64(rotY), 5933 ) 5934 5935 return 5936 } 5937 5938 // TryRotateSelf1 calls the method "DOMMatrix.rotateSelf" 5939 // in a try/catch block and returns (_, err, ok = false) when it went through 5940 // the catch clause. 5941 func (this DOMMatrix) TryRotateSelf1(rotX float64, rotY float64) (ret DOMMatrix, exception js.Any, ok bool) { 5942 ok = js.True == bindings.TryDOMMatrixRotateSelf1( 5943 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5944 float64(rotX), 5945 float64(rotY), 5946 ) 5947 5948 return 5949 } 5950 5951 // HasFuncRotateSelf2 returns true if the method "DOMMatrix.rotateSelf" exists. 5952 func (this DOMMatrix) HasFuncRotateSelf2() bool { 5953 return js.True == bindings.HasFuncDOMMatrixRotateSelf2( 5954 this.ref, 5955 ) 5956 } 5957 5958 // FuncRotateSelf2 returns the method "DOMMatrix.rotateSelf". 5959 func (this DOMMatrix) FuncRotateSelf2() (fn js.Func[func(rotX float64) DOMMatrix]) { 5960 bindings.FuncDOMMatrixRotateSelf2( 5961 this.ref, js.Pointer(&fn), 5962 ) 5963 return 5964 } 5965 5966 // RotateSelf2 calls the method "DOMMatrix.rotateSelf". 5967 func (this DOMMatrix) RotateSelf2(rotX float64) (ret DOMMatrix) { 5968 bindings.CallDOMMatrixRotateSelf2( 5969 this.ref, js.Pointer(&ret), 5970 float64(rotX), 5971 ) 5972 5973 return 5974 } 5975 5976 // TryRotateSelf2 calls the method "DOMMatrix.rotateSelf" 5977 // in a try/catch block and returns (_, err, ok = false) when it went through 5978 // the catch clause. 5979 func (this DOMMatrix) TryRotateSelf2(rotX float64) (ret DOMMatrix, exception js.Any, ok bool) { 5980 ok = js.True == bindings.TryDOMMatrixRotateSelf2( 5981 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5982 float64(rotX), 5983 ) 5984 5985 return 5986 } 5987 5988 // HasFuncRotateSelf3 returns true if the method "DOMMatrix.rotateSelf" exists. 5989 func (this DOMMatrix) HasFuncRotateSelf3() bool { 5990 return js.True == bindings.HasFuncDOMMatrixRotateSelf3( 5991 this.ref, 5992 ) 5993 } 5994 5995 // FuncRotateSelf3 returns the method "DOMMatrix.rotateSelf". 5996 func (this DOMMatrix) FuncRotateSelf3() (fn js.Func[func() DOMMatrix]) { 5997 bindings.FuncDOMMatrixRotateSelf3( 5998 this.ref, js.Pointer(&fn), 5999 ) 6000 return 6001 } 6002 6003 // RotateSelf3 calls the method "DOMMatrix.rotateSelf". 6004 func (this DOMMatrix) RotateSelf3() (ret DOMMatrix) { 6005 bindings.CallDOMMatrixRotateSelf3( 6006 this.ref, js.Pointer(&ret), 6007 ) 6008 6009 return 6010 } 6011 6012 // TryRotateSelf3 calls the method "DOMMatrix.rotateSelf" 6013 // in a try/catch block and returns (_, err, ok = false) when it went through 6014 // the catch clause. 6015 func (this DOMMatrix) TryRotateSelf3() (ret DOMMatrix, exception js.Any, ok bool) { 6016 ok = js.True == bindings.TryDOMMatrixRotateSelf3( 6017 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6018 ) 6019 6020 return 6021 } 6022 6023 // HasFuncRotateFromVectorSelf returns true if the method "DOMMatrix.rotateFromVectorSelf" exists. 6024 func (this DOMMatrix) HasFuncRotateFromVectorSelf() bool { 6025 return js.True == bindings.HasFuncDOMMatrixRotateFromVectorSelf( 6026 this.ref, 6027 ) 6028 } 6029 6030 // FuncRotateFromVectorSelf returns the method "DOMMatrix.rotateFromVectorSelf". 6031 func (this DOMMatrix) FuncRotateFromVectorSelf() (fn js.Func[func(x float64, y float64) DOMMatrix]) { 6032 bindings.FuncDOMMatrixRotateFromVectorSelf( 6033 this.ref, js.Pointer(&fn), 6034 ) 6035 return 6036 } 6037 6038 // RotateFromVectorSelf calls the method "DOMMatrix.rotateFromVectorSelf". 6039 func (this DOMMatrix) RotateFromVectorSelf(x float64, y float64) (ret DOMMatrix) { 6040 bindings.CallDOMMatrixRotateFromVectorSelf( 6041 this.ref, js.Pointer(&ret), 6042 float64(x), 6043 float64(y), 6044 ) 6045 6046 return 6047 } 6048 6049 // TryRotateFromVectorSelf calls the method "DOMMatrix.rotateFromVectorSelf" 6050 // in a try/catch block and returns (_, err, ok = false) when it went through 6051 // the catch clause. 6052 func (this DOMMatrix) TryRotateFromVectorSelf(x float64, y float64) (ret DOMMatrix, exception js.Any, ok bool) { 6053 ok = js.True == bindings.TryDOMMatrixRotateFromVectorSelf( 6054 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6055 float64(x), 6056 float64(y), 6057 ) 6058 6059 return 6060 } 6061 6062 // HasFuncRotateFromVectorSelf1 returns true if the method "DOMMatrix.rotateFromVectorSelf" exists. 6063 func (this DOMMatrix) HasFuncRotateFromVectorSelf1() bool { 6064 return js.True == bindings.HasFuncDOMMatrixRotateFromVectorSelf1( 6065 this.ref, 6066 ) 6067 } 6068 6069 // FuncRotateFromVectorSelf1 returns the method "DOMMatrix.rotateFromVectorSelf". 6070 func (this DOMMatrix) FuncRotateFromVectorSelf1() (fn js.Func[func(x float64) DOMMatrix]) { 6071 bindings.FuncDOMMatrixRotateFromVectorSelf1( 6072 this.ref, js.Pointer(&fn), 6073 ) 6074 return 6075 } 6076 6077 // RotateFromVectorSelf1 calls the method "DOMMatrix.rotateFromVectorSelf". 6078 func (this DOMMatrix) RotateFromVectorSelf1(x float64) (ret DOMMatrix) { 6079 bindings.CallDOMMatrixRotateFromVectorSelf1( 6080 this.ref, js.Pointer(&ret), 6081 float64(x), 6082 ) 6083 6084 return 6085 } 6086 6087 // TryRotateFromVectorSelf1 calls the method "DOMMatrix.rotateFromVectorSelf" 6088 // in a try/catch block and returns (_, err, ok = false) when it went through 6089 // the catch clause. 6090 func (this DOMMatrix) TryRotateFromVectorSelf1(x float64) (ret DOMMatrix, exception js.Any, ok bool) { 6091 ok = js.True == bindings.TryDOMMatrixRotateFromVectorSelf1( 6092 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6093 float64(x), 6094 ) 6095 6096 return 6097 } 6098 6099 // HasFuncRotateFromVectorSelf2 returns true if the method "DOMMatrix.rotateFromVectorSelf" exists. 6100 func (this DOMMatrix) HasFuncRotateFromVectorSelf2() bool { 6101 return js.True == bindings.HasFuncDOMMatrixRotateFromVectorSelf2( 6102 this.ref, 6103 ) 6104 } 6105 6106 // FuncRotateFromVectorSelf2 returns the method "DOMMatrix.rotateFromVectorSelf". 6107 func (this DOMMatrix) FuncRotateFromVectorSelf2() (fn js.Func[func() DOMMatrix]) { 6108 bindings.FuncDOMMatrixRotateFromVectorSelf2( 6109 this.ref, js.Pointer(&fn), 6110 ) 6111 return 6112 } 6113 6114 // RotateFromVectorSelf2 calls the method "DOMMatrix.rotateFromVectorSelf". 6115 func (this DOMMatrix) RotateFromVectorSelf2() (ret DOMMatrix) { 6116 bindings.CallDOMMatrixRotateFromVectorSelf2( 6117 this.ref, js.Pointer(&ret), 6118 ) 6119 6120 return 6121 } 6122 6123 // TryRotateFromVectorSelf2 calls the method "DOMMatrix.rotateFromVectorSelf" 6124 // in a try/catch block and returns (_, err, ok = false) when it went through 6125 // the catch clause. 6126 func (this DOMMatrix) TryRotateFromVectorSelf2() (ret DOMMatrix, exception js.Any, ok bool) { 6127 ok = js.True == bindings.TryDOMMatrixRotateFromVectorSelf2( 6128 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6129 ) 6130 6131 return 6132 } 6133 6134 // HasFuncRotateAxisAngleSelf returns true if the method "DOMMatrix.rotateAxisAngleSelf" exists. 6135 func (this DOMMatrix) HasFuncRotateAxisAngleSelf() bool { 6136 return js.True == bindings.HasFuncDOMMatrixRotateAxisAngleSelf( 6137 this.ref, 6138 ) 6139 } 6140 6141 // FuncRotateAxisAngleSelf returns the method "DOMMatrix.rotateAxisAngleSelf". 6142 func (this DOMMatrix) FuncRotateAxisAngleSelf() (fn js.Func[func(x float64, y float64, z float64, angle float64) DOMMatrix]) { 6143 bindings.FuncDOMMatrixRotateAxisAngleSelf( 6144 this.ref, js.Pointer(&fn), 6145 ) 6146 return 6147 } 6148 6149 // RotateAxisAngleSelf calls the method "DOMMatrix.rotateAxisAngleSelf". 6150 func (this DOMMatrix) RotateAxisAngleSelf(x float64, y float64, z float64, angle float64) (ret DOMMatrix) { 6151 bindings.CallDOMMatrixRotateAxisAngleSelf( 6152 this.ref, js.Pointer(&ret), 6153 float64(x), 6154 float64(y), 6155 float64(z), 6156 float64(angle), 6157 ) 6158 6159 return 6160 } 6161 6162 // TryRotateAxisAngleSelf calls the method "DOMMatrix.rotateAxisAngleSelf" 6163 // in a try/catch block and returns (_, err, ok = false) when it went through 6164 // the catch clause. 6165 func (this DOMMatrix) TryRotateAxisAngleSelf(x float64, y float64, z float64, angle float64) (ret DOMMatrix, exception js.Any, ok bool) { 6166 ok = js.True == bindings.TryDOMMatrixRotateAxisAngleSelf( 6167 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6168 float64(x), 6169 float64(y), 6170 float64(z), 6171 float64(angle), 6172 ) 6173 6174 return 6175 } 6176 6177 // HasFuncRotateAxisAngleSelf1 returns true if the method "DOMMatrix.rotateAxisAngleSelf" exists. 6178 func (this DOMMatrix) HasFuncRotateAxisAngleSelf1() bool { 6179 return js.True == bindings.HasFuncDOMMatrixRotateAxisAngleSelf1( 6180 this.ref, 6181 ) 6182 } 6183 6184 // FuncRotateAxisAngleSelf1 returns the method "DOMMatrix.rotateAxisAngleSelf". 6185 func (this DOMMatrix) FuncRotateAxisAngleSelf1() (fn js.Func[func(x float64, y float64, z float64) DOMMatrix]) { 6186 bindings.FuncDOMMatrixRotateAxisAngleSelf1( 6187 this.ref, js.Pointer(&fn), 6188 ) 6189 return 6190 } 6191 6192 // RotateAxisAngleSelf1 calls the method "DOMMatrix.rotateAxisAngleSelf". 6193 func (this DOMMatrix) RotateAxisAngleSelf1(x float64, y float64, z float64) (ret DOMMatrix) { 6194 bindings.CallDOMMatrixRotateAxisAngleSelf1( 6195 this.ref, js.Pointer(&ret), 6196 float64(x), 6197 float64(y), 6198 float64(z), 6199 ) 6200 6201 return 6202 } 6203 6204 // TryRotateAxisAngleSelf1 calls the method "DOMMatrix.rotateAxisAngleSelf" 6205 // in a try/catch block and returns (_, err, ok = false) when it went through 6206 // the catch clause. 6207 func (this DOMMatrix) TryRotateAxisAngleSelf1(x float64, y float64, z float64) (ret DOMMatrix, exception js.Any, ok bool) { 6208 ok = js.True == bindings.TryDOMMatrixRotateAxisAngleSelf1( 6209 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6210 float64(x), 6211 float64(y), 6212 float64(z), 6213 ) 6214 6215 return 6216 } 6217 6218 // HasFuncRotateAxisAngleSelf2 returns true if the method "DOMMatrix.rotateAxisAngleSelf" exists. 6219 func (this DOMMatrix) HasFuncRotateAxisAngleSelf2() bool { 6220 return js.True == bindings.HasFuncDOMMatrixRotateAxisAngleSelf2( 6221 this.ref, 6222 ) 6223 } 6224 6225 // FuncRotateAxisAngleSelf2 returns the method "DOMMatrix.rotateAxisAngleSelf". 6226 func (this DOMMatrix) FuncRotateAxisAngleSelf2() (fn js.Func[func(x float64, y float64) DOMMatrix]) { 6227 bindings.FuncDOMMatrixRotateAxisAngleSelf2( 6228 this.ref, js.Pointer(&fn), 6229 ) 6230 return 6231 } 6232 6233 // RotateAxisAngleSelf2 calls the method "DOMMatrix.rotateAxisAngleSelf". 6234 func (this DOMMatrix) RotateAxisAngleSelf2(x float64, y float64) (ret DOMMatrix) { 6235 bindings.CallDOMMatrixRotateAxisAngleSelf2( 6236 this.ref, js.Pointer(&ret), 6237 float64(x), 6238 float64(y), 6239 ) 6240 6241 return 6242 } 6243 6244 // TryRotateAxisAngleSelf2 calls the method "DOMMatrix.rotateAxisAngleSelf" 6245 // in a try/catch block and returns (_, err, ok = false) when it went through 6246 // the catch clause. 6247 func (this DOMMatrix) TryRotateAxisAngleSelf2(x float64, y float64) (ret DOMMatrix, exception js.Any, ok bool) { 6248 ok = js.True == bindings.TryDOMMatrixRotateAxisAngleSelf2( 6249 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6250 float64(x), 6251 float64(y), 6252 ) 6253 6254 return 6255 } 6256 6257 // HasFuncRotateAxisAngleSelf3 returns true if the method "DOMMatrix.rotateAxisAngleSelf" exists. 6258 func (this DOMMatrix) HasFuncRotateAxisAngleSelf3() bool { 6259 return js.True == bindings.HasFuncDOMMatrixRotateAxisAngleSelf3( 6260 this.ref, 6261 ) 6262 } 6263 6264 // FuncRotateAxisAngleSelf3 returns the method "DOMMatrix.rotateAxisAngleSelf". 6265 func (this DOMMatrix) FuncRotateAxisAngleSelf3() (fn js.Func[func(x float64) DOMMatrix]) { 6266 bindings.FuncDOMMatrixRotateAxisAngleSelf3( 6267 this.ref, js.Pointer(&fn), 6268 ) 6269 return 6270 } 6271 6272 // RotateAxisAngleSelf3 calls the method "DOMMatrix.rotateAxisAngleSelf". 6273 func (this DOMMatrix) RotateAxisAngleSelf3(x float64) (ret DOMMatrix) { 6274 bindings.CallDOMMatrixRotateAxisAngleSelf3( 6275 this.ref, js.Pointer(&ret), 6276 float64(x), 6277 ) 6278 6279 return 6280 } 6281 6282 // TryRotateAxisAngleSelf3 calls the method "DOMMatrix.rotateAxisAngleSelf" 6283 // in a try/catch block and returns (_, err, ok = false) when it went through 6284 // the catch clause. 6285 func (this DOMMatrix) TryRotateAxisAngleSelf3(x float64) (ret DOMMatrix, exception js.Any, ok bool) { 6286 ok = js.True == bindings.TryDOMMatrixRotateAxisAngleSelf3( 6287 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6288 float64(x), 6289 ) 6290 6291 return 6292 } 6293 6294 // HasFuncRotateAxisAngleSelf4 returns true if the method "DOMMatrix.rotateAxisAngleSelf" exists. 6295 func (this DOMMatrix) HasFuncRotateAxisAngleSelf4() bool { 6296 return js.True == bindings.HasFuncDOMMatrixRotateAxisAngleSelf4( 6297 this.ref, 6298 ) 6299 } 6300 6301 // FuncRotateAxisAngleSelf4 returns the method "DOMMatrix.rotateAxisAngleSelf". 6302 func (this DOMMatrix) FuncRotateAxisAngleSelf4() (fn js.Func[func() DOMMatrix]) { 6303 bindings.FuncDOMMatrixRotateAxisAngleSelf4( 6304 this.ref, js.Pointer(&fn), 6305 ) 6306 return 6307 } 6308 6309 // RotateAxisAngleSelf4 calls the method "DOMMatrix.rotateAxisAngleSelf". 6310 func (this DOMMatrix) RotateAxisAngleSelf4() (ret DOMMatrix) { 6311 bindings.CallDOMMatrixRotateAxisAngleSelf4( 6312 this.ref, js.Pointer(&ret), 6313 ) 6314 6315 return 6316 } 6317 6318 // TryRotateAxisAngleSelf4 calls the method "DOMMatrix.rotateAxisAngleSelf" 6319 // in a try/catch block and returns (_, err, ok = false) when it went through 6320 // the catch clause. 6321 func (this DOMMatrix) TryRotateAxisAngleSelf4() (ret DOMMatrix, exception js.Any, ok bool) { 6322 ok = js.True == bindings.TryDOMMatrixRotateAxisAngleSelf4( 6323 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6324 ) 6325 6326 return 6327 } 6328 6329 // HasFuncSkewXSelf returns true if the method "DOMMatrix.skewXSelf" exists. 6330 func (this DOMMatrix) HasFuncSkewXSelf() bool { 6331 return js.True == bindings.HasFuncDOMMatrixSkewXSelf( 6332 this.ref, 6333 ) 6334 } 6335 6336 // FuncSkewXSelf returns the method "DOMMatrix.skewXSelf". 6337 func (this DOMMatrix) FuncSkewXSelf() (fn js.Func[func(sx float64) DOMMatrix]) { 6338 bindings.FuncDOMMatrixSkewXSelf( 6339 this.ref, js.Pointer(&fn), 6340 ) 6341 return 6342 } 6343 6344 // SkewXSelf calls the method "DOMMatrix.skewXSelf". 6345 func (this DOMMatrix) SkewXSelf(sx float64) (ret DOMMatrix) { 6346 bindings.CallDOMMatrixSkewXSelf( 6347 this.ref, js.Pointer(&ret), 6348 float64(sx), 6349 ) 6350 6351 return 6352 } 6353 6354 // TrySkewXSelf calls the method "DOMMatrix.skewXSelf" 6355 // in a try/catch block and returns (_, err, ok = false) when it went through 6356 // the catch clause. 6357 func (this DOMMatrix) TrySkewXSelf(sx float64) (ret DOMMatrix, exception js.Any, ok bool) { 6358 ok = js.True == bindings.TryDOMMatrixSkewXSelf( 6359 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6360 float64(sx), 6361 ) 6362 6363 return 6364 } 6365 6366 // HasFuncSkewXSelf1 returns true if the method "DOMMatrix.skewXSelf" exists. 6367 func (this DOMMatrix) HasFuncSkewXSelf1() bool { 6368 return js.True == bindings.HasFuncDOMMatrixSkewXSelf1( 6369 this.ref, 6370 ) 6371 } 6372 6373 // FuncSkewXSelf1 returns the method "DOMMatrix.skewXSelf". 6374 func (this DOMMatrix) FuncSkewXSelf1() (fn js.Func[func() DOMMatrix]) { 6375 bindings.FuncDOMMatrixSkewXSelf1( 6376 this.ref, js.Pointer(&fn), 6377 ) 6378 return 6379 } 6380 6381 // SkewXSelf1 calls the method "DOMMatrix.skewXSelf". 6382 func (this DOMMatrix) SkewXSelf1() (ret DOMMatrix) { 6383 bindings.CallDOMMatrixSkewXSelf1( 6384 this.ref, js.Pointer(&ret), 6385 ) 6386 6387 return 6388 } 6389 6390 // TrySkewXSelf1 calls the method "DOMMatrix.skewXSelf" 6391 // in a try/catch block and returns (_, err, ok = false) when it went through 6392 // the catch clause. 6393 func (this DOMMatrix) TrySkewXSelf1() (ret DOMMatrix, exception js.Any, ok bool) { 6394 ok = js.True == bindings.TryDOMMatrixSkewXSelf1( 6395 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6396 ) 6397 6398 return 6399 } 6400 6401 // HasFuncSkewYSelf returns true if the method "DOMMatrix.skewYSelf" exists. 6402 func (this DOMMatrix) HasFuncSkewYSelf() bool { 6403 return js.True == bindings.HasFuncDOMMatrixSkewYSelf( 6404 this.ref, 6405 ) 6406 } 6407 6408 // FuncSkewYSelf returns the method "DOMMatrix.skewYSelf". 6409 func (this DOMMatrix) FuncSkewYSelf() (fn js.Func[func(sy float64) DOMMatrix]) { 6410 bindings.FuncDOMMatrixSkewYSelf( 6411 this.ref, js.Pointer(&fn), 6412 ) 6413 return 6414 } 6415 6416 // SkewYSelf calls the method "DOMMatrix.skewYSelf". 6417 func (this DOMMatrix) SkewYSelf(sy float64) (ret DOMMatrix) { 6418 bindings.CallDOMMatrixSkewYSelf( 6419 this.ref, js.Pointer(&ret), 6420 float64(sy), 6421 ) 6422 6423 return 6424 } 6425 6426 // TrySkewYSelf calls the method "DOMMatrix.skewYSelf" 6427 // in a try/catch block and returns (_, err, ok = false) when it went through 6428 // the catch clause. 6429 func (this DOMMatrix) TrySkewYSelf(sy float64) (ret DOMMatrix, exception js.Any, ok bool) { 6430 ok = js.True == bindings.TryDOMMatrixSkewYSelf( 6431 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6432 float64(sy), 6433 ) 6434 6435 return 6436 } 6437 6438 // HasFuncSkewYSelf1 returns true if the method "DOMMatrix.skewYSelf" exists. 6439 func (this DOMMatrix) HasFuncSkewYSelf1() bool { 6440 return js.True == bindings.HasFuncDOMMatrixSkewYSelf1( 6441 this.ref, 6442 ) 6443 } 6444 6445 // FuncSkewYSelf1 returns the method "DOMMatrix.skewYSelf". 6446 func (this DOMMatrix) FuncSkewYSelf1() (fn js.Func[func() DOMMatrix]) { 6447 bindings.FuncDOMMatrixSkewYSelf1( 6448 this.ref, js.Pointer(&fn), 6449 ) 6450 return 6451 } 6452 6453 // SkewYSelf1 calls the method "DOMMatrix.skewYSelf". 6454 func (this DOMMatrix) SkewYSelf1() (ret DOMMatrix) { 6455 bindings.CallDOMMatrixSkewYSelf1( 6456 this.ref, js.Pointer(&ret), 6457 ) 6458 6459 return 6460 } 6461 6462 // TrySkewYSelf1 calls the method "DOMMatrix.skewYSelf" 6463 // in a try/catch block and returns (_, err, ok = false) when it went through 6464 // the catch clause. 6465 func (this DOMMatrix) TrySkewYSelf1() (ret DOMMatrix, exception js.Any, ok bool) { 6466 ok = js.True == bindings.TryDOMMatrixSkewYSelf1( 6467 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6468 ) 6469 6470 return 6471 } 6472 6473 // HasFuncInvertSelf returns true if the method "DOMMatrix.invertSelf" exists. 6474 func (this DOMMatrix) HasFuncInvertSelf() bool { 6475 return js.True == bindings.HasFuncDOMMatrixInvertSelf( 6476 this.ref, 6477 ) 6478 } 6479 6480 // FuncInvertSelf returns the method "DOMMatrix.invertSelf". 6481 func (this DOMMatrix) FuncInvertSelf() (fn js.Func[func() DOMMatrix]) { 6482 bindings.FuncDOMMatrixInvertSelf( 6483 this.ref, js.Pointer(&fn), 6484 ) 6485 return 6486 } 6487 6488 // InvertSelf calls the method "DOMMatrix.invertSelf". 6489 func (this DOMMatrix) InvertSelf() (ret DOMMatrix) { 6490 bindings.CallDOMMatrixInvertSelf( 6491 this.ref, js.Pointer(&ret), 6492 ) 6493 6494 return 6495 } 6496 6497 // TryInvertSelf calls the method "DOMMatrix.invertSelf" 6498 // in a try/catch block and returns (_, err, ok = false) when it went through 6499 // the catch clause. 6500 func (this DOMMatrix) TryInvertSelf() (ret DOMMatrix, exception js.Any, ok bool) { 6501 ok = js.True == bindings.TryDOMMatrixInvertSelf( 6502 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6503 ) 6504 6505 return 6506 } 6507 6508 // HasFuncSetMatrixValue returns true if the method "DOMMatrix.setMatrixValue" exists. 6509 func (this DOMMatrix) HasFuncSetMatrixValue() bool { 6510 return js.True == bindings.HasFuncDOMMatrixSetMatrixValue( 6511 this.ref, 6512 ) 6513 } 6514 6515 // FuncSetMatrixValue returns the method "DOMMatrix.setMatrixValue". 6516 func (this DOMMatrix) FuncSetMatrixValue() (fn js.Func[func(transformList js.String) DOMMatrix]) { 6517 bindings.FuncDOMMatrixSetMatrixValue( 6518 this.ref, js.Pointer(&fn), 6519 ) 6520 return 6521 } 6522 6523 // SetMatrixValue calls the method "DOMMatrix.setMatrixValue". 6524 func (this DOMMatrix) SetMatrixValue(transformList js.String) (ret DOMMatrix) { 6525 bindings.CallDOMMatrixSetMatrixValue( 6526 this.ref, js.Pointer(&ret), 6527 transformList.Ref(), 6528 ) 6529 6530 return 6531 } 6532 6533 // TrySetMatrixValue calls the method "DOMMatrix.setMatrixValue" 6534 // in a try/catch block and returns (_, err, ok = false) when it went through 6535 // the catch clause. 6536 func (this DOMMatrix) TrySetMatrixValue(transformList js.String) (ret DOMMatrix, exception js.Any, ok bool) { 6537 ok = js.True == bindings.TryDOMMatrixSetMatrixValue( 6538 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6539 transformList.Ref(), 6540 ) 6541 6542 return 6543 } 6544 6545 const ( 6546 SVGTransform_SVG_TRANSFORM_UNKNOWN uint16 = 0 6547 SVGTransform_SVG_TRANSFORM_MATRIX uint16 = 1 6548 SVGTransform_SVG_TRANSFORM_TRANSLATE uint16 = 2 6549 SVGTransform_SVG_TRANSFORM_SCALE uint16 = 3 6550 SVGTransform_SVG_TRANSFORM_ROTATE uint16 = 4 6551 SVGTransform_SVG_TRANSFORM_SKEWX uint16 = 5 6552 SVGTransform_SVG_TRANSFORM_SKEWY uint16 = 6 6553 ) 6554 6555 type DOMMatrix2DInit struct { 6556 // A is "DOMMatrix2DInit.a" 6557 // 6558 // Optional 6559 // 6560 // NOTE: FFI_USE_A MUST be set to true to make this field effective. 6561 A float64 6562 // B is "DOMMatrix2DInit.b" 6563 // 6564 // Optional 6565 // 6566 // NOTE: FFI_USE_B MUST be set to true to make this field effective. 6567 B float64 6568 // C is "DOMMatrix2DInit.c" 6569 // 6570 // Optional 6571 // 6572 // NOTE: FFI_USE_C MUST be set to true to make this field effective. 6573 C float64 6574 // D is "DOMMatrix2DInit.d" 6575 // 6576 // Optional 6577 // 6578 // NOTE: FFI_USE_D MUST be set to true to make this field effective. 6579 D float64 6580 // E is "DOMMatrix2DInit.e" 6581 // 6582 // Optional 6583 // 6584 // NOTE: FFI_USE_E MUST be set to true to make this field effective. 6585 E float64 6586 // F is "DOMMatrix2DInit.f" 6587 // 6588 // Optional 6589 // 6590 // NOTE: FFI_USE_F MUST be set to true to make this field effective. 6591 F float64 6592 // M11 is "DOMMatrix2DInit.m11" 6593 // 6594 // Optional 6595 // 6596 // NOTE: FFI_USE_M11 MUST be set to true to make this field effective. 6597 M11 float64 6598 // M12 is "DOMMatrix2DInit.m12" 6599 // 6600 // Optional 6601 // 6602 // NOTE: FFI_USE_M12 MUST be set to true to make this field effective. 6603 M12 float64 6604 // M21 is "DOMMatrix2DInit.m21" 6605 // 6606 // Optional 6607 // 6608 // NOTE: FFI_USE_M21 MUST be set to true to make this field effective. 6609 M21 float64 6610 // M22 is "DOMMatrix2DInit.m22" 6611 // 6612 // Optional 6613 // 6614 // NOTE: FFI_USE_M22 MUST be set to true to make this field effective. 6615 M22 float64 6616 // M41 is "DOMMatrix2DInit.m41" 6617 // 6618 // Optional 6619 // 6620 // NOTE: FFI_USE_M41 MUST be set to true to make this field effective. 6621 M41 float64 6622 // M42 is "DOMMatrix2DInit.m42" 6623 // 6624 // Optional 6625 // 6626 // NOTE: FFI_USE_M42 MUST be set to true to make this field effective. 6627 M42 float64 6628 6629 FFI_USE_A bool // for A. 6630 FFI_USE_B bool // for B. 6631 FFI_USE_C bool // for C. 6632 FFI_USE_D bool // for D. 6633 FFI_USE_E bool // for E. 6634 FFI_USE_F bool // for F. 6635 FFI_USE_M11 bool // for M11. 6636 FFI_USE_M12 bool // for M12. 6637 FFI_USE_M21 bool // for M21. 6638 FFI_USE_M22 bool // for M22. 6639 FFI_USE_M41 bool // for M41. 6640 FFI_USE_M42 bool // for M42. 6641 6642 FFI_USE bool 6643 } 6644 6645 // FromRef calls UpdateFrom and returns a DOMMatrix2DInit with all fields set. 6646 func (p DOMMatrix2DInit) FromRef(ref js.Ref) DOMMatrix2DInit { 6647 p.UpdateFrom(ref) 6648 return p 6649 } 6650 6651 // New creates a new DOMMatrix2DInit in the application heap. 6652 func (p DOMMatrix2DInit) New() js.Ref { 6653 return bindings.DOMMatrix2DInitJSLoad( 6654 js.Pointer(&p), js.True, 0, 6655 ) 6656 } 6657 6658 // UpdateFrom copies value of all fields of the heap object to p. 6659 func (p *DOMMatrix2DInit) UpdateFrom(ref js.Ref) { 6660 bindings.DOMMatrix2DInitJSStore( 6661 js.Pointer(p), ref, 6662 ) 6663 } 6664 6665 // Update writes all fields of the p to the heap object referenced by ref. 6666 func (p *DOMMatrix2DInit) Update(ref js.Ref) { 6667 bindings.DOMMatrix2DInitJSLoad( 6668 js.Pointer(p), js.False, ref, 6669 ) 6670 } 6671 6672 // FreeMembers frees fields with heap reference, if recursive is true 6673 // free all heap references reachable from p. 6674 func (p *DOMMatrix2DInit) FreeMembers(recursive bool) { 6675 } 6676 6677 type SVGTransform struct { 6678 ref js.Ref 6679 } 6680 6681 func (this SVGTransform) Once() SVGTransform { 6682 this.ref.Once() 6683 return this 6684 } 6685 6686 func (this SVGTransform) Ref() js.Ref { 6687 return this.ref 6688 } 6689 6690 func (this SVGTransform) FromRef(ref js.Ref) SVGTransform { 6691 this.ref = ref 6692 return this 6693 } 6694 6695 func (this SVGTransform) Free() { 6696 this.ref.Free() 6697 } 6698 6699 // Type returns the value of property "SVGTransform.type". 6700 // 6701 // It returns ok=false if there is no such property. 6702 func (this SVGTransform) Type() (ret uint16, ok bool) { 6703 ok = js.True == bindings.GetSVGTransformType( 6704 this.ref, js.Pointer(&ret), 6705 ) 6706 return 6707 } 6708 6709 // Matrix returns the value of property "SVGTransform.matrix". 6710 // 6711 // It returns ok=false if there is no such property. 6712 func (this SVGTransform) Matrix() (ret DOMMatrix, ok bool) { 6713 ok = js.True == bindings.GetSVGTransformMatrix( 6714 this.ref, js.Pointer(&ret), 6715 ) 6716 return 6717 } 6718 6719 // Angle returns the value of property "SVGTransform.angle". 6720 // 6721 // It returns ok=false if there is no such property. 6722 func (this SVGTransform) Angle() (ret float32, ok bool) { 6723 ok = js.True == bindings.GetSVGTransformAngle( 6724 this.ref, js.Pointer(&ret), 6725 ) 6726 return 6727 } 6728 6729 // HasFuncSetMatrix returns true if the method "SVGTransform.setMatrix" exists. 6730 func (this SVGTransform) HasFuncSetMatrix() bool { 6731 return js.True == bindings.HasFuncSVGTransformSetMatrix( 6732 this.ref, 6733 ) 6734 } 6735 6736 // FuncSetMatrix returns the method "SVGTransform.setMatrix". 6737 func (this SVGTransform) FuncSetMatrix() (fn js.Func[func(matrix DOMMatrix2DInit)]) { 6738 bindings.FuncSVGTransformSetMatrix( 6739 this.ref, js.Pointer(&fn), 6740 ) 6741 return 6742 } 6743 6744 // SetMatrix calls the method "SVGTransform.setMatrix". 6745 func (this SVGTransform) SetMatrix(matrix DOMMatrix2DInit) (ret js.Void) { 6746 bindings.CallSVGTransformSetMatrix( 6747 this.ref, js.Pointer(&ret), 6748 js.Pointer(&matrix), 6749 ) 6750 6751 return 6752 } 6753 6754 // TrySetMatrix calls the method "SVGTransform.setMatrix" 6755 // in a try/catch block and returns (_, err, ok = false) when it went through 6756 // the catch clause. 6757 func (this SVGTransform) TrySetMatrix(matrix DOMMatrix2DInit) (ret js.Void, exception js.Any, ok bool) { 6758 ok = js.True == bindings.TrySVGTransformSetMatrix( 6759 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6760 js.Pointer(&matrix), 6761 ) 6762 6763 return 6764 } 6765 6766 // HasFuncSetMatrix1 returns true if the method "SVGTransform.setMatrix" exists. 6767 func (this SVGTransform) HasFuncSetMatrix1() bool { 6768 return js.True == bindings.HasFuncSVGTransformSetMatrix1( 6769 this.ref, 6770 ) 6771 } 6772 6773 // FuncSetMatrix1 returns the method "SVGTransform.setMatrix". 6774 func (this SVGTransform) FuncSetMatrix1() (fn js.Func[func()]) { 6775 bindings.FuncSVGTransformSetMatrix1( 6776 this.ref, js.Pointer(&fn), 6777 ) 6778 return 6779 } 6780 6781 // SetMatrix1 calls the method "SVGTransform.setMatrix". 6782 func (this SVGTransform) SetMatrix1() (ret js.Void) { 6783 bindings.CallSVGTransformSetMatrix1( 6784 this.ref, js.Pointer(&ret), 6785 ) 6786 6787 return 6788 } 6789 6790 // TrySetMatrix1 calls the method "SVGTransform.setMatrix" 6791 // in a try/catch block and returns (_, err, ok = false) when it went through 6792 // the catch clause. 6793 func (this SVGTransform) TrySetMatrix1() (ret js.Void, exception js.Any, ok bool) { 6794 ok = js.True == bindings.TrySVGTransformSetMatrix1( 6795 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6796 ) 6797 6798 return 6799 } 6800 6801 // HasFuncSetTranslate returns true if the method "SVGTransform.setTranslate" exists. 6802 func (this SVGTransform) HasFuncSetTranslate() bool { 6803 return js.True == bindings.HasFuncSVGTransformSetTranslate( 6804 this.ref, 6805 ) 6806 } 6807 6808 // FuncSetTranslate returns the method "SVGTransform.setTranslate". 6809 func (this SVGTransform) FuncSetTranslate() (fn js.Func[func(tx float32, ty float32)]) { 6810 bindings.FuncSVGTransformSetTranslate( 6811 this.ref, js.Pointer(&fn), 6812 ) 6813 return 6814 } 6815 6816 // SetTranslate calls the method "SVGTransform.setTranslate". 6817 func (this SVGTransform) SetTranslate(tx float32, ty float32) (ret js.Void) { 6818 bindings.CallSVGTransformSetTranslate( 6819 this.ref, js.Pointer(&ret), 6820 float32(tx), 6821 float32(ty), 6822 ) 6823 6824 return 6825 } 6826 6827 // TrySetTranslate calls the method "SVGTransform.setTranslate" 6828 // in a try/catch block and returns (_, err, ok = false) when it went through 6829 // the catch clause. 6830 func (this SVGTransform) TrySetTranslate(tx float32, ty float32) (ret js.Void, exception js.Any, ok bool) { 6831 ok = js.True == bindings.TrySVGTransformSetTranslate( 6832 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6833 float32(tx), 6834 float32(ty), 6835 ) 6836 6837 return 6838 } 6839 6840 // HasFuncSetScale returns true if the method "SVGTransform.setScale" exists. 6841 func (this SVGTransform) HasFuncSetScale() bool { 6842 return js.True == bindings.HasFuncSVGTransformSetScale( 6843 this.ref, 6844 ) 6845 } 6846 6847 // FuncSetScale returns the method "SVGTransform.setScale". 6848 func (this SVGTransform) FuncSetScale() (fn js.Func[func(sx float32, sy float32)]) { 6849 bindings.FuncSVGTransformSetScale( 6850 this.ref, js.Pointer(&fn), 6851 ) 6852 return 6853 } 6854 6855 // SetScale calls the method "SVGTransform.setScale". 6856 func (this SVGTransform) SetScale(sx float32, sy float32) (ret js.Void) { 6857 bindings.CallSVGTransformSetScale( 6858 this.ref, js.Pointer(&ret), 6859 float32(sx), 6860 float32(sy), 6861 ) 6862 6863 return 6864 } 6865 6866 // TrySetScale calls the method "SVGTransform.setScale" 6867 // in a try/catch block and returns (_, err, ok = false) when it went through 6868 // the catch clause. 6869 func (this SVGTransform) TrySetScale(sx float32, sy float32) (ret js.Void, exception js.Any, ok bool) { 6870 ok = js.True == bindings.TrySVGTransformSetScale( 6871 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6872 float32(sx), 6873 float32(sy), 6874 ) 6875 6876 return 6877 } 6878 6879 // HasFuncSetRotate returns true if the method "SVGTransform.setRotate" exists. 6880 func (this SVGTransform) HasFuncSetRotate() bool { 6881 return js.True == bindings.HasFuncSVGTransformSetRotate( 6882 this.ref, 6883 ) 6884 } 6885 6886 // FuncSetRotate returns the method "SVGTransform.setRotate". 6887 func (this SVGTransform) FuncSetRotate() (fn js.Func[func(angle float32, cx float32, cy float32)]) { 6888 bindings.FuncSVGTransformSetRotate( 6889 this.ref, js.Pointer(&fn), 6890 ) 6891 return 6892 } 6893 6894 // SetRotate calls the method "SVGTransform.setRotate". 6895 func (this SVGTransform) SetRotate(angle float32, cx float32, cy float32) (ret js.Void) { 6896 bindings.CallSVGTransformSetRotate( 6897 this.ref, js.Pointer(&ret), 6898 float32(angle), 6899 float32(cx), 6900 float32(cy), 6901 ) 6902 6903 return 6904 } 6905 6906 // TrySetRotate calls the method "SVGTransform.setRotate" 6907 // in a try/catch block and returns (_, err, ok = false) when it went through 6908 // the catch clause. 6909 func (this SVGTransform) TrySetRotate(angle float32, cx float32, cy float32) (ret js.Void, exception js.Any, ok bool) { 6910 ok = js.True == bindings.TrySVGTransformSetRotate( 6911 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6912 float32(angle), 6913 float32(cx), 6914 float32(cy), 6915 ) 6916 6917 return 6918 } 6919 6920 // HasFuncSetSkewX returns true if the method "SVGTransform.setSkewX" exists. 6921 func (this SVGTransform) HasFuncSetSkewX() bool { 6922 return js.True == bindings.HasFuncSVGTransformSetSkewX( 6923 this.ref, 6924 ) 6925 } 6926 6927 // FuncSetSkewX returns the method "SVGTransform.setSkewX". 6928 func (this SVGTransform) FuncSetSkewX() (fn js.Func[func(angle float32)]) { 6929 bindings.FuncSVGTransformSetSkewX( 6930 this.ref, js.Pointer(&fn), 6931 ) 6932 return 6933 } 6934 6935 // SetSkewX calls the method "SVGTransform.setSkewX". 6936 func (this SVGTransform) SetSkewX(angle float32) (ret js.Void) { 6937 bindings.CallSVGTransformSetSkewX( 6938 this.ref, js.Pointer(&ret), 6939 float32(angle), 6940 ) 6941 6942 return 6943 } 6944 6945 // TrySetSkewX calls the method "SVGTransform.setSkewX" 6946 // in a try/catch block and returns (_, err, ok = false) when it went through 6947 // the catch clause. 6948 func (this SVGTransform) TrySetSkewX(angle float32) (ret js.Void, exception js.Any, ok bool) { 6949 ok = js.True == bindings.TrySVGTransformSetSkewX( 6950 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6951 float32(angle), 6952 ) 6953 6954 return 6955 } 6956 6957 // HasFuncSetSkewY returns true if the method "SVGTransform.setSkewY" exists. 6958 func (this SVGTransform) HasFuncSetSkewY() bool { 6959 return js.True == bindings.HasFuncSVGTransformSetSkewY( 6960 this.ref, 6961 ) 6962 } 6963 6964 // FuncSetSkewY returns the method "SVGTransform.setSkewY". 6965 func (this SVGTransform) FuncSetSkewY() (fn js.Func[func(angle float32)]) { 6966 bindings.FuncSVGTransformSetSkewY( 6967 this.ref, js.Pointer(&fn), 6968 ) 6969 return 6970 } 6971 6972 // SetSkewY calls the method "SVGTransform.setSkewY". 6973 func (this SVGTransform) SetSkewY(angle float32) (ret js.Void) { 6974 bindings.CallSVGTransformSetSkewY( 6975 this.ref, js.Pointer(&ret), 6976 float32(angle), 6977 ) 6978 6979 return 6980 } 6981 6982 // TrySetSkewY calls the method "SVGTransform.setSkewY" 6983 // in a try/catch block and returns (_, err, ok = false) when it went through 6984 // the catch clause. 6985 func (this SVGTransform) TrySetSkewY(angle float32) (ret js.Void, exception js.Any, ok bool) { 6986 ok = js.True == bindings.TrySVGTransformSetSkewY( 6987 this.ref, js.Pointer(&ret), js.Pointer(&exception), 6988 float32(angle), 6989 ) 6990 6991 return 6992 } 6993 6994 func NewDOMPointReadOnly(x float64, y float64, z float64, w float64) (ret DOMPointReadOnly) { 6995 ret.ref = bindings.NewDOMPointReadOnlyByDOMPointReadOnly( 6996 float64(x), 6997 float64(y), 6998 float64(z), 6999 float64(w)) 7000 return 7001 } 7002 7003 func NewDOMPointReadOnlyByDOMPointReadOnly1(x float64, y float64, z float64) (ret DOMPointReadOnly) { 7004 ret.ref = bindings.NewDOMPointReadOnlyByDOMPointReadOnly1( 7005 float64(x), 7006 float64(y), 7007 float64(z)) 7008 return 7009 } 7010 7011 func NewDOMPointReadOnlyByDOMPointReadOnly2(x float64, y float64) (ret DOMPointReadOnly) { 7012 ret.ref = bindings.NewDOMPointReadOnlyByDOMPointReadOnly2( 7013 float64(x), 7014 float64(y)) 7015 return 7016 } 7017 7018 func NewDOMPointReadOnlyByDOMPointReadOnly3(x float64) (ret DOMPointReadOnly) { 7019 ret.ref = bindings.NewDOMPointReadOnlyByDOMPointReadOnly3( 7020 float64(x)) 7021 return 7022 } 7023 7024 func NewDOMPointReadOnlyByDOMPointReadOnly4() (ret DOMPointReadOnly) { 7025 ret.ref = bindings.NewDOMPointReadOnlyByDOMPointReadOnly4() 7026 return 7027 } 7028 7029 type DOMPointReadOnly struct { 7030 ref js.Ref 7031 } 7032 7033 func (this DOMPointReadOnly) Once() DOMPointReadOnly { 7034 this.ref.Once() 7035 return this 7036 } 7037 7038 func (this DOMPointReadOnly) Ref() js.Ref { 7039 return this.ref 7040 } 7041 7042 func (this DOMPointReadOnly) FromRef(ref js.Ref) DOMPointReadOnly { 7043 this.ref = ref 7044 return this 7045 } 7046 7047 func (this DOMPointReadOnly) Free() { 7048 this.ref.Free() 7049 } 7050 7051 // X returns the value of property "DOMPointReadOnly.x". 7052 // 7053 // It returns ok=false if there is no such property. 7054 func (this DOMPointReadOnly) X() (ret float64, ok bool) { 7055 ok = js.True == bindings.GetDOMPointReadOnlyX( 7056 this.ref, js.Pointer(&ret), 7057 ) 7058 return 7059 } 7060 7061 // Y returns the value of property "DOMPointReadOnly.y". 7062 // 7063 // It returns ok=false if there is no such property. 7064 func (this DOMPointReadOnly) Y() (ret float64, ok bool) { 7065 ok = js.True == bindings.GetDOMPointReadOnlyY( 7066 this.ref, js.Pointer(&ret), 7067 ) 7068 return 7069 } 7070 7071 // Z returns the value of property "DOMPointReadOnly.z". 7072 // 7073 // It returns ok=false if there is no such property. 7074 func (this DOMPointReadOnly) Z() (ret float64, ok bool) { 7075 ok = js.True == bindings.GetDOMPointReadOnlyZ( 7076 this.ref, js.Pointer(&ret), 7077 ) 7078 return 7079 } 7080 7081 // W returns the value of property "DOMPointReadOnly.w". 7082 // 7083 // It returns ok=false if there is no such property. 7084 func (this DOMPointReadOnly) W() (ret float64, ok bool) { 7085 ok = js.True == bindings.GetDOMPointReadOnlyW( 7086 this.ref, js.Pointer(&ret), 7087 ) 7088 return 7089 } 7090 7091 // HasFuncFromPoint returns true if the static method "DOMPointReadOnly.fromPoint" exists. 7092 func (this DOMPointReadOnly) HasFuncFromPoint() bool { 7093 return js.True == bindings.HasFuncDOMPointReadOnlyFromPoint( 7094 this.ref, 7095 ) 7096 } 7097 7098 // FuncFromPoint returns the static method "DOMPointReadOnly.fromPoint". 7099 func (this DOMPointReadOnly) FuncFromPoint() (fn js.Func[func(other DOMPointInit) DOMPointReadOnly]) { 7100 bindings.FuncDOMPointReadOnlyFromPoint( 7101 this.ref, js.Pointer(&fn), 7102 ) 7103 return 7104 } 7105 7106 // FromPoint calls the static method "DOMPointReadOnly.fromPoint". 7107 func (this DOMPointReadOnly) FromPoint(other DOMPointInit) (ret DOMPointReadOnly) { 7108 bindings.CallDOMPointReadOnlyFromPoint( 7109 this.ref, js.Pointer(&ret), 7110 js.Pointer(&other), 7111 ) 7112 7113 return 7114 } 7115 7116 // TryFromPoint calls the static method "DOMPointReadOnly.fromPoint" 7117 // in a try/catch block and returns (_, err, ok = false) when it went through 7118 // the catch clause. 7119 func (this DOMPointReadOnly) TryFromPoint(other DOMPointInit) (ret DOMPointReadOnly, exception js.Any, ok bool) { 7120 ok = js.True == bindings.TryDOMPointReadOnlyFromPoint( 7121 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7122 js.Pointer(&other), 7123 ) 7124 7125 return 7126 } 7127 7128 // HasFuncFromPoint1 returns true if the static method "DOMPointReadOnly.fromPoint" exists. 7129 func (this DOMPointReadOnly) HasFuncFromPoint1() bool { 7130 return js.True == bindings.HasFuncDOMPointReadOnlyFromPoint1( 7131 this.ref, 7132 ) 7133 } 7134 7135 // FuncFromPoint1 returns the static method "DOMPointReadOnly.fromPoint". 7136 func (this DOMPointReadOnly) FuncFromPoint1() (fn js.Func[func() DOMPointReadOnly]) { 7137 bindings.FuncDOMPointReadOnlyFromPoint1( 7138 this.ref, js.Pointer(&fn), 7139 ) 7140 return 7141 } 7142 7143 // FromPoint1 calls the static method "DOMPointReadOnly.fromPoint". 7144 func (this DOMPointReadOnly) FromPoint1() (ret DOMPointReadOnly) { 7145 bindings.CallDOMPointReadOnlyFromPoint1( 7146 this.ref, js.Pointer(&ret), 7147 ) 7148 7149 return 7150 } 7151 7152 // TryFromPoint1 calls the static method "DOMPointReadOnly.fromPoint" 7153 // in a try/catch block and returns (_, err, ok = false) when it went through 7154 // the catch clause. 7155 func (this DOMPointReadOnly) TryFromPoint1() (ret DOMPointReadOnly, exception js.Any, ok bool) { 7156 ok = js.True == bindings.TryDOMPointReadOnlyFromPoint1( 7157 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7158 ) 7159 7160 return 7161 } 7162 7163 // HasFuncMatrixTransform returns true if the method "DOMPointReadOnly.matrixTransform" exists. 7164 func (this DOMPointReadOnly) HasFuncMatrixTransform() bool { 7165 return js.True == bindings.HasFuncDOMPointReadOnlyMatrixTransform( 7166 this.ref, 7167 ) 7168 } 7169 7170 // FuncMatrixTransform returns the method "DOMPointReadOnly.matrixTransform". 7171 func (this DOMPointReadOnly) FuncMatrixTransform() (fn js.Func[func(matrix DOMMatrixInit) DOMPoint]) { 7172 bindings.FuncDOMPointReadOnlyMatrixTransform( 7173 this.ref, js.Pointer(&fn), 7174 ) 7175 return 7176 } 7177 7178 // MatrixTransform calls the method "DOMPointReadOnly.matrixTransform". 7179 func (this DOMPointReadOnly) MatrixTransform(matrix DOMMatrixInit) (ret DOMPoint) { 7180 bindings.CallDOMPointReadOnlyMatrixTransform( 7181 this.ref, js.Pointer(&ret), 7182 js.Pointer(&matrix), 7183 ) 7184 7185 return 7186 } 7187 7188 // TryMatrixTransform calls the method "DOMPointReadOnly.matrixTransform" 7189 // in a try/catch block and returns (_, err, ok = false) when it went through 7190 // the catch clause. 7191 func (this DOMPointReadOnly) TryMatrixTransform(matrix DOMMatrixInit) (ret DOMPoint, exception js.Any, ok bool) { 7192 ok = js.True == bindings.TryDOMPointReadOnlyMatrixTransform( 7193 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7194 js.Pointer(&matrix), 7195 ) 7196 7197 return 7198 } 7199 7200 // HasFuncMatrixTransform1 returns true if the method "DOMPointReadOnly.matrixTransform" exists. 7201 func (this DOMPointReadOnly) HasFuncMatrixTransform1() bool { 7202 return js.True == bindings.HasFuncDOMPointReadOnlyMatrixTransform1( 7203 this.ref, 7204 ) 7205 } 7206 7207 // FuncMatrixTransform1 returns the method "DOMPointReadOnly.matrixTransform". 7208 func (this DOMPointReadOnly) FuncMatrixTransform1() (fn js.Func[func() DOMPoint]) { 7209 bindings.FuncDOMPointReadOnlyMatrixTransform1( 7210 this.ref, js.Pointer(&fn), 7211 ) 7212 return 7213 } 7214 7215 // MatrixTransform1 calls the method "DOMPointReadOnly.matrixTransform". 7216 func (this DOMPointReadOnly) MatrixTransform1() (ret DOMPoint) { 7217 bindings.CallDOMPointReadOnlyMatrixTransform1( 7218 this.ref, js.Pointer(&ret), 7219 ) 7220 7221 return 7222 } 7223 7224 // TryMatrixTransform1 calls the method "DOMPointReadOnly.matrixTransform" 7225 // in a try/catch block and returns (_, err, ok = false) when it went through 7226 // the catch clause. 7227 func (this DOMPointReadOnly) TryMatrixTransform1() (ret DOMPoint, exception js.Any, ok bool) { 7228 ok = js.True == bindings.TryDOMPointReadOnlyMatrixTransform1( 7229 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7230 ) 7231 7232 return 7233 } 7234 7235 // HasFuncToJSON returns true if the method "DOMPointReadOnly.toJSON" exists. 7236 func (this DOMPointReadOnly) HasFuncToJSON() bool { 7237 return js.True == bindings.HasFuncDOMPointReadOnlyToJSON( 7238 this.ref, 7239 ) 7240 } 7241 7242 // FuncToJSON returns the method "DOMPointReadOnly.toJSON". 7243 func (this DOMPointReadOnly) FuncToJSON() (fn js.Func[func() js.Object]) { 7244 bindings.FuncDOMPointReadOnlyToJSON( 7245 this.ref, js.Pointer(&fn), 7246 ) 7247 return 7248 } 7249 7250 // ToJSON calls the method "DOMPointReadOnly.toJSON". 7251 func (this DOMPointReadOnly) ToJSON() (ret js.Object) { 7252 bindings.CallDOMPointReadOnlyToJSON( 7253 this.ref, js.Pointer(&ret), 7254 ) 7255 7256 return 7257 } 7258 7259 // TryToJSON calls the method "DOMPointReadOnly.toJSON" 7260 // in a try/catch block and returns (_, err, ok = false) when it went through 7261 // the catch clause. 7262 func (this DOMPointReadOnly) TryToJSON() (ret js.Object, exception js.Any, ok bool) { 7263 ok = js.True == bindings.TryDOMPointReadOnlyToJSON( 7264 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7265 ) 7266 7267 return 7268 } 7269 7270 type SVGAnimatedRect struct { 7271 ref js.Ref 7272 } 7273 7274 func (this SVGAnimatedRect) Once() SVGAnimatedRect { 7275 this.ref.Once() 7276 return this 7277 } 7278 7279 func (this SVGAnimatedRect) Ref() js.Ref { 7280 return this.ref 7281 } 7282 7283 func (this SVGAnimatedRect) FromRef(ref js.Ref) SVGAnimatedRect { 7284 this.ref = ref 7285 return this 7286 } 7287 7288 func (this SVGAnimatedRect) Free() { 7289 this.ref.Free() 7290 } 7291 7292 // BaseVal returns the value of property "SVGAnimatedRect.baseVal". 7293 // 7294 // It returns ok=false if there is no such property. 7295 func (this SVGAnimatedRect) BaseVal() (ret DOMRect, ok bool) { 7296 ok = js.True == bindings.GetSVGAnimatedRectBaseVal( 7297 this.ref, js.Pointer(&ret), 7298 ) 7299 return 7300 } 7301 7302 // AnimVal returns the value of property "SVGAnimatedRect.animVal". 7303 // 7304 // It returns ok=false if there is no such property. 7305 func (this SVGAnimatedRect) AnimVal() (ret DOMRectReadOnly, ok bool) { 7306 ok = js.True == bindings.GetSVGAnimatedRectAnimVal( 7307 this.ref, js.Pointer(&ret), 7308 ) 7309 return 7310 } 7311 7312 const ( 7313 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_UNKNOWN uint16 = 0 7314 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_NONE uint16 = 1 7315 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMINYMIN uint16 = 2 7316 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMIDYMIN uint16 = 3 7317 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMAXYMIN uint16 = 4 7318 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMINYMID uint16 = 5 7319 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMIDYMID uint16 = 6 7320 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMAXYMID uint16 = 7 7321 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMINYMAX uint16 = 8 7322 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMIDYMAX uint16 = 9 7323 SVGPreserveAspectRatio_SVG_PRESERVEASPECTRATIO_XMAXYMAX uint16 = 10 7324 SVGPreserveAspectRatio_SVG_MEETORSLICE_UNKNOWN uint16 = 0 7325 SVGPreserveAspectRatio_SVG_MEETORSLICE_MEET uint16 = 1 7326 SVGPreserveAspectRatio_SVG_MEETORSLICE_SLICE uint16 = 2 7327 ) 7328 7329 type SVGPreserveAspectRatio struct { 7330 ref js.Ref 7331 } 7332 7333 func (this SVGPreserveAspectRatio) Once() SVGPreserveAspectRatio { 7334 this.ref.Once() 7335 return this 7336 } 7337 7338 func (this SVGPreserveAspectRatio) Ref() js.Ref { 7339 return this.ref 7340 } 7341 7342 func (this SVGPreserveAspectRatio) FromRef(ref js.Ref) SVGPreserveAspectRatio { 7343 this.ref = ref 7344 return this 7345 } 7346 7347 func (this SVGPreserveAspectRatio) Free() { 7348 this.ref.Free() 7349 } 7350 7351 // Align returns the value of property "SVGPreserveAspectRatio.align". 7352 // 7353 // It returns ok=false if there is no such property. 7354 func (this SVGPreserveAspectRatio) Align() (ret uint16, ok bool) { 7355 ok = js.True == bindings.GetSVGPreserveAspectRatioAlign( 7356 this.ref, js.Pointer(&ret), 7357 ) 7358 return 7359 } 7360 7361 // SetAlign sets the value of property "SVGPreserveAspectRatio.align" to val. 7362 // 7363 // It returns false if the property cannot be set. 7364 func (this SVGPreserveAspectRatio) SetAlign(val uint16) bool { 7365 return js.True == bindings.SetSVGPreserveAspectRatioAlign( 7366 this.ref, 7367 uint32(val), 7368 ) 7369 } 7370 7371 // MeetOrSlice returns the value of property "SVGPreserveAspectRatio.meetOrSlice". 7372 // 7373 // It returns ok=false if there is no such property. 7374 func (this SVGPreserveAspectRatio) MeetOrSlice() (ret uint16, ok bool) { 7375 ok = js.True == bindings.GetSVGPreserveAspectRatioMeetOrSlice( 7376 this.ref, js.Pointer(&ret), 7377 ) 7378 return 7379 } 7380 7381 // SetMeetOrSlice sets the value of property "SVGPreserveAspectRatio.meetOrSlice" to val. 7382 // 7383 // It returns false if the property cannot be set. 7384 func (this SVGPreserveAspectRatio) SetMeetOrSlice(val uint16) bool { 7385 return js.True == bindings.SetSVGPreserveAspectRatioMeetOrSlice( 7386 this.ref, 7387 uint32(val), 7388 ) 7389 } 7390 7391 type SVGAnimatedPreserveAspectRatio struct { 7392 ref js.Ref 7393 } 7394 7395 func (this SVGAnimatedPreserveAspectRatio) Once() SVGAnimatedPreserveAspectRatio { 7396 this.ref.Once() 7397 return this 7398 } 7399 7400 func (this SVGAnimatedPreserveAspectRatio) Ref() js.Ref { 7401 return this.ref 7402 } 7403 7404 func (this SVGAnimatedPreserveAspectRatio) FromRef(ref js.Ref) SVGAnimatedPreserveAspectRatio { 7405 this.ref = ref 7406 return this 7407 } 7408 7409 func (this SVGAnimatedPreserveAspectRatio) Free() { 7410 this.ref.Free() 7411 } 7412 7413 // BaseVal returns the value of property "SVGAnimatedPreserveAspectRatio.baseVal". 7414 // 7415 // It returns ok=false if there is no such property. 7416 func (this SVGAnimatedPreserveAspectRatio) BaseVal() (ret SVGPreserveAspectRatio, ok bool) { 7417 ok = js.True == bindings.GetSVGAnimatedPreserveAspectRatioBaseVal( 7418 this.ref, js.Pointer(&ret), 7419 ) 7420 return 7421 } 7422 7423 // AnimVal returns the value of property "SVGAnimatedPreserveAspectRatio.animVal". 7424 // 7425 // It returns ok=false if there is no such property. 7426 func (this SVGAnimatedPreserveAspectRatio) AnimVal() (ret SVGPreserveAspectRatio, ok bool) { 7427 ok = js.True == bindings.GetSVGAnimatedPreserveAspectRatioAnimVal( 7428 this.ref, js.Pointer(&ret), 7429 ) 7430 return 7431 } 7432 7433 type OnBeforeUnloadEventHandlerNonNullFunc func(this js.Ref, event Event) js.Ref 7434 7435 func (fn OnBeforeUnloadEventHandlerNonNullFunc) Register() js.Func[func(event Event) js.String] { 7436 return js.RegisterCallback[func(event Event) js.String]( 7437 fn, abi.FuncPCABIInternal(fn), 7438 ) 7439 } 7440 7441 func (fn OnBeforeUnloadEventHandlerNonNullFunc) DispatchCallback( 7442 targetPC uintptr, ctx *js.CallbackContext, 7443 ) { 7444 args := ctx.Args() 7445 if len(args) != 1+1 /* js this */ || 7446 targetPC != uintptr(abi.FuncPCABIInternal(fn)) { 7447 js.ThrowInvalidCallbackInvocation() 7448 } 7449 7450 if ctx.Return(fn( 7451 args[0], 7452 7453 Event{}.FromRef(args[0+1]), 7454 )) { 7455 return 7456 } 7457 7458 js.ThrowCallbackValueNotReturned() 7459 } 7460 7461 type OnBeforeUnloadEventHandlerNonNull[T any] struct { 7462 Fn func(arg T, this js.Ref, event Event) js.Ref 7463 Arg T 7464 } 7465 7466 func (cb *OnBeforeUnloadEventHandlerNonNull[T]) Register() js.Func[func(event Event) js.String] { 7467 return js.RegisterCallback[func(event Event) js.String]( 7468 cb, abi.FuncPCABIInternal(cb.Fn), 7469 ) 7470 } 7471 7472 func (cb *OnBeforeUnloadEventHandlerNonNull[T]) DispatchCallback( 7473 targetPC uintptr, ctx *js.CallbackContext, 7474 ) { 7475 args := ctx.Args() 7476 if len(args) != 1+1 /* js this */ || 7477 targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) { 7478 js.ThrowInvalidCallbackInvocation() 7479 } 7480 7481 if ctx.Return(cb.Fn( 7482 cb.Arg, 7483 args[0], 7484 7485 Event{}.FromRef(args[0+1]), 7486 )) { 7487 return 7488 } 7489 7490 js.ThrowCallbackValueNotReturned() 7491 } 7492 7493 type OnBeforeUnloadEventHandler = js.Func[func(event Event) js.String] 7494 7495 type SVGSVGElement struct { 7496 SVGGraphicsElement 7497 } 7498 7499 func (this SVGSVGElement) Once() SVGSVGElement { 7500 this.ref.Once() 7501 return this 7502 } 7503 7504 func (this SVGSVGElement) Ref() js.Ref { 7505 return this.SVGGraphicsElement.Ref() 7506 } 7507 7508 func (this SVGSVGElement) FromRef(ref js.Ref) SVGSVGElement { 7509 this.SVGGraphicsElement = this.SVGGraphicsElement.FromRef(ref) 7510 return this 7511 } 7512 7513 func (this SVGSVGElement) Free() { 7514 this.ref.Free() 7515 } 7516 7517 // X returns the value of property "SVGSVGElement.x". 7518 // 7519 // It returns ok=false if there is no such property. 7520 func (this SVGSVGElement) X() (ret SVGAnimatedLength, ok bool) { 7521 ok = js.True == bindings.GetSVGSVGElementX( 7522 this.ref, js.Pointer(&ret), 7523 ) 7524 return 7525 } 7526 7527 // Y returns the value of property "SVGSVGElement.y". 7528 // 7529 // It returns ok=false if there is no such property. 7530 func (this SVGSVGElement) Y() (ret SVGAnimatedLength, ok bool) { 7531 ok = js.True == bindings.GetSVGSVGElementY( 7532 this.ref, js.Pointer(&ret), 7533 ) 7534 return 7535 } 7536 7537 // Width returns the value of property "SVGSVGElement.width". 7538 // 7539 // It returns ok=false if there is no such property. 7540 func (this SVGSVGElement) Width() (ret SVGAnimatedLength, ok bool) { 7541 ok = js.True == bindings.GetSVGSVGElementWidth( 7542 this.ref, js.Pointer(&ret), 7543 ) 7544 return 7545 } 7546 7547 // Height returns the value of property "SVGSVGElement.height". 7548 // 7549 // It returns ok=false if there is no such property. 7550 func (this SVGSVGElement) Height() (ret SVGAnimatedLength, ok bool) { 7551 ok = js.True == bindings.GetSVGSVGElementHeight( 7552 this.ref, js.Pointer(&ret), 7553 ) 7554 return 7555 } 7556 7557 // CurrentScale returns the value of property "SVGSVGElement.currentScale". 7558 // 7559 // It returns ok=false if there is no such property. 7560 func (this SVGSVGElement) CurrentScale() (ret float32, ok bool) { 7561 ok = js.True == bindings.GetSVGSVGElementCurrentScale( 7562 this.ref, js.Pointer(&ret), 7563 ) 7564 return 7565 } 7566 7567 // SetCurrentScale sets the value of property "SVGSVGElement.currentScale" to val. 7568 // 7569 // It returns false if the property cannot be set. 7570 func (this SVGSVGElement) SetCurrentScale(val float32) bool { 7571 return js.True == bindings.SetSVGSVGElementCurrentScale( 7572 this.ref, 7573 float32(val), 7574 ) 7575 } 7576 7577 // CurrentTranslate returns the value of property "SVGSVGElement.currentTranslate". 7578 // 7579 // It returns ok=false if there is no such property. 7580 func (this SVGSVGElement) CurrentTranslate() (ret DOMPointReadOnly, ok bool) { 7581 ok = js.True == bindings.GetSVGSVGElementCurrentTranslate( 7582 this.ref, js.Pointer(&ret), 7583 ) 7584 return 7585 } 7586 7587 // ViewBox returns the value of property "SVGSVGElement.viewBox". 7588 // 7589 // It returns ok=false if there is no such property. 7590 func (this SVGSVGElement) ViewBox() (ret SVGAnimatedRect, ok bool) { 7591 ok = js.True == bindings.GetSVGSVGElementViewBox( 7592 this.ref, js.Pointer(&ret), 7593 ) 7594 return 7595 } 7596 7597 // PreserveAspectRatio returns the value of property "SVGSVGElement.preserveAspectRatio". 7598 // 7599 // It returns ok=false if there is no such property. 7600 func (this SVGSVGElement) PreserveAspectRatio() (ret SVGAnimatedPreserveAspectRatio, ok bool) { 7601 ok = js.True == bindings.GetSVGSVGElementPreserveAspectRatio( 7602 this.ref, js.Pointer(&ret), 7603 ) 7604 return 7605 } 7606 7607 // HasFuncGetIntersectionList returns true if the method "SVGSVGElement.getIntersectionList" exists. 7608 func (this SVGSVGElement) HasFuncGetIntersectionList() bool { 7609 return js.True == bindings.HasFuncSVGSVGElementGetIntersectionList( 7610 this.ref, 7611 ) 7612 } 7613 7614 // FuncGetIntersectionList returns the method "SVGSVGElement.getIntersectionList". 7615 func (this SVGSVGElement) FuncGetIntersectionList() (fn js.Func[func(rect DOMRectReadOnly, referenceElement SVGElement) NodeList]) { 7616 bindings.FuncSVGSVGElementGetIntersectionList( 7617 this.ref, js.Pointer(&fn), 7618 ) 7619 return 7620 } 7621 7622 // GetIntersectionList calls the method "SVGSVGElement.getIntersectionList". 7623 func (this SVGSVGElement) GetIntersectionList(rect DOMRectReadOnly, referenceElement SVGElement) (ret NodeList) { 7624 bindings.CallSVGSVGElementGetIntersectionList( 7625 this.ref, js.Pointer(&ret), 7626 rect.Ref(), 7627 referenceElement.Ref(), 7628 ) 7629 7630 return 7631 } 7632 7633 // TryGetIntersectionList calls the method "SVGSVGElement.getIntersectionList" 7634 // in a try/catch block and returns (_, err, ok = false) when it went through 7635 // the catch clause. 7636 func (this SVGSVGElement) TryGetIntersectionList(rect DOMRectReadOnly, referenceElement SVGElement) (ret NodeList, exception js.Any, ok bool) { 7637 ok = js.True == bindings.TrySVGSVGElementGetIntersectionList( 7638 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7639 rect.Ref(), 7640 referenceElement.Ref(), 7641 ) 7642 7643 return 7644 } 7645 7646 // HasFuncGetEnclosureList returns true if the method "SVGSVGElement.getEnclosureList" exists. 7647 func (this SVGSVGElement) HasFuncGetEnclosureList() bool { 7648 return js.True == bindings.HasFuncSVGSVGElementGetEnclosureList( 7649 this.ref, 7650 ) 7651 } 7652 7653 // FuncGetEnclosureList returns the method "SVGSVGElement.getEnclosureList". 7654 func (this SVGSVGElement) FuncGetEnclosureList() (fn js.Func[func(rect DOMRectReadOnly, referenceElement SVGElement) NodeList]) { 7655 bindings.FuncSVGSVGElementGetEnclosureList( 7656 this.ref, js.Pointer(&fn), 7657 ) 7658 return 7659 } 7660 7661 // GetEnclosureList calls the method "SVGSVGElement.getEnclosureList". 7662 func (this SVGSVGElement) GetEnclosureList(rect DOMRectReadOnly, referenceElement SVGElement) (ret NodeList) { 7663 bindings.CallSVGSVGElementGetEnclosureList( 7664 this.ref, js.Pointer(&ret), 7665 rect.Ref(), 7666 referenceElement.Ref(), 7667 ) 7668 7669 return 7670 } 7671 7672 // TryGetEnclosureList calls the method "SVGSVGElement.getEnclosureList" 7673 // in a try/catch block and returns (_, err, ok = false) when it went through 7674 // the catch clause. 7675 func (this SVGSVGElement) TryGetEnclosureList(rect DOMRectReadOnly, referenceElement SVGElement) (ret NodeList, exception js.Any, ok bool) { 7676 ok = js.True == bindings.TrySVGSVGElementGetEnclosureList( 7677 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7678 rect.Ref(), 7679 referenceElement.Ref(), 7680 ) 7681 7682 return 7683 } 7684 7685 // HasFuncCheckIntersection returns true if the method "SVGSVGElement.checkIntersection" exists. 7686 func (this SVGSVGElement) HasFuncCheckIntersection() bool { 7687 return js.True == bindings.HasFuncSVGSVGElementCheckIntersection( 7688 this.ref, 7689 ) 7690 } 7691 7692 // FuncCheckIntersection returns the method "SVGSVGElement.checkIntersection". 7693 func (this SVGSVGElement) FuncCheckIntersection() (fn js.Func[func(element SVGElement, rect DOMRectReadOnly) bool]) { 7694 bindings.FuncSVGSVGElementCheckIntersection( 7695 this.ref, js.Pointer(&fn), 7696 ) 7697 return 7698 } 7699 7700 // CheckIntersection calls the method "SVGSVGElement.checkIntersection". 7701 func (this SVGSVGElement) CheckIntersection(element SVGElement, rect DOMRectReadOnly) (ret bool) { 7702 bindings.CallSVGSVGElementCheckIntersection( 7703 this.ref, js.Pointer(&ret), 7704 element.Ref(), 7705 rect.Ref(), 7706 ) 7707 7708 return 7709 } 7710 7711 // TryCheckIntersection calls the method "SVGSVGElement.checkIntersection" 7712 // in a try/catch block and returns (_, err, ok = false) when it went through 7713 // the catch clause. 7714 func (this SVGSVGElement) TryCheckIntersection(element SVGElement, rect DOMRectReadOnly) (ret bool, exception js.Any, ok bool) { 7715 ok = js.True == bindings.TrySVGSVGElementCheckIntersection( 7716 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7717 element.Ref(), 7718 rect.Ref(), 7719 ) 7720 7721 return 7722 } 7723 7724 // HasFuncCheckEnclosure returns true if the method "SVGSVGElement.checkEnclosure" exists. 7725 func (this SVGSVGElement) HasFuncCheckEnclosure() bool { 7726 return js.True == bindings.HasFuncSVGSVGElementCheckEnclosure( 7727 this.ref, 7728 ) 7729 } 7730 7731 // FuncCheckEnclosure returns the method "SVGSVGElement.checkEnclosure". 7732 func (this SVGSVGElement) FuncCheckEnclosure() (fn js.Func[func(element SVGElement, rect DOMRectReadOnly) bool]) { 7733 bindings.FuncSVGSVGElementCheckEnclosure( 7734 this.ref, js.Pointer(&fn), 7735 ) 7736 return 7737 } 7738 7739 // CheckEnclosure calls the method "SVGSVGElement.checkEnclosure". 7740 func (this SVGSVGElement) CheckEnclosure(element SVGElement, rect DOMRectReadOnly) (ret bool) { 7741 bindings.CallSVGSVGElementCheckEnclosure( 7742 this.ref, js.Pointer(&ret), 7743 element.Ref(), 7744 rect.Ref(), 7745 ) 7746 7747 return 7748 } 7749 7750 // TryCheckEnclosure calls the method "SVGSVGElement.checkEnclosure" 7751 // in a try/catch block and returns (_, err, ok = false) when it went through 7752 // the catch clause. 7753 func (this SVGSVGElement) TryCheckEnclosure(element SVGElement, rect DOMRectReadOnly) (ret bool, exception js.Any, ok bool) { 7754 ok = js.True == bindings.TrySVGSVGElementCheckEnclosure( 7755 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7756 element.Ref(), 7757 rect.Ref(), 7758 ) 7759 7760 return 7761 } 7762 7763 // HasFuncDeselectAll returns true if the method "SVGSVGElement.deselectAll" exists. 7764 func (this SVGSVGElement) HasFuncDeselectAll() bool { 7765 return js.True == bindings.HasFuncSVGSVGElementDeselectAll( 7766 this.ref, 7767 ) 7768 } 7769 7770 // FuncDeselectAll returns the method "SVGSVGElement.deselectAll". 7771 func (this SVGSVGElement) FuncDeselectAll() (fn js.Func[func()]) { 7772 bindings.FuncSVGSVGElementDeselectAll( 7773 this.ref, js.Pointer(&fn), 7774 ) 7775 return 7776 } 7777 7778 // DeselectAll calls the method "SVGSVGElement.deselectAll". 7779 func (this SVGSVGElement) DeselectAll() (ret js.Void) { 7780 bindings.CallSVGSVGElementDeselectAll( 7781 this.ref, js.Pointer(&ret), 7782 ) 7783 7784 return 7785 } 7786 7787 // TryDeselectAll calls the method "SVGSVGElement.deselectAll" 7788 // in a try/catch block and returns (_, err, ok = false) when it went through 7789 // the catch clause. 7790 func (this SVGSVGElement) TryDeselectAll() (ret js.Void, exception js.Any, ok bool) { 7791 ok = js.True == bindings.TrySVGSVGElementDeselectAll( 7792 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7793 ) 7794 7795 return 7796 } 7797 7798 // HasFuncCreateSVGNumber returns true if the method "SVGSVGElement.createSVGNumber" exists. 7799 func (this SVGSVGElement) HasFuncCreateSVGNumber() bool { 7800 return js.True == bindings.HasFuncSVGSVGElementCreateSVGNumber( 7801 this.ref, 7802 ) 7803 } 7804 7805 // FuncCreateSVGNumber returns the method "SVGSVGElement.createSVGNumber". 7806 func (this SVGSVGElement) FuncCreateSVGNumber() (fn js.Func[func() SVGNumber]) { 7807 bindings.FuncSVGSVGElementCreateSVGNumber( 7808 this.ref, js.Pointer(&fn), 7809 ) 7810 return 7811 } 7812 7813 // CreateSVGNumber calls the method "SVGSVGElement.createSVGNumber". 7814 func (this SVGSVGElement) CreateSVGNumber() (ret SVGNumber) { 7815 bindings.CallSVGSVGElementCreateSVGNumber( 7816 this.ref, js.Pointer(&ret), 7817 ) 7818 7819 return 7820 } 7821 7822 // TryCreateSVGNumber calls the method "SVGSVGElement.createSVGNumber" 7823 // in a try/catch block and returns (_, err, ok = false) when it went through 7824 // the catch clause. 7825 func (this SVGSVGElement) TryCreateSVGNumber() (ret SVGNumber, exception js.Any, ok bool) { 7826 ok = js.True == bindings.TrySVGSVGElementCreateSVGNumber( 7827 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7828 ) 7829 7830 return 7831 } 7832 7833 // HasFuncCreateSVGLength returns true if the method "SVGSVGElement.createSVGLength" exists. 7834 func (this SVGSVGElement) HasFuncCreateSVGLength() bool { 7835 return js.True == bindings.HasFuncSVGSVGElementCreateSVGLength( 7836 this.ref, 7837 ) 7838 } 7839 7840 // FuncCreateSVGLength returns the method "SVGSVGElement.createSVGLength". 7841 func (this SVGSVGElement) FuncCreateSVGLength() (fn js.Func[func() SVGLength]) { 7842 bindings.FuncSVGSVGElementCreateSVGLength( 7843 this.ref, js.Pointer(&fn), 7844 ) 7845 return 7846 } 7847 7848 // CreateSVGLength calls the method "SVGSVGElement.createSVGLength". 7849 func (this SVGSVGElement) CreateSVGLength() (ret SVGLength) { 7850 bindings.CallSVGSVGElementCreateSVGLength( 7851 this.ref, js.Pointer(&ret), 7852 ) 7853 7854 return 7855 } 7856 7857 // TryCreateSVGLength calls the method "SVGSVGElement.createSVGLength" 7858 // in a try/catch block and returns (_, err, ok = false) when it went through 7859 // the catch clause. 7860 func (this SVGSVGElement) TryCreateSVGLength() (ret SVGLength, exception js.Any, ok bool) { 7861 ok = js.True == bindings.TrySVGSVGElementCreateSVGLength( 7862 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7863 ) 7864 7865 return 7866 } 7867 7868 // HasFuncCreateSVGAngle returns true if the method "SVGSVGElement.createSVGAngle" exists. 7869 func (this SVGSVGElement) HasFuncCreateSVGAngle() bool { 7870 return js.True == bindings.HasFuncSVGSVGElementCreateSVGAngle( 7871 this.ref, 7872 ) 7873 } 7874 7875 // FuncCreateSVGAngle returns the method "SVGSVGElement.createSVGAngle". 7876 func (this SVGSVGElement) FuncCreateSVGAngle() (fn js.Func[func() SVGAngle]) { 7877 bindings.FuncSVGSVGElementCreateSVGAngle( 7878 this.ref, js.Pointer(&fn), 7879 ) 7880 return 7881 } 7882 7883 // CreateSVGAngle calls the method "SVGSVGElement.createSVGAngle". 7884 func (this SVGSVGElement) CreateSVGAngle() (ret SVGAngle) { 7885 bindings.CallSVGSVGElementCreateSVGAngle( 7886 this.ref, js.Pointer(&ret), 7887 ) 7888 7889 return 7890 } 7891 7892 // TryCreateSVGAngle calls the method "SVGSVGElement.createSVGAngle" 7893 // in a try/catch block and returns (_, err, ok = false) when it went through 7894 // the catch clause. 7895 func (this SVGSVGElement) TryCreateSVGAngle() (ret SVGAngle, exception js.Any, ok bool) { 7896 ok = js.True == bindings.TrySVGSVGElementCreateSVGAngle( 7897 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7898 ) 7899 7900 return 7901 } 7902 7903 // HasFuncCreateSVGPoint returns true if the method "SVGSVGElement.createSVGPoint" exists. 7904 func (this SVGSVGElement) HasFuncCreateSVGPoint() bool { 7905 return js.True == bindings.HasFuncSVGSVGElementCreateSVGPoint( 7906 this.ref, 7907 ) 7908 } 7909 7910 // FuncCreateSVGPoint returns the method "SVGSVGElement.createSVGPoint". 7911 func (this SVGSVGElement) FuncCreateSVGPoint() (fn js.Func[func() DOMPoint]) { 7912 bindings.FuncSVGSVGElementCreateSVGPoint( 7913 this.ref, js.Pointer(&fn), 7914 ) 7915 return 7916 } 7917 7918 // CreateSVGPoint calls the method "SVGSVGElement.createSVGPoint". 7919 func (this SVGSVGElement) CreateSVGPoint() (ret DOMPoint) { 7920 bindings.CallSVGSVGElementCreateSVGPoint( 7921 this.ref, js.Pointer(&ret), 7922 ) 7923 7924 return 7925 } 7926 7927 // TryCreateSVGPoint calls the method "SVGSVGElement.createSVGPoint" 7928 // in a try/catch block and returns (_, err, ok = false) when it went through 7929 // the catch clause. 7930 func (this SVGSVGElement) TryCreateSVGPoint() (ret DOMPoint, exception js.Any, ok bool) { 7931 ok = js.True == bindings.TrySVGSVGElementCreateSVGPoint( 7932 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7933 ) 7934 7935 return 7936 } 7937 7938 // HasFuncCreateSVGMatrix returns true if the method "SVGSVGElement.createSVGMatrix" exists. 7939 func (this SVGSVGElement) HasFuncCreateSVGMatrix() bool { 7940 return js.True == bindings.HasFuncSVGSVGElementCreateSVGMatrix( 7941 this.ref, 7942 ) 7943 } 7944 7945 // FuncCreateSVGMatrix returns the method "SVGSVGElement.createSVGMatrix". 7946 func (this SVGSVGElement) FuncCreateSVGMatrix() (fn js.Func[func() DOMMatrix]) { 7947 bindings.FuncSVGSVGElementCreateSVGMatrix( 7948 this.ref, js.Pointer(&fn), 7949 ) 7950 return 7951 } 7952 7953 // CreateSVGMatrix calls the method "SVGSVGElement.createSVGMatrix". 7954 func (this SVGSVGElement) CreateSVGMatrix() (ret DOMMatrix) { 7955 bindings.CallSVGSVGElementCreateSVGMatrix( 7956 this.ref, js.Pointer(&ret), 7957 ) 7958 7959 return 7960 } 7961 7962 // TryCreateSVGMatrix calls the method "SVGSVGElement.createSVGMatrix" 7963 // in a try/catch block and returns (_, err, ok = false) when it went through 7964 // the catch clause. 7965 func (this SVGSVGElement) TryCreateSVGMatrix() (ret DOMMatrix, exception js.Any, ok bool) { 7966 ok = js.True == bindings.TrySVGSVGElementCreateSVGMatrix( 7967 this.ref, js.Pointer(&ret), js.Pointer(&exception), 7968 ) 7969 7970 return 7971 } 7972 7973 // HasFuncCreateSVGRect returns true if the method "SVGSVGElement.createSVGRect" exists. 7974 func (this SVGSVGElement) HasFuncCreateSVGRect() bool { 7975 return js.True == bindings.HasFuncSVGSVGElementCreateSVGRect( 7976 this.ref, 7977 ) 7978 } 7979 7980 // FuncCreateSVGRect returns the method "SVGSVGElement.createSVGRect". 7981 func (this SVGSVGElement) FuncCreateSVGRect() (fn js.Func[func() DOMRect]) { 7982 bindings.FuncSVGSVGElementCreateSVGRect( 7983 this.ref, js.Pointer(&fn), 7984 ) 7985 return 7986 } 7987 7988 // CreateSVGRect calls the method "SVGSVGElement.createSVGRect". 7989 func (this SVGSVGElement) CreateSVGRect() (ret DOMRect) { 7990 bindings.CallSVGSVGElementCreateSVGRect( 7991 this.ref, js.Pointer(&ret), 7992 ) 7993 7994 return 7995 } 7996 7997 // TryCreateSVGRect calls the method "SVGSVGElement.createSVGRect" 7998 // in a try/catch block and returns (_, err, ok = false) when it went through 7999 // the catch clause. 8000 func (this SVGSVGElement) TryCreateSVGRect() (ret DOMRect, exception js.Any, ok bool) { 8001 ok = js.True == bindings.TrySVGSVGElementCreateSVGRect( 8002 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8003 ) 8004 8005 return 8006 } 8007 8008 // HasFuncCreateSVGTransform returns true if the method "SVGSVGElement.createSVGTransform" exists. 8009 func (this SVGSVGElement) HasFuncCreateSVGTransform() bool { 8010 return js.True == bindings.HasFuncSVGSVGElementCreateSVGTransform( 8011 this.ref, 8012 ) 8013 } 8014 8015 // FuncCreateSVGTransform returns the method "SVGSVGElement.createSVGTransform". 8016 func (this SVGSVGElement) FuncCreateSVGTransform() (fn js.Func[func() SVGTransform]) { 8017 bindings.FuncSVGSVGElementCreateSVGTransform( 8018 this.ref, js.Pointer(&fn), 8019 ) 8020 return 8021 } 8022 8023 // CreateSVGTransform calls the method "SVGSVGElement.createSVGTransform". 8024 func (this SVGSVGElement) CreateSVGTransform() (ret SVGTransform) { 8025 bindings.CallSVGSVGElementCreateSVGTransform( 8026 this.ref, js.Pointer(&ret), 8027 ) 8028 8029 return 8030 } 8031 8032 // TryCreateSVGTransform calls the method "SVGSVGElement.createSVGTransform" 8033 // in a try/catch block and returns (_, err, ok = false) when it went through 8034 // the catch clause. 8035 func (this SVGSVGElement) TryCreateSVGTransform() (ret SVGTransform, exception js.Any, ok bool) { 8036 ok = js.True == bindings.TrySVGSVGElementCreateSVGTransform( 8037 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8038 ) 8039 8040 return 8041 } 8042 8043 // HasFuncCreateSVGTransformFromMatrix returns true if the method "SVGSVGElement.createSVGTransformFromMatrix" exists. 8044 func (this SVGSVGElement) HasFuncCreateSVGTransformFromMatrix() bool { 8045 return js.True == bindings.HasFuncSVGSVGElementCreateSVGTransformFromMatrix( 8046 this.ref, 8047 ) 8048 } 8049 8050 // FuncCreateSVGTransformFromMatrix returns the method "SVGSVGElement.createSVGTransformFromMatrix". 8051 func (this SVGSVGElement) FuncCreateSVGTransformFromMatrix() (fn js.Func[func(matrix DOMMatrix2DInit) SVGTransform]) { 8052 bindings.FuncSVGSVGElementCreateSVGTransformFromMatrix( 8053 this.ref, js.Pointer(&fn), 8054 ) 8055 return 8056 } 8057 8058 // CreateSVGTransformFromMatrix calls the method "SVGSVGElement.createSVGTransformFromMatrix". 8059 func (this SVGSVGElement) CreateSVGTransformFromMatrix(matrix DOMMatrix2DInit) (ret SVGTransform) { 8060 bindings.CallSVGSVGElementCreateSVGTransformFromMatrix( 8061 this.ref, js.Pointer(&ret), 8062 js.Pointer(&matrix), 8063 ) 8064 8065 return 8066 } 8067 8068 // TryCreateSVGTransformFromMatrix calls the method "SVGSVGElement.createSVGTransformFromMatrix" 8069 // in a try/catch block and returns (_, err, ok = false) when it went through 8070 // the catch clause. 8071 func (this SVGSVGElement) TryCreateSVGTransformFromMatrix(matrix DOMMatrix2DInit) (ret SVGTransform, exception js.Any, ok bool) { 8072 ok = js.True == bindings.TrySVGSVGElementCreateSVGTransformFromMatrix( 8073 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8074 js.Pointer(&matrix), 8075 ) 8076 8077 return 8078 } 8079 8080 // HasFuncCreateSVGTransformFromMatrix1 returns true if the method "SVGSVGElement.createSVGTransformFromMatrix" exists. 8081 func (this SVGSVGElement) HasFuncCreateSVGTransformFromMatrix1() bool { 8082 return js.True == bindings.HasFuncSVGSVGElementCreateSVGTransformFromMatrix1( 8083 this.ref, 8084 ) 8085 } 8086 8087 // FuncCreateSVGTransformFromMatrix1 returns the method "SVGSVGElement.createSVGTransformFromMatrix". 8088 func (this SVGSVGElement) FuncCreateSVGTransformFromMatrix1() (fn js.Func[func() SVGTransform]) { 8089 bindings.FuncSVGSVGElementCreateSVGTransformFromMatrix1( 8090 this.ref, js.Pointer(&fn), 8091 ) 8092 return 8093 } 8094 8095 // CreateSVGTransformFromMatrix1 calls the method "SVGSVGElement.createSVGTransformFromMatrix". 8096 func (this SVGSVGElement) CreateSVGTransformFromMatrix1() (ret SVGTransform) { 8097 bindings.CallSVGSVGElementCreateSVGTransformFromMatrix1( 8098 this.ref, js.Pointer(&ret), 8099 ) 8100 8101 return 8102 } 8103 8104 // TryCreateSVGTransformFromMatrix1 calls the method "SVGSVGElement.createSVGTransformFromMatrix" 8105 // in a try/catch block and returns (_, err, ok = false) when it went through 8106 // the catch clause. 8107 func (this SVGSVGElement) TryCreateSVGTransformFromMatrix1() (ret SVGTransform, exception js.Any, ok bool) { 8108 ok = js.True == bindings.TrySVGSVGElementCreateSVGTransformFromMatrix1( 8109 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8110 ) 8111 8112 return 8113 } 8114 8115 // HasFuncGetElementById returns true if the method "SVGSVGElement.getElementById" exists. 8116 func (this SVGSVGElement) HasFuncGetElementById() bool { 8117 return js.True == bindings.HasFuncSVGSVGElementGetElementById( 8118 this.ref, 8119 ) 8120 } 8121 8122 // FuncGetElementById returns the method "SVGSVGElement.getElementById". 8123 func (this SVGSVGElement) FuncGetElementById() (fn js.Func[func(elementId js.String) Element]) { 8124 bindings.FuncSVGSVGElementGetElementById( 8125 this.ref, js.Pointer(&fn), 8126 ) 8127 return 8128 } 8129 8130 // GetElementById calls the method "SVGSVGElement.getElementById". 8131 func (this SVGSVGElement) GetElementById(elementId js.String) (ret Element) { 8132 bindings.CallSVGSVGElementGetElementById( 8133 this.ref, js.Pointer(&ret), 8134 elementId.Ref(), 8135 ) 8136 8137 return 8138 } 8139 8140 // TryGetElementById calls the method "SVGSVGElement.getElementById" 8141 // in a try/catch block and returns (_, err, ok = false) when it went through 8142 // the catch clause. 8143 func (this SVGSVGElement) TryGetElementById(elementId js.String) (ret Element, exception js.Any, ok bool) { 8144 ok = js.True == bindings.TrySVGSVGElementGetElementById( 8145 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8146 elementId.Ref(), 8147 ) 8148 8149 return 8150 } 8151 8152 // HasFuncSuspendRedraw returns true if the method "SVGSVGElement.suspendRedraw" exists. 8153 func (this SVGSVGElement) HasFuncSuspendRedraw() bool { 8154 return js.True == bindings.HasFuncSVGSVGElementSuspendRedraw( 8155 this.ref, 8156 ) 8157 } 8158 8159 // FuncSuspendRedraw returns the method "SVGSVGElement.suspendRedraw". 8160 func (this SVGSVGElement) FuncSuspendRedraw() (fn js.Func[func(maxWaitMilliseconds uint32) uint32]) { 8161 bindings.FuncSVGSVGElementSuspendRedraw( 8162 this.ref, js.Pointer(&fn), 8163 ) 8164 return 8165 } 8166 8167 // SuspendRedraw calls the method "SVGSVGElement.suspendRedraw". 8168 func (this SVGSVGElement) SuspendRedraw(maxWaitMilliseconds uint32) (ret uint32) { 8169 bindings.CallSVGSVGElementSuspendRedraw( 8170 this.ref, js.Pointer(&ret), 8171 uint32(maxWaitMilliseconds), 8172 ) 8173 8174 return 8175 } 8176 8177 // TrySuspendRedraw calls the method "SVGSVGElement.suspendRedraw" 8178 // in a try/catch block and returns (_, err, ok = false) when it went through 8179 // the catch clause. 8180 func (this SVGSVGElement) TrySuspendRedraw(maxWaitMilliseconds uint32) (ret uint32, exception js.Any, ok bool) { 8181 ok = js.True == bindings.TrySVGSVGElementSuspendRedraw( 8182 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8183 uint32(maxWaitMilliseconds), 8184 ) 8185 8186 return 8187 } 8188 8189 // HasFuncUnsuspendRedraw returns true if the method "SVGSVGElement.unsuspendRedraw" exists. 8190 func (this SVGSVGElement) HasFuncUnsuspendRedraw() bool { 8191 return js.True == bindings.HasFuncSVGSVGElementUnsuspendRedraw( 8192 this.ref, 8193 ) 8194 } 8195 8196 // FuncUnsuspendRedraw returns the method "SVGSVGElement.unsuspendRedraw". 8197 func (this SVGSVGElement) FuncUnsuspendRedraw() (fn js.Func[func(suspendHandleID uint32)]) { 8198 bindings.FuncSVGSVGElementUnsuspendRedraw( 8199 this.ref, js.Pointer(&fn), 8200 ) 8201 return 8202 } 8203 8204 // UnsuspendRedraw calls the method "SVGSVGElement.unsuspendRedraw". 8205 func (this SVGSVGElement) UnsuspendRedraw(suspendHandleID uint32) (ret js.Void) { 8206 bindings.CallSVGSVGElementUnsuspendRedraw( 8207 this.ref, js.Pointer(&ret), 8208 uint32(suspendHandleID), 8209 ) 8210 8211 return 8212 } 8213 8214 // TryUnsuspendRedraw calls the method "SVGSVGElement.unsuspendRedraw" 8215 // in a try/catch block and returns (_, err, ok = false) when it went through 8216 // the catch clause. 8217 func (this SVGSVGElement) TryUnsuspendRedraw(suspendHandleID uint32) (ret js.Void, exception js.Any, ok bool) { 8218 ok = js.True == bindings.TrySVGSVGElementUnsuspendRedraw( 8219 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8220 uint32(suspendHandleID), 8221 ) 8222 8223 return 8224 } 8225 8226 // HasFuncUnsuspendRedrawAll returns true if the method "SVGSVGElement.unsuspendRedrawAll" exists. 8227 func (this SVGSVGElement) HasFuncUnsuspendRedrawAll() bool { 8228 return js.True == bindings.HasFuncSVGSVGElementUnsuspendRedrawAll( 8229 this.ref, 8230 ) 8231 } 8232 8233 // FuncUnsuspendRedrawAll returns the method "SVGSVGElement.unsuspendRedrawAll". 8234 func (this SVGSVGElement) FuncUnsuspendRedrawAll() (fn js.Func[func()]) { 8235 bindings.FuncSVGSVGElementUnsuspendRedrawAll( 8236 this.ref, js.Pointer(&fn), 8237 ) 8238 return 8239 } 8240 8241 // UnsuspendRedrawAll calls the method "SVGSVGElement.unsuspendRedrawAll". 8242 func (this SVGSVGElement) UnsuspendRedrawAll() (ret js.Void) { 8243 bindings.CallSVGSVGElementUnsuspendRedrawAll( 8244 this.ref, js.Pointer(&ret), 8245 ) 8246 8247 return 8248 } 8249 8250 // TryUnsuspendRedrawAll calls the method "SVGSVGElement.unsuspendRedrawAll" 8251 // in a try/catch block and returns (_, err, ok = false) when it went through 8252 // the catch clause. 8253 func (this SVGSVGElement) TryUnsuspendRedrawAll() (ret js.Void, exception js.Any, ok bool) { 8254 ok = js.True == bindings.TrySVGSVGElementUnsuspendRedrawAll( 8255 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8256 ) 8257 8258 return 8259 } 8260 8261 // HasFuncForceRedraw returns true if the method "SVGSVGElement.forceRedraw" exists. 8262 func (this SVGSVGElement) HasFuncForceRedraw() bool { 8263 return js.True == bindings.HasFuncSVGSVGElementForceRedraw( 8264 this.ref, 8265 ) 8266 } 8267 8268 // FuncForceRedraw returns the method "SVGSVGElement.forceRedraw". 8269 func (this SVGSVGElement) FuncForceRedraw() (fn js.Func[func()]) { 8270 bindings.FuncSVGSVGElementForceRedraw( 8271 this.ref, js.Pointer(&fn), 8272 ) 8273 return 8274 } 8275 8276 // ForceRedraw calls the method "SVGSVGElement.forceRedraw". 8277 func (this SVGSVGElement) ForceRedraw() (ret js.Void) { 8278 bindings.CallSVGSVGElementForceRedraw( 8279 this.ref, js.Pointer(&ret), 8280 ) 8281 8282 return 8283 } 8284 8285 // TryForceRedraw calls the method "SVGSVGElement.forceRedraw" 8286 // in a try/catch block and returns (_, err, ok = false) when it went through 8287 // the catch clause. 8288 func (this SVGSVGElement) TryForceRedraw() (ret js.Void, exception js.Any, ok bool) { 8289 ok = js.True == bindings.TrySVGSVGElementForceRedraw( 8290 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8291 ) 8292 8293 return 8294 } 8295 8296 // HasFuncPauseAnimations returns true if the method "SVGSVGElement.pauseAnimations" exists. 8297 func (this SVGSVGElement) HasFuncPauseAnimations() bool { 8298 return js.True == bindings.HasFuncSVGSVGElementPauseAnimations( 8299 this.ref, 8300 ) 8301 } 8302 8303 // FuncPauseAnimations returns the method "SVGSVGElement.pauseAnimations". 8304 func (this SVGSVGElement) FuncPauseAnimations() (fn js.Func[func()]) { 8305 bindings.FuncSVGSVGElementPauseAnimations( 8306 this.ref, js.Pointer(&fn), 8307 ) 8308 return 8309 } 8310 8311 // PauseAnimations calls the method "SVGSVGElement.pauseAnimations". 8312 func (this SVGSVGElement) PauseAnimations() (ret js.Void) { 8313 bindings.CallSVGSVGElementPauseAnimations( 8314 this.ref, js.Pointer(&ret), 8315 ) 8316 8317 return 8318 } 8319 8320 // TryPauseAnimations calls the method "SVGSVGElement.pauseAnimations" 8321 // in a try/catch block and returns (_, err, ok = false) when it went through 8322 // the catch clause. 8323 func (this SVGSVGElement) TryPauseAnimations() (ret js.Void, exception js.Any, ok bool) { 8324 ok = js.True == bindings.TrySVGSVGElementPauseAnimations( 8325 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8326 ) 8327 8328 return 8329 } 8330 8331 // HasFuncUnpauseAnimations returns true if the method "SVGSVGElement.unpauseAnimations" exists. 8332 func (this SVGSVGElement) HasFuncUnpauseAnimations() bool { 8333 return js.True == bindings.HasFuncSVGSVGElementUnpauseAnimations( 8334 this.ref, 8335 ) 8336 } 8337 8338 // FuncUnpauseAnimations returns the method "SVGSVGElement.unpauseAnimations". 8339 func (this SVGSVGElement) FuncUnpauseAnimations() (fn js.Func[func()]) { 8340 bindings.FuncSVGSVGElementUnpauseAnimations( 8341 this.ref, js.Pointer(&fn), 8342 ) 8343 return 8344 } 8345 8346 // UnpauseAnimations calls the method "SVGSVGElement.unpauseAnimations". 8347 func (this SVGSVGElement) UnpauseAnimations() (ret js.Void) { 8348 bindings.CallSVGSVGElementUnpauseAnimations( 8349 this.ref, js.Pointer(&ret), 8350 ) 8351 8352 return 8353 } 8354 8355 // TryUnpauseAnimations calls the method "SVGSVGElement.unpauseAnimations" 8356 // in a try/catch block and returns (_, err, ok = false) when it went through 8357 // the catch clause. 8358 func (this SVGSVGElement) TryUnpauseAnimations() (ret js.Void, exception js.Any, ok bool) { 8359 ok = js.True == bindings.TrySVGSVGElementUnpauseAnimations( 8360 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8361 ) 8362 8363 return 8364 } 8365 8366 // HasFuncAnimationsPaused returns true if the method "SVGSVGElement.animationsPaused" exists. 8367 func (this SVGSVGElement) HasFuncAnimationsPaused() bool { 8368 return js.True == bindings.HasFuncSVGSVGElementAnimationsPaused( 8369 this.ref, 8370 ) 8371 } 8372 8373 // FuncAnimationsPaused returns the method "SVGSVGElement.animationsPaused". 8374 func (this SVGSVGElement) FuncAnimationsPaused() (fn js.Func[func() bool]) { 8375 bindings.FuncSVGSVGElementAnimationsPaused( 8376 this.ref, js.Pointer(&fn), 8377 ) 8378 return 8379 } 8380 8381 // AnimationsPaused calls the method "SVGSVGElement.animationsPaused". 8382 func (this SVGSVGElement) AnimationsPaused() (ret bool) { 8383 bindings.CallSVGSVGElementAnimationsPaused( 8384 this.ref, js.Pointer(&ret), 8385 ) 8386 8387 return 8388 } 8389 8390 // TryAnimationsPaused calls the method "SVGSVGElement.animationsPaused" 8391 // in a try/catch block and returns (_, err, ok = false) when it went through 8392 // the catch clause. 8393 func (this SVGSVGElement) TryAnimationsPaused() (ret bool, exception js.Any, ok bool) { 8394 ok = js.True == bindings.TrySVGSVGElementAnimationsPaused( 8395 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8396 ) 8397 8398 return 8399 } 8400 8401 // HasFuncGetCurrentTime returns true if the method "SVGSVGElement.getCurrentTime" exists. 8402 func (this SVGSVGElement) HasFuncGetCurrentTime() bool { 8403 return js.True == bindings.HasFuncSVGSVGElementGetCurrentTime( 8404 this.ref, 8405 ) 8406 } 8407 8408 // FuncGetCurrentTime returns the method "SVGSVGElement.getCurrentTime". 8409 func (this SVGSVGElement) FuncGetCurrentTime() (fn js.Func[func() float32]) { 8410 bindings.FuncSVGSVGElementGetCurrentTime( 8411 this.ref, js.Pointer(&fn), 8412 ) 8413 return 8414 } 8415 8416 // GetCurrentTime calls the method "SVGSVGElement.getCurrentTime". 8417 func (this SVGSVGElement) GetCurrentTime() (ret float32) { 8418 bindings.CallSVGSVGElementGetCurrentTime( 8419 this.ref, js.Pointer(&ret), 8420 ) 8421 8422 return 8423 } 8424 8425 // TryGetCurrentTime calls the method "SVGSVGElement.getCurrentTime" 8426 // in a try/catch block and returns (_, err, ok = false) when it went through 8427 // the catch clause. 8428 func (this SVGSVGElement) TryGetCurrentTime() (ret float32, exception js.Any, ok bool) { 8429 ok = js.True == bindings.TrySVGSVGElementGetCurrentTime( 8430 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8431 ) 8432 8433 return 8434 } 8435 8436 // HasFuncSetCurrentTime returns true if the method "SVGSVGElement.setCurrentTime" exists. 8437 func (this SVGSVGElement) HasFuncSetCurrentTime() bool { 8438 return js.True == bindings.HasFuncSVGSVGElementSetCurrentTime( 8439 this.ref, 8440 ) 8441 } 8442 8443 // FuncSetCurrentTime returns the method "SVGSVGElement.setCurrentTime". 8444 func (this SVGSVGElement) FuncSetCurrentTime() (fn js.Func[func(seconds float32)]) { 8445 bindings.FuncSVGSVGElementSetCurrentTime( 8446 this.ref, js.Pointer(&fn), 8447 ) 8448 return 8449 } 8450 8451 // SetCurrentTime calls the method "SVGSVGElement.setCurrentTime". 8452 func (this SVGSVGElement) SetCurrentTime(seconds float32) (ret js.Void) { 8453 bindings.CallSVGSVGElementSetCurrentTime( 8454 this.ref, js.Pointer(&ret), 8455 float32(seconds), 8456 ) 8457 8458 return 8459 } 8460 8461 // TrySetCurrentTime calls the method "SVGSVGElement.setCurrentTime" 8462 // in a try/catch block and returns (_, err, ok = false) when it went through 8463 // the catch clause. 8464 func (this SVGSVGElement) TrySetCurrentTime(seconds float32) (ret js.Void, exception js.Any, ok bool) { 8465 ok = js.True == bindings.TrySVGSVGElementSetCurrentTime( 8466 this.ref, js.Pointer(&ret), js.Pointer(&exception), 8467 float32(seconds), 8468 ) 8469 8470 return 8471 }