github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/fontsettings/apis_js_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package fontsettings
     5  
     6  import (
     7  	"github.com/primecitizens/pcz/std/core/abi"
     8  	"github.com/primecitizens/pcz/std/core/mark"
     9  	"github.com/primecitizens/pcz/std/ffi/js"
    10  	"github.com/primecitizens/pcz/std/plat/js/webext/fontsettings/bindings"
    11  )
    12  
    13  type ClearDefaultFixedFontSizeArgDetails struct {
    14  	FFI_USE bool
    15  }
    16  
    17  // FromRef calls UpdateFrom and returns a ClearDefaultFixedFontSizeArgDetails with all fields set.
    18  func (p ClearDefaultFixedFontSizeArgDetails) FromRef(ref js.Ref) ClearDefaultFixedFontSizeArgDetails {
    19  	p.UpdateFrom(ref)
    20  	return p
    21  }
    22  
    23  // New creates a new ClearDefaultFixedFontSizeArgDetails in the application heap.
    24  func (p ClearDefaultFixedFontSizeArgDetails) New() js.Ref {
    25  	return bindings.ClearDefaultFixedFontSizeArgDetailsJSLoad(
    26  		js.Pointer(&p), js.True, 0,
    27  	)
    28  }
    29  
    30  // UpdateFrom copies value of all fields of the heap object to p.
    31  func (p *ClearDefaultFixedFontSizeArgDetails) UpdateFrom(ref js.Ref) {
    32  	bindings.ClearDefaultFixedFontSizeArgDetailsJSStore(
    33  		js.Pointer(p), ref,
    34  	)
    35  }
    36  
    37  // Update writes all fields of the p to the heap object referenced by ref.
    38  func (p *ClearDefaultFixedFontSizeArgDetails) Update(ref js.Ref) {
    39  	bindings.ClearDefaultFixedFontSizeArgDetailsJSLoad(
    40  		js.Pointer(p), js.False, ref,
    41  	)
    42  }
    43  
    44  // FreeMembers frees fields with heap reference, if recursive is true
    45  // free all heap references reachable from p.
    46  func (p *ClearDefaultFixedFontSizeArgDetails) FreeMembers(recursive bool) {
    47  }
    48  
    49  type ClearDefaultFontSizeArgDetails struct {
    50  	FFI_USE bool
    51  }
    52  
    53  // FromRef calls UpdateFrom and returns a ClearDefaultFontSizeArgDetails with all fields set.
    54  func (p ClearDefaultFontSizeArgDetails) FromRef(ref js.Ref) ClearDefaultFontSizeArgDetails {
    55  	p.UpdateFrom(ref)
    56  	return p
    57  }
    58  
    59  // New creates a new ClearDefaultFontSizeArgDetails in the application heap.
    60  func (p ClearDefaultFontSizeArgDetails) New() js.Ref {
    61  	return bindings.ClearDefaultFontSizeArgDetailsJSLoad(
    62  		js.Pointer(&p), js.True, 0,
    63  	)
    64  }
    65  
    66  // UpdateFrom copies value of all fields of the heap object to p.
    67  func (p *ClearDefaultFontSizeArgDetails) UpdateFrom(ref js.Ref) {
    68  	bindings.ClearDefaultFontSizeArgDetailsJSStore(
    69  		js.Pointer(p), ref,
    70  	)
    71  }
    72  
    73  // Update writes all fields of the p to the heap object referenced by ref.
    74  func (p *ClearDefaultFontSizeArgDetails) Update(ref js.Ref) {
    75  	bindings.ClearDefaultFontSizeArgDetailsJSLoad(
    76  		js.Pointer(p), js.False, ref,
    77  	)
    78  }
    79  
    80  // FreeMembers frees fields with heap reference, if recursive is true
    81  // free all heap references reachable from p.
    82  func (p *ClearDefaultFontSizeArgDetails) FreeMembers(recursive bool) {
    83  }
    84  
    85  type GenericFamily uint32
    86  
    87  const (
    88  	_ GenericFamily = iota
    89  
    90  	GenericFamily_STANDARD
    91  	GenericFamily_SANSSERIF
    92  	GenericFamily_SERIF
    93  	GenericFamily_FIXED
    94  	GenericFamily_CURSIVE
    95  	GenericFamily_FANTASY
    96  	GenericFamily_MATH
    97  )
    98  
    99  func (GenericFamily) FromRef(str js.Ref) GenericFamily {
   100  	return GenericFamily(bindings.ConstOfGenericFamily(str))
   101  }
   102  
   103  func (x GenericFamily) String() (string, bool) {
   104  	switch x {
   105  	case GenericFamily_STANDARD:
   106  		return "standard", true
   107  	case GenericFamily_SANSSERIF:
   108  		return "sansserif", true
   109  	case GenericFamily_SERIF:
   110  		return "serif", true
   111  	case GenericFamily_FIXED:
   112  		return "fixed", true
   113  	case GenericFamily_CURSIVE:
   114  		return "cursive", true
   115  	case GenericFamily_FANTASY:
   116  		return "fantasy", true
   117  	case GenericFamily_MATH:
   118  		return "math", true
   119  	default:
   120  		return "", false
   121  	}
   122  }
   123  
   124  type ScriptCode uint32
   125  
   126  const (
   127  	_ ScriptCode = iota
   128  
   129  	ScriptCode_AFAK
   130  	ScriptCode_ARAB
   131  	ScriptCode_ARMI
   132  	ScriptCode_ARMN
   133  	ScriptCode_AVST
   134  	ScriptCode_BALI
   135  	ScriptCode_BAMU
   136  	ScriptCode_BASS
   137  	ScriptCode_BATK
   138  	ScriptCode_BENG
   139  	ScriptCode_BLIS
   140  	ScriptCode_BOPO
   141  	ScriptCode_BRAH
   142  	ScriptCode_BRAI
   143  	ScriptCode_BUGI
   144  	ScriptCode_BUHD
   145  	ScriptCode_CAKM
   146  	ScriptCode_CANS
   147  	ScriptCode_CARI
   148  	ScriptCode_CHAM
   149  	ScriptCode_CHER
   150  	ScriptCode_CIRT
   151  	ScriptCode_COPT
   152  	ScriptCode_CPRT
   153  	ScriptCode_CYRL
   154  	ScriptCode_CYRS
   155  	ScriptCode_DEVA
   156  	ScriptCode_DSRT
   157  	ScriptCode_DUPL
   158  	ScriptCode_EGYD
   159  	ScriptCode_EGYH
   160  	ScriptCode_EGYP
   161  	ScriptCode_ELBA
   162  	ScriptCode_ETHI
   163  	ScriptCode_GEOR
   164  	ScriptCode_GEOK
   165  	ScriptCode_GLAG
   166  	ScriptCode_GOTH
   167  	ScriptCode_GRAN
   168  	ScriptCode_GREK
   169  	ScriptCode_GUJR
   170  	ScriptCode_GURU
   171  	ScriptCode_HANG
   172  	ScriptCode_HANI
   173  	ScriptCode_HANO
   174  	ScriptCode_HANS
   175  	ScriptCode_HANT
   176  	ScriptCode_HEBR
   177  	ScriptCode_HLUW
   178  	ScriptCode_HMNG
   179  	ScriptCode_HUNG
   180  	ScriptCode_INDS
   181  	ScriptCode_ITAL
   182  	ScriptCode_JAVA
   183  	ScriptCode_JPAN
   184  	ScriptCode_JURC
   185  	ScriptCode_KALI
   186  	ScriptCode_KHAR
   187  	ScriptCode_KHMR
   188  	ScriptCode_KHOJ
   189  	ScriptCode_KNDA
   190  	ScriptCode_KPEL
   191  	ScriptCode_KTHI
   192  	ScriptCode_LANA
   193  	ScriptCode_LAOO
   194  	ScriptCode_LATF
   195  	ScriptCode_LATG
   196  	ScriptCode_LATN
   197  	ScriptCode_LEPC
   198  	ScriptCode_LIMB
   199  	ScriptCode_LINA
   200  	ScriptCode_LINB
   201  	ScriptCode_LISU
   202  	ScriptCode_LOMA
   203  	ScriptCode_LYCI
   204  	ScriptCode_LYDI
   205  	ScriptCode_MAND
   206  	ScriptCode_MANI
   207  	ScriptCode_MAYA
   208  	ScriptCode_MEND
   209  	ScriptCode_MERC
   210  	ScriptCode_MERO
   211  	ScriptCode_MLYM
   212  	ScriptCode_MOON
   213  	ScriptCode_MONG
   214  	ScriptCode_MROO
   215  	ScriptCode_MTEI
   216  	ScriptCode_MYMR
   217  	ScriptCode_NARB
   218  	ScriptCode_NBAT
   219  	ScriptCode_NKGB
   220  	ScriptCode_NKOO
   221  	ScriptCode_NSHU
   222  	ScriptCode_OGAM
   223  	ScriptCode_OLCK
   224  	ScriptCode_ORKH
   225  	ScriptCode_ORYA
   226  	ScriptCode_OSMA
   227  	ScriptCode_PALM
   228  	ScriptCode_PERM
   229  	ScriptCode_PHAG
   230  	ScriptCode_PHLI
   231  	ScriptCode_PHLP
   232  	ScriptCode_PHLV
   233  	ScriptCode_PHNX
   234  	ScriptCode_PLRD
   235  	ScriptCode_PRTI
   236  	ScriptCode_RJNG
   237  	ScriptCode_RORO
   238  	ScriptCode_RUNR
   239  	ScriptCode_SAMR
   240  	ScriptCode_SARA
   241  	ScriptCode_SARB
   242  	ScriptCode_SAUR
   243  	ScriptCode_SGNW
   244  	ScriptCode_SHAW
   245  	ScriptCode_SHRD
   246  	ScriptCode_SIND
   247  	ScriptCode_SINH
   248  	ScriptCode_SORA
   249  	ScriptCode_SUND
   250  	ScriptCode_SYLO
   251  	ScriptCode_SYRC
   252  	ScriptCode_SYRE
   253  	ScriptCode_SYRJ
   254  	ScriptCode_SYRN
   255  	ScriptCode_TAGB
   256  	ScriptCode_TAKR
   257  	ScriptCode_TALE
   258  	ScriptCode_TALU
   259  	ScriptCode_TAML
   260  	ScriptCode_TANG
   261  	ScriptCode_TAVT
   262  	ScriptCode_TELU
   263  	ScriptCode_TENG
   264  	ScriptCode_TFNG
   265  	ScriptCode_TGLG
   266  	ScriptCode_THAA
   267  	ScriptCode_THAI
   268  	ScriptCode_TIBT
   269  	ScriptCode_TIRH
   270  	ScriptCode_UGAR
   271  	ScriptCode_VAII
   272  	ScriptCode_VISP
   273  	ScriptCode_WARA
   274  	ScriptCode_WOLE
   275  	ScriptCode_XPEO
   276  	ScriptCode_XSUX
   277  	ScriptCode_YIII
   278  	ScriptCode_ZMTH
   279  	ScriptCode_ZSYM
   280  	ScriptCode_ZYYY
   281  )
   282  
   283  func (ScriptCode) FromRef(str js.Ref) ScriptCode {
   284  	return ScriptCode(bindings.ConstOfScriptCode(str))
   285  }
   286  
   287  func (x ScriptCode) String() (string, bool) {
   288  	switch x {
   289  	case ScriptCode_AFAK:
   290  		return "Afak", true
   291  	case ScriptCode_ARAB:
   292  		return "Arab", true
   293  	case ScriptCode_ARMI:
   294  		return "Armi", true
   295  	case ScriptCode_ARMN:
   296  		return "Armn", true
   297  	case ScriptCode_AVST:
   298  		return "Avst", true
   299  	case ScriptCode_BALI:
   300  		return "Bali", true
   301  	case ScriptCode_BAMU:
   302  		return "Bamu", true
   303  	case ScriptCode_BASS:
   304  		return "Bass", true
   305  	case ScriptCode_BATK:
   306  		return "Batk", true
   307  	case ScriptCode_BENG:
   308  		return "Beng", true
   309  	case ScriptCode_BLIS:
   310  		return "Blis", true
   311  	case ScriptCode_BOPO:
   312  		return "Bopo", true
   313  	case ScriptCode_BRAH:
   314  		return "Brah", true
   315  	case ScriptCode_BRAI:
   316  		return "Brai", true
   317  	case ScriptCode_BUGI:
   318  		return "Bugi", true
   319  	case ScriptCode_BUHD:
   320  		return "Buhd", true
   321  	case ScriptCode_CAKM:
   322  		return "Cakm", true
   323  	case ScriptCode_CANS:
   324  		return "Cans", true
   325  	case ScriptCode_CARI:
   326  		return "Cari", true
   327  	case ScriptCode_CHAM:
   328  		return "Cham", true
   329  	case ScriptCode_CHER:
   330  		return "Cher", true
   331  	case ScriptCode_CIRT:
   332  		return "Cirt", true
   333  	case ScriptCode_COPT:
   334  		return "Copt", true
   335  	case ScriptCode_CPRT:
   336  		return "Cprt", true
   337  	case ScriptCode_CYRL:
   338  		return "Cyrl", true
   339  	case ScriptCode_CYRS:
   340  		return "Cyrs", true
   341  	case ScriptCode_DEVA:
   342  		return "Deva", true
   343  	case ScriptCode_DSRT:
   344  		return "Dsrt", true
   345  	case ScriptCode_DUPL:
   346  		return "Dupl", true
   347  	case ScriptCode_EGYD:
   348  		return "Egyd", true
   349  	case ScriptCode_EGYH:
   350  		return "Egyh", true
   351  	case ScriptCode_EGYP:
   352  		return "Egyp", true
   353  	case ScriptCode_ELBA:
   354  		return "Elba", true
   355  	case ScriptCode_ETHI:
   356  		return "Ethi", true
   357  	case ScriptCode_GEOR:
   358  		return "Geor", true
   359  	case ScriptCode_GEOK:
   360  		return "Geok", true
   361  	case ScriptCode_GLAG:
   362  		return "Glag", true
   363  	case ScriptCode_GOTH:
   364  		return "Goth", true
   365  	case ScriptCode_GRAN:
   366  		return "Gran", true
   367  	case ScriptCode_GREK:
   368  		return "Grek", true
   369  	case ScriptCode_GUJR:
   370  		return "Gujr", true
   371  	case ScriptCode_GURU:
   372  		return "Guru", true
   373  	case ScriptCode_HANG:
   374  		return "Hang", true
   375  	case ScriptCode_HANI:
   376  		return "Hani", true
   377  	case ScriptCode_HANO:
   378  		return "Hano", true
   379  	case ScriptCode_HANS:
   380  		return "Hans", true
   381  	case ScriptCode_HANT:
   382  		return "Hant", true
   383  	case ScriptCode_HEBR:
   384  		return "Hebr", true
   385  	case ScriptCode_HLUW:
   386  		return "Hluw", true
   387  	case ScriptCode_HMNG:
   388  		return "Hmng", true
   389  	case ScriptCode_HUNG:
   390  		return "Hung", true
   391  	case ScriptCode_INDS:
   392  		return "Inds", true
   393  	case ScriptCode_ITAL:
   394  		return "Ital", true
   395  	case ScriptCode_JAVA:
   396  		return "Java", true
   397  	case ScriptCode_JPAN:
   398  		return "Jpan", true
   399  	case ScriptCode_JURC:
   400  		return "Jurc", true
   401  	case ScriptCode_KALI:
   402  		return "Kali", true
   403  	case ScriptCode_KHAR:
   404  		return "Khar", true
   405  	case ScriptCode_KHMR:
   406  		return "Khmr", true
   407  	case ScriptCode_KHOJ:
   408  		return "Khoj", true
   409  	case ScriptCode_KNDA:
   410  		return "Knda", true
   411  	case ScriptCode_KPEL:
   412  		return "Kpel", true
   413  	case ScriptCode_KTHI:
   414  		return "Kthi", true
   415  	case ScriptCode_LANA:
   416  		return "Lana", true
   417  	case ScriptCode_LAOO:
   418  		return "Laoo", true
   419  	case ScriptCode_LATF:
   420  		return "Latf", true
   421  	case ScriptCode_LATG:
   422  		return "Latg", true
   423  	case ScriptCode_LATN:
   424  		return "Latn", true
   425  	case ScriptCode_LEPC:
   426  		return "Lepc", true
   427  	case ScriptCode_LIMB:
   428  		return "Limb", true
   429  	case ScriptCode_LINA:
   430  		return "Lina", true
   431  	case ScriptCode_LINB:
   432  		return "Linb", true
   433  	case ScriptCode_LISU:
   434  		return "Lisu", true
   435  	case ScriptCode_LOMA:
   436  		return "Loma", true
   437  	case ScriptCode_LYCI:
   438  		return "Lyci", true
   439  	case ScriptCode_LYDI:
   440  		return "Lydi", true
   441  	case ScriptCode_MAND:
   442  		return "Mand", true
   443  	case ScriptCode_MANI:
   444  		return "Mani", true
   445  	case ScriptCode_MAYA:
   446  		return "Maya", true
   447  	case ScriptCode_MEND:
   448  		return "Mend", true
   449  	case ScriptCode_MERC:
   450  		return "Merc", true
   451  	case ScriptCode_MERO:
   452  		return "Mero", true
   453  	case ScriptCode_MLYM:
   454  		return "Mlym", true
   455  	case ScriptCode_MOON:
   456  		return "Moon", true
   457  	case ScriptCode_MONG:
   458  		return "Mong", true
   459  	case ScriptCode_MROO:
   460  		return "Mroo", true
   461  	case ScriptCode_MTEI:
   462  		return "Mtei", true
   463  	case ScriptCode_MYMR:
   464  		return "Mymr", true
   465  	case ScriptCode_NARB:
   466  		return "Narb", true
   467  	case ScriptCode_NBAT:
   468  		return "Nbat", true
   469  	case ScriptCode_NKGB:
   470  		return "Nkgb", true
   471  	case ScriptCode_NKOO:
   472  		return "Nkoo", true
   473  	case ScriptCode_NSHU:
   474  		return "Nshu", true
   475  	case ScriptCode_OGAM:
   476  		return "Ogam", true
   477  	case ScriptCode_OLCK:
   478  		return "Olck", true
   479  	case ScriptCode_ORKH:
   480  		return "Orkh", true
   481  	case ScriptCode_ORYA:
   482  		return "Orya", true
   483  	case ScriptCode_OSMA:
   484  		return "Osma", true
   485  	case ScriptCode_PALM:
   486  		return "Palm", true
   487  	case ScriptCode_PERM:
   488  		return "Perm", true
   489  	case ScriptCode_PHAG:
   490  		return "Phag", true
   491  	case ScriptCode_PHLI:
   492  		return "Phli", true
   493  	case ScriptCode_PHLP:
   494  		return "Phlp", true
   495  	case ScriptCode_PHLV:
   496  		return "Phlv", true
   497  	case ScriptCode_PHNX:
   498  		return "Phnx", true
   499  	case ScriptCode_PLRD:
   500  		return "Plrd", true
   501  	case ScriptCode_PRTI:
   502  		return "Prti", true
   503  	case ScriptCode_RJNG:
   504  		return "Rjng", true
   505  	case ScriptCode_RORO:
   506  		return "Roro", true
   507  	case ScriptCode_RUNR:
   508  		return "Runr", true
   509  	case ScriptCode_SAMR:
   510  		return "Samr", true
   511  	case ScriptCode_SARA:
   512  		return "Sara", true
   513  	case ScriptCode_SARB:
   514  		return "Sarb", true
   515  	case ScriptCode_SAUR:
   516  		return "Saur", true
   517  	case ScriptCode_SGNW:
   518  		return "Sgnw", true
   519  	case ScriptCode_SHAW:
   520  		return "Shaw", true
   521  	case ScriptCode_SHRD:
   522  		return "Shrd", true
   523  	case ScriptCode_SIND:
   524  		return "Sind", true
   525  	case ScriptCode_SINH:
   526  		return "Sinh", true
   527  	case ScriptCode_SORA:
   528  		return "Sora", true
   529  	case ScriptCode_SUND:
   530  		return "Sund", true
   531  	case ScriptCode_SYLO:
   532  		return "Sylo", true
   533  	case ScriptCode_SYRC:
   534  		return "Syrc", true
   535  	case ScriptCode_SYRE:
   536  		return "Syre", true
   537  	case ScriptCode_SYRJ:
   538  		return "Syrj", true
   539  	case ScriptCode_SYRN:
   540  		return "Syrn", true
   541  	case ScriptCode_TAGB:
   542  		return "Tagb", true
   543  	case ScriptCode_TAKR:
   544  		return "Takr", true
   545  	case ScriptCode_TALE:
   546  		return "Tale", true
   547  	case ScriptCode_TALU:
   548  		return "Talu", true
   549  	case ScriptCode_TAML:
   550  		return "Taml", true
   551  	case ScriptCode_TANG:
   552  		return "Tang", true
   553  	case ScriptCode_TAVT:
   554  		return "Tavt", true
   555  	case ScriptCode_TELU:
   556  		return "Telu", true
   557  	case ScriptCode_TENG:
   558  		return "Teng", true
   559  	case ScriptCode_TFNG:
   560  		return "Tfng", true
   561  	case ScriptCode_TGLG:
   562  		return "Tglg", true
   563  	case ScriptCode_THAA:
   564  		return "Thaa", true
   565  	case ScriptCode_THAI:
   566  		return "Thai", true
   567  	case ScriptCode_TIBT:
   568  		return "Tibt", true
   569  	case ScriptCode_TIRH:
   570  		return "Tirh", true
   571  	case ScriptCode_UGAR:
   572  		return "Ugar", true
   573  	case ScriptCode_VAII:
   574  		return "Vaii", true
   575  	case ScriptCode_VISP:
   576  		return "Visp", true
   577  	case ScriptCode_WARA:
   578  		return "Wara", true
   579  	case ScriptCode_WOLE:
   580  		return "Wole", true
   581  	case ScriptCode_XPEO:
   582  		return "Xpeo", true
   583  	case ScriptCode_XSUX:
   584  		return "Xsux", true
   585  	case ScriptCode_YIII:
   586  		return "Yiii", true
   587  	case ScriptCode_ZMTH:
   588  		return "Zmth", true
   589  	case ScriptCode_ZSYM:
   590  		return "Zsym", true
   591  	case ScriptCode_ZYYY:
   592  		return "Zyyy", true
   593  	default:
   594  		return "", false
   595  	}
   596  }
   597  
   598  type ClearFontArgDetails struct {
   599  	// GenericFamily is "ClearFontArgDetails.genericFamily"
   600  	//
   601  	// Required
   602  	GenericFamily GenericFamily
   603  	// Script is "ClearFontArgDetails.script"
   604  	//
   605  	// Optional
   606  	Script ScriptCode
   607  
   608  	FFI_USE bool
   609  }
   610  
   611  // FromRef calls UpdateFrom and returns a ClearFontArgDetails with all fields set.
   612  func (p ClearFontArgDetails) FromRef(ref js.Ref) ClearFontArgDetails {
   613  	p.UpdateFrom(ref)
   614  	return p
   615  }
   616  
   617  // New creates a new ClearFontArgDetails in the application heap.
   618  func (p ClearFontArgDetails) New() js.Ref {
   619  	return bindings.ClearFontArgDetailsJSLoad(
   620  		js.Pointer(&p), js.True, 0,
   621  	)
   622  }
   623  
   624  // UpdateFrom copies value of all fields of the heap object to p.
   625  func (p *ClearFontArgDetails) UpdateFrom(ref js.Ref) {
   626  	bindings.ClearFontArgDetailsJSStore(
   627  		js.Pointer(p), ref,
   628  	)
   629  }
   630  
   631  // Update writes all fields of the p to the heap object referenced by ref.
   632  func (p *ClearFontArgDetails) Update(ref js.Ref) {
   633  	bindings.ClearFontArgDetailsJSLoad(
   634  		js.Pointer(p), js.False, ref,
   635  	)
   636  }
   637  
   638  // FreeMembers frees fields with heap reference, if recursive is true
   639  // free all heap references reachable from p.
   640  func (p *ClearFontArgDetails) FreeMembers(recursive bool) {
   641  }
   642  
   643  type ClearMinimumFontSizeArgDetails struct {
   644  	FFI_USE bool
   645  }
   646  
   647  // FromRef calls UpdateFrom and returns a ClearMinimumFontSizeArgDetails with all fields set.
   648  func (p ClearMinimumFontSizeArgDetails) FromRef(ref js.Ref) ClearMinimumFontSizeArgDetails {
   649  	p.UpdateFrom(ref)
   650  	return p
   651  }
   652  
   653  // New creates a new ClearMinimumFontSizeArgDetails in the application heap.
   654  func (p ClearMinimumFontSizeArgDetails) New() js.Ref {
   655  	return bindings.ClearMinimumFontSizeArgDetailsJSLoad(
   656  		js.Pointer(&p), js.True, 0,
   657  	)
   658  }
   659  
   660  // UpdateFrom copies value of all fields of the heap object to p.
   661  func (p *ClearMinimumFontSizeArgDetails) UpdateFrom(ref js.Ref) {
   662  	bindings.ClearMinimumFontSizeArgDetailsJSStore(
   663  		js.Pointer(p), ref,
   664  	)
   665  }
   666  
   667  // Update writes all fields of the p to the heap object referenced by ref.
   668  func (p *ClearMinimumFontSizeArgDetails) Update(ref js.Ref) {
   669  	bindings.ClearMinimumFontSizeArgDetailsJSLoad(
   670  		js.Pointer(p), js.False, ref,
   671  	)
   672  }
   673  
   674  // FreeMembers frees fields with heap reference, if recursive is true
   675  // free all heap references reachable from p.
   676  func (p *ClearMinimumFontSizeArgDetails) FreeMembers(recursive bool) {
   677  }
   678  
   679  type FontName struct {
   680  	// DisplayName is "FontName.displayName"
   681  	//
   682  	// Required
   683  	DisplayName js.String
   684  	// FontId is "FontName.fontId"
   685  	//
   686  	// Required
   687  	FontId js.String
   688  
   689  	FFI_USE bool
   690  }
   691  
   692  // FromRef calls UpdateFrom and returns a FontName with all fields set.
   693  func (p FontName) FromRef(ref js.Ref) FontName {
   694  	p.UpdateFrom(ref)
   695  	return p
   696  }
   697  
   698  // New creates a new FontName in the application heap.
   699  func (p FontName) New() js.Ref {
   700  	return bindings.FontNameJSLoad(
   701  		js.Pointer(&p), js.True, 0,
   702  	)
   703  }
   704  
   705  // UpdateFrom copies value of all fields of the heap object to p.
   706  func (p *FontName) UpdateFrom(ref js.Ref) {
   707  	bindings.FontNameJSStore(
   708  		js.Pointer(p), ref,
   709  	)
   710  }
   711  
   712  // Update writes all fields of the p to the heap object referenced by ref.
   713  func (p *FontName) Update(ref js.Ref) {
   714  	bindings.FontNameJSLoad(
   715  		js.Pointer(p), js.False, ref,
   716  	)
   717  }
   718  
   719  // FreeMembers frees fields with heap reference, if recursive is true
   720  // free all heap references reachable from p.
   721  func (p *FontName) FreeMembers(recursive bool) {
   722  	js.Free(
   723  		p.DisplayName.Ref(),
   724  		p.FontId.Ref(),
   725  	)
   726  	p.DisplayName = p.DisplayName.FromRef(js.Undefined)
   727  	p.FontId = p.FontId.FromRef(js.Undefined)
   728  }
   729  
   730  type GetDefaultFixedFontSizeArgDetails struct {
   731  	FFI_USE bool
   732  }
   733  
   734  // FromRef calls UpdateFrom and returns a GetDefaultFixedFontSizeArgDetails with all fields set.
   735  func (p GetDefaultFixedFontSizeArgDetails) FromRef(ref js.Ref) GetDefaultFixedFontSizeArgDetails {
   736  	p.UpdateFrom(ref)
   737  	return p
   738  }
   739  
   740  // New creates a new GetDefaultFixedFontSizeArgDetails in the application heap.
   741  func (p GetDefaultFixedFontSizeArgDetails) New() js.Ref {
   742  	return bindings.GetDefaultFixedFontSizeArgDetailsJSLoad(
   743  		js.Pointer(&p), js.True, 0,
   744  	)
   745  }
   746  
   747  // UpdateFrom copies value of all fields of the heap object to p.
   748  func (p *GetDefaultFixedFontSizeArgDetails) UpdateFrom(ref js.Ref) {
   749  	bindings.GetDefaultFixedFontSizeArgDetailsJSStore(
   750  		js.Pointer(p), ref,
   751  	)
   752  }
   753  
   754  // Update writes all fields of the p to the heap object referenced by ref.
   755  func (p *GetDefaultFixedFontSizeArgDetails) Update(ref js.Ref) {
   756  	bindings.GetDefaultFixedFontSizeArgDetailsJSLoad(
   757  		js.Pointer(p), js.False, ref,
   758  	)
   759  }
   760  
   761  // FreeMembers frees fields with heap reference, if recursive is true
   762  // free all heap references reachable from p.
   763  func (p *GetDefaultFixedFontSizeArgDetails) FreeMembers(recursive bool) {
   764  }
   765  
   766  type LevelOfControl uint32
   767  
   768  const (
   769  	_ LevelOfControl = iota
   770  
   771  	LevelOfControl_NOT_CONTROLLABLE
   772  	LevelOfControl_CONTROLLED_BY_OTHER_EXTENSIONS
   773  	LevelOfControl_CONTROLLABLE_BY_THIS_EXTENSION
   774  	LevelOfControl_CONTROLLED_BY_THIS_EXTENSION
   775  )
   776  
   777  func (LevelOfControl) FromRef(str js.Ref) LevelOfControl {
   778  	return LevelOfControl(bindings.ConstOfLevelOfControl(str))
   779  }
   780  
   781  func (x LevelOfControl) String() (string, bool) {
   782  	switch x {
   783  	case LevelOfControl_NOT_CONTROLLABLE:
   784  		return "not_controllable", true
   785  	case LevelOfControl_CONTROLLED_BY_OTHER_EXTENSIONS:
   786  		return "controlled_by_other_extensions", true
   787  	case LevelOfControl_CONTROLLABLE_BY_THIS_EXTENSION:
   788  		return "controllable_by_this_extension", true
   789  	case LevelOfControl_CONTROLLED_BY_THIS_EXTENSION:
   790  		return "controlled_by_this_extension", true
   791  	default:
   792  		return "", false
   793  	}
   794  }
   795  
   796  type GetDefaultFixedFontSizeReturnType struct {
   797  	// LevelOfControl is "GetDefaultFixedFontSizeReturnType.levelOfControl"
   798  	//
   799  	// Required
   800  	LevelOfControl LevelOfControl
   801  	// PixelSize is "GetDefaultFixedFontSizeReturnType.pixelSize"
   802  	//
   803  	// Required
   804  	PixelSize int64
   805  
   806  	FFI_USE bool
   807  }
   808  
   809  // FromRef calls UpdateFrom and returns a GetDefaultFixedFontSizeReturnType with all fields set.
   810  func (p GetDefaultFixedFontSizeReturnType) FromRef(ref js.Ref) GetDefaultFixedFontSizeReturnType {
   811  	p.UpdateFrom(ref)
   812  	return p
   813  }
   814  
   815  // New creates a new GetDefaultFixedFontSizeReturnType in the application heap.
   816  func (p GetDefaultFixedFontSizeReturnType) New() js.Ref {
   817  	return bindings.GetDefaultFixedFontSizeReturnTypeJSLoad(
   818  		js.Pointer(&p), js.True, 0,
   819  	)
   820  }
   821  
   822  // UpdateFrom copies value of all fields of the heap object to p.
   823  func (p *GetDefaultFixedFontSizeReturnType) UpdateFrom(ref js.Ref) {
   824  	bindings.GetDefaultFixedFontSizeReturnTypeJSStore(
   825  		js.Pointer(p), ref,
   826  	)
   827  }
   828  
   829  // Update writes all fields of the p to the heap object referenced by ref.
   830  func (p *GetDefaultFixedFontSizeReturnType) Update(ref js.Ref) {
   831  	bindings.GetDefaultFixedFontSizeReturnTypeJSLoad(
   832  		js.Pointer(p), js.False, ref,
   833  	)
   834  }
   835  
   836  // FreeMembers frees fields with heap reference, if recursive is true
   837  // free all heap references reachable from p.
   838  func (p *GetDefaultFixedFontSizeReturnType) FreeMembers(recursive bool) {
   839  }
   840  
   841  type GetDefaultFontSizeArgDetails struct {
   842  	FFI_USE bool
   843  }
   844  
   845  // FromRef calls UpdateFrom and returns a GetDefaultFontSizeArgDetails with all fields set.
   846  func (p GetDefaultFontSizeArgDetails) FromRef(ref js.Ref) GetDefaultFontSizeArgDetails {
   847  	p.UpdateFrom(ref)
   848  	return p
   849  }
   850  
   851  // New creates a new GetDefaultFontSizeArgDetails in the application heap.
   852  func (p GetDefaultFontSizeArgDetails) New() js.Ref {
   853  	return bindings.GetDefaultFontSizeArgDetailsJSLoad(
   854  		js.Pointer(&p), js.True, 0,
   855  	)
   856  }
   857  
   858  // UpdateFrom copies value of all fields of the heap object to p.
   859  func (p *GetDefaultFontSizeArgDetails) UpdateFrom(ref js.Ref) {
   860  	bindings.GetDefaultFontSizeArgDetailsJSStore(
   861  		js.Pointer(p), ref,
   862  	)
   863  }
   864  
   865  // Update writes all fields of the p to the heap object referenced by ref.
   866  func (p *GetDefaultFontSizeArgDetails) Update(ref js.Ref) {
   867  	bindings.GetDefaultFontSizeArgDetailsJSLoad(
   868  		js.Pointer(p), js.False, ref,
   869  	)
   870  }
   871  
   872  // FreeMembers frees fields with heap reference, if recursive is true
   873  // free all heap references reachable from p.
   874  func (p *GetDefaultFontSizeArgDetails) FreeMembers(recursive bool) {
   875  }
   876  
   877  type GetDefaultFontSizeReturnType struct {
   878  	// LevelOfControl is "GetDefaultFontSizeReturnType.levelOfControl"
   879  	//
   880  	// Required
   881  	LevelOfControl LevelOfControl
   882  	// PixelSize is "GetDefaultFontSizeReturnType.pixelSize"
   883  	//
   884  	// Required
   885  	PixelSize int64
   886  
   887  	FFI_USE bool
   888  }
   889  
   890  // FromRef calls UpdateFrom and returns a GetDefaultFontSizeReturnType with all fields set.
   891  func (p GetDefaultFontSizeReturnType) FromRef(ref js.Ref) GetDefaultFontSizeReturnType {
   892  	p.UpdateFrom(ref)
   893  	return p
   894  }
   895  
   896  // New creates a new GetDefaultFontSizeReturnType in the application heap.
   897  func (p GetDefaultFontSizeReturnType) New() js.Ref {
   898  	return bindings.GetDefaultFontSizeReturnTypeJSLoad(
   899  		js.Pointer(&p), js.True, 0,
   900  	)
   901  }
   902  
   903  // UpdateFrom copies value of all fields of the heap object to p.
   904  func (p *GetDefaultFontSizeReturnType) UpdateFrom(ref js.Ref) {
   905  	bindings.GetDefaultFontSizeReturnTypeJSStore(
   906  		js.Pointer(p), ref,
   907  	)
   908  }
   909  
   910  // Update writes all fields of the p to the heap object referenced by ref.
   911  func (p *GetDefaultFontSizeReturnType) Update(ref js.Ref) {
   912  	bindings.GetDefaultFontSizeReturnTypeJSLoad(
   913  		js.Pointer(p), js.False, ref,
   914  	)
   915  }
   916  
   917  // FreeMembers frees fields with heap reference, if recursive is true
   918  // free all heap references reachable from p.
   919  func (p *GetDefaultFontSizeReturnType) FreeMembers(recursive bool) {
   920  }
   921  
   922  type GetFontArgDetails struct {
   923  	// GenericFamily is "GetFontArgDetails.genericFamily"
   924  	//
   925  	// Required
   926  	GenericFamily GenericFamily
   927  	// Script is "GetFontArgDetails.script"
   928  	//
   929  	// Optional
   930  	Script ScriptCode
   931  
   932  	FFI_USE bool
   933  }
   934  
   935  // FromRef calls UpdateFrom and returns a GetFontArgDetails with all fields set.
   936  func (p GetFontArgDetails) FromRef(ref js.Ref) GetFontArgDetails {
   937  	p.UpdateFrom(ref)
   938  	return p
   939  }
   940  
   941  // New creates a new GetFontArgDetails in the application heap.
   942  func (p GetFontArgDetails) New() js.Ref {
   943  	return bindings.GetFontArgDetailsJSLoad(
   944  		js.Pointer(&p), js.True, 0,
   945  	)
   946  }
   947  
   948  // UpdateFrom copies value of all fields of the heap object to p.
   949  func (p *GetFontArgDetails) UpdateFrom(ref js.Ref) {
   950  	bindings.GetFontArgDetailsJSStore(
   951  		js.Pointer(p), ref,
   952  	)
   953  }
   954  
   955  // Update writes all fields of the p to the heap object referenced by ref.
   956  func (p *GetFontArgDetails) Update(ref js.Ref) {
   957  	bindings.GetFontArgDetailsJSLoad(
   958  		js.Pointer(p), js.False, ref,
   959  	)
   960  }
   961  
   962  // FreeMembers frees fields with heap reference, if recursive is true
   963  // free all heap references reachable from p.
   964  func (p *GetFontArgDetails) FreeMembers(recursive bool) {
   965  }
   966  
   967  type GetFontReturnType struct {
   968  	// FontId is "GetFontReturnType.fontId"
   969  	//
   970  	// Required
   971  	FontId js.String
   972  	// LevelOfControl is "GetFontReturnType.levelOfControl"
   973  	//
   974  	// Required
   975  	LevelOfControl LevelOfControl
   976  
   977  	FFI_USE bool
   978  }
   979  
   980  // FromRef calls UpdateFrom and returns a GetFontReturnType with all fields set.
   981  func (p GetFontReturnType) FromRef(ref js.Ref) GetFontReturnType {
   982  	p.UpdateFrom(ref)
   983  	return p
   984  }
   985  
   986  // New creates a new GetFontReturnType in the application heap.
   987  func (p GetFontReturnType) New() js.Ref {
   988  	return bindings.GetFontReturnTypeJSLoad(
   989  		js.Pointer(&p), js.True, 0,
   990  	)
   991  }
   992  
   993  // UpdateFrom copies value of all fields of the heap object to p.
   994  func (p *GetFontReturnType) UpdateFrom(ref js.Ref) {
   995  	bindings.GetFontReturnTypeJSStore(
   996  		js.Pointer(p), ref,
   997  	)
   998  }
   999  
  1000  // Update writes all fields of the p to the heap object referenced by ref.
  1001  func (p *GetFontReturnType) Update(ref js.Ref) {
  1002  	bindings.GetFontReturnTypeJSLoad(
  1003  		js.Pointer(p), js.False, ref,
  1004  	)
  1005  }
  1006  
  1007  // FreeMembers frees fields with heap reference, if recursive is true
  1008  // free all heap references reachable from p.
  1009  func (p *GetFontReturnType) FreeMembers(recursive bool) {
  1010  	js.Free(
  1011  		p.FontId.Ref(),
  1012  	)
  1013  	p.FontId = p.FontId.FromRef(js.Undefined)
  1014  }
  1015  
  1016  type GetMinimumFontSizeArgDetails struct {
  1017  	FFI_USE bool
  1018  }
  1019  
  1020  // FromRef calls UpdateFrom and returns a GetMinimumFontSizeArgDetails with all fields set.
  1021  func (p GetMinimumFontSizeArgDetails) FromRef(ref js.Ref) GetMinimumFontSizeArgDetails {
  1022  	p.UpdateFrom(ref)
  1023  	return p
  1024  }
  1025  
  1026  // New creates a new GetMinimumFontSizeArgDetails in the application heap.
  1027  func (p GetMinimumFontSizeArgDetails) New() js.Ref {
  1028  	return bindings.GetMinimumFontSizeArgDetailsJSLoad(
  1029  		js.Pointer(&p), js.True, 0,
  1030  	)
  1031  }
  1032  
  1033  // UpdateFrom copies value of all fields of the heap object to p.
  1034  func (p *GetMinimumFontSizeArgDetails) UpdateFrom(ref js.Ref) {
  1035  	bindings.GetMinimumFontSizeArgDetailsJSStore(
  1036  		js.Pointer(p), ref,
  1037  	)
  1038  }
  1039  
  1040  // Update writes all fields of the p to the heap object referenced by ref.
  1041  func (p *GetMinimumFontSizeArgDetails) Update(ref js.Ref) {
  1042  	bindings.GetMinimumFontSizeArgDetailsJSLoad(
  1043  		js.Pointer(p), js.False, ref,
  1044  	)
  1045  }
  1046  
  1047  // FreeMembers frees fields with heap reference, if recursive is true
  1048  // free all heap references reachable from p.
  1049  func (p *GetMinimumFontSizeArgDetails) FreeMembers(recursive bool) {
  1050  }
  1051  
  1052  type GetMinimumFontSizeReturnType struct {
  1053  	// LevelOfControl is "GetMinimumFontSizeReturnType.levelOfControl"
  1054  	//
  1055  	// Required
  1056  	LevelOfControl LevelOfControl
  1057  	// PixelSize is "GetMinimumFontSizeReturnType.pixelSize"
  1058  	//
  1059  	// Required
  1060  	PixelSize int64
  1061  
  1062  	FFI_USE bool
  1063  }
  1064  
  1065  // FromRef calls UpdateFrom and returns a GetMinimumFontSizeReturnType with all fields set.
  1066  func (p GetMinimumFontSizeReturnType) FromRef(ref js.Ref) GetMinimumFontSizeReturnType {
  1067  	p.UpdateFrom(ref)
  1068  	return p
  1069  }
  1070  
  1071  // New creates a new GetMinimumFontSizeReturnType in the application heap.
  1072  func (p GetMinimumFontSizeReturnType) New() js.Ref {
  1073  	return bindings.GetMinimumFontSizeReturnTypeJSLoad(
  1074  		js.Pointer(&p), js.True, 0,
  1075  	)
  1076  }
  1077  
  1078  // UpdateFrom copies value of all fields of the heap object to p.
  1079  func (p *GetMinimumFontSizeReturnType) UpdateFrom(ref js.Ref) {
  1080  	bindings.GetMinimumFontSizeReturnTypeJSStore(
  1081  		js.Pointer(p), ref,
  1082  	)
  1083  }
  1084  
  1085  // Update writes all fields of the p to the heap object referenced by ref.
  1086  func (p *GetMinimumFontSizeReturnType) Update(ref js.Ref) {
  1087  	bindings.GetMinimumFontSizeReturnTypeJSLoad(
  1088  		js.Pointer(p), js.False, ref,
  1089  	)
  1090  }
  1091  
  1092  // FreeMembers frees fields with heap reference, if recursive is true
  1093  // free all heap references reachable from p.
  1094  func (p *GetMinimumFontSizeReturnType) FreeMembers(recursive bool) {
  1095  }
  1096  
  1097  type OnDefaultFixedFontSizeChangedArgDetails struct {
  1098  	// LevelOfControl is "OnDefaultFixedFontSizeChangedArgDetails.levelOfControl"
  1099  	//
  1100  	// Required
  1101  	LevelOfControl LevelOfControl
  1102  	// PixelSize is "OnDefaultFixedFontSizeChangedArgDetails.pixelSize"
  1103  	//
  1104  	// Required
  1105  	PixelSize int64
  1106  
  1107  	FFI_USE bool
  1108  }
  1109  
  1110  // FromRef calls UpdateFrom and returns a OnDefaultFixedFontSizeChangedArgDetails with all fields set.
  1111  func (p OnDefaultFixedFontSizeChangedArgDetails) FromRef(ref js.Ref) OnDefaultFixedFontSizeChangedArgDetails {
  1112  	p.UpdateFrom(ref)
  1113  	return p
  1114  }
  1115  
  1116  // New creates a new OnDefaultFixedFontSizeChangedArgDetails in the application heap.
  1117  func (p OnDefaultFixedFontSizeChangedArgDetails) New() js.Ref {
  1118  	return bindings.OnDefaultFixedFontSizeChangedArgDetailsJSLoad(
  1119  		js.Pointer(&p), js.True, 0,
  1120  	)
  1121  }
  1122  
  1123  // UpdateFrom copies value of all fields of the heap object to p.
  1124  func (p *OnDefaultFixedFontSizeChangedArgDetails) UpdateFrom(ref js.Ref) {
  1125  	bindings.OnDefaultFixedFontSizeChangedArgDetailsJSStore(
  1126  		js.Pointer(p), ref,
  1127  	)
  1128  }
  1129  
  1130  // Update writes all fields of the p to the heap object referenced by ref.
  1131  func (p *OnDefaultFixedFontSizeChangedArgDetails) Update(ref js.Ref) {
  1132  	bindings.OnDefaultFixedFontSizeChangedArgDetailsJSLoad(
  1133  		js.Pointer(p), js.False, ref,
  1134  	)
  1135  }
  1136  
  1137  // FreeMembers frees fields with heap reference, if recursive is true
  1138  // free all heap references reachable from p.
  1139  func (p *OnDefaultFixedFontSizeChangedArgDetails) FreeMembers(recursive bool) {
  1140  }
  1141  
  1142  type OnDefaultFontSizeChangedArgDetails struct {
  1143  	// LevelOfControl is "OnDefaultFontSizeChangedArgDetails.levelOfControl"
  1144  	//
  1145  	// Required
  1146  	LevelOfControl LevelOfControl
  1147  	// PixelSize is "OnDefaultFontSizeChangedArgDetails.pixelSize"
  1148  	//
  1149  	// Required
  1150  	PixelSize int64
  1151  
  1152  	FFI_USE bool
  1153  }
  1154  
  1155  // FromRef calls UpdateFrom and returns a OnDefaultFontSizeChangedArgDetails with all fields set.
  1156  func (p OnDefaultFontSizeChangedArgDetails) FromRef(ref js.Ref) OnDefaultFontSizeChangedArgDetails {
  1157  	p.UpdateFrom(ref)
  1158  	return p
  1159  }
  1160  
  1161  // New creates a new OnDefaultFontSizeChangedArgDetails in the application heap.
  1162  func (p OnDefaultFontSizeChangedArgDetails) New() js.Ref {
  1163  	return bindings.OnDefaultFontSizeChangedArgDetailsJSLoad(
  1164  		js.Pointer(&p), js.True, 0,
  1165  	)
  1166  }
  1167  
  1168  // UpdateFrom copies value of all fields of the heap object to p.
  1169  func (p *OnDefaultFontSizeChangedArgDetails) UpdateFrom(ref js.Ref) {
  1170  	bindings.OnDefaultFontSizeChangedArgDetailsJSStore(
  1171  		js.Pointer(p), ref,
  1172  	)
  1173  }
  1174  
  1175  // Update writes all fields of the p to the heap object referenced by ref.
  1176  func (p *OnDefaultFontSizeChangedArgDetails) Update(ref js.Ref) {
  1177  	bindings.OnDefaultFontSizeChangedArgDetailsJSLoad(
  1178  		js.Pointer(p), js.False, ref,
  1179  	)
  1180  }
  1181  
  1182  // FreeMembers frees fields with heap reference, if recursive is true
  1183  // free all heap references reachable from p.
  1184  func (p *OnDefaultFontSizeChangedArgDetails) FreeMembers(recursive bool) {
  1185  }
  1186  
  1187  type OnFontChangedArgDetails struct {
  1188  	// FontId is "OnFontChangedArgDetails.fontId"
  1189  	//
  1190  	// Required
  1191  	FontId js.String
  1192  	// GenericFamily is "OnFontChangedArgDetails.genericFamily"
  1193  	//
  1194  	// Required
  1195  	GenericFamily GenericFamily
  1196  	// LevelOfControl is "OnFontChangedArgDetails.levelOfControl"
  1197  	//
  1198  	// Required
  1199  	LevelOfControl LevelOfControl
  1200  	// Script is "OnFontChangedArgDetails.script"
  1201  	//
  1202  	// Optional
  1203  	Script ScriptCode
  1204  
  1205  	FFI_USE bool
  1206  }
  1207  
  1208  // FromRef calls UpdateFrom and returns a OnFontChangedArgDetails with all fields set.
  1209  func (p OnFontChangedArgDetails) FromRef(ref js.Ref) OnFontChangedArgDetails {
  1210  	p.UpdateFrom(ref)
  1211  	return p
  1212  }
  1213  
  1214  // New creates a new OnFontChangedArgDetails in the application heap.
  1215  func (p OnFontChangedArgDetails) New() js.Ref {
  1216  	return bindings.OnFontChangedArgDetailsJSLoad(
  1217  		js.Pointer(&p), js.True, 0,
  1218  	)
  1219  }
  1220  
  1221  // UpdateFrom copies value of all fields of the heap object to p.
  1222  func (p *OnFontChangedArgDetails) UpdateFrom(ref js.Ref) {
  1223  	bindings.OnFontChangedArgDetailsJSStore(
  1224  		js.Pointer(p), ref,
  1225  	)
  1226  }
  1227  
  1228  // Update writes all fields of the p to the heap object referenced by ref.
  1229  func (p *OnFontChangedArgDetails) Update(ref js.Ref) {
  1230  	bindings.OnFontChangedArgDetailsJSLoad(
  1231  		js.Pointer(p), js.False, ref,
  1232  	)
  1233  }
  1234  
  1235  // FreeMembers frees fields with heap reference, if recursive is true
  1236  // free all heap references reachable from p.
  1237  func (p *OnFontChangedArgDetails) FreeMembers(recursive bool) {
  1238  	js.Free(
  1239  		p.FontId.Ref(),
  1240  	)
  1241  	p.FontId = p.FontId.FromRef(js.Undefined)
  1242  }
  1243  
  1244  type OnMinimumFontSizeChangedArgDetails struct {
  1245  	// LevelOfControl is "OnMinimumFontSizeChangedArgDetails.levelOfControl"
  1246  	//
  1247  	// Required
  1248  	LevelOfControl LevelOfControl
  1249  	// PixelSize is "OnMinimumFontSizeChangedArgDetails.pixelSize"
  1250  	//
  1251  	// Required
  1252  	PixelSize int64
  1253  
  1254  	FFI_USE bool
  1255  }
  1256  
  1257  // FromRef calls UpdateFrom and returns a OnMinimumFontSizeChangedArgDetails with all fields set.
  1258  func (p OnMinimumFontSizeChangedArgDetails) FromRef(ref js.Ref) OnMinimumFontSizeChangedArgDetails {
  1259  	p.UpdateFrom(ref)
  1260  	return p
  1261  }
  1262  
  1263  // New creates a new OnMinimumFontSizeChangedArgDetails in the application heap.
  1264  func (p OnMinimumFontSizeChangedArgDetails) New() js.Ref {
  1265  	return bindings.OnMinimumFontSizeChangedArgDetailsJSLoad(
  1266  		js.Pointer(&p), js.True, 0,
  1267  	)
  1268  }
  1269  
  1270  // UpdateFrom copies value of all fields of the heap object to p.
  1271  func (p *OnMinimumFontSizeChangedArgDetails) UpdateFrom(ref js.Ref) {
  1272  	bindings.OnMinimumFontSizeChangedArgDetailsJSStore(
  1273  		js.Pointer(p), ref,
  1274  	)
  1275  }
  1276  
  1277  // Update writes all fields of the p to the heap object referenced by ref.
  1278  func (p *OnMinimumFontSizeChangedArgDetails) Update(ref js.Ref) {
  1279  	bindings.OnMinimumFontSizeChangedArgDetailsJSLoad(
  1280  		js.Pointer(p), js.False, ref,
  1281  	)
  1282  }
  1283  
  1284  // FreeMembers frees fields with heap reference, if recursive is true
  1285  // free all heap references reachable from p.
  1286  func (p *OnMinimumFontSizeChangedArgDetails) FreeMembers(recursive bool) {
  1287  }
  1288  
  1289  type SetDefaultFixedFontSizeArgDetails struct {
  1290  	// PixelSize is "SetDefaultFixedFontSizeArgDetails.pixelSize"
  1291  	//
  1292  	// Required
  1293  	PixelSize int64
  1294  
  1295  	FFI_USE bool
  1296  }
  1297  
  1298  // FromRef calls UpdateFrom and returns a SetDefaultFixedFontSizeArgDetails with all fields set.
  1299  func (p SetDefaultFixedFontSizeArgDetails) FromRef(ref js.Ref) SetDefaultFixedFontSizeArgDetails {
  1300  	p.UpdateFrom(ref)
  1301  	return p
  1302  }
  1303  
  1304  // New creates a new SetDefaultFixedFontSizeArgDetails in the application heap.
  1305  func (p SetDefaultFixedFontSizeArgDetails) New() js.Ref {
  1306  	return bindings.SetDefaultFixedFontSizeArgDetailsJSLoad(
  1307  		js.Pointer(&p), js.True, 0,
  1308  	)
  1309  }
  1310  
  1311  // UpdateFrom copies value of all fields of the heap object to p.
  1312  func (p *SetDefaultFixedFontSizeArgDetails) UpdateFrom(ref js.Ref) {
  1313  	bindings.SetDefaultFixedFontSizeArgDetailsJSStore(
  1314  		js.Pointer(p), ref,
  1315  	)
  1316  }
  1317  
  1318  // Update writes all fields of the p to the heap object referenced by ref.
  1319  func (p *SetDefaultFixedFontSizeArgDetails) Update(ref js.Ref) {
  1320  	bindings.SetDefaultFixedFontSizeArgDetailsJSLoad(
  1321  		js.Pointer(p), js.False, ref,
  1322  	)
  1323  }
  1324  
  1325  // FreeMembers frees fields with heap reference, if recursive is true
  1326  // free all heap references reachable from p.
  1327  func (p *SetDefaultFixedFontSizeArgDetails) FreeMembers(recursive bool) {
  1328  }
  1329  
  1330  type SetDefaultFontSizeArgDetails struct {
  1331  	// PixelSize is "SetDefaultFontSizeArgDetails.pixelSize"
  1332  	//
  1333  	// Required
  1334  	PixelSize int64
  1335  
  1336  	FFI_USE bool
  1337  }
  1338  
  1339  // FromRef calls UpdateFrom and returns a SetDefaultFontSizeArgDetails with all fields set.
  1340  func (p SetDefaultFontSizeArgDetails) FromRef(ref js.Ref) SetDefaultFontSizeArgDetails {
  1341  	p.UpdateFrom(ref)
  1342  	return p
  1343  }
  1344  
  1345  // New creates a new SetDefaultFontSizeArgDetails in the application heap.
  1346  func (p SetDefaultFontSizeArgDetails) New() js.Ref {
  1347  	return bindings.SetDefaultFontSizeArgDetailsJSLoad(
  1348  		js.Pointer(&p), js.True, 0,
  1349  	)
  1350  }
  1351  
  1352  // UpdateFrom copies value of all fields of the heap object to p.
  1353  func (p *SetDefaultFontSizeArgDetails) UpdateFrom(ref js.Ref) {
  1354  	bindings.SetDefaultFontSizeArgDetailsJSStore(
  1355  		js.Pointer(p), ref,
  1356  	)
  1357  }
  1358  
  1359  // Update writes all fields of the p to the heap object referenced by ref.
  1360  func (p *SetDefaultFontSizeArgDetails) Update(ref js.Ref) {
  1361  	bindings.SetDefaultFontSizeArgDetailsJSLoad(
  1362  		js.Pointer(p), js.False, ref,
  1363  	)
  1364  }
  1365  
  1366  // FreeMembers frees fields with heap reference, if recursive is true
  1367  // free all heap references reachable from p.
  1368  func (p *SetDefaultFontSizeArgDetails) FreeMembers(recursive bool) {
  1369  }
  1370  
  1371  type SetFontArgDetails struct {
  1372  	// FontId is "SetFontArgDetails.fontId"
  1373  	//
  1374  	// Required
  1375  	FontId js.String
  1376  	// GenericFamily is "SetFontArgDetails.genericFamily"
  1377  	//
  1378  	// Required
  1379  	GenericFamily GenericFamily
  1380  	// Script is "SetFontArgDetails.script"
  1381  	//
  1382  	// Optional
  1383  	Script ScriptCode
  1384  
  1385  	FFI_USE bool
  1386  }
  1387  
  1388  // FromRef calls UpdateFrom and returns a SetFontArgDetails with all fields set.
  1389  func (p SetFontArgDetails) FromRef(ref js.Ref) SetFontArgDetails {
  1390  	p.UpdateFrom(ref)
  1391  	return p
  1392  }
  1393  
  1394  // New creates a new SetFontArgDetails in the application heap.
  1395  func (p SetFontArgDetails) New() js.Ref {
  1396  	return bindings.SetFontArgDetailsJSLoad(
  1397  		js.Pointer(&p), js.True, 0,
  1398  	)
  1399  }
  1400  
  1401  // UpdateFrom copies value of all fields of the heap object to p.
  1402  func (p *SetFontArgDetails) UpdateFrom(ref js.Ref) {
  1403  	bindings.SetFontArgDetailsJSStore(
  1404  		js.Pointer(p), ref,
  1405  	)
  1406  }
  1407  
  1408  // Update writes all fields of the p to the heap object referenced by ref.
  1409  func (p *SetFontArgDetails) Update(ref js.Ref) {
  1410  	bindings.SetFontArgDetailsJSLoad(
  1411  		js.Pointer(p), js.False, ref,
  1412  	)
  1413  }
  1414  
  1415  // FreeMembers frees fields with heap reference, if recursive is true
  1416  // free all heap references reachable from p.
  1417  func (p *SetFontArgDetails) FreeMembers(recursive bool) {
  1418  	js.Free(
  1419  		p.FontId.Ref(),
  1420  	)
  1421  	p.FontId = p.FontId.FromRef(js.Undefined)
  1422  }
  1423  
  1424  type SetMinimumFontSizeArgDetails struct {
  1425  	// PixelSize is "SetMinimumFontSizeArgDetails.pixelSize"
  1426  	//
  1427  	// Required
  1428  	PixelSize int64
  1429  
  1430  	FFI_USE bool
  1431  }
  1432  
  1433  // FromRef calls UpdateFrom and returns a SetMinimumFontSizeArgDetails with all fields set.
  1434  func (p SetMinimumFontSizeArgDetails) FromRef(ref js.Ref) SetMinimumFontSizeArgDetails {
  1435  	p.UpdateFrom(ref)
  1436  	return p
  1437  }
  1438  
  1439  // New creates a new SetMinimumFontSizeArgDetails in the application heap.
  1440  func (p SetMinimumFontSizeArgDetails) New() js.Ref {
  1441  	return bindings.SetMinimumFontSizeArgDetailsJSLoad(
  1442  		js.Pointer(&p), js.True, 0,
  1443  	)
  1444  }
  1445  
  1446  // UpdateFrom copies value of all fields of the heap object to p.
  1447  func (p *SetMinimumFontSizeArgDetails) UpdateFrom(ref js.Ref) {
  1448  	bindings.SetMinimumFontSizeArgDetailsJSStore(
  1449  		js.Pointer(p), ref,
  1450  	)
  1451  }
  1452  
  1453  // Update writes all fields of the p to the heap object referenced by ref.
  1454  func (p *SetMinimumFontSizeArgDetails) Update(ref js.Ref) {
  1455  	bindings.SetMinimumFontSizeArgDetailsJSLoad(
  1456  		js.Pointer(p), js.False, ref,
  1457  	)
  1458  }
  1459  
  1460  // FreeMembers frees fields with heap reference, if recursive is true
  1461  // free all heap references reachable from p.
  1462  func (p *SetMinimumFontSizeArgDetails) FreeMembers(recursive bool) {
  1463  }
  1464  
  1465  // HasFuncClearDefaultFixedFontSize returns true if the function "WEBEXT.fontSettings.clearDefaultFixedFontSize" exists.
  1466  func HasFuncClearDefaultFixedFontSize() bool {
  1467  	return js.True == bindings.HasFuncClearDefaultFixedFontSize()
  1468  }
  1469  
  1470  // FuncClearDefaultFixedFontSize returns the function "WEBEXT.fontSettings.clearDefaultFixedFontSize".
  1471  func FuncClearDefaultFixedFontSize() (fn js.Func[func(details ClearDefaultFixedFontSizeArgDetails) js.Promise[js.Void]]) {
  1472  	bindings.FuncClearDefaultFixedFontSize(
  1473  		js.Pointer(&fn),
  1474  	)
  1475  	return
  1476  }
  1477  
  1478  // ClearDefaultFixedFontSize calls the function "WEBEXT.fontSettings.clearDefaultFixedFontSize" directly.
  1479  func ClearDefaultFixedFontSize(details ClearDefaultFixedFontSizeArgDetails) (ret js.Promise[js.Void]) {
  1480  	bindings.CallClearDefaultFixedFontSize(
  1481  		js.Pointer(&ret),
  1482  		js.Pointer(&details),
  1483  	)
  1484  
  1485  	return
  1486  }
  1487  
  1488  // TryClearDefaultFixedFontSize calls the function "WEBEXT.fontSettings.clearDefaultFixedFontSize"
  1489  // in a try/catch block and returns (_, err, ok = false) when it went through
  1490  // the catch clause.
  1491  func TryClearDefaultFixedFontSize(details ClearDefaultFixedFontSizeArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  1492  	ok = js.True == bindings.TryClearDefaultFixedFontSize(
  1493  		js.Pointer(&ret), js.Pointer(&exception),
  1494  		js.Pointer(&details),
  1495  	)
  1496  
  1497  	return
  1498  }
  1499  
  1500  // HasFuncClearDefaultFontSize returns true if the function "WEBEXT.fontSettings.clearDefaultFontSize" exists.
  1501  func HasFuncClearDefaultFontSize() bool {
  1502  	return js.True == bindings.HasFuncClearDefaultFontSize()
  1503  }
  1504  
  1505  // FuncClearDefaultFontSize returns the function "WEBEXT.fontSettings.clearDefaultFontSize".
  1506  func FuncClearDefaultFontSize() (fn js.Func[func(details ClearDefaultFontSizeArgDetails) js.Promise[js.Void]]) {
  1507  	bindings.FuncClearDefaultFontSize(
  1508  		js.Pointer(&fn),
  1509  	)
  1510  	return
  1511  }
  1512  
  1513  // ClearDefaultFontSize calls the function "WEBEXT.fontSettings.clearDefaultFontSize" directly.
  1514  func ClearDefaultFontSize(details ClearDefaultFontSizeArgDetails) (ret js.Promise[js.Void]) {
  1515  	bindings.CallClearDefaultFontSize(
  1516  		js.Pointer(&ret),
  1517  		js.Pointer(&details),
  1518  	)
  1519  
  1520  	return
  1521  }
  1522  
  1523  // TryClearDefaultFontSize calls the function "WEBEXT.fontSettings.clearDefaultFontSize"
  1524  // in a try/catch block and returns (_, err, ok = false) when it went through
  1525  // the catch clause.
  1526  func TryClearDefaultFontSize(details ClearDefaultFontSizeArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  1527  	ok = js.True == bindings.TryClearDefaultFontSize(
  1528  		js.Pointer(&ret), js.Pointer(&exception),
  1529  		js.Pointer(&details),
  1530  	)
  1531  
  1532  	return
  1533  }
  1534  
  1535  // HasFuncClearFont returns true if the function "WEBEXT.fontSettings.clearFont" exists.
  1536  func HasFuncClearFont() bool {
  1537  	return js.True == bindings.HasFuncClearFont()
  1538  }
  1539  
  1540  // FuncClearFont returns the function "WEBEXT.fontSettings.clearFont".
  1541  func FuncClearFont() (fn js.Func[func(details ClearFontArgDetails) js.Promise[js.Void]]) {
  1542  	bindings.FuncClearFont(
  1543  		js.Pointer(&fn),
  1544  	)
  1545  	return
  1546  }
  1547  
  1548  // ClearFont calls the function "WEBEXT.fontSettings.clearFont" directly.
  1549  func ClearFont(details ClearFontArgDetails) (ret js.Promise[js.Void]) {
  1550  	bindings.CallClearFont(
  1551  		js.Pointer(&ret),
  1552  		js.Pointer(&details),
  1553  	)
  1554  
  1555  	return
  1556  }
  1557  
  1558  // TryClearFont calls the function "WEBEXT.fontSettings.clearFont"
  1559  // in a try/catch block and returns (_, err, ok = false) when it went through
  1560  // the catch clause.
  1561  func TryClearFont(details ClearFontArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  1562  	ok = js.True == bindings.TryClearFont(
  1563  		js.Pointer(&ret), js.Pointer(&exception),
  1564  		js.Pointer(&details),
  1565  	)
  1566  
  1567  	return
  1568  }
  1569  
  1570  // HasFuncClearMinimumFontSize returns true if the function "WEBEXT.fontSettings.clearMinimumFontSize" exists.
  1571  func HasFuncClearMinimumFontSize() bool {
  1572  	return js.True == bindings.HasFuncClearMinimumFontSize()
  1573  }
  1574  
  1575  // FuncClearMinimumFontSize returns the function "WEBEXT.fontSettings.clearMinimumFontSize".
  1576  func FuncClearMinimumFontSize() (fn js.Func[func(details ClearMinimumFontSizeArgDetails) js.Promise[js.Void]]) {
  1577  	bindings.FuncClearMinimumFontSize(
  1578  		js.Pointer(&fn),
  1579  	)
  1580  	return
  1581  }
  1582  
  1583  // ClearMinimumFontSize calls the function "WEBEXT.fontSettings.clearMinimumFontSize" directly.
  1584  func ClearMinimumFontSize(details ClearMinimumFontSizeArgDetails) (ret js.Promise[js.Void]) {
  1585  	bindings.CallClearMinimumFontSize(
  1586  		js.Pointer(&ret),
  1587  		js.Pointer(&details),
  1588  	)
  1589  
  1590  	return
  1591  }
  1592  
  1593  // TryClearMinimumFontSize calls the function "WEBEXT.fontSettings.clearMinimumFontSize"
  1594  // in a try/catch block and returns (_, err, ok = false) when it went through
  1595  // the catch clause.
  1596  func TryClearMinimumFontSize(details ClearMinimumFontSizeArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  1597  	ok = js.True == bindings.TryClearMinimumFontSize(
  1598  		js.Pointer(&ret), js.Pointer(&exception),
  1599  		js.Pointer(&details),
  1600  	)
  1601  
  1602  	return
  1603  }
  1604  
  1605  // HasFuncGetDefaultFixedFontSize returns true if the function "WEBEXT.fontSettings.getDefaultFixedFontSize" exists.
  1606  func HasFuncGetDefaultFixedFontSize() bool {
  1607  	return js.True == bindings.HasFuncGetDefaultFixedFontSize()
  1608  }
  1609  
  1610  // FuncGetDefaultFixedFontSize returns the function "WEBEXT.fontSettings.getDefaultFixedFontSize".
  1611  func FuncGetDefaultFixedFontSize() (fn js.Func[func(details GetDefaultFixedFontSizeArgDetails) js.Promise[GetDefaultFixedFontSizeReturnType]]) {
  1612  	bindings.FuncGetDefaultFixedFontSize(
  1613  		js.Pointer(&fn),
  1614  	)
  1615  	return
  1616  }
  1617  
  1618  // GetDefaultFixedFontSize calls the function "WEBEXT.fontSettings.getDefaultFixedFontSize" directly.
  1619  func GetDefaultFixedFontSize(details GetDefaultFixedFontSizeArgDetails) (ret js.Promise[GetDefaultFixedFontSizeReturnType]) {
  1620  	bindings.CallGetDefaultFixedFontSize(
  1621  		js.Pointer(&ret),
  1622  		js.Pointer(&details),
  1623  	)
  1624  
  1625  	return
  1626  }
  1627  
  1628  // TryGetDefaultFixedFontSize calls the function "WEBEXT.fontSettings.getDefaultFixedFontSize"
  1629  // in a try/catch block and returns (_, err, ok = false) when it went through
  1630  // the catch clause.
  1631  func TryGetDefaultFixedFontSize(details GetDefaultFixedFontSizeArgDetails) (ret js.Promise[GetDefaultFixedFontSizeReturnType], exception js.Any, ok bool) {
  1632  	ok = js.True == bindings.TryGetDefaultFixedFontSize(
  1633  		js.Pointer(&ret), js.Pointer(&exception),
  1634  		js.Pointer(&details),
  1635  	)
  1636  
  1637  	return
  1638  }
  1639  
  1640  // HasFuncGetDefaultFontSize returns true if the function "WEBEXT.fontSettings.getDefaultFontSize" exists.
  1641  func HasFuncGetDefaultFontSize() bool {
  1642  	return js.True == bindings.HasFuncGetDefaultFontSize()
  1643  }
  1644  
  1645  // FuncGetDefaultFontSize returns the function "WEBEXT.fontSettings.getDefaultFontSize".
  1646  func FuncGetDefaultFontSize() (fn js.Func[func(details GetDefaultFontSizeArgDetails) js.Promise[GetDefaultFontSizeReturnType]]) {
  1647  	bindings.FuncGetDefaultFontSize(
  1648  		js.Pointer(&fn),
  1649  	)
  1650  	return
  1651  }
  1652  
  1653  // GetDefaultFontSize calls the function "WEBEXT.fontSettings.getDefaultFontSize" directly.
  1654  func GetDefaultFontSize(details GetDefaultFontSizeArgDetails) (ret js.Promise[GetDefaultFontSizeReturnType]) {
  1655  	bindings.CallGetDefaultFontSize(
  1656  		js.Pointer(&ret),
  1657  		js.Pointer(&details),
  1658  	)
  1659  
  1660  	return
  1661  }
  1662  
  1663  // TryGetDefaultFontSize calls the function "WEBEXT.fontSettings.getDefaultFontSize"
  1664  // in a try/catch block and returns (_, err, ok = false) when it went through
  1665  // the catch clause.
  1666  func TryGetDefaultFontSize(details GetDefaultFontSizeArgDetails) (ret js.Promise[GetDefaultFontSizeReturnType], exception js.Any, ok bool) {
  1667  	ok = js.True == bindings.TryGetDefaultFontSize(
  1668  		js.Pointer(&ret), js.Pointer(&exception),
  1669  		js.Pointer(&details),
  1670  	)
  1671  
  1672  	return
  1673  }
  1674  
  1675  // HasFuncGetFont returns true if the function "WEBEXT.fontSettings.getFont" exists.
  1676  func HasFuncGetFont() bool {
  1677  	return js.True == bindings.HasFuncGetFont()
  1678  }
  1679  
  1680  // FuncGetFont returns the function "WEBEXT.fontSettings.getFont".
  1681  func FuncGetFont() (fn js.Func[func(details GetFontArgDetails) js.Promise[GetFontReturnType]]) {
  1682  	bindings.FuncGetFont(
  1683  		js.Pointer(&fn),
  1684  	)
  1685  	return
  1686  }
  1687  
  1688  // GetFont calls the function "WEBEXT.fontSettings.getFont" directly.
  1689  func GetFont(details GetFontArgDetails) (ret js.Promise[GetFontReturnType]) {
  1690  	bindings.CallGetFont(
  1691  		js.Pointer(&ret),
  1692  		js.Pointer(&details),
  1693  	)
  1694  
  1695  	return
  1696  }
  1697  
  1698  // TryGetFont calls the function "WEBEXT.fontSettings.getFont"
  1699  // in a try/catch block and returns (_, err, ok = false) when it went through
  1700  // the catch clause.
  1701  func TryGetFont(details GetFontArgDetails) (ret js.Promise[GetFontReturnType], exception js.Any, ok bool) {
  1702  	ok = js.True == bindings.TryGetFont(
  1703  		js.Pointer(&ret), js.Pointer(&exception),
  1704  		js.Pointer(&details),
  1705  	)
  1706  
  1707  	return
  1708  }
  1709  
  1710  // HasFuncGetFontList returns true if the function "WEBEXT.fontSettings.getFontList" exists.
  1711  func HasFuncGetFontList() bool {
  1712  	return js.True == bindings.HasFuncGetFontList()
  1713  }
  1714  
  1715  // FuncGetFontList returns the function "WEBEXT.fontSettings.getFontList".
  1716  func FuncGetFontList() (fn js.Func[func() js.Promise[js.Array[FontName]]]) {
  1717  	bindings.FuncGetFontList(
  1718  		js.Pointer(&fn),
  1719  	)
  1720  	return
  1721  }
  1722  
  1723  // GetFontList calls the function "WEBEXT.fontSettings.getFontList" directly.
  1724  func GetFontList() (ret js.Promise[js.Array[FontName]]) {
  1725  	bindings.CallGetFontList(
  1726  		js.Pointer(&ret),
  1727  	)
  1728  
  1729  	return
  1730  }
  1731  
  1732  // TryGetFontList calls the function "WEBEXT.fontSettings.getFontList"
  1733  // in a try/catch block and returns (_, err, ok = false) when it went through
  1734  // the catch clause.
  1735  func TryGetFontList() (ret js.Promise[js.Array[FontName]], exception js.Any, ok bool) {
  1736  	ok = js.True == bindings.TryGetFontList(
  1737  		js.Pointer(&ret), js.Pointer(&exception),
  1738  	)
  1739  
  1740  	return
  1741  }
  1742  
  1743  // HasFuncGetMinimumFontSize returns true if the function "WEBEXT.fontSettings.getMinimumFontSize" exists.
  1744  func HasFuncGetMinimumFontSize() bool {
  1745  	return js.True == bindings.HasFuncGetMinimumFontSize()
  1746  }
  1747  
  1748  // FuncGetMinimumFontSize returns the function "WEBEXT.fontSettings.getMinimumFontSize".
  1749  func FuncGetMinimumFontSize() (fn js.Func[func(details GetMinimumFontSizeArgDetails) js.Promise[GetMinimumFontSizeReturnType]]) {
  1750  	bindings.FuncGetMinimumFontSize(
  1751  		js.Pointer(&fn),
  1752  	)
  1753  	return
  1754  }
  1755  
  1756  // GetMinimumFontSize calls the function "WEBEXT.fontSettings.getMinimumFontSize" directly.
  1757  func GetMinimumFontSize(details GetMinimumFontSizeArgDetails) (ret js.Promise[GetMinimumFontSizeReturnType]) {
  1758  	bindings.CallGetMinimumFontSize(
  1759  		js.Pointer(&ret),
  1760  		js.Pointer(&details),
  1761  	)
  1762  
  1763  	return
  1764  }
  1765  
  1766  // TryGetMinimumFontSize calls the function "WEBEXT.fontSettings.getMinimumFontSize"
  1767  // in a try/catch block and returns (_, err, ok = false) when it went through
  1768  // the catch clause.
  1769  func TryGetMinimumFontSize(details GetMinimumFontSizeArgDetails) (ret js.Promise[GetMinimumFontSizeReturnType], exception js.Any, ok bool) {
  1770  	ok = js.True == bindings.TryGetMinimumFontSize(
  1771  		js.Pointer(&ret), js.Pointer(&exception),
  1772  		js.Pointer(&details),
  1773  	)
  1774  
  1775  	return
  1776  }
  1777  
  1778  type OnDefaultFixedFontSizeChangedEventCallbackFunc func(this js.Ref, details *OnDefaultFixedFontSizeChangedArgDetails) js.Ref
  1779  
  1780  func (fn OnDefaultFixedFontSizeChangedEventCallbackFunc) Register() js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)] {
  1781  	return js.RegisterCallback[func(details *OnDefaultFixedFontSizeChangedArgDetails)](
  1782  		fn, abi.FuncPCABIInternal(fn),
  1783  	)
  1784  }
  1785  
  1786  func (fn OnDefaultFixedFontSizeChangedEventCallbackFunc) DispatchCallback(
  1787  	targetPC uintptr, ctx *js.CallbackContext,
  1788  ) {
  1789  	args := ctx.Args()
  1790  	if len(args) != 1+1 /* js this */ ||
  1791  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  1792  		js.ThrowInvalidCallbackInvocation()
  1793  	}
  1794  	var arg0 OnDefaultFixedFontSizeChangedArgDetails
  1795  	arg0.UpdateFrom(args[0+1])
  1796  	defer arg0.FreeMembers(true)
  1797  
  1798  	if ctx.Return(fn(
  1799  		args[0],
  1800  
  1801  		mark.NoEscape(&arg0),
  1802  	)) {
  1803  		return
  1804  	}
  1805  
  1806  	js.ThrowCallbackValueNotReturned()
  1807  }
  1808  
  1809  type OnDefaultFixedFontSizeChangedEventCallback[T any] struct {
  1810  	Fn  func(arg T, this js.Ref, details *OnDefaultFixedFontSizeChangedArgDetails) js.Ref
  1811  	Arg T
  1812  }
  1813  
  1814  func (cb *OnDefaultFixedFontSizeChangedEventCallback[T]) Register() js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)] {
  1815  	return js.RegisterCallback[func(details *OnDefaultFixedFontSizeChangedArgDetails)](
  1816  		cb, abi.FuncPCABIInternal(cb.Fn),
  1817  	)
  1818  }
  1819  
  1820  func (cb *OnDefaultFixedFontSizeChangedEventCallback[T]) DispatchCallback(
  1821  	targetPC uintptr, ctx *js.CallbackContext,
  1822  ) {
  1823  	args := ctx.Args()
  1824  	if len(args) != 1+1 /* js this */ ||
  1825  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  1826  		js.ThrowInvalidCallbackInvocation()
  1827  	}
  1828  	var arg0 OnDefaultFixedFontSizeChangedArgDetails
  1829  	arg0.UpdateFrom(args[0+1])
  1830  	defer arg0.FreeMembers(true)
  1831  
  1832  	if ctx.Return(cb.Fn(
  1833  		cb.Arg,
  1834  		args[0],
  1835  
  1836  		mark.NoEscape(&arg0),
  1837  	)) {
  1838  		return
  1839  	}
  1840  
  1841  	js.ThrowCallbackValueNotReturned()
  1842  }
  1843  
  1844  // HasFuncOnDefaultFixedFontSizeChanged returns true if the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.addListener" exists.
  1845  func HasFuncOnDefaultFixedFontSizeChanged() bool {
  1846  	return js.True == bindings.HasFuncOnDefaultFixedFontSizeChanged()
  1847  }
  1848  
  1849  // FuncOnDefaultFixedFontSizeChanged returns the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.addListener".
  1850  func FuncOnDefaultFixedFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)])]) {
  1851  	bindings.FuncOnDefaultFixedFontSizeChanged(
  1852  		js.Pointer(&fn),
  1853  	)
  1854  	return
  1855  }
  1856  
  1857  // OnDefaultFixedFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.addListener" directly.
  1858  func OnDefaultFixedFontSizeChanged(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) (ret js.Void) {
  1859  	bindings.CallOnDefaultFixedFontSizeChanged(
  1860  		js.Pointer(&ret),
  1861  		callback.Ref(),
  1862  	)
  1863  
  1864  	return
  1865  }
  1866  
  1867  // TryOnDefaultFixedFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.addListener"
  1868  // in a try/catch block and returns (_, err, ok = false) when it went through
  1869  // the catch clause.
  1870  func TryOnDefaultFixedFontSizeChanged(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  1871  	ok = js.True == bindings.TryOnDefaultFixedFontSizeChanged(
  1872  		js.Pointer(&ret), js.Pointer(&exception),
  1873  		callback.Ref(),
  1874  	)
  1875  
  1876  	return
  1877  }
  1878  
  1879  // HasFuncOffDefaultFixedFontSizeChanged returns true if the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.removeListener" exists.
  1880  func HasFuncOffDefaultFixedFontSizeChanged() bool {
  1881  	return js.True == bindings.HasFuncOffDefaultFixedFontSizeChanged()
  1882  }
  1883  
  1884  // FuncOffDefaultFixedFontSizeChanged returns the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.removeListener".
  1885  func FuncOffDefaultFixedFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)])]) {
  1886  	bindings.FuncOffDefaultFixedFontSizeChanged(
  1887  		js.Pointer(&fn),
  1888  	)
  1889  	return
  1890  }
  1891  
  1892  // OffDefaultFixedFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.removeListener" directly.
  1893  func OffDefaultFixedFontSizeChanged(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) (ret js.Void) {
  1894  	bindings.CallOffDefaultFixedFontSizeChanged(
  1895  		js.Pointer(&ret),
  1896  		callback.Ref(),
  1897  	)
  1898  
  1899  	return
  1900  }
  1901  
  1902  // TryOffDefaultFixedFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.removeListener"
  1903  // in a try/catch block and returns (_, err, ok = false) when it went through
  1904  // the catch clause.
  1905  func TryOffDefaultFixedFontSizeChanged(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  1906  	ok = js.True == bindings.TryOffDefaultFixedFontSizeChanged(
  1907  		js.Pointer(&ret), js.Pointer(&exception),
  1908  		callback.Ref(),
  1909  	)
  1910  
  1911  	return
  1912  }
  1913  
  1914  // HasFuncHasOnDefaultFixedFontSizeChanged returns true if the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.hasListener" exists.
  1915  func HasFuncHasOnDefaultFixedFontSizeChanged() bool {
  1916  	return js.True == bindings.HasFuncHasOnDefaultFixedFontSizeChanged()
  1917  }
  1918  
  1919  // FuncHasOnDefaultFixedFontSizeChanged returns the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.hasListener".
  1920  func FuncHasOnDefaultFixedFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) bool]) {
  1921  	bindings.FuncHasOnDefaultFixedFontSizeChanged(
  1922  		js.Pointer(&fn),
  1923  	)
  1924  	return
  1925  }
  1926  
  1927  // HasOnDefaultFixedFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.hasListener" directly.
  1928  func HasOnDefaultFixedFontSizeChanged(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) (ret bool) {
  1929  	bindings.CallHasOnDefaultFixedFontSizeChanged(
  1930  		js.Pointer(&ret),
  1931  		callback.Ref(),
  1932  	)
  1933  
  1934  	return
  1935  }
  1936  
  1937  // TryHasOnDefaultFixedFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFixedFontSizeChanged.hasListener"
  1938  // in a try/catch block and returns (_, err, ok = false) when it went through
  1939  // the catch clause.
  1940  func TryHasOnDefaultFixedFontSizeChanged(callback js.Func[func(details *OnDefaultFixedFontSizeChangedArgDetails)]) (ret bool, exception js.Any, ok bool) {
  1941  	ok = js.True == bindings.TryHasOnDefaultFixedFontSizeChanged(
  1942  		js.Pointer(&ret), js.Pointer(&exception),
  1943  		callback.Ref(),
  1944  	)
  1945  
  1946  	return
  1947  }
  1948  
  1949  type OnDefaultFontSizeChangedEventCallbackFunc func(this js.Ref, details *OnDefaultFontSizeChangedArgDetails) js.Ref
  1950  
  1951  func (fn OnDefaultFontSizeChangedEventCallbackFunc) Register() js.Func[func(details *OnDefaultFontSizeChangedArgDetails)] {
  1952  	return js.RegisterCallback[func(details *OnDefaultFontSizeChangedArgDetails)](
  1953  		fn, abi.FuncPCABIInternal(fn),
  1954  	)
  1955  }
  1956  
  1957  func (fn OnDefaultFontSizeChangedEventCallbackFunc) DispatchCallback(
  1958  	targetPC uintptr, ctx *js.CallbackContext,
  1959  ) {
  1960  	args := ctx.Args()
  1961  	if len(args) != 1+1 /* js this */ ||
  1962  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  1963  		js.ThrowInvalidCallbackInvocation()
  1964  	}
  1965  	var arg0 OnDefaultFontSizeChangedArgDetails
  1966  	arg0.UpdateFrom(args[0+1])
  1967  	defer arg0.FreeMembers(true)
  1968  
  1969  	if ctx.Return(fn(
  1970  		args[0],
  1971  
  1972  		mark.NoEscape(&arg0),
  1973  	)) {
  1974  		return
  1975  	}
  1976  
  1977  	js.ThrowCallbackValueNotReturned()
  1978  }
  1979  
  1980  type OnDefaultFontSizeChangedEventCallback[T any] struct {
  1981  	Fn  func(arg T, this js.Ref, details *OnDefaultFontSizeChangedArgDetails) js.Ref
  1982  	Arg T
  1983  }
  1984  
  1985  func (cb *OnDefaultFontSizeChangedEventCallback[T]) Register() js.Func[func(details *OnDefaultFontSizeChangedArgDetails)] {
  1986  	return js.RegisterCallback[func(details *OnDefaultFontSizeChangedArgDetails)](
  1987  		cb, abi.FuncPCABIInternal(cb.Fn),
  1988  	)
  1989  }
  1990  
  1991  func (cb *OnDefaultFontSizeChangedEventCallback[T]) DispatchCallback(
  1992  	targetPC uintptr, ctx *js.CallbackContext,
  1993  ) {
  1994  	args := ctx.Args()
  1995  	if len(args) != 1+1 /* js this */ ||
  1996  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  1997  		js.ThrowInvalidCallbackInvocation()
  1998  	}
  1999  	var arg0 OnDefaultFontSizeChangedArgDetails
  2000  	arg0.UpdateFrom(args[0+1])
  2001  	defer arg0.FreeMembers(true)
  2002  
  2003  	if ctx.Return(cb.Fn(
  2004  		cb.Arg,
  2005  		args[0],
  2006  
  2007  		mark.NoEscape(&arg0),
  2008  	)) {
  2009  		return
  2010  	}
  2011  
  2012  	js.ThrowCallbackValueNotReturned()
  2013  }
  2014  
  2015  // HasFuncOnDefaultFontSizeChanged returns true if the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.addListener" exists.
  2016  func HasFuncOnDefaultFontSizeChanged() bool {
  2017  	return js.True == bindings.HasFuncOnDefaultFontSizeChanged()
  2018  }
  2019  
  2020  // FuncOnDefaultFontSizeChanged returns the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.addListener".
  2021  func FuncOnDefaultFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)])]) {
  2022  	bindings.FuncOnDefaultFontSizeChanged(
  2023  		js.Pointer(&fn),
  2024  	)
  2025  	return
  2026  }
  2027  
  2028  // OnDefaultFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.addListener" directly.
  2029  func OnDefaultFontSizeChanged(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) (ret js.Void) {
  2030  	bindings.CallOnDefaultFontSizeChanged(
  2031  		js.Pointer(&ret),
  2032  		callback.Ref(),
  2033  	)
  2034  
  2035  	return
  2036  }
  2037  
  2038  // TryOnDefaultFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.addListener"
  2039  // in a try/catch block and returns (_, err, ok = false) when it went through
  2040  // the catch clause.
  2041  func TryOnDefaultFontSizeChanged(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  2042  	ok = js.True == bindings.TryOnDefaultFontSizeChanged(
  2043  		js.Pointer(&ret), js.Pointer(&exception),
  2044  		callback.Ref(),
  2045  	)
  2046  
  2047  	return
  2048  }
  2049  
  2050  // HasFuncOffDefaultFontSizeChanged returns true if the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.removeListener" exists.
  2051  func HasFuncOffDefaultFontSizeChanged() bool {
  2052  	return js.True == bindings.HasFuncOffDefaultFontSizeChanged()
  2053  }
  2054  
  2055  // FuncOffDefaultFontSizeChanged returns the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.removeListener".
  2056  func FuncOffDefaultFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)])]) {
  2057  	bindings.FuncOffDefaultFontSizeChanged(
  2058  		js.Pointer(&fn),
  2059  	)
  2060  	return
  2061  }
  2062  
  2063  // OffDefaultFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.removeListener" directly.
  2064  func OffDefaultFontSizeChanged(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) (ret js.Void) {
  2065  	bindings.CallOffDefaultFontSizeChanged(
  2066  		js.Pointer(&ret),
  2067  		callback.Ref(),
  2068  	)
  2069  
  2070  	return
  2071  }
  2072  
  2073  // TryOffDefaultFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.removeListener"
  2074  // in a try/catch block and returns (_, err, ok = false) when it went through
  2075  // the catch clause.
  2076  func TryOffDefaultFontSizeChanged(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  2077  	ok = js.True == bindings.TryOffDefaultFontSizeChanged(
  2078  		js.Pointer(&ret), js.Pointer(&exception),
  2079  		callback.Ref(),
  2080  	)
  2081  
  2082  	return
  2083  }
  2084  
  2085  // HasFuncHasOnDefaultFontSizeChanged returns true if the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.hasListener" exists.
  2086  func HasFuncHasOnDefaultFontSizeChanged() bool {
  2087  	return js.True == bindings.HasFuncHasOnDefaultFontSizeChanged()
  2088  }
  2089  
  2090  // FuncHasOnDefaultFontSizeChanged returns the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.hasListener".
  2091  func FuncHasOnDefaultFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) bool]) {
  2092  	bindings.FuncHasOnDefaultFontSizeChanged(
  2093  		js.Pointer(&fn),
  2094  	)
  2095  	return
  2096  }
  2097  
  2098  // HasOnDefaultFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.hasListener" directly.
  2099  func HasOnDefaultFontSizeChanged(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) (ret bool) {
  2100  	bindings.CallHasOnDefaultFontSizeChanged(
  2101  		js.Pointer(&ret),
  2102  		callback.Ref(),
  2103  	)
  2104  
  2105  	return
  2106  }
  2107  
  2108  // TryHasOnDefaultFontSizeChanged calls the function "WEBEXT.fontSettings.onDefaultFontSizeChanged.hasListener"
  2109  // in a try/catch block and returns (_, err, ok = false) when it went through
  2110  // the catch clause.
  2111  func TryHasOnDefaultFontSizeChanged(callback js.Func[func(details *OnDefaultFontSizeChangedArgDetails)]) (ret bool, exception js.Any, ok bool) {
  2112  	ok = js.True == bindings.TryHasOnDefaultFontSizeChanged(
  2113  		js.Pointer(&ret), js.Pointer(&exception),
  2114  		callback.Ref(),
  2115  	)
  2116  
  2117  	return
  2118  }
  2119  
  2120  type OnFontChangedEventCallbackFunc func(this js.Ref, details *OnFontChangedArgDetails) js.Ref
  2121  
  2122  func (fn OnFontChangedEventCallbackFunc) Register() js.Func[func(details *OnFontChangedArgDetails)] {
  2123  	return js.RegisterCallback[func(details *OnFontChangedArgDetails)](
  2124  		fn, abi.FuncPCABIInternal(fn),
  2125  	)
  2126  }
  2127  
  2128  func (fn OnFontChangedEventCallbackFunc) DispatchCallback(
  2129  	targetPC uintptr, ctx *js.CallbackContext,
  2130  ) {
  2131  	args := ctx.Args()
  2132  	if len(args) != 1+1 /* js this */ ||
  2133  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2134  		js.ThrowInvalidCallbackInvocation()
  2135  	}
  2136  	var arg0 OnFontChangedArgDetails
  2137  	arg0.UpdateFrom(args[0+1])
  2138  	defer arg0.FreeMembers(true)
  2139  
  2140  	if ctx.Return(fn(
  2141  		args[0],
  2142  
  2143  		mark.NoEscape(&arg0),
  2144  	)) {
  2145  		return
  2146  	}
  2147  
  2148  	js.ThrowCallbackValueNotReturned()
  2149  }
  2150  
  2151  type OnFontChangedEventCallback[T any] struct {
  2152  	Fn  func(arg T, this js.Ref, details *OnFontChangedArgDetails) js.Ref
  2153  	Arg T
  2154  }
  2155  
  2156  func (cb *OnFontChangedEventCallback[T]) Register() js.Func[func(details *OnFontChangedArgDetails)] {
  2157  	return js.RegisterCallback[func(details *OnFontChangedArgDetails)](
  2158  		cb, abi.FuncPCABIInternal(cb.Fn),
  2159  	)
  2160  }
  2161  
  2162  func (cb *OnFontChangedEventCallback[T]) DispatchCallback(
  2163  	targetPC uintptr, ctx *js.CallbackContext,
  2164  ) {
  2165  	args := ctx.Args()
  2166  	if len(args) != 1+1 /* js this */ ||
  2167  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2168  		js.ThrowInvalidCallbackInvocation()
  2169  	}
  2170  	var arg0 OnFontChangedArgDetails
  2171  	arg0.UpdateFrom(args[0+1])
  2172  	defer arg0.FreeMembers(true)
  2173  
  2174  	if ctx.Return(cb.Fn(
  2175  		cb.Arg,
  2176  		args[0],
  2177  
  2178  		mark.NoEscape(&arg0),
  2179  	)) {
  2180  		return
  2181  	}
  2182  
  2183  	js.ThrowCallbackValueNotReturned()
  2184  }
  2185  
  2186  // HasFuncOnFontChanged returns true if the function "WEBEXT.fontSettings.onFontChanged.addListener" exists.
  2187  func HasFuncOnFontChanged() bool {
  2188  	return js.True == bindings.HasFuncOnFontChanged()
  2189  }
  2190  
  2191  // FuncOnFontChanged returns the function "WEBEXT.fontSettings.onFontChanged.addListener".
  2192  func FuncOnFontChanged() (fn js.Func[func(callback js.Func[func(details *OnFontChangedArgDetails)])]) {
  2193  	bindings.FuncOnFontChanged(
  2194  		js.Pointer(&fn),
  2195  	)
  2196  	return
  2197  }
  2198  
  2199  // OnFontChanged calls the function "WEBEXT.fontSettings.onFontChanged.addListener" directly.
  2200  func OnFontChanged(callback js.Func[func(details *OnFontChangedArgDetails)]) (ret js.Void) {
  2201  	bindings.CallOnFontChanged(
  2202  		js.Pointer(&ret),
  2203  		callback.Ref(),
  2204  	)
  2205  
  2206  	return
  2207  }
  2208  
  2209  // TryOnFontChanged calls the function "WEBEXT.fontSettings.onFontChanged.addListener"
  2210  // in a try/catch block and returns (_, err, ok = false) when it went through
  2211  // the catch clause.
  2212  func TryOnFontChanged(callback js.Func[func(details *OnFontChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  2213  	ok = js.True == bindings.TryOnFontChanged(
  2214  		js.Pointer(&ret), js.Pointer(&exception),
  2215  		callback.Ref(),
  2216  	)
  2217  
  2218  	return
  2219  }
  2220  
  2221  // HasFuncOffFontChanged returns true if the function "WEBEXT.fontSettings.onFontChanged.removeListener" exists.
  2222  func HasFuncOffFontChanged() bool {
  2223  	return js.True == bindings.HasFuncOffFontChanged()
  2224  }
  2225  
  2226  // FuncOffFontChanged returns the function "WEBEXT.fontSettings.onFontChanged.removeListener".
  2227  func FuncOffFontChanged() (fn js.Func[func(callback js.Func[func(details *OnFontChangedArgDetails)])]) {
  2228  	bindings.FuncOffFontChanged(
  2229  		js.Pointer(&fn),
  2230  	)
  2231  	return
  2232  }
  2233  
  2234  // OffFontChanged calls the function "WEBEXT.fontSettings.onFontChanged.removeListener" directly.
  2235  func OffFontChanged(callback js.Func[func(details *OnFontChangedArgDetails)]) (ret js.Void) {
  2236  	bindings.CallOffFontChanged(
  2237  		js.Pointer(&ret),
  2238  		callback.Ref(),
  2239  	)
  2240  
  2241  	return
  2242  }
  2243  
  2244  // TryOffFontChanged calls the function "WEBEXT.fontSettings.onFontChanged.removeListener"
  2245  // in a try/catch block and returns (_, err, ok = false) when it went through
  2246  // the catch clause.
  2247  func TryOffFontChanged(callback js.Func[func(details *OnFontChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  2248  	ok = js.True == bindings.TryOffFontChanged(
  2249  		js.Pointer(&ret), js.Pointer(&exception),
  2250  		callback.Ref(),
  2251  	)
  2252  
  2253  	return
  2254  }
  2255  
  2256  // HasFuncHasOnFontChanged returns true if the function "WEBEXT.fontSettings.onFontChanged.hasListener" exists.
  2257  func HasFuncHasOnFontChanged() bool {
  2258  	return js.True == bindings.HasFuncHasOnFontChanged()
  2259  }
  2260  
  2261  // FuncHasOnFontChanged returns the function "WEBEXT.fontSettings.onFontChanged.hasListener".
  2262  func FuncHasOnFontChanged() (fn js.Func[func(callback js.Func[func(details *OnFontChangedArgDetails)]) bool]) {
  2263  	bindings.FuncHasOnFontChanged(
  2264  		js.Pointer(&fn),
  2265  	)
  2266  	return
  2267  }
  2268  
  2269  // HasOnFontChanged calls the function "WEBEXT.fontSettings.onFontChanged.hasListener" directly.
  2270  func HasOnFontChanged(callback js.Func[func(details *OnFontChangedArgDetails)]) (ret bool) {
  2271  	bindings.CallHasOnFontChanged(
  2272  		js.Pointer(&ret),
  2273  		callback.Ref(),
  2274  	)
  2275  
  2276  	return
  2277  }
  2278  
  2279  // TryHasOnFontChanged calls the function "WEBEXT.fontSettings.onFontChanged.hasListener"
  2280  // in a try/catch block and returns (_, err, ok = false) when it went through
  2281  // the catch clause.
  2282  func TryHasOnFontChanged(callback js.Func[func(details *OnFontChangedArgDetails)]) (ret bool, exception js.Any, ok bool) {
  2283  	ok = js.True == bindings.TryHasOnFontChanged(
  2284  		js.Pointer(&ret), js.Pointer(&exception),
  2285  		callback.Ref(),
  2286  	)
  2287  
  2288  	return
  2289  }
  2290  
  2291  type OnMinimumFontSizeChangedEventCallbackFunc func(this js.Ref, details *OnMinimumFontSizeChangedArgDetails) js.Ref
  2292  
  2293  func (fn OnMinimumFontSizeChangedEventCallbackFunc) Register() js.Func[func(details *OnMinimumFontSizeChangedArgDetails)] {
  2294  	return js.RegisterCallback[func(details *OnMinimumFontSizeChangedArgDetails)](
  2295  		fn, abi.FuncPCABIInternal(fn),
  2296  	)
  2297  }
  2298  
  2299  func (fn OnMinimumFontSizeChangedEventCallbackFunc) DispatchCallback(
  2300  	targetPC uintptr, ctx *js.CallbackContext,
  2301  ) {
  2302  	args := ctx.Args()
  2303  	if len(args) != 1+1 /* js this */ ||
  2304  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2305  		js.ThrowInvalidCallbackInvocation()
  2306  	}
  2307  	var arg0 OnMinimumFontSizeChangedArgDetails
  2308  	arg0.UpdateFrom(args[0+1])
  2309  	defer arg0.FreeMembers(true)
  2310  
  2311  	if ctx.Return(fn(
  2312  		args[0],
  2313  
  2314  		mark.NoEscape(&arg0),
  2315  	)) {
  2316  		return
  2317  	}
  2318  
  2319  	js.ThrowCallbackValueNotReturned()
  2320  }
  2321  
  2322  type OnMinimumFontSizeChangedEventCallback[T any] struct {
  2323  	Fn  func(arg T, this js.Ref, details *OnMinimumFontSizeChangedArgDetails) js.Ref
  2324  	Arg T
  2325  }
  2326  
  2327  func (cb *OnMinimumFontSizeChangedEventCallback[T]) Register() js.Func[func(details *OnMinimumFontSizeChangedArgDetails)] {
  2328  	return js.RegisterCallback[func(details *OnMinimumFontSizeChangedArgDetails)](
  2329  		cb, abi.FuncPCABIInternal(cb.Fn),
  2330  	)
  2331  }
  2332  
  2333  func (cb *OnMinimumFontSizeChangedEventCallback[T]) DispatchCallback(
  2334  	targetPC uintptr, ctx *js.CallbackContext,
  2335  ) {
  2336  	args := ctx.Args()
  2337  	if len(args) != 1+1 /* js this */ ||
  2338  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2339  		js.ThrowInvalidCallbackInvocation()
  2340  	}
  2341  	var arg0 OnMinimumFontSizeChangedArgDetails
  2342  	arg0.UpdateFrom(args[0+1])
  2343  	defer arg0.FreeMembers(true)
  2344  
  2345  	if ctx.Return(cb.Fn(
  2346  		cb.Arg,
  2347  		args[0],
  2348  
  2349  		mark.NoEscape(&arg0),
  2350  	)) {
  2351  		return
  2352  	}
  2353  
  2354  	js.ThrowCallbackValueNotReturned()
  2355  }
  2356  
  2357  // HasFuncOnMinimumFontSizeChanged returns true if the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.addListener" exists.
  2358  func HasFuncOnMinimumFontSizeChanged() bool {
  2359  	return js.True == bindings.HasFuncOnMinimumFontSizeChanged()
  2360  }
  2361  
  2362  // FuncOnMinimumFontSizeChanged returns the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.addListener".
  2363  func FuncOnMinimumFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)])]) {
  2364  	bindings.FuncOnMinimumFontSizeChanged(
  2365  		js.Pointer(&fn),
  2366  	)
  2367  	return
  2368  }
  2369  
  2370  // OnMinimumFontSizeChanged calls the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.addListener" directly.
  2371  func OnMinimumFontSizeChanged(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) (ret js.Void) {
  2372  	bindings.CallOnMinimumFontSizeChanged(
  2373  		js.Pointer(&ret),
  2374  		callback.Ref(),
  2375  	)
  2376  
  2377  	return
  2378  }
  2379  
  2380  // TryOnMinimumFontSizeChanged calls the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.addListener"
  2381  // in a try/catch block and returns (_, err, ok = false) when it went through
  2382  // the catch clause.
  2383  func TryOnMinimumFontSizeChanged(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  2384  	ok = js.True == bindings.TryOnMinimumFontSizeChanged(
  2385  		js.Pointer(&ret), js.Pointer(&exception),
  2386  		callback.Ref(),
  2387  	)
  2388  
  2389  	return
  2390  }
  2391  
  2392  // HasFuncOffMinimumFontSizeChanged returns true if the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.removeListener" exists.
  2393  func HasFuncOffMinimumFontSizeChanged() bool {
  2394  	return js.True == bindings.HasFuncOffMinimumFontSizeChanged()
  2395  }
  2396  
  2397  // FuncOffMinimumFontSizeChanged returns the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.removeListener".
  2398  func FuncOffMinimumFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)])]) {
  2399  	bindings.FuncOffMinimumFontSizeChanged(
  2400  		js.Pointer(&fn),
  2401  	)
  2402  	return
  2403  }
  2404  
  2405  // OffMinimumFontSizeChanged calls the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.removeListener" directly.
  2406  func OffMinimumFontSizeChanged(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) (ret js.Void) {
  2407  	bindings.CallOffMinimumFontSizeChanged(
  2408  		js.Pointer(&ret),
  2409  		callback.Ref(),
  2410  	)
  2411  
  2412  	return
  2413  }
  2414  
  2415  // TryOffMinimumFontSizeChanged calls the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.removeListener"
  2416  // in a try/catch block and returns (_, err, ok = false) when it went through
  2417  // the catch clause.
  2418  func TryOffMinimumFontSizeChanged(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) (ret js.Void, exception js.Any, ok bool) {
  2419  	ok = js.True == bindings.TryOffMinimumFontSizeChanged(
  2420  		js.Pointer(&ret), js.Pointer(&exception),
  2421  		callback.Ref(),
  2422  	)
  2423  
  2424  	return
  2425  }
  2426  
  2427  // HasFuncHasOnMinimumFontSizeChanged returns true if the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.hasListener" exists.
  2428  func HasFuncHasOnMinimumFontSizeChanged() bool {
  2429  	return js.True == bindings.HasFuncHasOnMinimumFontSizeChanged()
  2430  }
  2431  
  2432  // FuncHasOnMinimumFontSizeChanged returns the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.hasListener".
  2433  func FuncHasOnMinimumFontSizeChanged() (fn js.Func[func(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) bool]) {
  2434  	bindings.FuncHasOnMinimumFontSizeChanged(
  2435  		js.Pointer(&fn),
  2436  	)
  2437  	return
  2438  }
  2439  
  2440  // HasOnMinimumFontSizeChanged calls the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.hasListener" directly.
  2441  func HasOnMinimumFontSizeChanged(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) (ret bool) {
  2442  	bindings.CallHasOnMinimumFontSizeChanged(
  2443  		js.Pointer(&ret),
  2444  		callback.Ref(),
  2445  	)
  2446  
  2447  	return
  2448  }
  2449  
  2450  // TryHasOnMinimumFontSizeChanged calls the function "WEBEXT.fontSettings.onMinimumFontSizeChanged.hasListener"
  2451  // in a try/catch block and returns (_, err, ok = false) when it went through
  2452  // the catch clause.
  2453  func TryHasOnMinimumFontSizeChanged(callback js.Func[func(details *OnMinimumFontSizeChangedArgDetails)]) (ret bool, exception js.Any, ok bool) {
  2454  	ok = js.True == bindings.TryHasOnMinimumFontSizeChanged(
  2455  		js.Pointer(&ret), js.Pointer(&exception),
  2456  		callback.Ref(),
  2457  	)
  2458  
  2459  	return
  2460  }
  2461  
  2462  // HasFuncSetDefaultFixedFontSize returns true if the function "WEBEXT.fontSettings.setDefaultFixedFontSize" exists.
  2463  func HasFuncSetDefaultFixedFontSize() bool {
  2464  	return js.True == bindings.HasFuncSetDefaultFixedFontSize()
  2465  }
  2466  
  2467  // FuncSetDefaultFixedFontSize returns the function "WEBEXT.fontSettings.setDefaultFixedFontSize".
  2468  func FuncSetDefaultFixedFontSize() (fn js.Func[func(details SetDefaultFixedFontSizeArgDetails) js.Promise[js.Void]]) {
  2469  	bindings.FuncSetDefaultFixedFontSize(
  2470  		js.Pointer(&fn),
  2471  	)
  2472  	return
  2473  }
  2474  
  2475  // SetDefaultFixedFontSize calls the function "WEBEXT.fontSettings.setDefaultFixedFontSize" directly.
  2476  func SetDefaultFixedFontSize(details SetDefaultFixedFontSizeArgDetails) (ret js.Promise[js.Void]) {
  2477  	bindings.CallSetDefaultFixedFontSize(
  2478  		js.Pointer(&ret),
  2479  		js.Pointer(&details),
  2480  	)
  2481  
  2482  	return
  2483  }
  2484  
  2485  // TrySetDefaultFixedFontSize calls the function "WEBEXT.fontSettings.setDefaultFixedFontSize"
  2486  // in a try/catch block and returns (_, err, ok = false) when it went through
  2487  // the catch clause.
  2488  func TrySetDefaultFixedFontSize(details SetDefaultFixedFontSizeArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  2489  	ok = js.True == bindings.TrySetDefaultFixedFontSize(
  2490  		js.Pointer(&ret), js.Pointer(&exception),
  2491  		js.Pointer(&details),
  2492  	)
  2493  
  2494  	return
  2495  }
  2496  
  2497  // HasFuncSetDefaultFontSize returns true if the function "WEBEXT.fontSettings.setDefaultFontSize" exists.
  2498  func HasFuncSetDefaultFontSize() bool {
  2499  	return js.True == bindings.HasFuncSetDefaultFontSize()
  2500  }
  2501  
  2502  // FuncSetDefaultFontSize returns the function "WEBEXT.fontSettings.setDefaultFontSize".
  2503  func FuncSetDefaultFontSize() (fn js.Func[func(details SetDefaultFontSizeArgDetails) js.Promise[js.Void]]) {
  2504  	bindings.FuncSetDefaultFontSize(
  2505  		js.Pointer(&fn),
  2506  	)
  2507  	return
  2508  }
  2509  
  2510  // SetDefaultFontSize calls the function "WEBEXT.fontSettings.setDefaultFontSize" directly.
  2511  func SetDefaultFontSize(details SetDefaultFontSizeArgDetails) (ret js.Promise[js.Void]) {
  2512  	bindings.CallSetDefaultFontSize(
  2513  		js.Pointer(&ret),
  2514  		js.Pointer(&details),
  2515  	)
  2516  
  2517  	return
  2518  }
  2519  
  2520  // TrySetDefaultFontSize calls the function "WEBEXT.fontSettings.setDefaultFontSize"
  2521  // in a try/catch block and returns (_, err, ok = false) when it went through
  2522  // the catch clause.
  2523  func TrySetDefaultFontSize(details SetDefaultFontSizeArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  2524  	ok = js.True == bindings.TrySetDefaultFontSize(
  2525  		js.Pointer(&ret), js.Pointer(&exception),
  2526  		js.Pointer(&details),
  2527  	)
  2528  
  2529  	return
  2530  }
  2531  
  2532  // HasFuncSetFont returns true if the function "WEBEXT.fontSettings.setFont" exists.
  2533  func HasFuncSetFont() bool {
  2534  	return js.True == bindings.HasFuncSetFont()
  2535  }
  2536  
  2537  // FuncSetFont returns the function "WEBEXT.fontSettings.setFont".
  2538  func FuncSetFont() (fn js.Func[func(details SetFontArgDetails) js.Promise[js.Void]]) {
  2539  	bindings.FuncSetFont(
  2540  		js.Pointer(&fn),
  2541  	)
  2542  	return
  2543  }
  2544  
  2545  // SetFont calls the function "WEBEXT.fontSettings.setFont" directly.
  2546  func SetFont(details SetFontArgDetails) (ret js.Promise[js.Void]) {
  2547  	bindings.CallSetFont(
  2548  		js.Pointer(&ret),
  2549  		js.Pointer(&details),
  2550  	)
  2551  
  2552  	return
  2553  }
  2554  
  2555  // TrySetFont calls the function "WEBEXT.fontSettings.setFont"
  2556  // in a try/catch block and returns (_, err, ok = false) when it went through
  2557  // the catch clause.
  2558  func TrySetFont(details SetFontArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  2559  	ok = js.True == bindings.TrySetFont(
  2560  		js.Pointer(&ret), js.Pointer(&exception),
  2561  		js.Pointer(&details),
  2562  	)
  2563  
  2564  	return
  2565  }
  2566  
  2567  // HasFuncSetMinimumFontSize returns true if the function "WEBEXT.fontSettings.setMinimumFontSize" exists.
  2568  func HasFuncSetMinimumFontSize() bool {
  2569  	return js.True == bindings.HasFuncSetMinimumFontSize()
  2570  }
  2571  
  2572  // FuncSetMinimumFontSize returns the function "WEBEXT.fontSettings.setMinimumFontSize".
  2573  func FuncSetMinimumFontSize() (fn js.Func[func(details SetMinimumFontSizeArgDetails) js.Promise[js.Void]]) {
  2574  	bindings.FuncSetMinimumFontSize(
  2575  		js.Pointer(&fn),
  2576  	)
  2577  	return
  2578  }
  2579  
  2580  // SetMinimumFontSize calls the function "WEBEXT.fontSettings.setMinimumFontSize" directly.
  2581  func SetMinimumFontSize(details SetMinimumFontSizeArgDetails) (ret js.Promise[js.Void]) {
  2582  	bindings.CallSetMinimumFontSize(
  2583  		js.Pointer(&ret),
  2584  		js.Pointer(&details),
  2585  	)
  2586  
  2587  	return
  2588  }
  2589  
  2590  // TrySetMinimumFontSize calls the function "WEBEXT.fontSettings.setMinimumFontSize"
  2591  // in a try/catch block and returns (_, err, ok = false) when it went through
  2592  // the catch clause.
  2593  func TrySetMinimumFontSize(details SetMinimumFontSizeArgDetails) (ret js.Promise[js.Void], exception js.Any, ok bool) {
  2594  	ok = js.True == bindings.TrySetMinimumFontSize(
  2595  		js.Pointer(&ret), js.Pointer(&exception),
  2596  		js.Pointer(&details),
  2597  	)
  2598  
  2599  	return
  2600  }