github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis20_js_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 package web 5 6 import ( 7 "github.com/primecitizens/pcz/std/ffi/js" 8 "github.com/primecitizens/pcz/std/plat/js/web/bindings" 9 ) 10 11 func NewCSSColor(colorSpace CSSKeywordish, channels js.Array[CSSColorPercent], alpha CSSNumberish) (ret CSSColor) { 12 ret.ref = bindings.NewCSSColorByCSSColor( 13 colorSpace.Ref(), 14 channels.Ref(), 15 alpha.Ref()) 16 return 17 } 18 19 func NewCSSColorByCSSColor1(colorSpace CSSKeywordish, channels js.Array[CSSColorPercent]) (ret CSSColor) { 20 ret.ref = bindings.NewCSSColorByCSSColor1( 21 colorSpace.Ref(), 22 channels.Ref()) 23 return 24 } 25 26 type CSSColor struct { 27 CSSColorValue 28 } 29 30 func (this CSSColor) Once() CSSColor { 31 this.ref.Once() 32 return this 33 } 34 35 func (this CSSColor) Ref() js.Ref { 36 return this.CSSColorValue.Ref() 37 } 38 39 func (this CSSColor) FromRef(ref js.Ref) CSSColor { 40 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 41 return this 42 } 43 44 func (this CSSColor) Free() { 45 this.ref.Free() 46 } 47 48 // ColorSpace returns the value of property "CSSColor.colorSpace". 49 // 50 // It returns ok=false if there is no such property. 51 func (this CSSColor) ColorSpace() (ret CSSKeywordish, ok bool) { 52 ok = js.True == bindings.GetCSSColorColorSpace( 53 this.ref, js.Pointer(&ret), 54 ) 55 return 56 } 57 58 // SetColorSpace sets the value of property "CSSColor.colorSpace" to val. 59 // 60 // It returns false if the property cannot be set. 61 func (this CSSColor) SetColorSpace(val CSSKeywordish) bool { 62 return js.True == bindings.SetCSSColorColorSpace( 63 this.ref, 64 val.Ref(), 65 ) 66 } 67 68 // Channels returns the value of property "CSSColor.channels". 69 // 70 // It returns ok=false if there is no such property. 71 func (this CSSColor) Channels() (ret js.ObservableArray[CSSColorPercent], ok bool) { 72 ok = js.True == bindings.GetCSSColorChannels( 73 this.ref, js.Pointer(&ret), 74 ) 75 return 76 } 77 78 // SetChannels sets the value of property "CSSColor.channels" to val. 79 // 80 // It returns false if the property cannot be set. 81 func (this CSSColor) SetChannels(val js.ObservableArray[CSSColorPercent]) bool { 82 return js.True == bindings.SetCSSColorChannels( 83 this.ref, 84 val.Ref(), 85 ) 86 } 87 88 // Alpha returns the value of property "CSSColor.alpha". 89 // 90 // It returns ok=false if there is no such property. 91 func (this CSSColor) Alpha() (ret CSSNumberish, ok bool) { 92 ok = js.True == bindings.GetCSSColorAlpha( 93 this.ref, js.Pointer(&ret), 94 ) 95 return 96 } 97 98 // SetAlpha sets the value of property "CSSColor.alpha" to val. 99 // 100 // It returns false if the property cannot be set. 101 func (this CSSColor) SetAlpha(val CSSNumberish) bool { 102 return js.True == bindings.SetCSSColorAlpha( 103 this.ref, 104 val.Ref(), 105 ) 106 } 107 108 type CSSColorAngle = OneOf_Float64_CSSNumericValue_String_CSSKeywordValue 109 110 type CSSColorNumber = OneOf_Float64_CSSNumericValue_String_CSSKeywordValue 111 112 type CSSColorProfileRule struct { 113 CSSRule 114 } 115 116 func (this CSSColorProfileRule) Once() CSSColorProfileRule { 117 this.ref.Once() 118 return this 119 } 120 121 func (this CSSColorProfileRule) Ref() js.Ref { 122 return this.CSSRule.Ref() 123 } 124 125 func (this CSSColorProfileRule) FromRef(ref js.Ref) CSSColorProfileRule { 126 this.CSSRule = this.CSSRule.FromRef(ref) 127 return this 128 } 129 130 func (this CSSColorProfileRule) Free() { 131 this.ref.Free() 132 } 133 134 // Name returns the value of property "CSSColorProfileRule.name". 135 // 136 // It returns ok=false if there is no such property. 137 func (this CSSColorProfileRule) Name() (ret js.String, ok bool) { 138 ok = js.True == bindings.GetCSSColorProfileRuleName( 139 this.ref, js.Pointer(&ret), 140 ) 141 return 142 } 143 144 // Src returns the value of property "CSSColorProfileRule.src". 145 // 146 // It returns ok=false if there is no such property. 147 func (this CSSColorProfileRule) Src() (ret js.String, ok bool) { 148 ok = js.True == bindings.GetCSSColorProfileRuleSrc( 149 this.ref, js.Pointer(&ret), 150 ) 151 return 152 } 153 154 // RenderingIntent returns the value of property "CSSColorProfileRule.renderingIntent". 155 // 156 // It returns ok=false if there is no such property. 157 func (this CSSColorProfileRule) RenderingIntent() (ret js.String, ok bool) { 158 ok = js.True == bindings.GetCSSColorProfileRuleRenderingIntent( 159 this.ref, js.Pointer(&ret), 160 ) 161 return 162 } 163 164 // Components returns the value of property "CSSColorProfileRule.components". 165 // 166 // It returns ok=false if there is no such property. 167 func (this CSSColorProfileRule) Components() (ret js.String, ok bool) { 168 ok = js.True == bindings.GetCSSColorProfileRuleComponents( 169 this.ref, js.Pointer(&ret), 170 ) 171 return 172 } 173 174 type CSSColorRGBComp = OneOf_Float64_CSSNumericValue_String_CSSKeywordValue 175 176 type OneOf_CSSColorValue_CSSStyleValue struct { 177 ref js.Ref 178 } 179 180 func (x OneOf_CSSColorValue_CSSStyleValue) Ref() js.Ref { 181 return x.ref 182 } 183 184 func (x OneOf_CSSColorValue_CSSStyleValue) Free() { 185 x.ref.Free() 186 } 187 188 func (x OneOf_CSSColorValue_CSSStyleValue) FromRef(ref js.Ref) OneOf_CSSColorValue_CSSStyleValue { 189 return OneOf_CSSColorValue_CSSStyleValue{ 190 ref: ref, 191 } 192 } 193 194 func (x OneOf_CSSColorValue_CSSStyleValue) CSSColorValue() CSSColorValue { 195 return CSSColorValue{}.FromRef(x.ref) 196 } 197 198 func (x OneOf_CSSColorValue_CSSStyleValue) CSSStyleValue() CSSStyleValue { 199 return CSSStyleValue{}.FromRef(x.ref) 200 } 201 202 type CSSColorValue struct { 203 CSSStyleValue 204 } 205 206 func (this CSSColorValue) Once() CSSColorValue { 207 this.ref.Once() 208 return this 209 } 210 211 func (this CSSColorValue) Ref() js.Ref { 212 return this.CSSStyleValue.Ref() 213 } 214 215 func (this CSSColorValue) FromRef(ref js.Ref) CSSColorValue { 216 this.CSSStyleValue = this.CSSStyleValue.FromRef(ref) 217 return this 218 } 219 220 func (this CSSColorValue) Free() { 221 this.ref.Free() 222 } 223 224 // HasFuncParse returns true if the static method "CSSColorValue.parse" exists. 225 func (this CSSColorValue) HasFuncParse() bool { 226 return js.True == bindings.HasFuncCSSColorValueParse( 227 this.ref, 228 ) 229 } 230 231 // FuncParse returns the static method "CSSColorValue.parse". 232 func (this CSSColorValue) FuncParse() (fn js.Func[func(cssText js.String) OneOf_CSSColorValue_CSSStyleValue]) { 233 bindings.FuncCSSColorValueParse( 234 this.ref, js.Pointer(&fn), 235 ) 236 return 237 } 238 239 // Parse calls the static method "CSSColorValue.parse". 240 func (this CSSColorValue) Parse(cssText js.String) (ret OneOf_CSSColorValue_CSSStyleValue) { 241 bindings.CallCSSColorValueParse( 242 this.ref, js.Pointer(&ret), 243 cssText.Ref(), 244 ) 245 246 return 247 } 248 249 // TryParse calls the static method "CSSColorValue.parse" 250 // in a try/catch block and returns (_, err, ok = false) when it went through 251 // the catch clause. 252 func (this CSSColorValue) TryParse(cssText js.String) (ret OneOf_CSSColorValue_CSSStyleValue, exception js.Any, ok bool) { 253 ok = js.True == bindings.TryCSSColorValueParse( 254 this.ref, js.Pointer(&ret), js.Pointer(&exception), 255 cssText.Ref(), 256 ) 257 258 return 259 } 260 261 type CSSConditionRule struct { 262 CSSGroupingRule 263 } 264 265 func (this CSSConditionRule) Once() CSSConditionRule { 266 this.ref.Once() 267 return this 268 } 269 270 func (this CSSConditionRule) Ref() js.Ref { 271 return this.CSSGroupingRule.Ref() 272 } 273 274 func (this CSSConditionRule) FromRef(ref js.Ref) CSSConditionRule { 275 this.CSSGroupingRule = this.CSSGroupingRule.FromRef(ref) 276 return this 277 } 278 279 func (this CSSConditionRule) Free() { 280 this.ref.Free() 281 } 282 283 // ConditionText returns the value of property "CSSConditionRule.conditionText". 284 // 285 // It returns ok=false if there is no such property. 286 func (this CSSConditionRule) ConditionText() (ret js.String, ok bool) { 287 ok = js.True == bindings.GetCSSConditionRuleConditionText( 288 this.ref, js.Pointer(&ret), 289 ) 290 return 291 } 292 293 type CSSContainerRule struct { 294 CSSConditionRule 295 } 296 297 func (this CSSContainerRule) Once() CSSContainerRule { 298 this.ref.Once() 299 return this 300 } 301 302 func (this CSSContainerRule) Ref() js.Ref { 303 return this.CSSConditionRule.Ref() 304 } 305 306 func (this CSSContainerRule) FromRef(ref js.Ref) CSSContainerRule { 307 this.CSSConditionRule = this.CSSConditionRule.FromRef(ref) 308 return this 309 } 310 311 func (this CSSContainerRule) Free() { 312 this.ref.Free() 313 } 314 315 // ContainerName returns the value of property "CSSContainerRule.containerName". 316 // 317 // It returns ok=false if there is no such property. 318 func (this CSSContainerRule) ContainerName() (ret js.String, ok bool) { 319 ok = js.True == bindings.GetCSSContainerRuleContainerName( 320 this.ref, js.Pointer(&ret), 321 ) 322 return 323 } 324 325 // ContainerQuery returns the value of property "CSSContainerRule.containerQuery". 326 // 327 // It returns ok=false if there is no such property. 328 func (this CSSContainerRule) ContainerQuery() (ret js.String, ok bool) { 329 ok = js.True == bindings.GetCSSContainerRuleContainerQuery( 330 this.ref, js.Pointer(&ret), 331 ) 332 return 333 } 334 335 type CSSCounterStyleRule struct { 336 CSSRule 337 } 338 339 func (this CSSCounterStyleRule) Once() CSSCounterStyleRule { 340 this.ref.Once() 341 return this 342 } 343 344 func (this CSSCounterStyleRule) Ref() js.Ref { 345 return this.CSSRule.Ref() 346 } 347 348 func (this CSSCounterStyleRule) FromRef(ref js.Ref) CSSCounterStyleRule { 349 this.CSSRule = this.CSSRule.FromRef(ref) 350 return this 351 } 352 353 func (this CSSCounterStyleRule) Free() { 354 this.ref.Free() 355 } 356 357 // Name returns the value of property "CSSCounterStyleRule.name". 358 // 359 // It returns ok=false if there is no such property. 360 func (this CSSCounterStyleRule) Name() (ret js.String, ok bool) { 361 ok = js.True == bindings.GetCSSCounterStyleRuleName( 362 this.ref, js.Pointer(&ret), 363 ) 364 return 365 } 366 367 // SetName sets the value of property "CSSCounterStyleRule.name" to val. 368 // 369 // It returns false if the property cannot be set. 370 func (this CSSCounterStyleRule) SetName(val js.String) bool { 371 return js.True == bindings.SetCSSCounterStyleRuleName( 372 this.ref, 373 val.Ref(), 374 ) 375 } 376 377 // System returns the value of property "CSSCounterStyleRule.system". 378 // 379 // It returns ok=false if there is no such property. 380 func (this CSSCounterStyleRule) System() (ret js.String, ok bool) { 381 ok = js.True == bindings.GetCSSCounterStyleRuleSystem( 382 this.ref, js.Pointer(&ret), 383 ) 384 return 385 } 386 387 // SetSystem sets the value of property "CSSCounterStyleRule.system" to val. 388 // 389 // It returns false if the property cannot be set. 390 func (this CSSCounterStyleRule) SetSystem(val js.String) bool { 391 return js.True == bindings.SetCSSCounterStyleRuleSystem( 392 this.ref, 393 val.Ref(), 394 ) 395 } 396 397 // Symbols returns the value of property "CSSCounterStyleRule.symbols". 398 // 399 // It returns ok=false if there is no such property. 400 func (this CSSCounterStyleRule) Symbols() (ret js.String, ok bool) { 401 ok = js.True == bindings.GetCSSCounterStyleRuleSymbols( 402 this.ref, js.Pointer(&ret), 403 ) 404 return 405 } 406 407 // SetSymbols sets the value of property "CSSCounterStyleRule.symbols" to val. 408 // 409 // It returns false if the property cannot be set. 410 func (this CSSCounterStyleRule) SetSymbols(val js.String) bool { 411 return js.True == bindings.SetCSSCounterStyleRuleSymbols( 412 this.ref, 413 val.Ref(), 414 ) 415 } 416 417 // AdditiveSymbols returns the value of property "CSSCounterStyleRule.additiveSymbols". 418 // 419 // It returns ok=false if there is no such property. 420 func (this CSSCounterStyleRule) AdditiveSymbols() (ret js.String, ok bool) { 421 ok = js.True == bindings.GetCSSCounterStyleRuleAdditiveSymbols( 422 this.ref, js.Pointer(&ret), 423 ) 424 return 425 } 426 427 // SetAdditiveSymbols sets the value of property "CSSCounterStyleRule.additiveSymbols" to val. 428 // 429 // It returns false if the property cannot be set. 430 func (this CSSCounterStyleRule) SetAdditiveSymbols(val js.String) bool { 431 return js.True == bindings.SetCSSCounterStyleRuleAdditiveSymbols( 432 this.ref, 433 val.Ref(), 434 ) 435 } 436 437 // Negative returns the value of property "CSSCounterStyleRule.negative". 438 // 439 // It returns ok=false if there is no such property. 440 func (this CSSCounterStyleRule) Negative() (ret js.String, ok bool) { 441 ok = js.True == bindings.GetCSSCounterStyleRuleNegative( 442 this.ref, js.Pointer(&ret), 443 ) 444 return 445 } 446 447 // SetNegative sets the value of property "CSSCounterStyleRule.negative" to val. 448 // 449 // It returns false if the property cannot be set. 450 func (this CSSCounterStyleRule) SetNegative(val js.String) bool { 451 return js.True == bindings.SetCSSCounterStyleRuleNegative( 452 this.ref, 453 val.Ref(), 454 ) 455 } 456 457 // Prefix returns the value of property "CSSCounterStyleRule.prefix". 458 // 459 // It returns ok=false if there is no such property. 460 func (this CSSCounterStyleRule) Prefix() (ret js.String, ok bool) { 461 ok = js.True == bindings.GetCSSCounterStyleRulePrefix( 462 this.ref, js.Pointer(&ret), 463 ) 464 return 465 } 466 467 // SetPrefix sets the value of property "CSSCounterStyleRule.prefix" to val. 468 // 469 // It returns false if the property cannot be set. 470 func (this CSSCounterStyleRule) SetPrefix(val js.String) bool { 471 return js.True == bindings.SetCSSCounterStyleRulePrefix( 472 this.ref, 473 val.Ref(), 474 ) 475 } 476 477 // Suffix returns the value of property "CSSCounterStyleRule.suffix". 478 // 479 // It returns ok=false if there is no such property. 480 func (this CSSCounterStyleRule) Suffix() (ret js.String, ok bool) { 481 ok = js.True == bindings.GetCSSCounterStyleRuleSuffix( 482 this.ref, js.Pointer(&ret), 483 ) 484 return 485 } 486 487 // SetSuffix sets the value of property "CSSCounterStyleRule.suffix" to val. 488 // 489 // It returns false if the property cannot be set. 490 func (this CSSCounterStyleRule) SetSuffix(val js.String) bool { 491 return js.True == bindings.SetCSSCounterStyleRuleSuffix( 492 this.ref, 493 val.Ref(), 494 ) 495 } 496 497 // Range returns the value of property "CSSCounterStyleRule.range". 498 // 499 // It returns ok=false if there is no such property. 500 func (this CSSCounterStyleRule) Range() (ret js.String, ok bool) { 501 ok = js.True == bindings.GetCSSCounterStyleRuleRange( 502 this.ref, js.Pointer(&ret), 503 ) 504 return 505 } 506 507 // SetRange sets the value of property "CSSCounterStyleRule.range" to val. 508 // 509 // It returns false if the property cannot be set. 510 func (this CSSCounterStyleRule) SetRange(val js.String) bool { 511 return js.True == bindings.SetCSSCounterStyleRuleRange( 512 this.ref, 513 val.Ref(), 514 ) 515 } 516 517 // Pad returns the value of property "CSSCounterStyleRule.pad". 518 // 519 // It returns ok=false if there is no such property. 520 func (this CSSCounterStyleRule) Pad() (ret js.String, ok bool) { 521 ok = js.True == bindings.GetCSSCounterStyleRulePad( 522 this.ref, js.Pointer(&ret), 523 ) 524 return 525 } 526 527 // SetPad sets the value of property "CSSCounterStyleRule.pad" to val. 528 // 529 // It returns false if the property cannot be set. 530 func (this CSSCounterStyleRule) SetPad(val js.String) bool { 531 return js.True == bindings.SetCSSCounterStyleRulePad( 532 this.ref, 533 val.Ref(), 534 ) 535 } 536 537 // SpeakAs returns the value of property "CSSCounterStyleRule.speakAs". 538 // 539 // It returns ok=false if there is no such property. 540 func (this CSSCounterStyleRule) SpeakAs() (ret js.String, ok bool) { 541 ok = js.True == bindings.GetCSSCounterStyleRuleSpeakAs( 542 this.ref, js.Pointer(&ret), 543 ) 544 return 545 } 546 547 // SetSpeakAs sets the value of property "CSSCounterStyleRule.speakAs" to val. 548 // 549 // It returns false if the property cannot be set. 550 func (this CSSCounterStyleRule) SetSpeakAs(val js.String) bool { 551 return js.True == bindings.SetCSSCounterStyleRuleSpeakAs( 552 this.ref, 553 val.Ref(), 554 ) 555 } 556 557 // Fallback returns the value of property "CSSCounterStyleRule.fallback". 558 // 559 // It returns ok=false if there is no such property. 560 func (this CSSCounterStyleRule) Fallback() (ret js.String, ok bool) { 561 ok = js.True == bindings.GetCSSCounterStyleRuleFallback( 562 this.ref, js.Pointer(&ret), 563 ) 564 return 565 } 566 567 // SetFallback sets the value of property "CSSCounterStyleRule.fallback" to val. 568 // 569 // It returns false if the property cannot be set. 570 func (this CSSCounterStyleRule) SetFallback(val js.String) bool { 571 return js.True == bindings.SetCSSCounterStyleRuleFallback( 572 this.ref, 573 val.Ref(), 574 ) 575 } 576 577 type CSSFontFaceRule struct { 578 CSSRule 579 } 580 581 func (this CSSFontFaceRule) Once() CSSFontFaceRule { 582 this.ref.Once() 583 return this 584 } 585 586 func (this CSSFontFaceRule) Ref() js.Ref { 587 return this.CSSRule.Ref() 588 } 589 590 func (this CSSFontFaceRule) FromRef(ref js.Ref) CSSFontFaceRule { 591 this.CSSRule = this.CSSRule.FromRef(ref) 592 return this 593 } 594 595 func (this CSSFontFaceRule) Free() { 596 this.ref.Free() 597 } 598 599 // Style returns the value of property "CSSFontFaceRule.style". 600 // 601 // It returns ok=false if there is no such property. 602 func (this CSSFontFaceRule) Style() (ret CSSStyleDeclaration, ok bool) { 603 ok = js.True == bindings.GetCSSFontFaceRuleStyle( 604 this.ref, js.Pointer(&ret), 605 ) 606 return 607 } 608 609 type OneOf_Uint32_ArrayUint32 struct { 610 ref js.Ref 611 } 612 613 func (x OneOf_Uint32_ArrayUint32) Ref() js.Ref { 614 return x.ref 615 } 616 617 func (x OneOf_Uint32_ArrayUint32) Free() { 618 x.ref.Free() 619 } 620 621 func (x OneOf_Uint32_ArrayUint32) FromRef(ref js.Ref) OneOf_Uint32_ArrayUint32 { 622 return OneOf_Uint32_ArrayUint32{ 623 ref: ref, 624 } 625 } 626 627 func (x OneOf_Uint32_ArrayUint32) Uint32() uint32 { 628 return js.Number[uint32]{}.FromRef(x.ref).Get() 629 } 630 631 func (x OneOf_Uint32_ArrayUint32) ArrayUint32() js.Array[uint32] { 632 return js.Array[uint32]{}.FromRef(x.ref) 633 } 634 635 type CSSFontFeatureValuesMap struct { 636 ref js.Ref 637 } 638 639 func (this CSSFontFeatureValuesMap) Once() CSSFontFeatureValuesMap { 640 this.ref.Once() 641 return this 642 } 643 644 func (this CSSFontFeatureValuesMap) Ref() js.Ref { 645 return this.ref 646 } 647 648 func (this CSSFontFeatureValuesMap) FromRef(ref js.Ref) CSSFontFeatureValuesMap { 649 this.ref = ref 650 return this 651 } 652 653 func (this CSSFontFeatureValuesMap) Free() { 654 this.ref.Free() 655 } 656 657 // HasFuncSet returns true if the method "CSSFontFeatureValuesMap.set" exists. 658 func (this CSSFontFeatureValuesMap) HasFuncSet() bool { 659 return js.True == bindings.HasFuncCSSFontFeatureValuesMapSet( 660 this.ref, 661 ) 662 } 663 664 // FuncSet returns the method "CSSFontFeatureValuesMap.set". 665 func (this CSSFontFeatureValuesMap) FuncSet() (fn js.Func[func(featureValueName js.String, values OneOf_Uint32_ArrayUint32)]) { 666 bindings.FuncCSSFontFeatureValuesMapSet( 667 this.ref, js.Pointer(&fn), 668 ) 669 return 670 } 671 672 // Set calls the method "CSSFontFeatureValuesMap.set". 673 func (this CSSFontFeatureValuesMap) Set(featureValueName js.String, values OneOf_Uint32_ArrayUint32) (ret js.Void) { 674 bindings.CallCSSFontFeatureValuesMapSet( 675 this.ref, js.Pointer(&ret), 676 featureValueName.Ref(), 677 values.Ref(), 678 ) 679 680 return 681 } 682 683 // TrySet calls the method "CSSFontFeatureValuesMap.set" 684 // in a try/catch block and returns (_, err, ok = false) when it went through 685 // the catch clause. 686 func (this CSSFontFeatureValuesMap) TrySet(featureValueName js.String, values OneOf_Uint32_ArrayUint32) (ret js.Void, exception js.Any, ok bool) { 687 ok = js.True == bindings.TryCSSFontFeatureValuesMapSet( 688 this.ref, js.Pointer(&ret), js.Pointer(&exception), 689 featureValueName.Ref(), 690 values.Ref(), 691 ) 692 693 return 694 } 695 696 type CSSFontFeatureValuesRule struct { 697 CSSRule 698 } 699 700 func (this CSSFontFeatureValuesRule) Once() CSSFontFeatureValuesRule { 701 this.ref.Once() 702 return this 703 } 704 705 func (this CSSFontFeatureValuesRule) Ref() js.Ref { 706 return this.CSSRule.Ref() 707 } 708 709 func (this CSSFontFeatureValuesRule) FromRef(ref js.Ref) CSSFontFeatureValuesRule { 710 this.CSSRule = this.CSSRule.FromRef(ref) 711 return this 712 } 713 714 func (this CSSFontFeatureValuesRule) Free() { 715 this.ref.Free() 716 } 717 718 // FontFamily returns the value of property "CSSFontFeatureValuesRule.fontFamily". 719 // 720 // It returns ok=false if there is no such property. 721 func (this CSSFontFeatureValuesRule) FontFamily() (ret js.String, ok bool) { 722 ok = js.True == bindings.GetCSSFontFeatureValuesRuleFontFamily( 723 this.ref, js.Pointer(&ret), 724 ) 725 return 726 } 727 728 // SetFontFamily sets the value of property "CSSFontFeatureValuesRule.fontFamily" to val. 729 // 730 // It returns false if the property cannot be set. 731 func (this CSSFontFeatureValuesRule) SetFontFamily(val js.String) bool { 732 return js.True == bindings.SetCSSFontFeatureValuesRuleFontFamily( 733 this.ref, 734 val.Ref(), 735 ) 736 } 737 738 // Annotation returns the value of property "CSSFontFeatureValuesRule.annotation". 739 // 740 // It returns ok=false if there is no such property. 741 func (this CSSFontFeatureValuesRule) Annotation() (ret CSSFontFeatureValuesMap, ok bool) { 742 ok = js.True == bindings.GetCSSFontFeatureValuesRuleAnnotation( 743 this.ref, js.Pointer(&ret), 744 ) 745 return 746 } 747 748 // Ornaments returns the value of property "CSSFontFeatureValuesRule.ornaments". 749 // 750 // It returns ok=false if there is no such property. 751 func (this CSSFontFeatureValuesRule) Ornaments() (ret CSSFontFeatureValuesMap, ok bool) { 752 ok = js.True == bindings.GetCSSFontFeatureValuesRuleOrnaments( 753 this.ref, js.Pointer(&ret), 754 ) 755 return 756 } 757 758 // Stylistic returns the value of property "CSSFontFeatureValuesRule.stylistic". 759 // 760 // It returns ok=false if there is no such property. 761 func (this CSSFontFeatureValuesRule) Stylistic() (ret CSSFontFeatureValuesMap, ok bool) { 762 ok = js.True == bindings.GetCSSFontFeatureValuesRuleStylistic( 763 this.ref, js.Pointer(&ret), 764 ) 765 return 766 } 767 768 // Swash returns the value of property "CSSFontFeatureValuesRule.swash". 769 // 770 // It returns ok=false if there is no such property. 771 func (this CSSFontFeatureValuesRule) Swash() (ret CSSFontFeatureValuesMap, ok bool) { 772 ok = js.True == bindings.GetCSSFontFeatureValuesRuleSwash( 773 this.ref, js.Pointer(&ret), 774 ) 775 return 776 } 777 778 // CharacterVariant returns the value of property "CSSFontFeatureValuesRule.characterVariant". 779 // 780 // It returns ok=false if there is no such property. 781 func (this CSSFontFeatureValuesRule) CharacterVariant() (ret CSSFontFeatureValuesMap, ok bool) { 782 ok = js.True == bindings.GetCSSFontFeatureValuesRuleCharacterVariant( 783 this.ref, js.Pointer(&ret), 784 ) 785 return 786 } 787 788 // Styleset returns the value of property "CSSFontFeatureValuesRule.styleset". 789 // 790 // It returns ok=false if there is no such property. 791 func (this CSSFontFeatureValuesRule) Styleset() (ret CSSFontFeatureValuesMap, ok bool) { 792 ok = js.True == bindings.GetCSSFontFeatureValuesRuleStyleset( 793 this.ref, js.Pointer(&ret), 794 ) 795 return 796 } 797 798 type CSSFontPaletteValuesRule struct { 799 CSSRule 800 } 801 802 func (this CSSFontPaletteValuesRule) Once() CSSFontPaletteValuesRule { 803 this.ref.Once() 804 return this 805 } 806 807 func (this CSSFontPaletteValuesRule) Ref() js.Ref { 808 return this.CSSRule.Ref() 809 } 810 811 func (this CSSFontPaletteValuesRule) FromRef(ref js.Ref) CSSFontPaletteValuesRule { 812 this.CSSRule = this.CSSRule.FromRef(ref) 813 return this 814 } 815 816 func (this CSSFontPaletteValuesRule) Free() { 817 this.ref.Free() 818 } 819 820 // Name returns the value of property "CSSFontPaletteValuesRule.name". 821 // 822 // It returns ok=false if there is no such property. 823 func (this CSSFontPaletteValuesRule) Name() (ret js.String, ok bool) { 824 ok = js.True == bindings.GetCSSFontPaletteValuesRuleName( 825 this.ref, js.Pointer(&ret), 826 ) 827 return 828 } 829 830 // FontFamily returns the value of property "CSSFontPaletteValuesRule.fontFamily". 831 // 832 // It returns ok=false if there is no such property. 833 func (this CSSFontPaletteValuesRule) FontFamily() (ret js.String, ok bool) { 834 ok = js.True == bindings.GetCSSFontPaletteValuesRuleFontFamily( 835 this.ref, js.Pointer(&ret), 836 ) 837 return 838 } 839 840 // BasePalette returns the value of property "CSSFontPaletteValuesRule.basePalette". 841 // 842 // It returns ok=false if there is no such property. 843 func (this CSSFontPaletteValuesRule) BasePalette() (ret js.String, ok bool) { 844 ok = js.True == bindings.GetCSSFontPaletteValuesRuleBasePalette( 845 this.ref, js.Pointer(&ret), 846 ) 847 return 848 } 849 850 // OverrideColors returns the value of property "CSSFontPaletteValuesRule.overrideColors". 851 // 852 // It returns ok=false if there is no such property. 853 func (this CSSFontPaletteValuesRule) OverrideColors() (ret js.String, ok bool) { 854 ok = js.True == bindings.GetCSSFontPaletteValuesRuleOverrideColors( 855 this.ref, js.Pointer(&ret), 856 ) 857 return 858 } 859 860 type CSSGroupingRule struct { 861 CSSRule 862 } 863 864 func (this CSSGroupingRule) Once() CSSGroupingRule { 865 this.ref.Once() 866 return this 867 } 868 869 func (this CSSGroupingRule) Ref() js.Ref { 870 return this.CSSRule.Ref() 871 } 872 873 func (this CSSGroupingRule) FromRef(ref js.Ref) CSSGroupingRule { 874 this.CSSRule = this.CSSRule.FromRef(ref) 875 return this 876 } 877 878 func (this CSSGroupingRule) Free() { 879 this.ref.Free() 880 } 881 882 // CssRules returns the value of property "CSSGroupingRule.cssRules". 883 // 884 // It returns ok=false if there is no such property. 885 func (this CSSGroupingRule) CssRules() (ret CSSRuleList, ok bool) { 886 ok = js.True == bindings.GetCSSGroupingRuleCssRules( 887 this.ref, js.Pointer(&ret), 888 ) 889 return 890 } 891 892 // HasFuncInsertRule returns true if the method "CSSGroupingRule.insertRule" exists. 893 func (this CSSGroupingRule) HasFuncInsertRule() bool { 894 return js.True == bindings.HasFuncCSSGroupingRuleInsertRule( 895 this.ref, 896 ) 897 } 898 899 // FuncInsertRule returns the method "CSSGroupingRule.insertRule". 900 func (this CSSGroupingRule) FuncInsertRule() (fn js.Func[func(rule js.String, index uint32) uint32]) { 901 bindings.FuncCSSGroupingRuleInsertRule( 902 this.ref, js.Pointer(&fn), 903 ) 904 return 905 } 906 907 // InsertRule calls the method "CSSGroupingRule.insertRule". 908 func (this CSSGroupingRule) InsertRule(rule js.String, index uint32) (ret uint32) { 909 bindings.CallCSSGroupingRuleInsertRule( 910 this.ref, js.Pointer(&ret), 911 rule.Ref(), 912 uint32(index), 913 ) 914 915 return 916 } 917 918 // TryInsertRule calls the method "CSSGroupingRule.insertRule" 919 // in a try/catch block and returns (_, err, ok = false) when it went through 920 // the catch clause. 921 func (this CSSGroupingRule) TryInsertRule(rule js.String, index uint32) (ret uint32, exception js.Any, ok bool) { 922 ok = js.True == bindings.TryCSSGroupingRuleInsertRule( 923 this.ref, js.Pointer(&ret), js.Pointer(&exception), 924 rule.Ref(), 925 uint32(index), 926 ) 927 928 return 929 } 930 931 // HasFuncInsertRule1 returns true if the method "CSSGroupingRule.insertRule" exists. 932 func (this CSSGroupingRule) HasFuncInsertRule1() bool { 933 return js.True == bindings.HasFuncCSSGroupingRuleInsertRule1( 934 this.ref, 935 ) 936 } 937 938 // FuncInsertRule1 returns the method "CSSGroupingRule.insertRule". 939 func (this CSSGroupingRule) FuncInsertRule1() (fn js.Func[func(rule js.String) uint32]) { 940 bindings.FuncCSSGroupingRuleInsertRule1( 941 this.ref, js.Pointer(&fn), 942 ) 943 return 944 } 945 946 // InsertRule1 calls the method "CSSGroupingRule.insertRule". 947 func (this CSSGroupingRule) InsertRule1(rule js.String) (ret uint32) { 948 bindings.CallCSSGroupingRuleInsertRule1( 949 this.ref, js.Pointer(&ret), 950 rule.Ref(), 951 ) 952 953 return 954 } 955 956 // TryInsertRule1 calls the method "CSSGroupingRule.insertRule" 957 // in a try/catch block and returns (_, err, ok = false) when it went through 958 // the catch clause. 959 func (this CSSGroupingRule) TryInsertRule1(rule js.String) (ret uint32, exception js.Any, ok bool) { 960 ok = js.True == bindings.TryCSSGroupingRuleInsertRule1( 961 this.ref, js.Pointer(&ret), js.Pointer(&exception), 962 rule.Ref(), 963 ) 964 965 return 966 } 967 968 // HasFuncDeleteRule returns true if the method "CSSGroupingRule.deleteRule" exists. 969 func (this CSSGroupingRule) HasFuncDeleteRule() bool { 970 return js.True == bindings.HasFuncCSSGroupingRuleDeleteRule( 971 this.ref, 972 ) 973 } 974 975 // FuncDeleteRule returns the method "CSSGroupingRule.deleteRule". 976 func (this CSSGroupingRule) FuncDeleteRule() (fn js.Func[func(index uint32)]) { 977 bindings.FuncCSSGroupingRuleDeleteRule( 978 this.ref, js.Pointer(&fn), 979 ) 980 return 981 } 982 983 // DeleteRule calls the method "CSSGroupingRule.deleteRule". 984 func (this CSSGroupingRule) DeleteRule(index uint32) (ret js.Void) { 985 bindings.CallCSSGroupingRuleDeleteRule( 986 this.ref, js.Pointer(&ret), 987 uint32(index), 988 ) 989 990 return 991 } 992 993 // TryDeleteRule calls the method "CSSGroupingRule.deleteRule" 994 // in a try/catch block and returns (_, err, ok = false) when it went through 995 // the catch clause. 996 func (this CSSGroupingRule) TryDeleteRule(index uint32) (ret js.Void, exception js.Any, ok bool) { 997 ok = js.True == bindings.TryCSSGroupingRuleDeleteRule( 998 this.ref, js.Pointer(&ret), js.Pointer(&exception), 999 uint32(index), 1000 ) 1001 1002 return 1003 } 1004 1005 func NewCSSHSL(h CSSColorAngle, s CSSColorPercent, l CSSColorPercent, alpha CSSColorPercent) (ret CSSHSL) { 1006 ret.ref = bindings.NewCSSHSLByCSSHSL( 1007 h.Ref(), 1008 s.Ref(), 1009 l.Ref(), 1010 alpha.Ref()) 1011 return 1012 } 1013 1014 func NewCSSHSLByCSSHSL1(h CSSColorAngle, s CSSColorPercent, l CSSColorPercent) (ret CSSHSL) { 1015 ret.ref = bindings.NewCSSHSLByCSSHSL1( 1016 h.Ref(), 1017 s.Ref(), 1018 l.Ref()) 1019 return 1020 } 1021 1022 type CSSHSL struct { 1023 CSSColorValue 1024 } 1025 1026 func (this CSSHSL) Once() CSSHSL { 1027 this.ref.Once() 1028 return this 1029 } 1030 1031 func (this CSSHSL) Ref() js.Ref { 1032 return this.CSSColorValue.Ref() 1033 } 1034 1035 func (this CSSHSL) FromRef(ref js.Ref) CSSHSL { 1036 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 1037 return this 1038 } 1039 1040 func (this CSSHSL) Free() { 1041 this.ref.Free() 1042 } 1043 1044 // H returns the value of property "CSSHSL.h". 1045 // 1046 // It returns ok=false if there is no such property. 1047 func (this CSSHSL) H() (ret CSSColorAngle, ok bool) { 1048 ok = js.True == bindings.GetCSSHSLH( 1049 this.ref, js.Pointer(&ret), 1050 ) 1051 return 1052 } 1053 1054 // SetH sets the value of property "CSSHSL.h" to val. 1055 // 1056 // It returns false if the property cannot be set. 1057 func (this CSSHSL) SetH(val CSSColorAngle) bool { 1058 return js.True == bindings.SetCSSHSLH( 1059 this.ref, 1060 val.Ref(), 1061 ) 1062 } 1063 1064 // S returns the value of property "CSSHSL.s". 1065 // 1066 // It returns ok=false if there is no such property. 1067 func (this CSSHSL) S() (ret CSSColorPercent, ok bool) { 1068 ok = js.True == bindings.GetCSSHSLS( 1069 this.ref, js.Pointer(&ret), 1070 ) 1071 return 1072 } 1073 1074 // SetS sets the value of property "CSSHSL.s" to val. 1075 // 1076 // It returns false if the property cannot be set. 1077 func (this CSSHSL) SetS(val CSSColorPercent) bool { 1078 return js.True == bindings.SetCSSHSLS( 1079 this.ref, 1080 val.Ref(), 1081 ) 1082 } 1083 1084 // L returns the value of property "CSSHSL.l". 1085 // 1086 // It returns ok=false if there is no such property. 1087 func (this CSSHSL) L() (ret CSSColorPercent, ok bool) { 1088 ok = js.True == bindings.GetCSSHSLL( 1089 this.ref, js.Pointer(&ret), 1090 ) 1091 return 1092 } 1093 1094 // SetL sets the value of property "CSSHSL.l" to val. 1095 // 1096 // It returns false if the property cannot be set. 1097 func (this CSSHSL) SetL(val CSSColorPercent) bool { 1098 return js.True == bindings.SetCSSHSLL( 1099 this.ref, 1100 val.Ref(), 1101 ) 1102 } 1103 1104 // Alpha returns the value of property "CSSHSL.alpha". 1105 // 1106 // It returns ok=false if there is no such property. 1107 func (this CSSHSL) Alpha() (ret CSSColorPercent, ok bool) { 1108 ok = js.True == bindings.GetCSSHSLAlpha( 1109 this.ref, js.Pointer(&ret), 1110 ) 1111 return 1112 } 1113 1114 // SetAlpha sets the value of property "CSSHSL.alpha" to val. 1115 // 1116 // It returns false if the property cannot be set. 1117 func (this CSSHSL) SetAlpha(val CSSColorPercent) bool { 1118 return js.True == bindings.SetCSSHSLAlpha( 1119 this.ref, 1120 val.Ref(), 1121 ) 1122 } 1123 1124 func NewCSSHWB(h CSSNumericValue, w CSSNumberish, b CSSNumberish, alpha CSSNumberish) (ret CSSHWB) { 1125 ret.ref = bindings.NewCSSHWBByCSSHWB( 1126 h.Ref(), 1127 w.Ref(), 1128 b.Ref(), 1129 alpha.Ref()) 1130 return 1131 } 1132 1133 func NewCSSHWBByCSSHWB1(h CSSNumericValue, w CSSNumberish, b CSSNumberish) (ret CSSHWB) { 1134 ret.ref = bindings.NewCSSHWBByCSSHWB1( 1135 h.Ref(), 1136 w.Ref(), 1137 b.Ref()) 1138 return 1139 } 1140 1141 type CSSHWB struct { 1142 CSSColorValue 1143 } 1144 1145 func (this CSSHWB) Once() CSSHWB { 1146 this.ref.Once() 1147 return this 1148 } 1149 1150 func (this CSSHWB) Ref() js.Ref { 1151 return this.CSSColorValue.Ref() 1152 } 1153 1154 func (this CSSHWB) FromRef(ref js.Ref) CSSHWB { 1155 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 1156 return this 1157 } 1158 1159 func (this CSSHWB) Free() { 1160 this.ref.Free() 1161 } 1162 1163 // H returns the value of property "CSSHWB.h". 1164 // 1165 // It returns ok=false if there is no such property. 1166 func (this CSSHWB) H() (ret CSSNumericValue, ok bool) { 1167 ok = js.True == bindings.GetCSSHWBH( 1168 this.ref, js.Pointer(&ret), 1169 ) 1170 return 1171 } 1172 1173 // SetH sets the value of property "CSSHWB.h" to val. 1174 // 1175 // It returns false if the property cannot be set. 1176 func (this CSSHWB) SetH(val CSSNumericValue) bool { 1177 return js.True == bindings.SetCSSHWBH( 1178 this.ref, 1179 val.Ref(), 1180 ) 1181 } 1182 1183 // W returns the value of property "CSSHWB.w". 1184 // 1185 // It returns ok=false if there is no such property. 1186 func (this CSSHWB) W() (ret CSSNumberish, ok bool) { 1187 ok = js.True == bindings.GetCSSHWBW( 1188 this.ref, js.Pointer(&ret), 1189 ) 1190 return 1191 } 1192 1193 // SetW sets the value of property "CSSHWB.w" to val. 1194 // 1195 // It returns false if the property cannot be set. 1196 func (this CSSHWB) SetW(val CSSNumberish) bool { 1197 return js.True == bindings.SetCSSHWBW( 1198 this.ref, 1199 val.Ref(), 1200 ) 1201 } 1202 1203 // B returns the value of property "CSSHWB.b". 1204 // 1205 // It returns ok=false if there is no such property. 1206 func (this CSSHWB) B() (ret CSSNumberish, ok bool) { 1207 ok = js.True == bindings.GetCSSHWBB( 1208 this.ref, js.Pointer(&ret), 1209 ) 1210 return 1211 } 1212 1213 // SetB sets the value of property "CSSHWB.b" to val. 1214 // 1215 // It returns false if the property cannot be set. 1216 func (this CSSHWB) SetB(val CSSNumberish) bool { 1217 return js.True == bindings.SetCSSHWBB( 1218 this.ref, 1219 val.Ref(), 1220 ) 1221 } 1222 1223 // Alpha returns the value of property "CSSHWB.alpha". 1224 // 1225 // It returns ok=false if there is no such property. 1226 func (this CSSHWB) Alpha() (ret CSSNumberish, ok bool) { 1227 ok = js.True == bindings.GetCSSHWBAlpha( 1228 this.ref, js.Pointer(&ret), 1229 ) 1230 return 1231 } 1232 1233 // SetAlpha sets the value of property "CSSHWB.alpha" to val. 1234 // 1235 // It returns false if the property cannot be set. 1236 func (this CSSHWB) SetAlpha(val CSSNumberish) bool { 1237 return js.True == bindings.SetCSSHWBAlpha( 1238 this.ref, 1239 val.Ref(), 1240 ) 1241 } 1242 1243 type CSSImageValue struct { 1244 CSSStyleValue 1245 } 1246 1247 func (this CSSImageValue) Once() CSSImageValue { 1248 this.ref.Once() 1249 return this 1250 } 1251 1252 func (this CSSImageValue) Ref() js.Ref { 1253 return this.CSSStyleValue.Ref() 1254 } 1255 1256 func (this CSSImageValue) FromRef(ref js.Ref) CSSImageValue { 1257 this.CSSStyleValue = this.CSSStyleValue.FromRef(ref) 1258 return this 1259 } 1260 1261 func (this CSSImageValue) Free() { 1262 this.ref.Free() 1263 } 1264 1265 type CSSImportRule struct { 1266 CSSRule 1267 } 1268 1269 func (this CSSImportRule) Once() CSSImportRule { 1270 this.ref.Once() 1271 return this 1272 } 1273 1274 func (this CSSImportRule) Ref() js.Ref { 1275 return this.CSSRule.Ref() 1276 } 1277 1278 func (this CSSImportRule) FromRef(ref js.Ref) CSSImportRule { 1279 this.CSSRule = this.CSSRule.FromRef(ref) 1280 return this 1281 } 1282 1283 func (this CSSImportRule) Free() { 1284 this.ref.Free() 1285 } 1286 1287 // Href returns the value of property "CSSImportRule.href". 1288 // 1289 // It returns ok=false if there is no such property. 1290 func (this CSSImportRule) Href() (ret js.String, ok bool) { 1291 ok = js.True == bindings.GetCSSImportRuleHref( 1292 this.ref, js.Pointer(&ret), 1293 ) 1294 return 1295 } 1296 1297 // Media returns the value of property "CSSImportRule.media". 1298 // 1299 // It returns ok=false if there is no such property. 1300 func (this CSSImportRule) Media() (ret MediaList, ok bool) { 1301 ok = js.True == bindings.GetCSSImportRuleMedia( 1302 this.ref, js.Pointer(&ret), 1303 ) 1304 return 1305 } 1306 1307 // StyleSheet returns the value of property "CSSImportRule.styleSheet". 1308 // 1309 // It returns ok=false if there is no such property. 1310 func (this CSSImportRule) StyleSheet() (ret CSSStyleSheet, ok bool) { 1311 ok = js.True == bindings.GetCSSImportRuleStyleSheet( 1312 this.ref, js.Pointer(&ret), 1313 ) 1314 return 1315 } 1316 1317 // LayerName returns the value of property "CSSImportRule.layerName". 1318 // 1319 // It returns ok=false if there is no such property. 1320 func (this CSSImportRule) LayerName() (ret js.String, ok bool) { 1321 ok = js.True == bindings.GetCSSImportRuleLayerName( 1322 this.ref, js.Pointer(&ret), 1323 ) 1324 return 1325 } 1326 1327 // SupportsText returns the value of property "CSSImportRule.supportsText". 1328 // 1329 // It returns ok=false if there is no such property. 1330 func (this CSSImportRule) SupportsText() (ret js.String, ok bool) { 1331 ok = js.True == bindings.GetCSSImportRuleSupportsText( 1332 this.ref, js.Pointer(&ret), 1333 ) 1334 return 1335 } 1336 1337 type CSSKeyframeRule struct { 1338 CSSRule 1339 } 1340 1341 func (this CSSKeyframeRule) Once() CSSKeyframeRule { 1342 this.ref.Once() 1343 return this 1344 } 1345 1346 func (this CSSKeyframeRule) Ref() js.Ref { 1347 return this.CSSRule.Ref() 1348 } 1349 1350 func (this CSSKeyframeRule) FromRef(ref js.Ref) CSSKeyframeRule { 1351 this.CSSRule = this.CSSRule.FromRef(ref) 1352 return this 1353 } 1354 1355 func (this CSSKeyframeRule) Free() { 1356 this.ref.Free() 1357 } 1358 1359 // KeyText returns the value of property "CSSKeyframeRule.keyText". 1360 // 1361 // It returns ok=false if there is no such property. 1362 func (this CSSKeyframeRule) KeyText() (ret js.String, ok bool) { 1363 ok = js.True == bindings.GetCSSKeyframeRuleKeyText( 1364 this.ref, js.Pointer(&ret), 1365 ) 1366 return 1367 } 1368 1369 // SetKeyText sets the value of property "CSSKeyframeRule.keyText" to val. 1370 // 1371 // It returns false if the property cannot be set. 1372 func (this CSSKeyframeRule) SetKeyText(val js.String) bool { 1373 return js.True == bindings.SetCSSKeyframeRuleKeyText( 1374 this.ref, 1375 val.Ref(), 1376 ) 1377 } 1378 1379 // Style returns the value of property "CSSKeyframeRule.style". 1380 // 1381 // It returns ok=false if there is no such property. 1382 func (this CSSKeyframeRule) Style() (ret CSSStyleDeclaration, ok bool) { 1383 ok = js.True == bindings.GetCSSKeyframeRuleStyle( 1384 this.ref, js.Pointer(&ret), 1385 ) 1386 return 1387 } 1388 1389 type CSSKeyframesRule struct { 1390 CSSRule 1391 } 1392 1393 func (this CSSKeyframesRule) Once() CSSKeyframesRule { 1394 this.ref.Once() 1395 return this 1396 } 1397 1398 func (this CSSKeyframesRule) Ref() js.Ref { 1399 return this.CSSRule.Ref() 1400 } 1401 1402 func (this CSSKeyframesRule) FromRef(ref js.Ref) CSSKeyframesRule { 1403 this.CSSRule = this.CSSRule.FromRef(ref) 1404 return this 1405 } 1406 1407 func (this CSSKeyframesRule) Free() { 1408 this.ref.Free() 1409 } 1410 1411 // Name returns the value of property "CSSKeyframesRule.name". 1412 // 1413 // It returns ok=false if there is no such property. 1414 func (this CSSKeyframesRule) Name() (ret js.String, ok bool) { 1415 ok = js.True == bindings.GetCSSKeyframesRuleName( 1416 this.ref, js.Pointer(&ret), 1417 ) 1418 return 1419 } 1420 1421 // SetName sets the value of property "CSSKeyframesRule.name" to val. 1422 // 1423 // It returns false if the property cannot be set. 1424 func (this CSSKeyframesRule) SetName(val js.String) bool { 1425 return js.True == bindings.SetCSSKeyframesRuleName( 1426 this.ref, 1427 val.Ref(), 1428 ) 1429 } 1430 1431 // CssRules returns the value of property "CSSKeyframesRule.cssRules". 1432 // 1433 // It returns ok=false if there is no such property. 1434 func (this CSSKeyframesRule) CssRules() (ret CSSRuleList, ok bool) { 1435 ok = js.True == bindings.GetCSSKeyframesRuleCssRules( 1436 this.ref, js.Pointer(&ret), 1437 ) 1438 return 1439 } 1440 1441 // Length returns the value of property "CSSKeyframesRule.length". 1442 // 1443 // It returns ok=false if there is no such property. 1444 func (this CSSKeyframesRule) Length() (ret uint32, ok bool) { 1445 ok = js.True == bindings.GetCSSKeyframesRuleLength( 1446 this.ref, js.Pointer(&ret), 1447 ) 1448 return 1449 } 1450 1451 // HasFuncGet returns true if the method "CSSKeyframesRule." exists. 1452 func (this CSSKeyframesRule) HasFuncGet() bool { 1453 return js.True == bindings.HasFuncCSSKeyframesRuleGet( 1454 this.ref, 1455 ) 1456 } 1457 1458 // FuncGet returns the method "CSSKeyframesRule.". 1459 func (this CSSKeyframesRule) FuncGet() (fn js.Func[func(index uint32) CSSKeyframeRule]) { 1460 bindings.FuncCSSKeyframesRuleGet( 1461 this.ref, js.Pointer(&fn), 1462 ) 1463 return 1464 } 1465 1466 // Get calls the method "CSSKeyframesRule.". 1467 func (this CSSKeyframesRule) Get(index uint32) (ret CSSKeyframeRule) { 1468 bindings.CallCSSKeyframesRuleGet( 1469 this.ref, js.Pointer(&ret), 1470 uint32(index), 1471 ) 1472 1473 return 1474 } 1475 1476 // TryGet calls the method "CSSKeyframesRule." 1477 // in a try/catch block and returns (_, err, ok = false) when it went through 1478 // the catch clause. 1479 func (this CSSKeyframesRule) TryGet(index uint32) (ret CSSKeyframeRule, exception js.Any, ok bool) { 1480 ok = js.True == bindings.TryCSSKeyframesRuleGet( 1481 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1482 uint32(index), 1483 ) 1484 1485 return 1486 } 1487 1488 // HasFuncAppendRule returns true if the method "CSSKeyframesRule.appendRule" exists. 1489 func (this CSSKeyframesRule) HasFuncAppendRule() bool { 1490 return js.True == bindings.HasFuncCSSKeyframesRuleAppendRule( 1491 this.ref, 1492 ) 1493 } 1494 1495 // FuncAppendRule returns the method "CSSKeyframesRule.appendRule". 1496 func (this CSSKeyframesRule) FuncAppendRule() (fn js.Func[func(rule js.String)]) { 1497 bindings.FuncCSSKeyframesRuleAppendRule( 1498 this.ref, js.Pointer(&fn), 1499 ) 1500 return 1501 } 1502 1503 // AppendRule calls the method "CSSKeyframesRule.appendRule". 1504 func (this CSSKeyframesRule) AppendRule(rule js.String) (ret js.Void) { 1505 bindings.CallCSSKeyframesRuleAppendRule( 1506 this.ref, js.Pointer(&ret), 1507 rule.Ref(), 1508 ) 1509 1510 return 1511 } 1512 1513 // TryAppendRule calls the method "CSSKeyframesRule.appendRule" 1514 // in a try/catch block and returns (_, err, ok = false) when it went through 1515 // the catch clause. 1516 func (this CSSKeyframesRule) TryAppendRule(rule js.String) (ret js.Void, exception js.Any, ok bool) { 1517 ok = js.True == bindings.TryCSSKeyframesRuleAppendRule( 1518 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1519 rule.Ref(), 1520 ) 1521 1522 return 1523 } 1524 1525 // HasFuncDeleteRule returns true if the method "CSSKeyframesRule.deleteRule" exists. 1526 func (this CSSKeyframesRule) HasFuncDeleteRule() bool { 1527 return js.True == bindings.HasFuncCSSKeyframesRuleDeleteRule( 1528 this.ref, 1529 ) 1530 } 1531 1532 // FuncDeleteRule returns the method "CSSKeyframesRule.deleteRule". 1533 func (this CSSKeyframesRule) FuncDeleteRule() (fn js.Func[func(sel js.String)]) { 1534 bindings.FuncCSSKeyframesRuleDeleteRule( 1535 this.ref, js.Pointer(&fn), 1536 ) 1537 return 1538 } 1539 1540 // DeleteRule calls the method "CSSKeyframesRule.deleteRule". 1541 func (this CSSKeyframesRule) DeleteRule(sel js.String) (ret js.Void) { 1542 bindings.CallCSSKeyframesRuleDeleteRule( 1543 this.ref, js.Pointer(&ret), 1544 sel.Ref(), 1545 ) 1546 1547 return 1548 } 1549 1550 // TryDeleteRule calls the method "CSSKeyframesRule.deleteRule" 1551 // in a try/catch block and returns (_, err, ok = false) when it went through 1552 // the catch clause. 1553 func (this CSSKeyframesRule) TryDeleteRule(sel js.String) (ret js.Void, exception js.Any, ok bool) { 1554 ok = js.True == bindings.TryCSSKeyframesRuleDeleteRule( 1555 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1556 sel.Ref(), 1557 ) 1558 1559 return 1560 } 1561 1562 // HasFuncFindRule returns true if the method "CSSKeyframesRule.findRule" exists. 1563 func (this CSSKeyframesRule) HasFuncFindRule() bool { 1564 return js.True == bindings.HasFuncCSSKeyframesRuleFindRule( 1565 this.ref, 1566 ) 1567 } 1568 1569 // FuncFindRule returns the method "CSSKeyframesRule.findRule". 1570 func (this CSSKeyframesRule) FuncFindRule() (fn js.Func[func(sel js.String) CSSKeyframeRule]) { 1571 bindings.FuncCSSKeyframesRuleFindRule( 1572 this.ref, js.Pointer(&fn), 1573 ) 1574 return 1575 } 1576 1577 // FindRule calls the method "CSSKeyframesRule.findRule". 1578 func (this CSSKeyframesRule) FindRule(sel js.String) (ret CSSKeyframeRule) { 1579 bindings.CallCSSKeyframesRuleFindRule( 1580 this.ref, js.Pointer(&ret), 1581 sel.Ref(), 1582 ) 1583 1584 return 1585 } 1586 1587 // TryFindRule calls the method "CSSKeyframesRule.findRule" 1588 // in a try/catch block and returns (_, err, ok = false) when it went through 1589 // the catch clause. 1590 func (this CSSKeyframesRule) TryFindRule(sel js.String) (ret CSSKeyframeRule, exception js.Any, ok bool) { 1591 ok = js.True == bindings.TryCSSKeyframesRuleFindRule( 1592 this.ref, js.Pointer(&ret), js.Pointer(&exception), 1593 sel.Ref(), 1594 ) 1595 1596 return 1597 } 1598 1599 func NewCSSLCH(l CSSColorPercent, c CSSColorPercent, h CSSColorAngle, alpha CSSColorPercent) (ret CSSLCH) { 1600 ret.ref = bindings.NewCSSLCHByCSSLCH( 1601 l.Ref(), 1602 c.Ref(), 1603 h.Ref(), 1604 alpha.Ref()) 1605 return 1606 } 1607 1608 func NewCSSLCHByCSSLCH1(l CSSColorPercent, c CSSColorPercent, h CSSColorAngle) (ret CSSLCH) { 1609 ret.ref = bindings.NewCSSLCHByCSSLCH1( 1610 l.Ref(), 1611 c.Ref(), 1612 h.Ref()) 1613 return 1614 } 1615 1616 type CSSLCH struct { 1617 CSSColorValue 1618 } 1619 1620 func (this CSSLCH) Once() CSSLCH { 1621 this.ref.Once() 1622 return this 1623 } 1624 1625 func (this CSSLCH) Ref() js.Ref { 1626 return this.CSSColorValue.Ref() 1627 } 1628 1629 func (this CSSLCH) FromRef(ref js.Ref) CSSLCH { 1630 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 1631 return this 1632 } 1633 1634 func (this CSSLCH) Free() { 1635 this.ref.Free() 1636 } 1637 1638 // L returns the value of property "CSSLCH.l". 1639 // 1640 // It returns ok=false if there is no such property. 1641 func (this CSSLCH) L() (ret CSSColorPercent, ok bool) { 1642 ok = js.True == bindings.GetCSSLCHL( 1643 this.ref, js.Pointer(&ret), 1644 ) 1645 return 1646 } 1647 1648 // SetL sets the value of property "CSSLCH.l" to val. 1649 // 1650 // It returns false if the property cannot be set. 1651 func (this CSSLCH) SetL(val CSSColorPercent) bool { 1652 return js.True == bindings.SetCSSLCHL( 1653 this.ref, 1654 val.Ref(), 1655 ) 1656 } 1657 1658 // C returns the value of property "CSSLCH.c". 1659 // 1660 // It returns ok=false if there is no such property. 1661 func (this CSSLCH) C() (ret CSSColorPercent, ok bool) { 1662 ok = js.True == bindings.GetCSSLCHC( 1663 this.ref, js.Pointer(&ret), 1664 ) 1665 return 1666 } 1667 1668 // SetC sets the value of property "CSSLCH.c" to val. 1669 // 1670 // It returns false if the property cannot be set. 1671 func (this CSSLCH) SetC(val CSSColorPercent) bool { 1672 return js.True == bindings.SetCSSLCHC( 1673 this.ref, 1674 val.Ref(), 1675 ) 1676 } 1677 1678 // H returns the value of property "CSSLCH.h". 1679 // 1680 // It returns ok=false if there is no such property. 1681 func (this CSSLCH) H() (ret CSSColorAngle, ok bool) { 1682 ok = js.True == bindings.GetCSSLCHH( 1683 this.ref, js.Pointer(&ret), 1684 ) 1685 return 1686 } 1687 1688 // SetH sets the value of property "CSSLCH.h" to val. 1689 // 1690 // It returns false if the property cannot be set. 1691 func (this CSSLCH) SetH(val CSSColorAngle) bool { 1692 return js.True == bindings.SetCSSLCHH( 1693 this.ref, 1694 val.Ref(), 1695 ) 1696 } 1697 1698 // Alpha returns the value of property "CSSLCH.alpha". 1699 // 1700 // It returns ok=false if there is no such property. 1701 func (this CSSLCH) Alpha() (ret CSSColorPercent, ok bool) { 1702 ok = js.True == bindings.GetCSSLCHAlpha( 1703 this.ref, js.Pointer(&ret), 1704 ) 1705 return 1706 } 1707 1708 // SetAlpha sets the value of property "CSSLCH.alpha" to val. 1709 // 1710 // It returns false if the property cannot be set. 1711 func (this CSSLCH) SetAlpha(val CSSColorPercent) bool { 1712 return js.True == bindings.SetCSSLCHAlpha( 1713 this.ref, 1714 val.Ref(), 1715 ) 1716 } 1717 1718 func NewCSSLab(l CSSColorPercent, a CSSColorNumber, b CSSColorNumber, alpha CSSColorPercent) (ret CSSLab) { 1719 ret.ref = bindings.NewCSSLabByCSSLab( 1720 l.Ref(), 1721 a.Ref(), 1722 b.Ref(), 1723 alpha.Ref()) 1724 return 1725 } 1726 1727 func NewCSSLabByCSSLab1(l CSSColorPercent, a CSSColorNumber, b CSSColorNumber) (ret CSSLab) { 1728 ret.ref = bindings.NewCSSLabByCSSLab1( 1729 l.Ref(), 1730 a.Ref(), 1731 b.Ref()) 1732 return 1733 } 1734 1735 type CSSLab struct { 1736 CSSColorValue 1737 } 1738 1739 func (this CSSLab) Once() CSSLab { 1740 this.ref.Once() 1741 return this 1742 } 1743 1744 func (this CSSLab) Ref() js.Ref { 1745 return this.CSSColorValue.Ref() 1746 } 1747 1748 func (this CSSLab) FromRef(ref js.Ref) CSSLab { 1749 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 1750 return this 1751 } 1752 1753 func (this CSSLab) Free() { 1754 this.ref.Free() 1755 } 1756 1757 // L returns the value of property "CSSLab.l". 1758 // 1759 // It returns ok=false if there is no such property. 1760 func (this CSSLab) L() (ret CSSColorPercent, ok bool) { 1761 ok = js.True == bindings.GetCSSLabL( 1762 this.ref, js.Pointer(&ret), 1763 ) 1764 return 1765 } 1766 1767 // SetL sets the value of property "CSSLab.l" to val. 1768 // 1769 // It returns false if the property cannot be set. 1770 func (this CSSLab) SetL(val CSSColorPercent) bool { 1771 return js.True == bindings.SetCSSLabL( 1772 this.ref, 1773 val.Ref(), 1774 ) 1775 } 1776 1777 // A returns the value of property "CSSLab.a". 1778 // 1779 // It returns ok=false if there is no such property. 1780 func (this CSSLab) A() (ret CSSColorNumber, ok bool) { 1781 ok = js.True == bindings.GetCSSLabA( 1782 this.ref, js.Pointer(&ret), 1783 ) 1784 return 1785 } 1786 1787 // SetA sets the value of property "CSSLab.a" to val. 1788 // 1789 // It returns false if the property cannot be set. 1790 func (this CSSLab) SetA(val CSSColorNumber) bool { 1791 return js.True == bindings.SetCSSLabA( 1792 this.ref, 1793 val.Ref(), 1794 ) 1795 } 1796 1797 // B returns the value of property "CSSLab.b". 1798 // 1799 // It returns ok=false if there is no such property. 1800 func (this CSSLab) B() (ret CSSColorNumber, ok bool) { 1801 ok = js.True == bindings.GetCSSLabB( 1802 this.ref, js.Pointer(&ret), 1803 ) 1804 return 1805 } 1806 1807 // SetB sets the value of property "CSSLab.b" to val. 1808 // 1809 // It returns false if the property cannot be set. 1810 func (this CSSLab) SetB(val CSSColorNumber) bool { 1811 return js.True == bindings.SetCSSLabB( 1812 this.ref, 1813 val.Ref(), 1814 ) 1815 } 1816 1817 // Alpha returns the value of property "CSSLab.alpha". 1818 // 1819 // It returns ok=false if there is no such property. 1820 func (this CSSLab) Alpha() (ret CSSColorPercent, ok bool) { 1821 ok = js.True == bindings.GetCSSLabAlpha( 1822 this.ref, js.Pointer(&ret), 1823 ) 1824 return 1825 } 1826 1827 // SetAlpha sets the value of property "CSSLab.alpha" to val. 1828 // 1829 // It returns false if the property cannot be set. 1830 func (this CSSLab) SetAlpha(val CSSColorPercent) bool { 1831 return js.True == bindings.SetCSSLabAlpha( 1832 this.ref, 1833 val.Ref(), 1834 ) 1835 } 1836 1837 type CSSLayerBlockRule struct { 1838 CSSGroupingRule 1839 } 1840 1841 func (this CSSLayerBlockRule) Once() CSSLayerBlockRule { 1842 this.ref.Once() 1843 return this 1844 } 1845 1846 func (this CSSLayerBlockRule) Ref() js.Ref { 1847 return this.CSSGroupingRule.Ref() 1848 } 1849 1850 func (this CSSLayerBlockRule) FromRef(ref js.Ref) CSSLayerBlockRule { 1851 this.CSSGroupingRule = this.CSSGroupingRule.FromRef(ref) 1852 return this 1853 } 1854 1855 func (this CSSLayerBlockRule) Free() { 1856 this.ref.Free() 1857 } 1858 1859 // Name returns the value of property "CSSLayerBlockRule.name". 1860 // 1861 // It returns ok=false if there is no such property. 1862 func (this CSSLayerBlockRule) Name() (ret js.String, ok bool) { 1863 ok = js.True == bindings.GetCSSLayerBlockRuleName( 1864 this.ref, js.Pointer(&ret), 1865 ) 1866 return 1867 } 1868 1869 type CSSLayerStatementRule struct { 1870 CSSRule 1871 } 1872 1873 func (this CSSLayerStatementRule) Once() CSSLayerStatementRule { 1874 this.ref.Once() 1875 return this 1876 } 1877 1878 func (this CSSLayerStatementRule) Ref() js.Ref { 1879 return this.CSSRule.Ref() 1880 } 1881 1882 func (this CSSLayerStatementRule) FromRef(ref js.Ref) CSSLayerStatementRule { 1883 this.CSSRule = this.CSSRule.FromRef(ref) 1884 return this 1885 } 1886 1887 func (this CSSLayerStatementRule) Free() { 1888 this.ref.Free() 1889 } 1890 1891 // NameList returns the value of property "CSSLayerStatementRule.nameList". 1892 // 1893 // It returns ok=false if there is no such property. 1894 func (this CSSLayerStatementRule) NameList() (ret js.FrozenArray[js.String], ok bool) { 1895 ok = js.True == bindings.GetCSSLayerStatementRuleNameList( 1896 this.ref, js.Pointer(&ret), 1897 ) 1898 return 1899 } 1900 1901 type CSSMarginRule struct { 1902 CSSRule 1903 } 1904 1905 func (this CSSMarginRule) Once() CSSMarginRule { 1906 this.ref.Once() 1907 return this 1908 } 1909 1910 func (this CSSMarginRule) Ref() js.Ref { 1911 return this.CSSRule.Ref() 1912 } 1913 1914 func (this CSSMarginRule) FromRef(ref js.Ref) CSSMarginRule { 1915 this.CSSRule = this.CSSRule.FromRef(ref) 1916 return this 1917 } 1918 1919 func (this CSSMarginRule) Free() { 1920 this.ref.Free() 1921 } 1922 1923 // Name returns the value of property "CSSMarginRule.name". 1924 // 1925 // It returns ok=false if there is no such property. 1926 func (this CSSMarginRule) Name() (ret js.String, ok bool) { 1927 ok = js.True == bindings.GetCSSMarginRuleName( 1928 this.ref, js.Pointer(&ret), 1929 ) 1930 return 1931 } 1932 1933 // Style returns the value of property "CSSMarginRule.style". 1934 // 1935 // It returns ok=false if there is no such property. 1936 func (this CSSMarginRule) Style() (ret CSSStyleDeclaration, ok bool) { 1937 ok = js.True == bindings.GetCSSMarginRuleStyle( 1938 this.ref, js.Pointer(&ret), 1939 ) 1940 return 1941 } 1942 1943 func NewCSSMathClamp(lower CSSNumberish, value CSSNumberish, upper CSSNumberish) (ret CSSMathClamp) { 1944 ret.ref = bindings.NewCSSMathClampByCSSMathClamp( 1945 lower.Ref(), 1946 value.Ref(), 1947 upper.Ref()) 1948 return 1949 } 1950 1951 type CSSMathClamp struct { 1952 CSSMathValue 1953 } 1954 1955 func (this CSSMathClamp) Once() CSSMathClamp { 1956 this.ref.Once() 1957 return this 1958 } 1959 1960 func (this CSSMathClamp) Ref() js.Ref { 1961 return this.CSSMathValue.Ref() 1962 } 1963 1964 func (this CSSMathClamp) FromRef(ref js.Ref) CSSMathClamp { 1965 this.CSSMathValue = this.CSSMathValue.FromRef(ref) 1966 return this 1967 } 1968 1969 func (this CSSMathClamp) Free() { 1970 this.ref.Free() 1971 } 1972 1973 // Lower returns the value of property "CSSMathClamp.lower". 1974 // 1975 // It returns ok=false if there is no such property. 1976 func (this CSSMathClamp) Lower() (ret CSSNumericValue, ok bool) { 1977 ok = js.True == bindings.GetCSSMathClampLower( 1978 this.ref, js.Pointer(&ret), 1979 ) 1980 return 1981 } 1982 1983 // Value returns the value of property "CSSMathClamp.value". 1984 // 1985 // It returns ok=false if there is no such property. 1986 func (this CSSMathClamp) Value() (ret CSSNumericValue, ok bool) { 1987 ok = js.True == bindings.GetCSSMathClampValue( 1988 this.ref, js.Pointer(&ret), 1989 ) 1990 return 1991 } 1992 1993 // Upper returns the value of property "CSSMathClamp.upper". 1994 // 1995 // It returns ok=false if there is no such property. 1996 func (this CSSMathClamp) Upper() (ret CSSNumericValue, ok bool) { 1997 ok = js.True == bindings.GetCSSMathClampUpper( 1998 this.ref, js.Pointer(&ret), 1999 ) 2000 return 2001 } 2002 2003 func NewCSSMathInvert(arg CSSNumberish) (ret CSSMathInvert) { 2004 ret.ref = bindings.NewCSSMathInvertByCSSMathInvert( 2005 arg.Ref()) 2006 return 2007 } 2008 2009 type CSSMathInvert struct { 2010 CSSMathValue 2011 } 2012 2013 func (this CSSMathInvert) Once() CSSMathInvert { 2014 this.ref.Once() 2015 return this 2016 } 2017 2018 func (this CSSMathInvert) Ref() js.Ref { 2019 return this.CSSMathValue.Ref() 2020 } 2021 2022 func (this CSSMathInvert) FromRef(ref js.Ref) CSSMathInvert { 2023 this.CSSMathValue = this.CSSMathValue.FromRef(ref) 2024 return this 2025 } 2026 2027 func (this CSSMathInvert) Free() { 2028 this.ref.Free() 2029 } 2030 2031 // Value returns the value of property "CSSMathInvert.value". 2032 // 2033 // It returns ok=false if there is no such property. 2034 func (this CSSMathInvert) Value() (ret CSSNumericValue, ok bool) { 2035 ok = js.True == bindings.GetCSSMathInvertValue( 2036 this.ref, js.Pointer(&ret), 2037 ) 2038 return 2039 } 2040 2041 func NewCSSMathMax(args ...CSSNumberish) (ret CSSMathMax) { 2042 ret.ref = bindings.NewCSSMathMaxByCSSMathMax( 2043 js.SliceData(args), 2044 js.SizeU(len(args))) 2045 return 2046 } 2047 2048 type CSSMathMax struct { 2049 CSSMathValue 2050 } 2051 2052 func (this CSSMathMax) Once() CSSMathMax { 2053 this.ref.Once() 2054 return this 2055 } 2056 2057 func (this CSSMathMax) Ref() js.Ref { 2058 return this.CSSMathValue.Ref() 2059 } 2060 2061 func (this CSSMathMax) FromRef(ref js.Ref) CSSMathMax { 2062 this.CSSMathValue = this.CSSMathValue.FromRef(ref) 2063 return this 2064 } 2065 2066 func (this CSSMathMax) Free() { 2067 this.ref.Free() 2068 } 2069 2070 // Values returns the value of property "CSSMathMax.values". 2071 // 2072 // It returns ok=false if there is no such property. 2073 func (this CSSMathMax) Values() (ret CSSNumericArray, ok bool) { 2074 ok = js.True == bindings.GetCSSMathMaxValues( 2075 this.ref, js.Pointer(&ret), 2076 ) 2077 return 2078 } 2079 2080 func NewCSSMathMin(args ...CSSNumberish) (ret CSSMathMin) { 2081 ret.ref = bindings.NewCSSMathMinByCSSMathMin( 2082 js.SliceData(args), 2083 js.SizeU(len(args))) 2084 return 2085 } 2086 2087 type CSSMathMin struct { 2088 CSSMathValue 2089 } 2090 2091 func (this CSSMathMin) Once() CSSMathMin { 2092 this.ref.Once() 2093 return this 2094 } 2095 2096 func (this CSSMathMin) Ref() js.Ref { 2097 return this.CSSMathValue.Ref() 2098 } 2099 2100 func (this CSSMathMin) FromRef(ref js.Ref) CSSMathMin { 2101 this.CSSMathValue = this.CSSMathValue.FromRef(ref) 2102 return this 2103 } 2104 2105 func (this CSSMathMin) Free() { 2106 this.ref.Free() 2107 } 2108 2109 // Values returns the value of property "CSSMathMin.values". 2110 // 2111 // It returns ok=false if there is no such property. 2112 func (this CSSMathMin) Values() (ret CSSNumericArray, ok bool) { 2113 ok = js.True == bindings.GetCSSMathMinValues( 2114 this.ref, js.Pointer(&ret), 2115 ) 2116 return 2117 } 2118 2119 func NewCSSMathNegate(arg CSSNumberish) (ret CSSMathNegate) { 2120 ret.ref = bindings.NewCSSMathNegateByCSSMathNegate( 2121 arg.Ref()) 2122 return 2123 } 2124 2125 type CSSMathNegate struct { 2126 CSSMathValue 2127 } 2128 2129 func (this CSSMathNegate) Once() CSSMathNegate { 2130 this.ref.Once() 2131 return this 2132 } 2133 2134 func (this CSSMathNegate) Ref() js.Ref { 2135 return this.CSSMathValue.Ref() 2136 } 2137 2138 func (this CSSMathNegate) FromRef(ref js.Ref) CSSMathNegate { 2139 this.CSSMathValue = this.CSSMathValue.FromRef(ref) 2140 return this 2141 } 2142 2143 func (this CSSMathNegate) Free() { 2144 this.ref.Free() 2145 } 2146 2147 // Value returns the value of property "CSSMathNegate.value". 2148 // 2149 // It returns ok=false if there is no such property. 2150 func (this CSSMathNegate) Value() (ret CSSNumericValue, ok bool) { 2151 ok = js.True == bindings.GetCSSMathNegateValue( 2152 this.ref, js.Pointer(&ret), 2153 ) 2154 return 2155 } 2156 2157 type CSSMathOperator uint32 2158 2159 const ( 2160 _ CSSMathOperator = iota 2161 2162 CSSMathOperator_SUM 2163 CSSMathOperator_PRODUCT 2164 CSSMathOperator_NEGATE 2165 CSSMathOperator_INVERT 2166 CSSMathOperator_MIN 2167 CSSMathOperator_MAX 2168 CSSMathOperator_CLAMP 2169 ) 2170 2171 func (CSSMathOperator) FromRef(str js.Ref) CSSMathOperator { 2172 return CSSMathOperator(bindings.ConstOfCSSMathOperator(str)) 2173 } 2174 2175 func (x CSSMathOperator) String() (string, bool) { 2176 switch x { 2177 case CSSMathOperator_SUM: 2178 return "sum", true 2179 case CSSMathOperator_PRODUCT: 2180 return "product", true 2181 case CSSMathOperator_NEGATE: 2182 return "negate", true 2183 case CSSMathOperator_INVERT: 2184 return "invert", true 2185 case CSSMathOperator_MIN: 2186 return "min", true 2187 case CSSMathOperator_MAX: 2188 return "max", true 2189 case CSSMathOperator_CLAMP: 2190 return "clamp", true 2191 default: 2192 return "", false 2193 } 2194 } 2195 2196 func NewCSSMathProduct(args ...CSSNumberish) (ret CSSMathProduct) { 2197 ret.ref = bindings.NewCSSMathProductByCSSMathProduct( 2198 js.SliceData(args), 2199 js.SizeU(len(args))) 2200 return 2201 } 2202 2203 type CSSMathProduct struct { 2204 CSSMathValue 2205 } 2206 2207 func (this CSSMathProduct) Once() CSSMathProduct { 2208 this.ref.Once() 2209 return this 2210 } 2211 2212 func (this CSSMathProduct) Ref() js.Ref { 2213 return this.CSSMathValue.Ref() 2214 } 2215 2216 func (this CSSMathProduct) FromRef(ref js.Ref) CSSMathProduct { 2217 this.CSSMathValue = this.CSSMathValue.FromRef(ref) 2218 return this 2219 } 2220 2221 func (this CSSMathProduct) Free() { 2222 this.ref.Free() 2223 } 2224 2225 // Values returns the value of property "CSSMathProduct.values". 2226 // 2227 // It returns ok=false if there is no such property. 2228 func (this CSSMathProduct) Values() (ret CSSNumericArray, ok bool) { 2229 ok = js.True == bindings.GetCSSMathProductValues( 2230 this.ref, js.Pointer(&ret), 2231 ) 2232 return 2233 } 2234 2235 type CSSMathValue struct { 2236 CSSNumericValue 2237 } 2238 2239 func (this CSSMathValue) Once() CSSMathValue { 2240 this.ref.Once() 2241 return this 2242 } 2243 2244 func (this CSSMathValue) Ref() js.Ref { 2245 return this.CSSNumericValue.Ref() 2246 } 2247 2248 func (this CSSMathValue) FromRef(ref js.Ref) CSSMathValue { 2249 this.CSSNumericValue = this.CSSNumericValue.FromRef(ref) 2250 return this 2251 } 2252 2253 func (this CSSMathValue) Free() { 2254 this.ref.Free() 2255 } 2256 2257 // Operator returns the value of property "CSSMathValue.operator". 2258 // 2259 // It returns ok=false if there is no such property. 2260 func (this CSSMathValue) Operator() (ret CSSMathOperator, ok bool) { 2261 ok = js.True == bindings.GetCSSMathValueOperator( 2262 this.ref, js.Pointer(&ret), 2263 ) 2264 return 2265 } 2266 2267 func NewDOMMatrixReadOnly(init OneOf_String_ArrayFloat64) (ret DOMMatrixReadOnly) { 2268 ret.ref = bindings.NewDOMMatrixReadOnlyByDOMMatrixReadOnly( 2269 init.Ref()) 2270 return 2271 } 2272 2273 func NewDOMMatrixReadOnlyByDOMMatrixReadOnly1() (ret DOMMatrixReadOnly) { 2274 ret.ref = bindings.NewDOMMatrixReadOnlyByDOMMatrixReadOnly1() 2275 return 2276 } 2277 2278 type DOMMatrixReadOnly struct { 2279 ref js.Ref 2280 } 2281 2282 func (this DOMMatrixReadOnly) Once() DOMMatrixReadOnly { 2283 this.ref.Once() 2284 return this 2285 } 2286 2287 func (this DOMMatrixReadOnly) Ref() js.Ref { 2288 return this.ref 2289 } 2290 2291 func (this DOMMatrixReadOnly) FromRef(ref js.Ref) DOMMatrixReadOnly { 2292 this.ref = ref 2293 return this 2294 } 2295 2296 func (this DOMMatrixReadOnly) Free() { 2297 this.ref.Free() 2298 } 2299 2300 // A returns the value of property "DOMMatrixReadOnly.a". 2301 // 2302 // It returns ok=false if there is no such property. 2303 func (this DOMMatrixReadOnly) A() (ret float64, ok bool) { 2304 ok = js.True == bindings.GetDOMMatrixReadOnlyA( 2305 this.ref, js.Pointer(&ret), 2306 ) 2307 return 2308 } 2309 2310 // B returns the value of property "DOMMatrixReadOnly.b". 2311 // 2312 // It returns ok=false if there is no such property. 2313 func (this DOMMatrixReadOnly) B() (ret float64, ok bool) { 2314 ok = js.True == bindings.GetDOMMatrixReadOnlyB( 2315 this.ref, js.Pointer(&ret), 2316 ) 2317 return 2318 } 2319 2320 // C returns the value of property "DOMMatrixReadOnly.c". 2321 // 2322 // It returns ok=false if there is no such property. 2323 func (this DOMMatrixReadOnly) C() (ret float64, ok bool) { 2324 ok = js.True == bindings.GetDOMMatrixReadOnlyC( 2325 this.ref, js.Pointer(&ret), 2326 ) 2327 return 2328 } 2329 2330 // D returns the value of property "DOMMatrixReadOnly.d". 2331 // 2332 // It returns ok=false if there is no such property. 2333 func (this DOMMatrixReadOnly) D() (ret float64, ok bool) { 2334 ok = js.True == bindings.GetDOMMatrixReadOnlyD( 2335 this.ref, js.Pointer(&ret), 2336 ) 2337 return 2338 } 2339 2340 // E returns the value of property "DOMMatrixReadOnly.e". 2341 // 2342 // It returns ok=false if there is no such property. 2343 func (this DOMMatrixReadOnly) E() (ret float64, ok bool) { 2344 ok = js.True == bindings.GetDOMMatrixReadOnlyE( 2345 this.ref, js.Pointer(&ret), 2346 ) 2347 return 2348 } 2349 2350 // F returns the value of property "DOMMatrixReadOnly.f". 2351 // 2352 // It returns ok=false if there is no such property. 2353 func (this DOMMatrixReadOnly) F() (ret float64, ok bool) { 2354 ok = js.True == bindings.GetDOMMatrixReadOnlyF( 2355 this.ref, js.Pointer(&ret), 2356 ) 2357 return 2358 } 2359 2360 // M11 returns the value of property "DOMMatrixReadOnly.m11". 2361 // 2362 // It returns ok=false if there is no such property. 2363 func (this DOMMatrixReadOnly) M11() (ret float64, ok bool) { 2364 ok = js.True == bindings.GetDOMMatrixReadOnlyM11( 2365 this.ref, js.Pointer(&ret), 2366 ) 2367 return 2368 } 2369 2370 // M12 returns the value of property "DOMMatrixReadOnly.m12". 2371 // 2372 // It returns ok=false if there is no such property. 2373 func (this DOMMatrixReadOnly) M12() (ret float64, ok bool) { 2374 ok = js.True == bindings.GetDOMMatrixReadOnlyM12( 2375 this.ref, js.Pointer(&ret), 2376 ) 2377 return 2378 } 2379 2380 // M13 returns the value of property "DOMMatrixReadOnly.m13". 2381 // 2382 // It returns ok=false if there is no such property. 2383 func (this DOMMatrixReadOnly) M13() (ret float64, ok bool) { 2384 ok = js.True == bindings.GetDOMMatrixReadOnlyM13( 2385 this.ref, js.Pointer(&ret), 2386 ) 2387 return 2388 } 2389 2390 // M14 returns the value of property "DOMMatrixReadOnly.m14". 2391 // 2392 // It returns ok=false if there is no such property. 2393 func (this DOMMatrixReadOnly) M14() (ret float64, ok bool) { 2394 ok = js.True == bindings.GetDOMMatrixReadOnlyM14( 2395 this.ref, js.Pointer(&ret), 2396 ) 2397 return 2398 } 2399 2400 // M21 returns the value of property "DOMMatrixReadOnly.m21". 2401 // 2402 // It returns ok=false if there is no such property. 2403 func (this DOMMatrixReadOnly) M21() (ret float64, ok bool) { 2404 ok = js.True == bindings.GetDOMMatrixReadOnlyM21( 2405 this.ref, js.Pointer(&ret), 2406 ) 2407 return 2408 } 2409 2410 // M22 returns the value of property "DOMMatrixReadOnly.m22". 2411 // 2412 // It returns ok=false if there is no such property. 2413 func (this DOMMatrixReadOnly) M22() (ret float64, ok bool) { 2414 ok = js.True == bindings.GetDOMMatrixReadOnlyM22( 2415 this.ref, js.Pointer(&ret), 2416 ) 2417 return 2418 } 2419 2420 // M23 returns the value of property "DOMMatrixReadOnly.m23". 2421 // 2422 // It returns ok=false if there is no such property. 2423 func (this DOMMatrixReadOnly) M23() (ret float64, ok bool) { 2424 ok = js.True == bindings.GetDOMMatrixReadOnlyM23( 2425 this.ref, js.Pointer(&ret), 2426 ) 2427 return 2428 } 2429 2430 // M24 returns the value of property "DOMMatrixReadOnly.m24". 2431 // 2432 // It returns ok=false if there is no such property. 2433 func (this DOMMatrixReadOnly) M24() (ret float64, ok bool) { 2434 ok = js.True == bindings.GetDOMMatrixReadOnlyM24( 2435 this.ref, js.Pointer(&ret), 2436 ) 2437 return 2438 } 2439 2440 // M31 returns the value of property "DOMMatrixReadOnly.m31". 2441 // 2442 // It returns ok=false if there is no such property. 2443 func (this DOMMatrixReadOnly) M31() (ret float64, ok bool) { 2444 ok = js.True == bindings.GetDOMMatrixReadOnlyM31( 2445 this.ref, js.Pointer(&ret), 2446 ) 2447 return 2448 } 2449 2450 // M32 returns the value of property "DOMMatrixReadOnly.m32". 2451 // 2452 // It returns ok=false if there is no such property. 2453 func (this DOMMatrixReadOnly) M32() (ret float64, ok bool) { 2454 ok = js.True == bindings.GetDOMMatrixReadOnlyM32( 2455 this.ref, js.Pointer(&ret), 2456 ) 2457 return 2458 } 2459 2460 // M33 returns the value of property "DOMMatrixReadOnly.m33". 2461 // 2462 // It returns ok=false if there is no such property. 2463 func (this DOMMatrixReadOnly) M33() (ret float64, ok bool) { 2464 ok = js.True == bindings.GetDOMMatrixReadOnlyM33( 2465 this.ref, js.Pointer(&ret), 2466 ) 2467 return 2468 } 2469 2470 // M34 returns the value of property "DOMMatrixReadOnly.m34". 2471 // 2472 // It returns ok=false if there is no such property. 2473 func (this DOMMatrixReadOnly) M34() (ret float64, ok bool) { 2474 ok = js.True == bindings.GetDOMMatrixReadOnlyM34( 2475 this.ref, js.Pointer(&ret), 2476 ) 2477 return 2478 } 2479 2480 // M41 returns the value of property "DOMMatrixReadOnly.m41". 2481 // 2482 // It returns ok=false if there is no such property. 2483 func (this DOMMatrixReadOnly) M41() (ret float64, ok bool) { 2484 ok = js.True == bindings.GetDOMMatrixReadOnlyM41( 2485 this.ref, js.Pointer(&ret), 2486 ) 2487 return 2488 } 2489 2490 // M42 returns the value of property "DOMMatrixReadOnly.m42". 2491 // 2492 // It returns ok=false if there is no such property. 2493 func (this DOMMatrixReadOnly) M42() (ret float64, ok bool) { 2494 ok = js.True == bindings.GetDOMMatrixReadOnlyM42( 2495 this.ref, js.Pointer(&ret), 2496 ) 2497 return 2498 } 2499 2500 // M43 returns the value of property "DOMMatrixReadOnly.m43". 2501 // 2502 // It returns ok=false if there is no such property. 2503 func (this DOMMatrixReadOnly) M43() (ret float64, ok bool) { 2504 ok = js.True == bindings.GetDOMMatrixReadOnlyM43( 2505 this.ref, js.Pointer(&ret), 2506 ) 2507 return 2508 } 2509 2510 // M44 returns the value of property "DOMMatrixReadOnly.m44". 2511 // 2512 // It returns ok=false if there is no such property. 2513 func (this DOMMatrixReadOnly) M44() (ret float64, ok bool) { 2514 ok = js.True == bindings.GetDOMMatrixReadOnlyM44( 2515 this.ref, js.Pointer(&ret), 2516 ) 2517 return 2518 } 2519 2520 // Is2D returns the value of property "DOMMatrixReadOnly.is2D". 2521 // 2522 // It returns ok=false if there is no such property. 2523 func (this DOMMatrixReadOnly) Is2D() (ret bool, ok bool) { 2524 ok = js.True == bindings.GetDOMMatrixReadOnlyIs2D( 2525 this.ref, js.Pointer(&ret), 2526 ) 2527 return 2528 } 2529 2530 // IsIdentity returns the value of property "DOMMatrixReadOnly.isIdentity". 2531 // 2532 // It returns ok=false if there is no such property. 2533 func (this DOMMatrixReadOnly) IsIdentity() (ret bool, ok bool) { 2534 ok = js.True == bindings.GetDOMMatrixReadOnlyIsIdentity( 2535 this.ref, js.Pointer(&ret), 2536 ) 2537 return 2538 } 2539 2540 // HasFuncFromMatrix returns true if the static method "DOMMatrixReadOnly.fromMatrix" exists. 2541 func (this DOMMatrixReadOnly) HasFuncFromMatrix() bool { 2542 return js.True == bindings.HasFuncDOMMatrixReadOnlyFromMatrix( 2543 this.ref, 2544 ) 2545 } 2546 2547 // FuncFromMatrix returns the static method "DOMMatrixReadOnly.fromMatrix". 2548 func (this DOMMatrixReadOnly) FuncFromMatrix() (fn js.Func[func(other DOMMatrixInit) DOMMatrixReadOnly]) { 2549 bindings.FuncDOMMatrixReadOnlyFromMatrix( 2550 this.ref, js.Pointer(&fn), 2551 ) 2552 return 2553 } 2554 2555 // FromMatrix calls the static method "DOMMatrixReadOnly.fromMatrix". 2556 func (this DOMMatrixReadOnly) FromMatrix(other DOMMatrixInit) (ret DOMMatrixReadOnly) { 2557 bindings.CallDOMMatrixReadOnlyFromMatrix( 2558 this.ref, js.Pointer(&ret), 2559 js.Pointer(&other), 2560 ) 2561 2562 return 2563 } 2564 2565 // TryFromMatrix calls the static method "DOMMatrixReadOnly.fromMatrix" 2566 // in a try/catch block and returns (_, err, ok = false) when it went through 2567 // the catch clause. 2568 func (this DOMMatrixReadOnly) TryFromMatrix(other DOMMatrixInit) (ret DOMMatrixReadOnly, exception js.Any, ok bool) { 2569 ok = js.True == bindings.TryDOMMatrixReadOnlyFromMatrix( 2570 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2571 js.Pointer(&other), 2572 ) 2573 2574 return 2575 } 2576 2577 // HasFuncFromMatrix1 returns true if the static method "DOMMatrixReadOnly.fromMatrix" exists. 2578 func (this DOMMatrixReadOnly) HasFuncFromMatrix1() bool { 2579 return js.True == bindings.HasFuncDOMMatrixReadOnlyFromMatrix1( 2580 this.ref, 2581 ) 2582 } 2583 2584 // FuncFromMatrix1 returns the static method "DOMMatrixReadOnly.fromMatrix". 2585 func (this DOMMatrixReadOnly) FuncFromMatrix1() (fn js.Func[func() DOMMatrixReadOnly]) { 2586 bindings.FuncDOMMatrixReadOnlyFromMatrix1( 2587 this.ref, js.Pointer(&fn), 2588 ) 2589 return 2590 } 2591 2592 // FromMatrix1 calls the static method "DOMMatrixReadOnly.fromMatrix". 2593 func (this DOMMatrixReadOnly) FromMatrix1() (ret DOMMatrixReadOnly) { 2594 bindings.CallDOMMatrixReadOnlyFromMatrix1( 2595 this.ref, js.Pointer(&ret), 2596 ) 2597 2598 return 2599 } 2600 2601 // TryFromMatrix1 calls the static method "DOMMatrixReadOnly.fromMatrix" 2602 // in a try/catch block and returns (_, err, ok = false) when it went through 2603 // the catch clause. 2604 func (this DOMMatrixReadOnly) TryFromMatrix1() (ret DOMMatrixReadOnly, exception js.Any, ok bool) { 2605 ok = js.True == bindings.TryDOMMatrixReadOnlyFromMatrix1( 2606 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2607 ) 2608 2609 return 2610 } 2611 2612 // HasFuncFromFloat32Array returns true if the static method "DOMMatrixReadOnly.fromFloat32Array" exists. 2613 func (this DOMMatrixReadOnly) HasFuncFromFloat32Array() bool { 2614 return js.True == bindings.HasFuncDOMMatrixReadOnlyFromFloat32Array( 2615 this.ref, 2616 ) 2617 } 2618 2619 // FuncFromFloat32Array returns the static method "DOMMatrixReadOnly.fromFloat32Array". 2620 func (this DOMMatrixReadOnly) FuncFromFloat32Array() (fn js.Func[func(array32 js.TypedArray[float32]) DOMMatrixReadOnly]) { 2621 bindings.FuncDOMMatrixReadOnlyFromFloat32Array( 2622 this.ref, js.Pointer(&fn), 2623 ) 2624 return 2625 } 2626 2627 // FromFloat32Array calls the static method "DOMMatrixReadOnly.fromFloat32Array". 2628 func (this DOMMatrixReadOnly) FromFloat32Array(array32 js.TypedArray[float32]) (ret DOMMatrixReadOnly) { 2629 bindings.CallDOMMatrixReadOnlyFromFloat32Array( 2630 this.ref, js.Pointer(&ret), 2631 array32.Ref(), 2632 ) 2633 2634 return 2635 } 2636 2637 // TryFromFloat32Array calls the static method "DOMMatrixReadOnly.fromFloat32Array" 2638 // in a try/catch block and returns (_, err, ok = false) when it went through 2639 // the catch clause. 2640 func (this DOMMatrixReadOnly) TryFromFloat32Array(array32 js.TypedArray[float32]) (ret DOMMatrixReadOnly, exception js.Any, ok bool) { 2641 ok = js.True == bindings.TryDOMMatrixReadOnlyFromFloat32Array( 2642 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2643 array32.Ref(), 2644 ) 2645 2646 return 2647 } 2648 2649 // HasFuncFromFloat64Array returns true if the static method "DOMMatrixReadOnly.fromFloat64Array" exists. 2650 func (this DOMMatrixReadOnly) HasFuncFromFloat64Array() bool { 2651 return js.True == bindings.HasFuncDOMMatrixReadOnlyFromFloat64Array( 2652 this.ref, 2653 ) 2654 } 2655 2656 // FuncFromFloat64Array returns the static method "DOMMatrixReadOnly.fromFloat64Array". 2657 func (this DOMMatrixReadOnly) FuncFromFloat64Array() (fn js.Func[func(array64 js.TypedArray[float64]) DOMMatrixReadOnly]) { 2658 bindings.FuncDOMMatrixReadOnlyFromFloat64Array( 2659 this.ref, js.Pointer(&fn), 2660 ) 2661 return 2662 } 2663 2664 // FromFloat64Array calls the static method "DOMMatrixReadOnly.fromFloat64Array". 2665 func (this DOMMatrixReadOnly) FromFloat64Array(array64 js.TypedArray[float64]) (ret DOMMatrixReadOnly) { 2666 bindings.CallDOMMatrixReadOnlyFromFloat64Array( 2667 this.ref, js.Pointer(&ret), 2668 array64.Ref(), 2669 ) 2670 2671 return 2672 } 2673 2674 // TryFromFloat64Array calls the static method "DOMMatrixReadOnly.fromFloat64Array" 2675 // in a try/catch block and returns (_, err, ok = false) when it went through 2676 // the catch clause. 2677 func (this DOMMatrixReadOnly) TryFromFloat64Array(array64 js.TypedArray[float64]) (ret DOMMatrixReadOnly, exception js.Any, ok bool) { 2678 ok = js.True == bindings.TryDOMMatrixReadOnlyFromFloat64Array( 2679 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2680 array64.Ref(), 2681 ) 2682 2683 return 2684 } 2685 2686 // HasFuncTranslate returns true if the method "DOMMatrixReadOnly.translate" exists. 2687 func (this DOMMatrixReadOnly) HasFuncTranslate() bool { 2688 return js.True == bindings.HasFuncDOMMatrixReadOnlyTranslate( 2689 this.ref, 2690 ) 2691 } 2692 2693 // FuncTranslate returns the method "DOMMatrixReadOnly.translate". 2694 func (this DOMMatrixReadOnly) FuncTranslate() (fn js.Func[func(tx float64, ty float64, tz float64) DOMMatrix]) { 2695 bindings.FuncDOMMatrixReadOnlyTranslate( 2696 this.ref, js.Pointer(&fn), 2697 ) 2698 return 2699 } 2700 2701 // Translate calls the method "DOMMatrixReadOnly.translate". 2702 func (this DOMMatrixReadOnly) Translate(tx float64, ty float64, tz float64) (ret DOMMatrix) { 2703 bindings.CallDOMMatrixReadOnlyTranslate( 2704 this.ref, js.Pointer(&ret), 2705 float64(tx), 2706 float64(ty), 2707 float64(tz), 2708 ) 2709 2710 return 2711 } 2712 2713 // TryTranslate calls the method "DOMMatrixReadOnly.translate" 2714 // in a try/catch block and returns (_, err, ok = false) when it went through 2715 // the catch clause. 2716 func (this DOMMatrixReadOnly) TryTranslate(tx float64, ty float64, tz float64) (ret DOMMatrix, exception js.Any, ok bool) { 2717 ok = js.True == bindings.TryDOMMatrixReadOnlyTranslate( 2718 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2719 float64(tx), 2720 float64(ty), 2721 float64(tz), 2722 ) 2723 2724 return 2725 } 2726 2727 // HasFuncTranslate1 returns true if the method "DOMMatrixReadOnly.translate" exists. 2728 func (this DOMMatrixReadOnly) HasFuncTranslate1() bool { 2729 return js.True == bindings.HasFuncDOMMatrixReadOnlyTranslate1( 2730 this.ref, 2731 ) 2732 } 2733 2734 // FuncTranslate1 returns the method "DOMMatrixReadOnly.translate". 2735 func (this DOMMatrixReadOnly) FuncTranslate1() (fn js.Func[func(tx float64, ty float64) DOMMatrix]) { 2736 bindings.FuncDOMMatrixReadOnlyTranslate1( 2737 this.ref, js.Pointer(&fn), 2738 ) 2739 return 2740 } 2741 2742 // Translate1 calls the method "DOMMatrixReadOnly.translate". 2743 func (this DOMMatrixReadOnly) Translate1(tx float64, ty float64) (ret DOMMatrix) { 2744 bindings.CallDOMMatrixReadOnlyTranslate1( 2745 this.ref, js.Pointer(&ret), 2746 float64(tx), 2747 float64(ty), 2748 ) 2749 2750 return 2751 } 2752 2753 // TryTranslate1 calls the method "DOMMatrixReadOnly.translate" 2754 // in a try/catch block and returns (_, err, ok = false) when it went through 2755 // the catch clause. 2756 func (this DOMMatrixReadOnly) TryTranslate1(tx float64, ty float64) (ret DOMMatrix, exception js.Any, ok bool) { 2757 ok = js.True == bindings.TryDOMMatrixReadOnlyTranslate1( 2758 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2759 float64(tx), 2760 float64(ty), 2761 ) 2762 2763 return 2764 } 2765 2766 // HasFuncTranslate2 returns true if the method "DOMMatrixReadOnly.translate" exists. 2767 func (this DOMMatrixReadOnly) HasFuncTranslate2() bool { 2768 return js.True == bindings.HasFuncDOMMatrixReadOnlyTranslate2( 2769 this.ref, 2770 ) 2771 } 2772 2773 // FuncTranslate2 returns the method "DOMMatrixReadOnly.translate". 2774 func (this DOMMatrixReadOnly) FuncTranslate2() (fn js.Func[func(tx float64) DOMMatrix]) { 2775 bindings.FuncDOMMatrixReadOnlyTranslate2( 2776 this.ref, js.Pointer(&fn), 2777 ) 2778 return 2779 } 2780 2781 // Translate2 calls the method "DOMMatrixReadOnly.translate". 2782 func (this DOMMatrixReadOnly) Translate2(tx float64) (ret DOMMatrix) { 2783 bindings.CallDOMMatrixReadOnlyTranslate2( 2784 this.ref, js.Pointer(&ret), 2785 float64(tx), 2786 ) 2787 2788 return 2789 } 2790 2791 // TryTranslate2 calls the method "DOMMatrixReadOnly.translate" 2792 // in a try/catch block and returns (_, err, ok = false) when it went through 2793 // the catch clause. 2794 func (this DOMMatrixReadOnly) TryTranslate2(tx float64) (ret DOMMatrix, exception js.Any, ok bool) { 2795 ok = js.True == bindings.TryDOMMatrixReadOnlyTranslate2( 2796 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2797 float64(tx), 2798 ) 2799 2800 return 2801 } 2802 2803 // HasFuncTranslate3 returns true if the method "DOMMatrixReadOnly.translate" exists. 2804 func (this DOMMatrixReadOnly) HasFuncTranslate3() bool { 2805 return js.True == bindings.HasFuncDOMMatrixReadOnlyTranslate3( 2806 this.ref, 2807 ) 2808 } 2809 2810 // FuncTranslate3 returns the method "DOMMatrixReadOnly.translate". 2811 func (this DOMMatrixReadOnly) FuncTranslate3() (fn js.Func[func() DOMMatrix]) { 2812 bindings.FuncDOMMatrixReadOnlyTranslate3( 2813 this.ref, js.Pointer(&fn), 2814 ) 2815 return 2816 } 2817 2818 // Translate3 calls the method "DOMMatrixReadOnly.translate". 2819 func (this DOMMatrixReadOnly) Translate3() (ret DOMMatrix) { 2820 bindings.CallDOMMatrixReadOnlyTranslate3( 2821 this.ref, js.Pointer(&ret), 2822 ) 2823 2824 return 2825 } 2826 2827 // TryTranslate3 calls the method "DOMMatrixReadOnly.translate" 2828 // in a try/catch block and returns (_, err, ok = false) when it went through 2829 // the catch clause. 2830 func (this DOMMatrixReadOnly) TryTranslate3() (ret DOMMatrix, exception js.Any, ok bool) { 2831 ok = js.True == bindings.TryDOMMatrixReadOnlyTranslate3( 2832 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2833 ) 2834 2835 return 2836 } 2837 2838 // HasFuncScale returns true if the method "DOMMatrixReadOnly.scale" exists. 2839 func (this DOMMatrixReadOnly) HasFuncScale() bool { 2840 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale( 2841 this.ref, 2842 ) 2843 } 2844 2845 // FuncScale returns the method "DOMMatrixReadOnly.scale". 2846 func (this DOMMatrixReadOnly) FuncScale() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64, originZ float64) DOMMatrix]) { 2847 bindings.FuncDOMMatrixReadOnlyScale( 2848 this.ref, js.Pointer(&fn), 2849 ) 2850 return 2851 } 2852 2853 // Scale calls the method "DOMMatrixReadOnly.scale". 2854 func (this DOMMatrixReadOnly) Scale(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64, originZ float64) (ret DOMMatrix) { 2855 bindings.CallDOMMatrixReadOnlyScale( 2856 this.ref, js.Pointer(&ret), 2857 float64(scaleX), 2858 float64(scaleY), 2859 float64(scaleZ), 2860 float64(originX), 2861 float64(originY), 2862 float64(originZ), 2863 ) 2864 2865 return 2866 } 2867 2868 // TryScale calls the method "DOMMatrixReadOnly.scale" 2869 // in a try/catch block and returns (_, err, ok = false) when it went through 2870 // the catch clause. 2871 func (this DOMMatrixReadOnly) TryScale(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64, originZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 2872 ok = js.True == bindings.TryDOMMatrixReadOnlyScale( 2873 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2874 float64(scaleX), 2875 float64(scaleY), 2876 float64(scaleZ), 2877 float64(originX), 2878 float64(originY), 2879 float64(originZ), 2880 ) 2881 2882 return 2883 } 2884 2885 // HasFuncScale1 returns true if the method "DOMMatrixReadOnly.scale" exists. 2886 func (this DOMMatrixReadOnly) HasFuncScale1() bool { 2887 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale1( 2888 this.ref, 2889 ) 2890 } 2891 2892 // FuncScale1 returns the method "DOMMatrixReadOnly.scale". 2893 func (this DOMMatrixReadOnly) FuncScale1() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64) DOMMatrix]) { 2894 bindings.FuncDOMMatrixReadOnlyScale1( 2895 this.ref, js.Pointer(&fn), 2896 ) 2897 return 2898 } 2899 2900 // Scale1 calls the method "DOMMatrixReadOnly.scale". 2901 func (this DOMMatrixReadOnly) Scale1(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64) (ret DOMMatrix) { 2902 bindings.CallDOMMatrixReadOnlyScale1( 2903 this.ref, js.Pointer(&ret), 2904 float64(scaleX), 2905 float64(scaleY), 2906 float64(scaleZ), 2907 float64(originX), 2908 float64(originY), 2909 ) 2910 2911 return 2912 } 2913 2914 // TryScale1 calls the method "DOMMatrixReadOnly.scale" 2915 // in a try/catch block and returns (_, err, ok = false) when it went through 2916 // the catch clause. 2917 func (this DOMMatrixReadOnly) TryScale1(scaleX float64, scaleY float64, scaleZ float64, originX float64, originY float64) (ret DOMMatrix, exception js.Any, ok bool) { 2918 ok = js.True == bindings.TryDOMMatrixReadOnlyScale1( 2919 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2920 float64(scaleX), 2921 float64(scaleY), 2922 float64(scaleZ), 2923 float64(originX), 2924 float64(originY), 2925 ) 2926 2927 return 2928 } 2929 2930 // HasFuncScale2 returns true if the method "DOMMatrixReadOnly.scale" exists. 2931 func (this DOMMatrixReadOnly) HasFuncScale2() bool { 2932 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale2( 2933 this.ref, 2934 ) 2935 } 2936 2937 // FuncScale2 returns the method "DOMMatrixReadOnly.scale". 2938 func (this DOMMatrixReadOnly) FuncScale2() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64, originX float64) DOMMatrix]) { 2939 bindings.FuncDOMMatrixReadOnlyScale2( 2940 this.ref, js.Pointer(&fn), 2941 ) 2942 return 2943 } 2944 2945 // Scale2 calls the method "DOMMatrixReadOnly.scale". 2946 func (this DOMMatrixReadOnly) Scale2(scaleX float64, scaleY float64, scaleZ float64, originX float64) (ret DOMMatrix) { 2947 bindings.CallDOMMatrixReadOnlyScale2( 2948 this.ref, js.Pointer(&ret), 2949 float64(scaleX), 2950 float64(scaleY), 2951 float64(scaleZ), 2952 float64(originX), 2953 ) 2954 2955 return 2956 } 2957 2958 // TryScale2 calls the method "DOMMatrixReadOnly.scale" 2959 // in a try/catch block and returns (_, err, ok = false) when it went through 2960 // the catch clause. 2961 func (this DOMMatrixReadOnly) TryScale2(scaleX float64, scaleY float64, scaleZ float64, originX float64) (ret DOMMatrix, exception js.Any, ok bool) { 2962 ok = js.True == bindings.TryDOMMatrixReadOnlyScale2( 2963 this.ref, js.Pointer(&ret), js.Pointer(&exception), 2964 float64(scaleX), 2965 float64(scaleY), 2966 float64(scaleZ), 2967 float64(originX), 2968 ) 2969 2970 return 2971 } 2972 2973 // HasFuncScale3 returns true if the method "DOMMatrixReadOnly.scale" exists. 2974 func (this DOMMatrixReadOnly) HasFuncScale3() bool { 2975 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale3( 2976 this.ref, 2977 ) 2978 } 2979 2980 // FuncScale3 returns the method "DOMMatrixReadOnly.scale". 2981 func (this DOMMatrixReadOnly) FuncScale3() (fn js.Func[func(scaleX float64, scaleY float64, scaleZ float64) DOMMatrix]) { 2982 bindings.FuncDOMMatrixReadOnlyScale3( 2983 this.ref, js.Pointer(&fn), 2984 ) 2985 return 2986 } 2987 2988 // Scale3 calls the method "DOMMatrixReadOnly.scale". 2989 func (this DOMMatrixReadOnly) Scale3(scaleX float64, scaleY float64, scaleZ float64) (ret DOMMatrix) { 2990 bindings.CallDOMMatrixReadOnlyScale3( 2991 this.ref, js.Pointer(&ret), 2992 float64(scaleX), 2993 float64(scaleY), 2994 float64(scaleZ), 2995 ) 2996 2997 return 2998 } 2999 3000 // TryScale3 calls the method "DOMMatrixReadOnly.scale" 3001 // in a try/catch block and returns (_, err, ok = false) when it went through 3002 // the catch clause. 3003 func (this DOMMatrixReadOnly) TryScale3(scaleX float64, scaleY float64, scaleZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 3004 ok = js.True == bindings.TryDOMMatrixReadOnlyScale3( 3005 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3006 float64(scaleX), 3007 float64(scaleY), 3008 float64(scaleZ), 3009 ) 3010 3011 return 3012 } 3013 3014 // HasFuncScale4 returns true if the method "DOMMatrixReadOnly.scale" exists. 3015 func (this DOMMatrixReadOnly) HasFuncScale4() bool { 3016 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale4( 3017 this.ref, 3018 ) 3019 } 3020 3021 // FuncScale4 returns the method "DOMMatrixReadOnly.scale". 3022 func (this DOMMatrixReadOnly) FuncScale4() (fn js.Func[func(scaleX float64, scaleY float64) DOMMatrix]) { 3023 bindings.FuncDOMMatrixReadOnlyScale4( 3024 this.ref, js.Pointer(&fn), 3025 ) 3026 return 3027 } 3028 3029 // Scale4 calls the method "DOMMatrixReadOnly.scale". 3030 func (this DOMMatrixReadOnly) Scale4(scaleX float64, scaleY float64) (ret DOMMatrix) { 3031 bindings.CallDOMMatrixReadOnlyScale4( 3032 this.ref, js.Pointer(&ret), 3033 float64(scaleX), 3034 float64(scaleY), 3035 ) 3036 3037 return 3038 } 3039 3040 // TryScale4 calls the method "DOMMatrixReadOnly.scale" 3041 // in a try/catch block and returns (_, err, ok = false) when it went through 3042 // the catch clause. 3043 func (this DOMMatrixReadOnly) TryScale4(scaleX float64, scaleY float64) (ret DOMMatrix, exception js.Any, ok bool) { 3044 ok = js.True == bindings.TryDOMMatrixReadOnlyScale4( 3045 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3046 float64(scaleX), 3047 float64(scaleY), 3048 ) 3049 3050 return 3051 } 3052 3053 // HasFuncScale5 returns true if the method "DOMMatrixReadOnly.scale" exists. 3054 func (this DOMMatrixReadOnly) HasFuncScale5() bool { 3055 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale5( 3056 this.ref, 3057 ) 3058 } 3059 3060 // FuncScale5 returns the method "DOMMatrixReadOnly.scale". 3061 func (this DOMMatrixReadOnly) FuncScale5() (fn js.Func[func(scaleX float64) DOMMatrix]) { 3062 bindings.FuncDOMMatrixReadOnlyScale5( 3063 this.ref, js.Pointer(&fn), 3064 ) 3065 return 3066 } 3067 3068 // Scale5 calls the method "DOMMatrixReadOnly.scale". 3069 func (this DOMMatrixReadOnly) Scale5(scaleX float64) (ret DOMMatrix) { 3070 bindings.CallDOMMatrixReadOnlyScale5( 3071 this.ref, js.Pointer(&ret), 3072 float64(scaleX), 3073 ) 3074 3075 return 3076 } 3077 3078 // TryScale5 calls the method "DOMMatrixReadOnly.scale" 3079 // in a try/catch block and returns (_, err, ok = false) when it went through 3080 // the catch clause. 3081 func (this DOMMatrixReadOnly) TryScale5(scaleX float64) (ret DOMMatrix, exception js.Any, ok bool) { 3082 ok = js.True == bindings.TryDOMMatrixReadOnlyScale5( 3083 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3084 float64(scaleX), 3085 ) 3086 3087 return 3088 } 3089 3090 // HasFuncScale6 returns true if the method "DOMMatrixReadOnly.scale" exists. 3091 func (this DOMMatrixReadOnly) HasFuncScale6() bool { 3092 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale6( 3093 this.ref, 3094 ) 3095 } 3096 3097 // FuncScale6 returns the method "DOMMatrixReadOnly.scale". 3098 func (this DOMMatrixReadOnly) FuncScale6() (fn js.Func[func() DOMMatrix]) { 3099 bindings.FuncDOMMatrixReadOnlyScale6( 3100 this.ref, js.Pointer(&fn), 3101 ) 3102 return 3103 } 3104 3105 // Scale6 calls the method "DOMMatrixReadOnly.scale". 3106 func (this DOMMatrixReadOnly) Scale6() (ret DOMMatrix) { 3107 bindings.CallDOMMatrixReadOnlyScale6( 3108 this.ref, js.Pointer(&ret), 3109 ) 3110 3111 return 3112 } 3113 3114 // TryScale6 calls the method "DOMMatrixReadOnly.scale" 3115 // in a try/catch block and returns (_, err, ok = false) when it went through 3116 // the catch clause. 3117 func (this DOMMatrixReadOnly) TryScale6() (ret DOMMatrix, exception js.Any, ok bool) { 3118 ok = js.True == bindings.TryDOMMatrixReadOnlyScale6( 3119 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3120 ) 3121 3122 return 3123 } 3124 3125 // HasFuncScaleNonUniform returns true if the method "DOMMatrixReadOnly.scaleNonUniform" exists. 3126 func (this DOMMatrixReadOnly) HasFuncScaleNonUniform() bool { 3127 return js.True == bindings.HasFuncDOMMatrixReadOnlyScaleNonUniform( 3128 this.ref, 3129 ) 3130 } 3131 3132 // FuncScaleNonUniform returns the method "DOMMatrixReadOnly.scaleNonUniform". 3133 func (this DOMMatrixReadOnly) FuncScaleNonUniform() (fn js.Func[func(scaleX float64, scaleY float64) DOMMatrix]) { 3134 bindings.FuncDOMMatrixReadOnlyScaleNonUniform( 3135 this.ref, js.Pointer(&fn), 3136 ) 3137 return 3138 } 3139 3140 // ScaleNonUniform calls the method "DOMMatrixReadOnly.scaleNonUniform". 3141 func (this DOMMatrixReadOnly) ScaleNonUniform(scaleX float64, scaleY float64) (ret DOMMatrix) { 3142 bindings.CallDOMMatrixReadOnlyScaleNonUniform( 3143 this.ref, js.Pointer(&ret), 3144 float64(scaleX), 3145 float64(scaleY), 3146 ) 3147 3148 return 3149 } 3150 3151 // TryScaleNonUniform calls the method "DOMMatrixReadOnly.scaleNonUniform" 3152 // in a try/catch block and returns (_, err, ok = false) when it went through 3153 // the catch clause. 3154 func (this DOMMatrixReadOnly) TryScaleNonUniform(scaleX float64, scaleY float64) (ret DOMMatrix, exception js.Any, ok bool) { 3155 ok = js.True == bindings.TryDOMMatrixReadOnlyScaleNonUniform( 3156 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3157 float64(scaleX), 3158 float64(scaleY), 3159 ) 3160 3161 return 3162 } 3163 3164 // HasFuncScaleNonUniform1 returns true if the method "DOMMatrixReadOnly.scaleNonUniform" exists. 3165 func (this DOMMatrixReadOnly) HasFuncScaleNonUniform1() bool { 3166 return js.True == bindings.HasFuncDOMMatrixReadOnlyScaleNonUniform1( 3167 this.ref, 3168 ) 3169 } 3170 3171 // FuncScaleNonUniform1 returns the method "DOMMatrixReadOnly.scaleNonUniform". 3172 func (this DOMMatrixReadOnly) FuncScaleNonUniform1() (fn js.Func[func(scaleX float64) DOMMatrix]) { 3173 bindings.FuncDOMMatrixReadOnlyScaleNonUniform1( 3174 this.ref, js.Pointer(&fn), 3175 ) 3176 return 3177 } 3178 3179 // ScaleNonUniform1 calls the method "DOMMatrixReadOnly.scaleNonUniform". 3180 func (this DOMMatrixReadOnly) ScaleNonUniform1(scaleX float64) (ret DOMMatrix) { 3181 bindings.CallDOMMatrixReadOnlyScaleNonUniform1( 3182 this.ref, js.Pointer(&ret), 3183 float64(scaleX), 3184 ) 3185 3186 return 3187 } 3188 3189 // TryScaleNonUniform1 calls the method "DOMMatrixReadOnly.scaleNonUniform" 3190 // in a try/catch block and returns (_, err, ok = false) when it went through 3191 // the catch clause. 3192 func (this DOMMatrixReadOnly) TryScaleNonUniform1(scaleX float64) (ret DOMMatrix, exception js.Any, ok bool) { 3193 ok = js.True == bindings.TryDOMMatrixReadOnlyScaleNonUniform1( 3194 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3195 float64(scaleX), 3196 ) 3197 3198 return 3199 } 3200 3201 // HasFuncScaleNonUniform2 returns true if the method "DOMMatrixReadOnly.scaleNonUniform" exists. 3202 func (this DOMMatrixReadOnly) HasFuncScaleNonUniform2() bool { 3203 return js.True == bindings.HasFuncDOMMatrixReadOnlyScaleNonUniform2( 3204 this.ref, 3205 ) 3206 } 3207 3208 // FuncScaleNonUniform2 returns the method "DOMMatrixReadOnly.scaleNonUniform". 3209 func (this DOMMatrixReadOnly) FuncScaleNonUniform2() (fn js.Func[func() DOMMatrix]) { 3210 bindings.FuncDOMMatrixReadOnlyScaleNonUniform2( 3211 this.ref, js.Pointer(&fn), 3212 ) 3213 return 3214 } 3215 3216 // ScaleNonUniform2 calls the method "DOMMatrixReadOnly.scaleNonUniform". 3217 func (this DOMMatrixReadOnly) ScaleNonUniform2() (ret DOMMatrix) { 3218 bindings.CallDOMMatrixReadOnlyScaleNonUniform2( 3219 this.ref, js.Pointer(&ret), 3220 ) 3221 3222 return 3223 } 3224 3225 // TryScaleNonUniform2 calls the method "DOMMatrixReadOnly.scaleNonUniform" 3226 // in a try/catch block and returns (_, err, ok = false) when it went through 3227 // the catch clause. 3228 func (this DOMMatrixReadOnly) TryScaleNonUniform2() (ret DOMMatrix, exception js.Any, ok bool) { 3229 ok = js.True == bindings.TryDOMMatrixReadOnlyScaleNonUniform2( 3230 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3231 ) 3232 3233 return 3234 } 3235 3236 // HasFuncScale3d returns true if the method "DOMMatrixReadOnly.scale3d" exists. 3237 func (this DOMMatrixReadOnly) HasFuncScale3d() bool { 3238 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale3d( 3239 this.ref, 3240 ) 3241 } 3242 3243 // FuncScale3d returns the method "DOMMatrixReadOnly.scale3d". 3244 func (this DOMMatrixReadOnly) FuncScale3d() (fn js.Func[func(scale float64, originX float64, originY float64, originZ float64) DOMMatrix]) { 3245 bindings.FuncDOMMatrixReadOnlyScale3d( 3246 this.ref, js.Pointer(&fn), 3247 ) 3248 return 3249 } 3250 3251 // Scale3d calls the method "DOMMatrixReadOnly.scale3d". 3252 func (this DOMMatrixReadOnly) Scale3d(scale float64, originX float64, originY float64, originZ float64) (ret DOMMatrix) { 3253 bindings.CallDOMMatrixReadOnlyScale3d( 3254 this.ref, js.Pointer(&ret), 3255 float64(scale), 3256 float64(originX), 3257 float64(originY), 3258 float64(originZ), 3259 ) 3260 3261 return 3262 } 3263 3264 // TryScale3d calls the method "DOMMatrixReadOnly.scale3d" 3265 // in a try/catch block and returns (_, err, ok = false) when it went through 3266 // the catch clause. 3267 func (this DOMMatrixReadOnly) TryScale3d(scale float64, originX float64, originY float64, originZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 3268 ok = js.True == bindings.TryDOMMatrixReadOnlyScale3d( 3269 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3270 float64(scale), 3271 float64(originX), 3272 float64(originY), 3273 float64(originZ), 3274 ) 3275 3276 return 3277 } 3278 3279 // HasFuncScale3d1 returns true if the method "DOMMatrixReadOnly.scale3d" exists. 3280 func (this DOMMatrixReadOnly) HasFuncScale3d1() bool { 3281 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale3d1( 3282 this.ref, 3283 ) 3284 } 3285 3286 // FuncScale3d1 returns the method "DOMMatrixReadOnly.scale3d". 3287 func (this DOMMatrixReadOnly) FuncScale3d1() (fn js.Func[func(scale float64, originX float64, originY float64) DOMMatrix]) { 3288 bindings.FuncDOMMatrixReadOnlyScale3d1( 3289 this.ref, js.Pointer(&fn), 3290 ) 3291 return 3292 } 3293 3294 // Scale3d1 calls the method "DOMMatrixReadOnly.scale3d". 3295 func (this DOMMatrixReadOnly) Scale3d1(scale float64, originX float64, originY float64) (ret DOMMatrix) { 3296 bindings.CallDOMMatrixReadOnlyScale3d1( 3297 this.ref, js.Pointer(&ret), 3298 float64(scale), 3299 float64(originX), 3300 float64(originY), 3301 ) 3302 3303 return 3304 } 3305 3306 // TryScale3d1 calls the method "DOMMatrixReadOnly.scale3d" 3307 // in a try/catch block and returns (_, err, ok = false) when it went through 3308 // the catch clause. 3309 func (this DOMMatrixReadOnly) TryScale3d1(scale float64, originX float64, originY float64) (ret DOMMatrix, exception js.Any, ok bool) { 3310 ok = js.True == bindings.TryDOMMatrixReadOnlyScale3d1( 3311 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3312 float64(scale), 3313 float64(originX), 3314 float64(originY), 3315 ) 3316 3317 return 3318 } 3319 3320 // HasFuncScale3d2 returns true if the method "DOMMatrixReadOnly.scale3d" exists. 3321 func (this DOMMatrixReadOnly) HasFuncScale3d2() bool { 3322 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale3d2( 3323 this.ref, 3324 ) 3325 } 3326 3327 // FuncScale3d2 returns the method "DOMMatrixReadOnly.scale3d". 3328 func (this DOMMatrixReadOnly) FuncScale3d2() (fn js.Func[func(scale float64, originX float64) DOMMatrix]) { 3329 bindings.FuncDOMMatrixReadOnlyScale3d2( 3330 this.ref, js.Pointer(&fn), 3331 ) 3332 return 3333 } 3334 3335 // Scale3d2 calls the method "DOMMatrixReadOnly.scale3d". 3336 func (this DOMMatrixReadOnly) Scale3d2(scale float64, originX float64) (ret DOMMatrix) { 3337 bindings.CallDOMMatrixReadOnlyScale3d2( 3338 this.ref, js.Pointer(&ret), 3339 float64(scale), 3340 float64(originX), 3341 ) 3342 3343 return 3344 } 3345 3346 // TryScale3d2 calls the method "DOMMatrixReadOnly.scale3d" 3347 // in a try/catch block and returns (_, err, ok = false) when it went through 3348 // the catch clause. 3349 func (this DOMMatrixReadOnly) TryScale3d2(scale float64, originX float64) (ret DOMMatrix, exception js.Any, ok bool) { 3350 ok = js.True == bindings.TryDOMMatrixReadOnlyScale3d2( 3351 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3352 float64(scale), 3353 float64(originX), 3354 ) 3355 3356 return 3357 } 3358 3359 // HasFuncScale3d3 returns true if the method "DOMMatrixReadOnly.scale3d" exists. 3360 func (this DOMMatrixReadOnly) HasFuncScale3d3() bool { 3361 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale3d3( 3362 this.ref, 3363 ) 3364 } 3365 3366 // FuncScale3d3 returns the method "DOMMatrixReadOnly.scale3d". 3367 func (this DOMMatrixReadOnly) FuncScale3d3() (fn js.Func[func(scale float64) DOMMatrix]) { 3368 bindings.FuncDOMMatrixReadOnlyScale3d3( 3369 this.ref, js.Pointer(&fn), 3370 ) 3371 return 3372 } 3373 3374 // Scale3d3 calls the method "DOMMatrixReadOnly.scale3d". 3375 func (this DOMMatrixReadOnly) Scale3d3(scale float64) (ret DOMMatrix) { 3376 bindings.CallDOMMatrixReadOnlyScale3d3( 3377 this.ref, js.Pointer(&ret), 3378 float64(scale), 3379 ) 3380 3381 return 3382 } 3383 3384 // TryScale3d3 calls the method "DOMMatrixReadOnly.scale3d" 3385 // in a try/catch block and returns (_, err, ok = false) when it went through 3386 // the catch clause. 3387 func (this DOMMatrixReadOnly) TryScale3d3(scale float64) (ret DOMMatrix, exception js.Any, ok bool) { 3388 ok = js.True == bindings.TryDOMMatrixReadOnlyScale3d3( 3389 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3390 float64(scale), 3391 ) 3392 3393 return 3394 } 3395 3396 // HasFuncScale3d4 returns true if the method "DOMMatrixReadOnly.scale3d" exists. 3397 func (this DOMMatrixReadOnly) HasFuncScale3d4() bool { 3398 return js.True == bindings.HasFuncDOMMatrixReadOnlyScale3d4( 3399 this.ref, 3400 ) 3401 } 3402 3403 // FuncScale3d4 returns the method "DOMMatrixReadOnly.scale3d". 3404 func (this DOMMatrixReadOnly) FuncScale3d4() (fn js.Func[func() DOMMatrix]) { 3405 bindings.FuncDOMMatrixReadOnlyScale3d4( 3406 this.ref, js.Pointer(&fn), 3407 ) 3408 return 3409 } 3410 3411 // Scale3d4 calls the method "DOMMatrixReadOnly.scale3d". 3412 func (this DOMMatrixReadOnly) Scale3d4() (ret DOMMatrix) { 3413 bindings.CallDOMMatrixReadOnlyScale3d4( 3414 this.ref, js.Pointer(&ret), 3415 ) 3416 3417 return 3418 } 3419 3420 // TryScale3d4 calls the method "DOMMatrixReadOnly.scale3d" 3421 // in a try/catch block and returns (_, err, ok = false) when it went through 3422 // the catch clause. 3423 func (this DOMMatrixReadOnly) TryScale3d4() (ret DOMMatrix, exception js.Any, ok bool) { 3424 ok = js.True == bindings.TryDOMMatrixReadOnlyScale3d4( 3425 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3426 ) 3427 3428 return 3429 } 3430 3431 // HasFuncRotate returns true if the method "DOMMatrixReadOnly.rotate" exists. 3432 func (this DOMMatrixReadOnly) HasFuncRotate() bool { 3433 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotate( 3434 this.ref, 3435 ) 3436 } 3437 3438 // FuncRotate returns the method "DOMMatrixReadOnly.rotate". 3439 func (this DOMMatrixReadOnly) FuncRotate() (fn js.Func[func(rotX float64, rotY float64, rotZ float64) DOMMatrix]) { 3440 bindings.FuncDOMMatrixReadOnlyRotate( 3441 this.ref, js.Pointer(&fn), 3442 ) 3443 return 3444 } 3445 3446 // Rotate calls the method "DOMMatrixReadOnly.rotate". 3447 func (this DOMMatrixReadOnly) Rotate(rotX float64, rotY float64, rotZ float64) (ret DOMMatrix) { 3448 bindings.CallDOMMatrixReadOnlyRotate( 3449 this.ref, js.Pointer(&ret), 3450 float64(rotX), 3451 float64(rotY), 3452 float64(rotZ), 3453 ) 3454 3455 return 3456 } 3457 3458 // TryRotate calls the method "DOMMatrixReadOnly.rotate" 3459 // in a try/catch block and returns (_, err, ok = false) when it went through 3460 // the catch clause. 3461 func (this DOMMatrixReadOnly) TryRotate(rotX float64, rotY float64, rotZ float64) (ret DOMMatrix, exception js.Any, ok bool) { 3462 ok = js.True == bindings.TryDOMMatrixReadOnlyRotate( 3463 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3464 float64(rotX), 3465 float64(rotY), 3466 float64(rotZ), 3467 ) 3468 3469 return 3470 } 3471 3472 // HasFuncRotate1 returns true if the method "DOMMatrixReadOnly.rotate" exists. 3473 func (this DOMMatrixReadOnly) HasFuncRotate1() bool { 3474 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotate1( 3475 this.ref, 3476 ) 3477 } 3478 3479 // FuncRotate1 returns the method "DOMMatrixReadOnly.rotate". 3480 func (this DOMMatrixReadOnly) FuncRotate1() (fn js.Func[func(rotX float64, rotY float64) DOMMatrix]) { 3481 bindings.FuncDOMMatrixReadOnlyRotate1( 3482 this.ref, js.Pointer(&fn), 3483 ) 3484 return 3485 } 3486 3487 // Rotate1 calls the method "DOMMatrixReadOnly.rotate". 3488 func (this DOMMatrixReadOnly) Rotate1(rotX float64, rotY float64) (ret DOMMatrix) { 3489 bindings.CallDOMMatrixReadOnlyRotate1( 3490 this.ref, js.Pointer(&ret), 3491 float64(rotX), 3492 float64(rotY), 3493 ) 3494 3495 return 3496 } 3497 3498 // TryRotate1 calls the method "DOMMatrixReadOnly.rotate" 3499 // in a try/catch block and returns (_, err, ok = false) when it went through 3500 // the catch clause. 3501 func (this DOMMatrixReadOnly) TryRotate1(rotX float64, rotY float64) (ret DOMMatrix, exception js.Any, ok bool) { 3502 ok = js.True == bindings.TryDOMMatrixReadOnlyRotate1( 3503 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3504 float64(rotX), 3505 float64(rotY), 3506 ) 3507 3508 return 3509 } 3510 3511 // HasFuncRotate2 returns true if the method "DOMMatrixReadOnly.rotate" exists. 3512 func (this DOMMatrixReadOnly) HasFuncRotate2() bool { 3513 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotate2( 3514 this.ref, 3515 ) 3516 } 3517 3518 // FuncRotate2 returns the method "DOMMatrixReadOnly.rotate". 3519 func (this DOMMatrixReadOnly) FuncRotate2() (fn js.Func[func(rotX float64) DOMMatrix]) { 3520 bindings.FuncDOMMatrixReadOnlyRotate2( 3521 this.ref, js.Pointer(&fn), 3522 ) 3523 return 3524 } 3525 3526 // Rotate2 calls the method "DOMMatrixReadOnly.rotate". 3527 func (this DOMMatrixReadOnly) Rotate2(rotX float64) (ret DOMMatrix) { 3528 bindings.CallDOMMatrixReadOnlyRotate2( 3529 this.ref, js.Pointer(&ret), 3530 float64(rotX), 3531 ) 3532 3533 return 3534 } 3535 3536 // TryRotate2 calls the method "DOMMatrixReadOnly.rotate" 3537 // in a try/catch block and returns (_, err, ok = false) when it went through 3538 // the catch clause. 3539 func (this DOMMatrixReadOnly) TryRotate2(rotX float64) (ret DOMMatrix, exception js.Any, ok bool) { 3540 ok = js.True == bindings.TryDOMMatrixReadOnlyRotate2( 3541 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3542 float64(rotX), 3543 ) 3544 3545 return 3546 } 3547 3548 // HasFuncRotate3 returns true if the method "DOMMatrixReadOnly.rotate" exists. 3549 func (this DOMMatrixReadOnly) HasFuncRotate3() bool { 3550 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotate3( 3551 this.ref, 3552 ) 3553 } 3554 3555 // FuncRotate3 returns the method "DOMMatrixReadOnly.rotate". 3556 func (this DOMMatrixReadOnly) FuncRotate3() (fn js.Func[func() DOMMatrix]) { 3557 bindings.FuncDOMMatrixReadOnlyRotate3( 3558 this.ref, js.Pointer(&fn), 3559 ) 3560 return 3561 } 3562 3563 // Rotate3 calls the method "DOMMatrixReadOnly.rotate". 3564 func (this DOMMatrixReadOnly) Rotate3() (ret DOMMatrix) { 3565 bindings.CallDOMMatrixReadOnlyRotate3( 3566 this.ref, js.Pointer(&ret), 3567 ) 3568 3569 return 3570 } 3571 3572 // TryRotate3 calls the method "DOMMatrixReadOnly.rotate" 3573 // in a try/catch block and returns (_, err, ok = false) when it went through 3574 // the catch clause. 3575 func (this DOMMatrixReadOnly) TryRotate3() (ret DOMMatrix, exception js.Any, ok bool) { 3576 ok = js.True == bindings.TryDOMMatrixReadOnlyRotate3( 3577 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3578 ) 3579 3580 return 3581 } 3582 3583 // HasFuncRotateFromVector returns true if the method "DOMMatrixReadOnly.rotateFromVector" exists. 3584 func (this DOMMatrixReadOnly) HasFuncRotateFromVector() bool { 3585 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateFromVector( 3586 this.ref, 3587 ) 3588 } 3589 3590 // FuncRotateFromVector returns the method "DOMMatrixReadOnly.rotateFromVector". 3591 func (this DOMMatrixReadOnly) FuncRotateFromVector() (fn js.Func[func(x float64, y float64) DOMMatrix]) { 3592 bindings.FuncDOMMatrixReadOnlyRotateFromVector( 3593 this.ref, js.Pointer(&fn), 3594 ) 3595 return 3596 } 3597 3598 // RotateFromVector calls the method "DOMMatrixReadOnly.rotateFromVector". 3599 func (this DOMMatrixReadOnly) RotateFromVector(x float64, y float64) (ret DOMMatrix) { 3600 bindings.CallDOMMatrixReadOnlyRotateFromVector( 3601 this.ref, js.Pointer(&ret), 3602 float64(x), 3603 float64(y), 3604 ) 3605 3606 return 3607 } 3608 3609 // TryRotateFromVector calls the method "DOMMatrixReadOnly.rotateFromVector" 3610 // in a try/catch block and returns (_, err, ok = false) when it went through 3611 // the catch clause. 3612 func (this DOMMatrixReadOnly) TryRotateFromVector(x float64, y float64) (ret DOMMatrix, exception js.Any, ok bool) { 3613 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateFromVector( 3614 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3615 float64(x), 3616 float64(y), 3617 ) 3618 3619 return 3620 } 3621 3622 // HasFuncRotateFromVector1 returns true if the method "DOMMatrixReadOnly.rotateFromVector" exists. 3623 func (this DOMMatrixReadOnly) HasFuncRotateFromVector1() bool { 3624 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateFromVector1( 3625 this.ref, 3626 ) 3627 } 3628 3629 // FuncRotateFromVector1 returns the method "DOMMatrixReadOnly.rotateFromVector". 3630 func (this DOMMatrixReadOnly) FuncRotateFromVector1() (fn js.Func[func(x float64) DOMMatrix]) { 3631 bindings.FuncDOMMatrixReadOnlyRotateFromVector1( 3632 this.ref, js.Pointer(&fn), 3633 ) 3634 return 3635 } 3636 3637 // RotateFromVector1 calls the method "DOMMatrixReadOnly.rotateFromVector". 3638 func (this DOMMatrixReadOnly) RotateFromVector1(x float64) (ret DOMMatrix) { 3639 bindings.CallDOMMatrixReadOnlyRotateFromVector1( 3640 this.ref, js.Pointer(&ret), 3641 float64(x), 3642 ) 3643 3644 return 3645 } 3646 3647 // TryRotateFromVector1 calls the method "DOMMatrixReadOnly.rotateFromVector" 3648 // in a try/catch block and returns (_, err, ok = false) when it went through 3649 // the catch clause. 3650 func (this DOMMatrixReadOnly) TryRotateFromVector1(x float64) (ret DOMMatrix, exception js.Any, ok bool) { 3651 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateFromVector1( 3652 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3653 float64(x), 3654 ) 3655 3656 return 3657 } 3658 3659 // HasFuncRotateFromVector2 returns true if the method "DOMMatrixReadOnly.rotateFromVector" exists. 3660 func (this DOMMatrixReadOnly) HasFuncRotateFromVector2() bool { 3661 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateFromVector2( 3662 this.ref, 3663 ) 3664 } 3665 3666 // FuncRotateFromVector2 returns the method "DOMMatrixReadOnly.rotateFromVector". 3667 func (this DOMMatrixReadOnly) FuncRotateFromVector2() (fn js.Func[func() DOMMatrix]) { 3668 bindings.FuncDOMMatrixReadOnlyRotateFromVector2( 3669 this.ref, js.Pointer(&fn), 3670 ) 3671 return 3672 } 3673 3674 // RotateFromVector2 calls the method "DOMMatrixReadOnly.rotateFromVector". 3675 func (this DOMMatrixReadOnly) RotateFromVector2() (ret DOMMatrix) { 3676 bindings.CallDOMMatrixReadOnlyRotateFromVector2( 3677 this.ref, js.Pointer(&ret), 3678 ) 3679 3680 return 3681 } 3682 3683 // TryRotateFromVector2 calls the method "DOMMatrixReadOnly.rotateFromVector" 3684 // in a try/catch block and returns (_, err, ok = false) when it went through 3685 // the catch clause. 3686 func (this DOMMatrixReadOnly) TryRotateFromVector2() (ret DOMMatrix, exception js.Any, ok bool) { 3687 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateFromVector2( 3688 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3689 ) 3690 3691 return 3692 } 3693 3694 // HasFuncRotateAxisAngle returns true if the method "DOMMatrixReadOnly.rotateAxisAngle" exists. 3695 func (this DOMMatrixReadOnly) HasFuncRotateAxisAngle() bool { 3696 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateAxisAngle( 3697 this.ref, 3698 ) 3699 } 3700 3701 // FuncRotateAxisAngle returns the method "DOMMatrixReadOnly.rotateAxisAngle". 3702 func (this DOMMatrixReadOnly) FuncRotateAxisAngle() (fn js.Func[func(x float64, y float64, z float64, angle float64) DOMMatrix]) { 3703 bindings.FuncDOMMatrixReadOnlyRotateAxisAngle( 3704 this.ref, js.Pointer(&fn), 3705 ) 3706 return 3707 } 3708 3709 // RotateAxisAngle calls the method "DOMMatrixReadOnly.rotateAxisAngle". 3710 func (this DOMMatrixReadOnly) RotateAxisAngle(x float64, y float64, z float64, angle float64) (ret DOMMatrix) { 3711 bindings.CallDOMMatrixReadOnlyRotateAxisAngle( 3712 this.ref, js.Pointer(&ret), 3713 float64(x), 3714 float64(y), 3715 float64(z), 3716 float64(angle), 3717 ) 3718 3719 return 3720 } 3721 3722 // TryRotateAxisAngle calls the method "DOMMatrixReadOnly.rotateAxisAngle" 3723 // in a try/catch block and returns (_, err, ok = false) when it went through 3724 // the catch clause. 3725 func (this DOMMatrixReadOnly) TryRotateAxisAngle(x float64, y float64, z float64, angle float64) (ret DOMMatrix, exception js.Any, ok bool) { 3726 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateAxisAngle( 3727 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3728 float64(x), 3729 float64(y), 3730 float64(z), 3731 float64(angle), 3732 ) 3733 3734 return 3735 } 3736 3737 // HasFuncRotateAxisAngle1 returns true if the method "DOMMatrixReadOnly.rotateAxisAngle" exists. 3738 func (this DOMMatrixReadOnly) HasFuncRotateAxisAngle1() bool { 3739 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateAxisAngle1( 3740 this.ref, 3741 ) 3742 } 3743 3744 // FuncRotateAxisAngle1 returns the method "DOMMatrixReadOnly.rotateAxisAngle". 3745 func (this DOMMatrixReadOnly) FuncRotateAxisAngle1() (fn js.Func[func(x float64, y float64, z float64) DOMMatrix]) { 3746 bindings.FuncDOMMatrixReadOnlyRotateAxisAngle1( 3747 this.ref, js.Pointer(&fn), 3748 ) 3749 return 3750 } 3751 3752 // RotateAxisAngle1 calls the method "DOMMatrixReadOnly.rotateAxisAngle". 3753 func (this DOMMatrixReadOnly) RotateAxisAngle1(x float64, y float64, z float64) (ret DOMMatrix) { 3754 bindings.CallDOMMatrixReadOnlyRotateAxisAngle1( 3755 this.ref, js.Pointer(&ret), 3756 float64(x), 3757 float64(y), 3758 float64(z), 3759 ) 3760 3761 return 3762 } 3763 3764 // TryRotateAxisAngle1 calls the method "DOMMatrixReadOnly.rotateAxisAngle" 3765 // in a try/catch block and returns (_, err, ok = false) when it went through 3766 // the catch clause. 3767 func (this DOMMatrixReadOnly) TryRotateAxisAngle1(x float64, y float64, z float64) (ret DOMMatrix, exception js.Any, ok bool) { 3768 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateAxisAngle1( 3769 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3770 float64(x), 3771 float64(y), 3772 float64(z), 3773 ) 3774 3775 return 3776 } 3777 3778 // HasFuncRotateAxisAngle2 returns true if the method "DOMMatrixReadOnly.rotateAxisAngle" exists. 3779 func (this DOMMatrixReadOnly) HasFuncRotateAxisAngle2() bool { 3780 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateAxisAngle2( 3781 this.ref, 3782 ) 3783 } 3784 3785 // FuncRotateAxisAngle2 returns the method "DOMMatrixReadOnly.rotateAxisAngle". 3786 func (this DOMMatrixReadOnly) FuncRotateAxisAngle2() (fn js.Func[func(x float64, y float64) DOMMatrix]) { 3787 bindings.FuncDOMMatrixReadOnlyRotateAxisAngle2( 3788 this.ref, js.Pointer(&fn), 3789 ) 3790 return 3791 } 3792 3793 // RotateAxisAngle2 calls the method "DOMMatrixReadOnly.rotateAxisAngle". 3794 func (this DOMMatrixReadOnly) RotateAxisAngle2(x float64, y float64) (ret DOMMatrix) { 3795 bindings.CallDOMMatrixReadOnlyRotateAxisAngle2( 3796 this.ref, js.Pointer(&ret), 3797 float64(x), 3798 float64(y), 3799 ) 3800 3801 return 3802 } 3803 3804 // TryRotateAxisAngle2 calls the method "DOMMatrixReadOnly.rotateAxisAngle" 3805 // in a try/catch block and returns (_, err, ok = false) when it went through 3806 // the catch clause. 3807 func (this DOMMatrixReadOnly) TryRotateAxisAngle2(x float64, y float64) (ret DOMMatrix, exception js.Any, ok bool) { 3808 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateAxisAngle2( 3809 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3810 float64(x), 3811 float64(y), 3812 ) 3813 3814 return 3815 } 3816 3817 // HasFuncRotateAxisAngle3 returns true if the method "DOMMatrixReadOnly.rotateAxisAngle" exists. 3818 func (this DOMMatrixReadOnly) HasFuncRotateAxisAngle3() bool { 3819 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateAxisAngle3( 3820 this.ref, 3821 ) 3822 } 3823 3824 // FuncRotateAxisAngle3 returns the method "DOMMatrixReadOnly.rotateAxisAngle". 3825 func (this DOMMatrixReadOnly) FuncRotateAxisAngle3() (fn js.Func[func(x float64) DOMMatrix]) { 3826 bindings.FuncDOMMatrixReadOnlyRotateAxisAngle3( 3827 this.ref, js.Pointer(&fn), 3828 ) 3829 return 3830 } 3831 3832 // RotateAxisAngle3 calls the method "DOMMatrixReadOnly.rotateAxisAngle". 3833 func (this DOMMatrixReadOnly) RotateAxisAngle3(x float64) (ret DOMMatrix) { 3834 bindings.CallDOMMatrixReadOnlyRotateAxisAngle3( 3835 this.ref, js.Pointer(&ret), 3836 float64(x), 3837 ) 3838 3839 return 3840 } 3841 3842 // TryRotateAxisAngle3 calls the method "DOMMatrixReadOnly.rotateAxisAngle" 3843 // in a try/catch block and returns (_, err, ok = false) when it went through 3844 // the catch clause. 3845 func (this DOMMatrixReadOnly) TryRotateAxisAngle3(x float64) (ret DOMMatrix, exception js.Any, ok bool) { 3846 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateAxisAngle3( 3847 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3848 float64(x), 3849 ) 3850 3851 return 3852 } 3853 3854 // HasFuncRotateAxisAngle4 returns true if the method "DOMMatrixReadOnly.rotateAxisAngle" exists. 3855 func (this DOMMatrixReadOnly) HasFuncRotateAxisAngle4() bool { 3856 return js.True == bindings.HasFuncDOMMatrixReadOnlyRotateAxisAngle4( 3857 this.ref, 3858 ) 3859 } 3860 3861 // FuncRotateAxisAngle4 returns the method "DOMMatrixReadOnly.rotateAxisAngle". 3862 func (this DOMMatrixReadOnly) FuncRotateAxisAngle4() (fn js.Func[func() DOMMatrix]) { 3863 bindings.FuncDOMMatrixReadOnlyRotateAxisAngle4( 3864 this.ref, js.Pointer(&fn), 3865 ) 3866 return 3867 } 3868 3869 // RotateAxisAngle4 calls the method "DOMMatrixReadOnly.rotateAxisAngle". 3870 func (this DOMMatrixReadOnly) RotateAxisAngle4() (ret DOMMatrix) { 3871 bindings.CallDOMMatrixReadOnlyRotateAxisAngle4( 3872 this.ref, js.Pointer(&ret), 3873 ) 3874 3875 return 3876 } 3877 3878 // TryRotateAxisAngle4 calls the method "DOMMatrixReadOnly.rotateAxisAngle" 3879 // in a try/catch block and returns (_, err, ok = false) when it went through 3880 // the catch clause. 3881 func (this DOMMatrixReadOnly) TryRotateAxisAngle4() (ret DOMMatrix, exception js.Any, ok bool) { 3882 ok = js.True == bindings.TryDOMMatrixReadOnlyRotateAxisAngle4( 3883 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3884 ) 3885 3886 return 3887 } 3888 3889 // HasFuncSkewX returns true if the method "DOMMatrixReadOnly.skewX" exists. 3890 func (this DOMMatrixReadOnly) HasFuncSkewX() bool { 3891 return js.True == bindings.HasFuncDOMMatrixReadOnlySkewX( 3892 this.ref, 3893 ) 3894 } 3895 3896 // FuncSkewX returns the method "DOMMatrixReadOnly.skewX". 3897 func (this DOMMatrixReadOnly) FuncSkewX() (fn js.Func[func(sx float64) DOMMatrix]) { 3898 bindings.FuncDOMMatrixReadOnlySkewX( 3899 this.ref, js.Pointer(&fn), 3900 ) 3901 return 3902 } 3903 3904 // SkewX calls the method "DOMMatrixReadOnly.skewX". 3905 func (this DOMMatrixReadOnly) SkewX(sx float64) (ret DOMMatrix) { 3906 bindings.CallDOMMatrixReadOnlySkewX( 3907 this.ref, js.Pointer(&ret), 3908 float64(sx), 3909 ) 3910 3911 return 3912 } 3913 3914 // TrySkewX calls the method "DOMMatrixReadOnly.skewX" 3915 // in a try/catch block and returns (_, err, ok = false) when it went through 3916 // the catch clause. 3917 func (this DOMMatrixReadOnly) TrySkewX(sx float64) (ret DOMMatrix, exception js.Any, ok bool) { 3918 ok = js.True == bindings.TryDOMMatrixReadOnlySkewX( 3919 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3920 float64(sx), 3921 ) 3922 3923 return 3924 } 3925 3926 // HasFuncSkewX1 returns true if the method "DOMMatrixReadOnly.skewX" exists. 3927 func (this DOMMatrixReadOnly) HasFuncSkewX1() bool { 3928 return js.True == bindings.HasFuncDOMMatrixReadOnlySkewX1( 3929 this.ref, 3930 ) 3931 } 3932 3933 // FuncSkewX1 returns the method "DOMMatrixReadOnly.skewX". 3934 func (this DOMMatrixReadOnly) FuncSkewX1() (fn js.Func[func() DOMMatrix]) { 3935 bindings.FuncDOMMatrixReadOnlySkewX1( 3936 this.ref, js.Pointer(&fn), 3937 ) 3938 return 3939 } 3940 3941 // SkewX1 calls the method "DOMMatrixReadOnly.skewX". 3942 func (this DOMMatrixReadOnly) SkewX1() (ret DOMMatrix) { 3943 bindings.CallDOMMatrixReadOnlySkewX1( 3944 this.ref, js.Pointer(&ret), 3945 ) 3946 3947 return 3948 } 3949 3950 // TrySkewX1 calls the method "DOMMatrixReadOnly.skewX" 3951 // in a try/catch block and returns (_, err, ok = false) when it went through 3952 // the catch clause. 3953 func (this DOMMatrixReadOnly) TrySkewX1() (ret DOMMatrix, exception js.Any, ok bool) { 3954 ok = js.True == bindings.TryDOMMatrixReadOnlySkewX1( 3955 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3956 ) 3957 3958 return 3959 } 3960 3961 // HasFuncSkewY returns true if the method "DOMMatrixReadOnly.skewY" exists. 3962 func (this DOMMatrixReadOnly) HasFuncSkewY() bool { 3963 return js.True == bindings.HasFuncDOMMatrixReadOnlySkewY( 3964 this.ref, 3965 ) 3966 } 3967 3968 // FuncSkewY returns the method "DOMMatrixReadOnly.skewY". 3969 func (this DOMMatrixReadOnly) FuncSkewY() (fn js.Func[func(sy float64) DOMMatrix]) { 3970 bindings.FuncDOMMatrixReadOnlySkewY( 3971 this.ref, js.Pointer(&fn), 3972 ) 3973 return 3974 } 3975 3976 // SkewY calls the method "DOMMatrixReadOnly.skewY". 3977 func (this DOMMatrixReadOnly) SkewY(sy float64) (ret DOMMatrix) { 3978 bindings.CallDOMMatrixReadOnlySkewY( 3979 this.ref, js.Pointer(&ret), 3980 float64(sy), 3981 ) 3982 3983 return 3984 } 3985 3986 // TrySkewY calls the method "DOMMatrixReadOnly.skewY" 3987 // in a try/catch block and returns (_, err, ok = false) when it went through 3988 // the catch clause. 3989 func (this DOMMatrixReadOnly) TrySkewY(sy float64) (ret DOMMatrix, exception js.Any, ok bool) { 3990 ok = js.True == bindings.TryDOMMatrixReadOnlySkewY( 3991 this.ref, js.Pointer(&ret), js.Pointer(&exception), 3992 float64(sy), 3993 ) 3994 3995 return 3996 } 3997 3998 // HasFuncSkewY1 returns true if the method "DOMMatrixReadOnly.skewY" exists. 3999 func (this DOMMatrixReadOnly) HasFuncSkewY1() bool { 4000 return js.True == bindings.HasFuncDOMMatrixReadOnlySkewY1( 4001 this.ref, 4002 ) 4003 } 4004 4005 // FuncSkewY1 returns the method "DOMMatrixReadOnly.skewY". 4006 func (this DOMMatrixReadOnly) FuncSkewY1() (fn js.Func[func() DOMMatrix]) { 4007 bindings.FuncDOMMatrixReadOnlySkewY1( 4008 this.ref, js.Pointer(&fn), 4009 ) 4010 return 4011 } 4012 4013 // SkewY1 calls the method "DOMMatrixReadOnly.skewY". 4014 func (this DOMMatrixReadOnly) SkewY1() (ret DOMMatrix) { 4015 bindings.CallDOMMatrixReadOnlySkewY1( 4016 this.ref, js.Pointer(&ret), 4017 ) 4018 4019 return 4020 } 4021 4022 // TrySkewY1 calls the method "DOMMatrixReadOnly.skewY" 4023 // in a try/catch block and returns (_, err, ok = false) when it went through 4024 // the catch clause. 4025 func (this DOMMatrixReadOnly) TrySkewY1() (ret DOMMatrix, exception js.Any, ok bool) { 4026 ok = js.True == bindings.TryDOMMatrixReadOnlySkewY1( 4027 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4028 ) 4029 4030 return 4031 } 4032 4033 // HasFuncMultiply returns true if the method "DOMMatrixReadOnly.multiply" exists. 4034 func (this DOMMatrixReadOnly) HasFuncMultiply() bool { 4035 return js.True == bindings.HasFuncDOMMatrixReadOnlyMultiply( 4036 this.ref, 4037 ) 4038 } 4039 4040 // FuncMultiply returns the method "DOMMatrixReadOnly.multiply". 4041 func (this DOMMatrixReadOnly) FuncMultiply() (fn js.Func[func(other DOMMatrixInit) DOMMatrix]) { 4042 bindings.FuncDOMMatrixReadOnlyMultiply( 4043 this.ref, js.Pointer(&fn), 4044 ) 4045 return 4046 } 4047 4048 // Multiply calls the method "DOMMatrixReadOnly.multiply". 4049 func (this DOMMatrixReadOnly) Multiply(other DOMMatrixInit) (ret DOMMatrix) { 4050 bindings.CallDOMMatrixReadOnlyMultiply( 4051 this.ref, js.Pointer(&ret), 4052 js.Pointer(&other), 4053 ) 4054 4055 return 4056 } 4057 4058 // TryMultiply calls the method "DOMMatrixReadOnly.multiply" 4059 // in a try/catch block and returns (_, err, ok = false) when it went through 4060 // the catch clause. 4061 func (this DOMMatrixReadOnly) TryMultiply(other DOMMatrixInit) (ret DOMMatrix, exception js.Any, ok bool) { 4062 ok = js.True == bindings.TryDOMMatrixReadOnlyMultiply( 4063 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4064 js.Pointer(&other), 4065 ) 4066 4067 return 4068 } 4069 4070 // HasFuncMultiply1 returns true if the method "DOMMatrixReadOnly.multiply" exists. 4071 func (this DOMMatrixReadOnly) HasFuncMultiply1() bool { 4072 return js.True == bindings.HasFuncDOMMatrixReadOnlyMultiply1( 4073 this.ref, 4074 ) 4075 } 4076 4077 // FuncMultiply1 returns the method "DOMMatrixReadOnly.multiply". 4078 func (this DOMMatrixReadOnly) FuncMultiply1() (fn js.Func[func() DOMMatrix]) { 4079 bindings.FuncDOMMatrixReadOnlyMultiply1( 4080 this.ref, js.Pointer(&fn), 4081 ) 4082 return 4083 } 4084 4085 // Multiply1 calls the method "DOMMatrixReadOnly.multiply". 4086 func (this DOMMatrixReadOnly) Multiply1() (ret DOMMatrix) { 4087 bindings.CallDOMMatrixReadOnlyMultiply1( 4088 this.ref, js.Pointer(&ret), 4089 ) 4090 4091 return 4092 } 4093 4094 // TryMultiply1 calls the method "DOMMatrixReadOnly.multiply" 4095 // in a try/catch block and returns (_, err, ok = false) when it went through 4096 // the catch clause. 4097 func (this DOMMatrixReadOnly) TryMultiply1() (ret DOMMatrix, exception js.Any, ok bool) { 4098 ok = js.True == bindings.TryDOMMatrixReadOnlyMultiply1( 4099 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4100 ) 4101 4102 return 4103 } 4104 4105 // HasFuncFlipX returns true if the method "DOMMatrixReadOnly.flipX" exists. 4106 func (this DOMMatrixReadOnly) HasFuncFlipX() bool { 4107 return js.True == bindings.HasFuncDOMMatrixReadOnlyFlipX( 4108 this.ref, 4109 ) 4110 } 4111 4112 // FuncFlipX returns the method "DOMMatrixReadOnly.flipX". 4113 func (this DOMMatrixReadOnly) FuncFlipX() (fn js.Func[func() DOMMatrix]) { 4114 bindings.FuncDOMMatrixReadOnlyFlipX( 4115 this.ref, js.Pointer(&fn), 4116 ) 4117 return 4118 } 4119 4120 // FlipX calls the method "DOMMatrixReadOnly.flipX". 4121 func (this DOMMatrixReadOnly) FlipX() (ret DOMMatrix) { 4122 bindings.CallDOMMatrixReadOnlyFlipX( 4123 this.ref, js.Pointer(&ret), 4124 ) 4125 4126 return 4127 } 4128 4129 // TryFlipX calls the method "DOMMatrixReadOnly.flipX" 4130 // in a try/catch block and returns (_, err, ok = false) when it went through 4131 // the catch clause. 4132 func (this DOMMatrixReadOnly) TryFlipX() (ret DOMMatrix, exception js.Any, ok bool) { 4133 ok = js.True == bindings.TryDOMMatrixReadOnlyFlipX( 4134 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4135 ) 4136 4137 return 4138 } 4139 4140 // HasFuncFlipY returns true if the method "DOMMatrixReadOnly.flipY" exists. 4141 func (this DOMMatrixReadOnly) HasFuncFlipY() bool { 4142 return js.True == bindings.HasFuncDOMMatrixReadOnlyFlipY( 4143 this.ref, 4144 ) 4145 } 4146 4147 // FuncFlipY returns the method "DOMMatrixReadOnly.flipY". 4148 func (this DOMMatrixReadOnly) FuncFlipY() (fn js.Func[func() DOMMatrix]) { 4149 bindings.FuncDOMMatrixReadOnlyFlipY( 4150 this.ref, js.Pointer(&fn), 4151 ) 4152 return 4153 } 4154 4155 // FlipY calls the method "DOMMatrixReadOnly.flipY". 4156 func (this DOMMatrixReadOnly) FlipY() (ret DOMMatrix) { 4157 bindings.CallDOMMatrixReadOnlyFlipY( 4158 this.ref, js.Pointer(&ret), 4159 ) 4160 4161 return 4162 } 4163 4164 // TryFlipY calls the method "DOMMatrixReadOnly.flipY" 4165 // in a try/catch block and returns (_, err, ok = false) when it went through 4166 // the catch clause. 4167 func (this DOMMatrixReadOnly) TryFlipY() (ret DOMMatrix, exception js.Any, ok bool) { 4168 ok = js.True == bindings.TryDOMMatrixReadOnlyFlipY( 4169 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4170 ) 4171 4172 return 4173 } 4174 4175 // HasFuncInverse returns true if the method "DOMMatrixReadOnly.inverse" exists. 4176 func (this DOMMatrixReadOnly) HasFuncInverse() bool { 4177 return js.True == bindings.HasFuncDOMMatrixReadOnlyInverse( 4178 this.ref, 4179 ) 4180 } 4181 4182 // FuncInverse returns the method "DOMMatrixReadOnly.inverse". 4183 func (this DOMMatrixReadOnly) FuncInverse() (fn js.Func[func() DOMMatrix]) { 4184 bindings.FuncDOMMatrixReadOnlyInverse( 4185 this.ref, js.Pointer(&fn), 4186 ) 4187 return 4188 } 4189 4190 // Inverse calls the method "DOMMatrixReadOnly.inverse". 4191 func (this DOMMatrixReadOnly) Inverse() (ret DOMMatrix) { 4192 bindings.CallDOMMatrixReadOnlyInverse( 4193 this.ref, js.Pointer(&ret), 4194 ) 4195 4196 return 4197 } 4198 4199 // TryInverse calls the method "DOMMatrixReadOnly.inverse" 4200 // in a try/catch block and returns (_, err, ok = false) when it went through 4201 // the catch clause. 4202 func (this DOMMatrixReadOnly) TryInverse() (ret DOMMatrix, exception js.Any, ok bool) { 4203 ok = js.True == bindings.TryDOMMatrixReadOnlyInverse( 4204 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4205 ) 4206 4207 return 4208 } 4209 4210 // HasFuncTransformPoint returns true if the method "DOMMatrixReadOnly.transformPoint" exists. 4211 func (this DOMMatrixReadOnly) HasFuncTransformPoint() bool { 4212 return js.True == bindings.HasFuncDOMMatrixReadOnlyTransformPoint( 4213 this.ref, 4214 ) 4215 } 4216 4217 // FuncTransformPoint returns the method "DOMMatrixReadOnly.transformPoint". 4218 func (this DOMMatrixReadOnly) FuncTransformPoint() (fn js.Func[func(point DOMPointInit) DOMPoint]) { 4219 bindings.FuncDOMMatrixReadOnlyTransformPoint( 4220 this.ref, js.Pointer(&fn), 4221 ) 4222 return 4223 } 4224 4225 // TransformPoint calls the method "DOMMatrixReadOnly.transformPoint". 4226 func (this DOMMatrixReadOnly) TransformPoint(point DOMPointInit) (ret DOMPoint) { 4227 bindings.CallDOMMatrixReadOnlyTransformPoint( 4228 this.ref, js.Pointer(&ret), 4229 js.Pointer(&point), 4230 ) 4231 4232 return 4233 } 4234 4235 // TryTransformPoint calls the method "DOMMatrixReadOnly.transformPoint" 4236 // in a try/catch block and returns (_, err, ok = false) when it went through 4237 // the catch clause. 4238 func (this DOMMatrixReadOnly) TryTransformPoint(point DOMPointInit) (ret DOMPoint, exception js.Any, ok bool) { 4239 ok = js.True == bindings.TryDOMMatrixReadOnlyTransformPoint( 4240 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4241 js.Pointer(&point), 4242 ) 4243 4244 return 4245 } 4246 4247 // HasFuncTransformPoint1 returns true if the method "DOMMatrixReadOnly.transformPoint" exists. 4248 func (this DOMMatrixReadOnly) HasFuncTransformPoint1() bool { 4249 return js.True == bindings.HasFuncDOMMatrixReadOnlyTransformPoint1( 4250 this.ref, 4251 ) 4252 } 4253 4254 // FuncTransformPoint1 returns the method "DOMMatrixReadOnly.transformPoint". 4255 func (this DOMMatrixReadOnly) FuncTransformPoint1() (fn js.Func[func() DOMPoint]) { 4256 bindings.FuncDOMMatrixReadOnlyTransformPoint1( 4257 this.ref, js.Pointer(&fn), 4258 ) 4259 return 4260 } 4261 4262 // TransformPoint1 calls the method "DOMMatrixReadOnly.transformPoint". 4263 func (this DOMMatrixReadOnly) TransformPoint1() (ret DOMPoint) { 4264 bindings.CallDOMMatrixReadOnlyTransformPoint1( 4265 this.ref, js.Pointer(&ret), 4266 ) 4267 4268 return 4269 } 4270 4271 // TryTransformPoint1 calls the method "DOMMatrixReadOnly.transformPoint" 4272 // in a try/catch block and returns (_, err, ok = false) when it went through 4273 // the catch clause. 4274 func (this DOMMatrixReadOnly) TryTransformPoint1() (ret DOMPoint, exception js.Any, ok bool) { 4275 ok = js.True == bindings.TryDOMMatrixReadOnlyTransformPoint1( 4276 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4277 ) 4278 4279 return 4280 } 4281 4282 // HasFuncToFloat32Array returns true if the method "DOMMatrixReadOnly.toFloat32Array" exists. 4283 func (this DOMMatrixReadOnly) HasFuncToFloat32Array() bool { 4284 return js.True == bindings.HasFuncDOMMatrixReadOnlyToFloat32Array( 4285 this.ref, 4286 ) 4287 } 4288 4289 // FuncToFloat32Array returns the method "DOMMatrixReadOnly.toFloat32Array". 4290 func (this DOMMatrixReadOnly) FuncToFloat32Array() (fn js.Func[func() js.TypedArray[float32]]) { 4291 bindings.FuncDOMMatrixReadOnlyToFloat32Array( 4292 this.ref, js.Pointer(&fn), 4293 ) 4294 return 4295 } 4296 4297 // ToFloat32Array calls the method "DOMMatrixReadOnly.toFloat32Array". 4298 func (this DOMMatrixReadOnly) ToFloat32Array() (ret js.TypedArray[float32]) { 4299 bindings.CallDOMMatrixReadOnlyToFloat32Array( 4300 this.ref, js.Pointer(&ret), 4301 ) 4302 4303 return 4304 } 4305 4306 // TryToFloat32Array calls the method "DOMMatrixReadOnly.toFloat32Array" 4307 // in a try/catch block and returns (_, err, ok = false) when it went through 4308 // the catch clause. 4309 func (this DOMMatrixReadOnly) TryToFloat32Array() (ret js.TypedArray[float32], exception js.Any, ok bool) { 4310 ok = js.True == bindings.TryDOMMatrixReadOnlyToFloat32Array( 4311 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4312 ) 4313 4314 return 4315 } 4316 4317 // HasFuncToFloat64Array returns true if the method "DOMMatrixReadOnly.toFloat64Array" exists. 4318 func (this DOMMatrixReadOnly) HasFuncToFloat64Array() bool { 4319 return js.True == bindings.HasFuncDOMMatrixReadOnlyToFloat64Array( 4320 this.ref, 4321 ) 4322 } 4323 4324 // FuncToFloat64Array returns the method "DOMMatrixReadOnly.toFloat64Array". 4325 func (this DOMMatrixReadOnly) FuncToFloat64Array() (fn js.Func[func() js.TypedArray[float64]]) { 4326 bindings.FuncDOMMatrixReadOnlyToFloat64Array( 4327 this.ref, js.Pointer(&fn), 4328 ) 4329 return 4330 } 4331 4332 // ToFloat64Array calls the method "DOMMatrixReadOnly.toFloat64Array". 4333 func (this DOMMatrixReadOnly) ToFloat64Array() (ret js.TypedArray[float64]) { 4334 bindings.CallDOMMatrixReadOnlyToFloat64Array( 4335 this.ref, js.Pointer(&ret), 4336 ) 4337 4338 return 4339 } 4340 4341 // TryToFloat64Array calls the method "DOMMatrixReadOnly.toFloat64Array" 4342 // in a try/catch block and returns (_, err, ok = false) when it went through 4343 // the catch clause. 4344 func (this DOMMatrixReadOnly) TryToFloat64Array() (ret js.TypedArray[float64], exception js.Any, ok bool) { 4345 ok = js.True == bindings.TryDOMMatrixReadOnlyToFloat64Array( 4346 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4347 ) 4348 4349 return 4350 } 4351 4352 // HasFuncToString returns true if the method "DOMMatrixReadOnly.toString" exists. 4353 func (this DOMMatrixReadOnly) HasFuncToString() bool { 4354 return js.True == bindings.HasFuncDOMMatrixReadOnlyToString( 4355 this.ref, 4356 ) 4357 } 4358 4359 // FuncToString returns the method "DOMMatrixReadOnly.toString". 4360 func (this DOMMatrixReadOnly) FuncToString() (fn js.Func[func() js.String]) { 4361 bindings.FuncDOMMatrixReadOnlyToString( 4362 this.ref, js.Pointer(&fn), 4363 ) 4364 return 4365 } 4366 4367 // ToString calls the method "DOMMatrixReadOnly.toString". 4368 func (this DOMMatrixReadOnly) ToString() (ret js.String) { 4369 bindings.CallDOMMatrixReadOnlyToString( 4370 this.ref, js.Pointer(&ret), 4371 ) 4372 4373 return 4374 } 4375 4376 // TryToString calls the method "DOMMatrixReadOnly.toString" 4377 // in a try/catch block and returns (_, err, ok = false) when it went through 4378 // the catch clause. 4379 func (this DOMMatrixReadOnly) TryToString() (ret js.String, exception js.Any, ok bool) { 4380 ok = js.True == bindings.TryDOMMatrixReadOnlyToString( 4381 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4382 ) 4383 4384 return 4385 } 4386 4387 // HasFuncToJSON returns true if the method "DOMMatrixReadOnly.toJSON" exists. 4388 func (this DOMMatrixReadOnly) HasFuncToJSON() bool { 4389 return js.True == bindings.HasFuncDOMMatrixReadOnlyToJSON( 4390 this.ref, 4391 ) 4392 } 4393 4394 // FuncToJSON returns the method "DOMMatrixReadOnly.toJSON". 4395 func (this DOMMatrixReadOnly) FuncToJSON() (fn js.Func[func() js.Object]) { 4396 bindings.FuncDOMMatrixReadOnlyToJSON( 4397 this.ref, js.Pointer(&fn), 4398 ) 4399 return 4400 } 4401 4402 // ToJSON calls the method "DOMMatrixReadOnly.toJSON". 4403 func (this DOMMatrixReadOnly) ToJSON() (ret js.Object) { 4404 bindings.CallDOMMatrixReadOnlyToJSON( 4405 this.ref, js.Pointer(&ret), 4406 ) 4407 4408 return 4409 } 4410 4411 // TryToJSON calls the method "DOMMatrixReadOnly.toJSON" 4412 // in a try/catch block and returns (_, err, ok = false) when it went through 4413 // the catch clause. 4414 func (this DOMMatrixReadOnly) TryToJSON() (ret js.Object, exception js.Any, ok bool) { 4415 ok = js.True == bindings.TryDOMMatrixReadOnlyToJSON( 4416 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4417 ) 4418 4419 return 4420 } 4421 4422 type CSSMatrixComponentOptions struct { 4423 // Is2D is "CSSMatrixComponentOptions.is2D" 4424 // 4425 // Optional 4426 // 4427 // NOTE: FFI_USE_Is2D MUST be set to true to make this field effective. 4428 Is2D bool 4429 4430 FFI_USE_Is2D bool // for Is2D. 4431 4432 FFI_USE bool 4433 } 4434 4435 // FromRef calls UpdateFrom and returns a CSSMatrixComponentOptions with all fields set. 4436 func (p CSSMatrixComponentOptions) FromRef(ref js.Ref) CSSMatrixComponentOptions { 4437 p.UpdateFrom(ref) 4438 return p 4439 } 4440 4441 // New creates a new CSSMatrixComponentOptions in the application heap. 4442 func (p CSSMatrixComponentOptions) New() js.Ref { 4443 return bindings.CSSMatrixComponentOptionsJSLoad( 4444 js.Pointer(&p), js.True, 0, 4445 ) 4446 } 4447 4448 // UpdateFrom copies value of all fields of the heap object to p. 4449 func (p *CSSMatrixComponentOptions) UpdateFrom(ref js.Ref) { 4450 bindings.CSSMatrixComponentOptionsJSStore( 4451 js.Pointer(p), ref, 4452 ) 4453 } 4454 4455 // Update writes all fields of the p to the heap object referenced by ref. 4456 func (p *CSSMatrixComponentOptions) Update(ref js.Ref) { 4457 bindings.CSSMatrixComponentOptionsJSLoad( 4458 js.Pointer(p), js.False, ref, 4459 ) 4460 } 4461 4462 // FreeMembers frees fields with heap reference, if recursive is true 4463 // free all heap references reachable from p. 4464 func (p *CSSMatrixComponentOptions) FreeMembers(recursive bool) { 4465 } 4466 4467 func NewCSSMatrixComponent(matrix DOMMatrixReadOnly, options CSSMatrixComponentOptions) (ret CSSMatrixComponent) { 4468 ret.ref = bindings.NewCSSMatrixComponentByCSSMatrixComponent( 4469 matrix.Ref(), 4470 js.Pointer(&options)) 4471 return 4472 } 4473 4474 func NewCSSMatrixComponentByCSSMatrixComponent1(matrix DOMMatrixReadOnly) (ret CSSMatrixComponent) { 4475 ret.ref = bindings.NewCSSMatrixComponentByCSSMatrixComponent1( 4476 matrix.Ref()) 4477 return 4478 } 4479 4480 type CSSMatrixComponent struct { 4481 CSSTransformComponent 4482 } 4483 4484 func (this CSSMatrixComponent) Once() CSSMatrixComponent { 4485 this.ref.Once() 4486 return this 4487 } 4488 4489 func (this CSSMatrixComponent) Ref() js.Ref { 4490 return this.CSSTransformComponent.Ref() 4491 } 4492 4493 func (this CSSMatrixComponent) FromRef(ref js.Ref) CSSMatrixComponent { 4494 this.CSSTransformComponent = this.CSSTransformComponent.FromRef(ref) 4495 return this 4496 } 4497 4498 func (this CSSMatrixComponent) Free() { 4499 this.ref.Free() 4500 } 4501 4502 // Matrix returns the value of property "CSSMatrixComponent.matrix". 4503 // 4504 // It returns ok=false if there is no such property. 4505 func (this CSSMatrixComponent) Matrix() (ret DOMMatrix, ok bool) { 4506 ok = js.True == bindings.GetCSSMatrixComponentMatrix( 4507 this.ref, js.Pointer(&ret), 4508 ) 4509 return 4510 } 4511 4512 // SetMatrix sets the value of property "CSSMatrixComponent.matrix" to val. 4513 // 4514 // It returns false if the property cannot be set. 4515 func (this CSSMatrixComponent) SetMatrix(val DOMMatrix) bool { 4516 return js.True == bindings.SetCSSMatrixComponentMatrix( 4517 this.ref, 4518 val.Ref(), 4519 ) 4520 } 4521 4522 type CSSMediaRule struct { 4523 CSSConditionRule 4524 } 4525 4526 func (this CSSMediaRule) Once() CSSMediaRule { 4527 this.ref.Once() 4528 return this 4529 } 4530 4531 func (this CSSMediaRule) Ref() js.Ref { 4532 return this.CSSConditionRule.Ref() 4533 } 4534 4535 func (this CSSMediaRule) FromRef(ref js.Ref) CSSMediaRule { 4536 this.CSSConditionRule = this.CSSConditionRule.FromRef(ref) 4537 return this 4538 } 4539 4540 func (this CSSMediaRule) Free() { 4541 this.ref.Free() 4542 } 4543 4544 // Media returns the value of property "CSSMediaRule.media". 4545 // 4546 // It returns ok=false if there is no such property. 4547 func (this CSSMediaRule) Media() (ret MediaList, ok bool) { 4548 ok = js.True == bindings.GetCSSMediaRuleMedia( 4549 this.ref, js.Pointer(&ret), 4550 ) 4551 return 4552 } 4553 4554 type CSSNamespaceRule struct { 4555 CSSRule 4556 } 4557 4558 func (this CSSNamespaceRule) Once() CSSNamespaceRule { 4559 this.ref.Once() 4560 return this 4561 } 4562 4563 func (this CSSNamespaceRule) Ref() js.Ref { 4564 return this.CSSRule.Ref() 4565 } 4566 4567 func (this CSSNamespaceRule) FromRef(ref js.Ref) CSSNamespaceRule { 4568 this.CSSRule = this.CSSRule.FromRef(ref) 4569 return this 4570 } 4571 4572 func (this CSSNamespaceRule) Free() { 4573 this.ref.Free() 4574 } 4575 4576 // NamespaceURI returns the value of property "CSSNamespaceRule.namespaceURI". 4577 // 4578 // It returns ok=false if there is no such property. 4579 func (this CSSNamespaceRule) NamespaceURI() (ret js.String, ok bool) { 4580 ok = js.True == bindings.GetCSSNamespaceRuleNamespaceURI( 4581 this.ref, js.Pointer(&ret), 4582 ) 4583 return 4584 } 4585 4586 // Prefix returns the value of property "CSSNamespaceRule.prefix". 4587 // 4588 // It returns ok=false if there is no such property. 4589 func (this CSSNamespaceRule) Prefix() (ret js.String, ok bool) { 4590 ok = js.True == bindings.GetCSSNamespaceRulePrefix( 4591 this.ref, js.Pointer(&ret), 4592 ) 4593 return 4594 } 4595 4596 func NewCSSOKLCH(l CSSColorPercent, c CSSColorPercent, h CSSColorAngle, alpha CSSColorPercent) (ret CSSOKLCH) { 4597 ret.ref = bindings.NewCSSOKLCHByCSSOKLCH( 4598 l.Ref(), 4599 c.Ref(), 4600 h.Ref(), 4601 alpha.Ref()) 4602 return 4603 } 4604 4605 func NewCSSOKLCHByCSSOKLCH1(l CSSColorPercent, c CSSColorPercent, h CSSColorAngle) (ret CSSOKLCH) { 4606 ret.ref = bindings.NewCSSOKLCHByCSSOKLCH1( 4607 l.Ref(), 4608 c.Ref(), 4609 h.Ref()) 4610 return 4611 } 4612 4613 type CSSOKLCH struct { 4614 CSSColorValue 4615 } 4616 4617 func (this CSSOKLCH) Once() CSSOKLCH { 4618 this.ref.Once() 4619 return this 4620 } 4621 4622 func (this CSSOKLCH) Ref() js.Ref { 4623 return this.CSSColorValue.Ref() 4624 } 4625 4626 func (this CSSOKLCH) FromRef(ref js.Ref) CSSOKLCH { 4627 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 4628 return this 4629 } 4630 4631 func (this CSSOKLCH) Free() { 4632 this.ref.Free() 4633 } 4634 4635 // L returns the value of property "CSSOKLCH.l". 4636 // 4637 // It returns ok=false if there is no such property. 4638 func (this CSSOKLCH) L() (ret CSSColorPercent, ok bool) { 4639 ok = js.True == bindings.GetCSSOKLCHL( 4640 this.ref, js.Pointer(&ret), 4641 ) 4642 return 4643 } 4644 4645 // SetL sets the value of property "CSSOKLCH.l" to val. 4646 // 4647 // It returns false if the property cannot be set. 4648 func (this CSSOKLCH) SetL(val CSSColorPercent) bool { 4649 return js.True == bindings.SetCSSOKLCHL( 4650 this.ref, 4651 val.Ref(), 4652 ) 4653 } 4654 4655 // C returns the value of property "CSSOKLCH.c". 4656 // 4657 // It returns ok=false if there is no such property. 4658 func (this CSSOKLCH) C() (ret CSSColorPercent, ok bool) { 4659 ok = js.True == bindings.GetCSSOKLCHC( 4660 this.ref, js.Pointer(&ret), 4661 ) 4662 return 4663 } 4664 4665 // SetC sets the value of property "CSSOKLCH.c" to val. 4666 // 4667 // It returns false if the property cannot be set. 4668 func (this CSSOKLCH) SetC(val CSSColorPercent) bool { 4669 return js.True == bindings.SetCSSOKLCHC( 4670 this.ref, 4671 val.Ref(), 4672 ) 4673 } 4674 4675 // H returns the value of property "CSSOKLCH.h". 4676 // 4677 // It returns ok=false if there is no such property. 4678 func (this CSSOKLCH) H() (ret CSSColorAngle, ok bool) { 4679 ok = js.True == bindings.GetCSSOKLCHH( 4680 this.ref, js.Pointer(&ret), 4681 ) 4682 return 4683 } 4684 4685 // SetH sets the value of property "CSSOKLCH.h" to val. 4686 // 4687 // It returns false if the property cannot be set. 4688 func (this CSSOKLCH) SetH(val CSSColorAngle) bool { 4689 return js.True == bindings.SetCSSOKLCHH( 4690 this.ref, 4691 val.Ref(), 4692 ) 4693 } 4694 4695 // Alpha returns the value of property "CSSOKLCH.alpha". 4696 // 4697 // It returns ok=false if there is no such property. 4698 func (this CSSOKLCH) Alpha() (ret CSSColorPercent, ok bool) { 4699 ok = js.True == bindings.GetCSSOKLCHAlpha( 4700 this.ref, js.Pointer(&ret), 4701 ) 4702 return 4703 } 4704 4705 // SetAlpha sets the value of property "CSSOKLCH.alpha" to val. 4706 // 4707 // It returns false if the property cannot be set. 4708 func (this CSSOKLCH) SetAlpha(val CSSColorPercent) bool { 4709 return js.True == bindings.SetCSSOKLCHAlpha( 4710 this.ref, 4711 val.Ref(), 4712 ) 4713 } 4714 4715 func NewCSSOKLab(l CSSColorPercent, a CSSColorNumber, b CSSColorNumber, alpha CSSColorPercent) (ret CSSOKLab) { 4716 ret.ref = bindings.NewCSSOKLabByCSSOKLab( 4717 l.Ref(), 4718 a.Ref(), 4719 b.Ref(), 4720 alpha.Ref()) 4721 return 4722 } 4723 4724 func NewCSSOKLabByCSSOKLab1(l CSSColorPercent, a CSSColorNumber, b CSSColorNumber) (ret CSSOKLab) { 4725 ret.ref = bindings.NewCSSOKLabByCSSOKLab1( 4726 l.Ref(), 4727 a.Ref(), 4728 b.Ref()) 4729 return 4730 } 4731 4732 type CSSOKLab struct { 4733 CSSColorValue 4734 } 4735 4736 func (this CSSOKLab) Once() CSSOKLab { 4737 this.ref.Once() 4738 return this 4739 } 4740 4741 func (this CSSOKLab) Ref() js.Ref { 4742 return this.CSSColorValue.Ref() 4743 } 4744 4745 func (this CSSOKLab) FromRef(ref js.Ref) CSSOKLab { 4746 this.CSSColorValue = this.CSSColorValue.FromRef(ref) 4747 return this 4748 } 4749 4750 func (this CSSOKLab) Free() { 4751 this.ref.Free() 4752 } 4753 4754 // L returns the value of property "CSSOKLab.l". 4755 // 4756 // It returns ok=false if there is no such property. 4757 func (this CSSOKLab) L() (ret CSSColorPercent, ok bool) { 4758 ok = js.True == bindings.GetCSSOKLabL( 4759 this.ref, js.Pointer(&ret), 4760 ) 4761 return 4762 } 4763 4764 // SetL sets the value of property "CSSOKLab.l" to val. 4765 // 4766 // It returns false if the property cannot be set. 4767 func (this CSSOKLab) SetL(val CSSColorPercent) bool { 4768 return js.True == bindings.SetCSSOKLabL( 4769 this.ref, 4770 val.Ref(), 4771 ) 4772 } 4773 4774 // A returns the value of property "CSSOKLab.a". 4775 // 4776 // It returns ok=false if there is no such property. 4777 func (this CSSOKLab) A() (ret CSSColorNumber, ok bool) { 4778 ok = js.True == bindings.GetCSSOKLabA( 4779 this.ref, js.Pointer(&ret), 4780 ) 4781 return 4782 } 4783 4784 // SetA sets the value of property "CSSOKLab.a" to val. 4785 // 4786 // It returns false if the property cannot be set. 4787 func (this CSSOKLab) SetA(val CSSColorNumber) bool { 4788 return js.True == bindings.SetCSSOKLabA( 4789 this.ref, 4790 val.Ref(), 4791 ) 4792 } 4793 4794 // B returns the value of property "CSSOKLab.b". 4795 // 4796 // It returns ok=false if there is no such property. 4797 func (this CSSOKLab) B() (ret CSSColorNumber, ok bool) { 4798 ok = js.True == bindings.GetCSSOKLabB( 4799 this.ref, js.Pointer(&ret), 4800 ) 4801 return 4802 } 4803 4804 // SetB sets the value of property "CSSOKLab.b" to val. 4805 // 4806 // It returns false if the property cannot be set. 4807 func (this CSSOKLab) SetB(val CSSColorNumber) bool { 4808 return js.True == bindings.SetCSSOKLabB( 4809 this.ref, 4810 val.Ref(), 4811 ) 4812 } 4813 4814 // Alpha returns the value of property "CSSOKLab.alpha". 4815 // 4816 // It returns ok=false if there is no such property. 4817 func (this CSSOKLab) Alpha() (ret CSSColorPercent, ok bool) { 4818 ok = js.True == bindings.GetCSSOKLabAlpha( 4819 this.ref, js.Pointer(&ret), 4820 ) 4821 return 4822 } 4823 4824 // SetAlpha sets the value of property "CSSOKLab.alpha" to val. 4825 // 4826 // It returns false if the property cannot be set. 4827 func (this CSSOKLab) SetAlpha(val CSSColorPercent) bool { 4828 return js.True == bindings.SetCSSOKLabAlpha( 4829 this.ref, 4830 val.Ref(), 4831 ) 4832 } 4833 4834 type CSSPageRule struct { 4835 CSSGroupingRule 4836 } 4837 4838 func (this CSSPageRule) Once() CSSPageRule { 4839 this.ref.Once() 4840 return this 4841 } 4842 4843 func (this CSSPageRule) Ref() js.Ref { 4844 return this.CSSGroupingRule.Ref() 4845 } 4846 4847 func (this CSSPageRule) FromRef(ref js.Ref) CSSPageRule { 4848 this.CSSGroupingRule = this.CSSGroupingRule.FromRef(ref) 4849 return this 4850 } 4851 4852 func (this CSSPageRule) Free() { 4853 this.ref.Free() 4854 } 4855 4856 // SelectorText returns the value of property "CSSPageRule.selectorText". 4857 // 4858 // It returns ok=false if there is no such property. 4859 func (this CSSPageRule) SelectorText() (ret js.String, ok bool) { 4860 ok = js.True == bindings.GetCSSPageRuleSelectorText( 4861 this.ref, js.Pointer(&ret), 4862 ) 4863 return 4864 } 4865 4866 // SetSelectorText sets the value of property "CSSPageRule.selectorText" to val. 4867 // 4868 // It returns false if the property cannot be set. 4869 func (this CSSPageRule) SetSelectorText(val js.String) bool { 4870 return js.True == bindings.SetCSSPageRuleSelectorText( 4871 this.ref, 4872 val.Ref(), 4873 ) 4874 } 4875 4876 // Style returns the value of property "CSSPageRule.style". 4877 // 4878 // It returns ok=false if there is no such property. 4879 func (this CSSPageRule) Style() (ret CSSStyleDeclaration, ok bool) { 4880 ok = js.True == bindings.GetCSSPageRuleStyle( 4881 this.ref, js.Pointer(&ret), 4882 ) 4883 return 4884 } 4885 4886 func NewCSSParserAtRule(name js.String, prelude js.Array[CSSToken], body js.Array[CSSParserRule]) (ret CSSParserAtRule) { 4887 ret.ref = bindings.NewCSSParserAtRuleByCSSParserAtRule( 4888 name.Ref(), 4889 prelude.Ref(), 4890 body.Ref()) 4891 return 4892 } 4893 4894 func NewCSSParserAtRuleByCSSParserAtRule1(name js.String, prelude js.Array[CSSToken]) (ret CSSParserAtRule) { 4895 ret.ref = bindings.NewCSSParserAtRuleByCSSParserAtRule1( 4896 name.Ref(), 4897 prelude.Ref()) 4898 return 4899 } 4900 4901 type CSSParserAtRule struct { 4902 CSSParserRule 4903 } 4904 4905 func (this CSSParserAtRule) Once() CSSParserAtRule { 4906 this.ref.Once() 4907 return this 4908 } 4909 4910 func (this CSSParserAtRule) Ref() js.Ref { 4911 return this.CSSParserRule.Ref() 4912 } 4913 4914 func (this CSSParserAtRule) FromRef(ref js.Ref) CSSParserAtRule { 4915 this.CSSParserRule = this.CSSParserRule.FromRef(ref) 4916 return this 4917 } 4918 4919 func (this CSSParserAtRule) Free() { 4920 this.ref.Free() 4921 } 4922 4923 // Name returns the value of property "CSSParserAtRule.name". 4924 // 4925 // It returns ok=false if there is no such property. 4926 func (this CSSParserAtRule) Name() (ret js.String, ok bool) { 4927 ok = js.True == bindings.GetCSSParserAtRuleName( 4928 this.ref, js.Pointer(&ret), 4929 ) 4930 return 4931 } 4932 4933 // Prelude returns the value of property "CSSParserAtRule.prelude". 4934 // 4935 // It returns ok=false if there is no such property. 4936 func (this CSSParserAtRule) Prelude() (ret js.FrozenArray[CSSParserValue], ok bool) { 4937 ok = js.True == bindings.GetCSSParserAtRulePrelude( 4938 this.ref, js.Pointer(&ret), 4939 ) 4940 return 4941 } 4942 4943 // Body returns the value of property "CSSParserAtRule.body". 4944 // 4945 // It returns ok=false if there is no such property. 4946 func (this CSSParserAtRule) Body() (ret js.FrozenArray[CSSParserRule], ok bool) { 4947 ok = js.True == bindings.GetCSSParserAtRuleBody( 4948 this.ref, js.Pointer(&ret), 4949 ) 4950 return 4951 } 4952 4953 // HasFuncToString returns true if the method "CSSParserAtRule.toString" exists. 4954 func (this CSSParserAtRule) HasFuncToString() bool { 4955 return js.True == bindings.HasFuncCSSParserAtRuleToString( 4956 this.ref, 4957 ) 4958 } 4959 4960 // FuncToString returns the method "CSSParserAtRule.toString". 4961 func (this CSSParserAtRule) FuncToString() (fn js.Func[func() js.String]) { 4962 bindings.FuncCSSParserAtRuleToString( 4963 this.ref, js.Pointer(&fn), 4964 ) 4965 return 4966 } 4967 4968 // ToString calls the method "CSSParserAtRule.toString". 4969 func (this CSSParserAtRule) ToString() (ret js.String) { 4970 bindings.CallCSSParserAtRuleToString( 4971 this.ref, js.Pointer(&ret), 4972 ) 4973 4974 return 4975 } 4976 4977 // TryToString calls the method "CSSParserAtRule.toString" 4978 // in a try/catch block and returns (_, err, ok = false) when it went through 4979 // the catch clause. 4980 func (this CSSParserAtRule) TryToString() (ret js.String, exception js.Any, ok bool) { 4981 ok = js.True == bindings.TryCSSParserAtRuleToString( 4982 this.ref, js.Pointer(&ret), js.Pointer(&exception), 4983 ) 4984 4985 return 4986 } 4987 4988 func NewCSSParserBlock(name js.String, body js.Array[CSSParserValue]) (ret CSSParserBlock) { 4989 ret.ref = bindings.NewCSSParserBlockByCSSParserBlock( 4990 name.Ref(), 4991 body.Ref()) 4992 return 4993 } 4994 4995 type CSSParserBlock struct { 4996 CSSParserValue 4997 } 4998 4999 func (this CSSParserBlock) Once() CSSParserBlock { 5000 this.ref.Once() 5001 return this 5002 } 5003 5004 func (this CSSParserBlock) Ref() js.Ref { 5005 return this.CSSParserValue.Ref() 5006 } 5007 5008 func (this CSSParserBlock) FromRef(ref js.Ref) CSSParserBlock { 5009 this.CSSParserValue = this.CSSParserValue.FromRef(ref) 5010 return this 5011 } 5012 5013 func (this CSSParserBlock) Free() { 5014 this.ref.Free() 5015 } 5016 5017 // Name returns the value of property "CSSParserBlock.name". 5018 // 5019 // It returns ok=false if there is no such property. 5020 func (this CSSParserBlock) Name() (ret js.String, ok bool) { 5021 ok = js.True == bindings.GetCSSParserBlockName( 5022 this.ref, js.Pointer(&ret), 5023 ) 5024 return 5025 } 5026 5027 // Body returns the value of property "CSSParserBlock.body". 5028 // 5029 // It returns ok=false if there is no such property. 5030 func (this CSSParserBlock) Body() (ret js.FrozenArray[CSSParserValue], ok bool) { 5031 ok = js.True == bindings.GetCSSParserBlockBody( 5032 this.ref, js.Pointer(&ret), 5033 ) 5034 return 5035 } 5036 5037 // HasFuncToString returns true if the method "CSSParserBlock.toString" exists. 5038 func (this CSSParserBlock) HasFuncToString() bool { 5039 return js.True == bindings.HasFuncCSSParserBlockToString( 5040 this.ref, 5041 ) 5042 } 5043 5044 // FuncToString returns the method "CSSParserBlock.toString". 5045 func (this CSSParserBlock) FuncToString() (fn js.Func[func() js.String]) { 5046 bindings.FuncCSSParserBlockToString( 5047 this.ref, js.Pointer(&fn), 5048 ) 5049 return 5050 } 5051 5052 // ToString calls the method "CSSParserBlock.toString". 5053 func (this CSSParserBlock) ToString() (ret js.String) { 5054 bindings.CallCSSParserBlockToString( 5055 this.ref, js.Pointer(&ret), 5056 ) 5057 5058 return 5059 } 5060 5061 // TryToString calls the method "CSSParserBlock.toString" 5062 // in a try/catch block and returns (_, err, ok = false) when it went through 5063 // the catch clause. 5064 func (this CSSParserBlock) TryToString() (ret js.String, exception js.Any, ok bool) { 5065 ok = js.True == bindings.TryCSSParserBlockToString( 5066 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5067 ) 5068 5069 return 5070 } 5071 5072 func NewCSSParserFunction(name js.String, args js.Array[js.Array[CSSParserValue]]) (ret CSSParserFunction) { 5073 ret.ref = bindings.NewCSSParserFunctionByCSSParserFunction( 5074 name.Ref(), 5075 args.Ref()) 5076 return 5077 } 5078 5079 type CSSParserFunction struct { 5080 CSSParserValue 5081 } 5082 5083 func (this CSSParserFunction) Once() CSSParserFunction { 5084 this.ref.Once() 5085 return this 5086 } 5087 5088 func (this CSSParserFunction) Ref() js.Ref { 5089 return this.CSSParserValue.Ref() 5090 } 5091 5092 func (this CSSParserFunction) FromRef(ref js.Ref) CSSParserFunction { 5093 this.CSSParserValue = this.CSSParserValue.FromRef(ref) 5094 return this 5095 } 5096 5097 func (this CSSParserFunction) Free() { 5098 this.ref.Free() 5099 } 5100 5101 // Name returns the value of property "CSSParserFunction.name". 5102 // 5103 // It returns ok=false if there is no such property. 5104 func (this CSSParserFunction) Name() (ret js.String, ok bool) { 5105 ok = js.True == bindings.GetCSSParserFunctionName( 5106 this.ref, js.Pointer(&ret), 5107 ) 5108 return 5109 } 5110 5111 // Args returns the value of property "CSSParserFunction.args". 5112 // 5113 // It returns ok=false if there is no such property. 5114 func (this CSSParserFunction) Args() (ret js.FrozenArray[js.FrozenArray[CSSParserValue]], ok bool) { 5115 ok = js.True == bindings.GetCSSParserFunctionArgs( 5116 this.ref, js.Pointer(&ret), 5117 ) 5118 return 5119 } 5120 5121 // HasFuncToString returns true if the method "CSSParserFunction.toString" exists. 5122 func (this CSSParserFunction) HasFuncToString() bool { 5123 return js.True == bindings.HasFuncCSSParserFunctionToString( 5124 this.ref, 5125 ) 5126 } 5127 5128 // FuncToString returns the method "CSSParserFunction.toString". 5129 func (this CSSParserFunction) FuncToString() (fn js.Func[func() js.String]) { 5130 bindings.FuncCSSParserFunctionToString( 5131 this.ref, js.Pointer(&fn), 5132 ) 5133 return 5134 } 5135 5136 // ToString calls the method "CSSParserFunction.toString". 5137 func (this CSSParserFunction) ToString() (ret js.String) { 5138 bindings.CallCSSParserFunctionToString( 5139 this.ref, js.Pointer(&ret), 5140 ) 5141 5142 return 5143 } 5144 5145 // TryToString calls the method "CSSParserFunction.toString" 5146 // in a try/catch block and returns (_, err, ok = false) when it went through 5147 // the catch clause. 5148 func (this CSSParserFunction) TryToString() (ret js.String, exception js.Any, ok bool) { 5149 ok = js.True == bindings.TryCSSParserFunctionToString( 5150 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5151 ) 5152 5153 return 5154 } 5155 5156 func NewCSSParserQualifiedRule(prelude js.Array[CSSToken], body js.Array[CSSParserRule]) (ret CSSParserQualifiedRule) { 5157 ret.ref = bindings.NewCSSParserQualifiedRuleByCSSParserQualifiedRule( 5158 prelude.Ref(), 5159 body.Ref()) 5160 return 5161 } 5162 5163 func NewCSSParserQualifiedRuleByCSSParserQualifiedRule1(prelude js.Array[CSSToken]) (ret CSSParserQualifiedRule) { 5164 ret.ref = bindings.NewCSSParserQualifiedRuleByCSSParserQualifiedRule1( 5165 prelude.Ref()) 5166 return 5167 } 5168 5169 type CSSParserQualifiedRule struct { 5170 CSSParserRule 5171 } 5172 5173 func (this CSSParserQualifiedRule) Once() CSSParserQualifiedRule { 5174 this.ref.Once() 5175 return this 5176 } 5177 5178 func (this CSSParserQualifiedRule) Ref() js.Ref { 5179 return this.CSSParserRule.Ref() 5180 } 5181 5182 func (this CSSParserQualifiedRule) FromRef(ref js.Ref) CSSParserQualifiedRule { 5183 this.CSSParserRule = this.CSSParserRule.FromRef(ref) 5184 return this 5185 } 5186 5187 func (this CSSParserQualifiedRule) Free() { 5188 this.ref.Free() 5189 } 5190 5191 // Prelude returns the value of property "CSSParserQualifiedRule.prelude". 5192 // 5193 // It returns ok=false if there is no such property. 5194 func (this CSSParserQualifiedRule) Prelude() (ret js.FrozenArray[CSSParserValue], ok bool) { 5195 ok = js.True == bindings.GetCSSParserQualifiedRulePrelude( 5196 this.ref, js.Pointer(&ret), 5197 ) 5198 return 5199 } 5200 5201 // Body returns the value of property "CSSParserQualifiedRule.body". 5202 // 5203 // It returns ok=false if there is no such property. 5204 func (this CSSParserQualifiedRule) Body() (ret js.FrozenArray[CSSParserRule], ok bool) { 5205 ok = js.True == bindings.GetCSSParserQualifiedRuleBody( 5206 this.ref, js.Pointer(&ret), 5207 ) 5208 return 5209 } 5210 5211 // HasFuncToString returns true if the method "CSSParserQualifiedRule.toString" exists. 5212 func (this CSSParserQualifiedRule) HasFuncToString() bool { 5213 return js.True == bindings.HasFuncCSSParserQualifiedRuleToString( 5214 this.ref, 5215 ) 5216 } 5217 5218 // FuncToString returns the method "CSSParserQualifiedRule.toString". 5219 func (this CSSParserQualifiedRule) FuncToString() (fn js.Func[func() js.String]) { 5220 bindings.FuncCSSParserQualifiedRuleToString( 5221 this.ref, js.Pointer(&fn), 5222 ) 5223 return 5224 } 5225 5226 // ToString calls the method "CSSParserQualifiedRule.toString". 5227 func (this CSSParserQualifiedRule) ToString() (ret js.String) { 5228 bindings.CallCSSParserQualifiedRuleToString( 5229 this.ref, js.Pointer(&ret), 5230 ) 5231 5232 return 5233 } 5234 5235 // TryToString calls the method "CSSParserQualifiedRule.toString" 5236 // in a try/catch block and returns (_, err, ok = false) when it went through 5237 // the catch clause. 5238 func (this CSSParserQualifiedRule) TryToString() (ret js.String, exception js.Any, ok bool) { 5239 ok = js.True == bindings.TryCSSParserQualifiedRuleToString( 5240 this.ref, js.Pointer(&ret), js.Pointer(&exception), 5241 ) 5242 5243 return 5244 } 5245 5246 type OneOf_CSSNumericValue_String_CSSKeywordValue struct { 5247 ref js.Ref 5248 } 5249 5250 func (x OneOf_CSSNumericValue_String_CSSKeywordValue) Ref() js.Ref { 5251 return x.ref 5252 } 5253 5254 func (x OneOf_CSSNumericValue_String_CSSKeywordValue) Free() { 5255 x.ref.Free() 5256 } 5257 5258 func (x OneOf_CSSNumericValue_String_CSSKeywordValue) FromRef(ref js.Ref) OneOf_CSSNumericValue_String_CSSKeywordValue { 5259 return OneOf_CSSNumericValue_String_CSSKeywordValue{ 5260 ref: ref, 5261 } 5262 } 5263 5264 func (x OneOf_CSSNumericValue_String_CSSKeywordValue) CSSNumericValue() CSSNumericValue { 5265 return CSSNumericValue{}.FromRef(x.ref) 5266 } 5267 5268 func (x OneOf_CSSNumericValue_String_CSSKeywordValue) String() js.String { 5269 return js.String{}.FromRef(x.ref) 5270 } 5271 5272 func (x OneOf_CSSNumericValue_String_CSSKeywordValue) CSSKeywordValue() CSSKeywordValue { 5273 return CSSKeywordValue{}.FromRef(x.ref) 5274 } 5275 5276 type CSSPerspectiveValue = OneOf_CSSNumericValue_String_CSSKeywordValue