github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/extensionoptionsinternal/bindings/import_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  //go:build wasm
     5  
     6  package bindings
     7  
     8  import (
     9  	"unsafe"
    10  
    11  	"github.com/primecitizens/pcz/std/ffi/js"
    12  )
    13  
    14  type (
    15  	_ unsafe.Pointer
    16  	_ js.Ref
    17  )
    18  
    19  //go:wasmimport plat/js/webext/extensionoptionsinternal store_PreferredSizeChangedOptions
    20  //go:noescape
    21  func PreferredSizeChangedOptionsJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/extensionoptionsinternal load_PreferredSizeChangedOptions
    25  //go:noescape
    26  func PreferredSizeChangedOptionsJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/extensionoptionsinternal store_SizeChangedOptions
    30  //go:noescape
    31  func SizeChangedOptionsJSStore(
    32  	ptr unsafe.Pointer, ref js.Ref)
    33  
    34  //go:wasmimport plat/js/webext/extensionoptionsinternal load_SizeChangedOptions
    35  //go:noescape
    36  func SizeChangedOptionsJSLoad(
    37  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    38  
    39  //go:wasmimport plat/js/webext/extensionoptionsinternal has_OnClose
    40  //go:noescape
    41  func HasFuncOnClose() js.Ref
    42  
    43  //go:wasmimport plat/js/webext/extensionoptionsinternal func_OnClose
    44  //go:noescape
    45  func FuncOnClose(fn unsafe.Pointer)
    46  
    47  //go:wasmimport plat/js/webext/extensionoptionsinternal call_OnClose
    48  //go:noescape
    49  func CallOnClose(
    50  	retPtr unsafe.Pointer,
    51  	callback js.Ref)
    52  
    53  //go:wasmimport plat/js/webext/extensionoptionsinternal try_OnClose
    54  //go:noescape
    55  func TryOnClose(
    56  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    57  	callback js.Ref) (ok js.Ref)
    58  
    59  //go:wasmimport plat/js/webext/extensionoptionsinternal has_OffClose
    60  //go:noescape
    61  func HasFuncOffClose() js.Ref
    62  
    63  //go:wasmimport plat/js/webext/extensionoptionsinternal func_OffClose
    64  //go:noescape
    65  func FuncOffClose(fn unsafe.Pointer)
    66  
    67  //go:wasmimport plat/js/webext/extensionoptionsinternal call_OffClose
    68  //go:noescape
    69  func CallOffClose(
    70  	retPtr unsafe.Pointer,
    71  	callback js.Ref)
    72  
    73  //go:wasmimport plat/js/webext/extensionoptionsinternal try_OffClose
    74  //go:noescape
    75  func TryOffClose(
    76  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    77  	callback js.Ref) (ok js.Ref)
    78  
    79  //go:wasmimport plat/js/webext/extensionoptionsinternal has_HasOnClose
    80  //go:noescape
    81  func HasFuncHasOnClose() js.Ref
    82  
    83  //go:wasmimport plat/js/webext/extensionoptionsinternal func_HasOnClose
    84  //go:noescape
    85  func FuncHasOnClose(fn unsafe.Pointer)
    86  
    87  //go:wasmimport plat/js/webext/extensionoptionsinternal call_HasOnClose
    88  //go:noescape
    89  func CallHasOnClose(
    90  	retPtr unsafe.Pointer,
    91  	callback js.Ref)
    92  
    93  //go:wasmimport plat/js/webext/extensionoptionsinternal try_HasOnClose
    94  //go:noescape
    95  func TryHasOnClose(
    96  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    97  	callback js.Ref) (ok js.Ref)
    98  
    99  //go:wasmimport plat/js/webext/extensionoptionsinternal has_OnLoad
   100  //go:noescape
   101  func HasFuncOnLoad() js.Ref
   102  
   103  //go:wasmimport plat/js/webext/extensionoptionsinternal func_OnLoad
   104  //go:noescape
   105  func FuncOnLoad(fn unsafe.Pointer)
   106  
   107  //go:wasmimport plat/js/webext/extensionoptionsinternal call_OnLoad
   108  //go:noescape
   109  func CallOnLoad(
   110  	retPtr unsafe.Pointer,
   111  	callback js.Ref)
   112  
   113  //go:wasmimport plat/js/webext/extensionoptionsinternal try_OnLoad
   114  //go:noescape
   115  func TryOnLoad(
   116  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   117  	callback js.Ref) (ok js.Ref)
   118  
   119  //go:wasmimport plat/js/webext/extensionoptionsinternal has_OffLoad
   120  //go:noescape
   121  func HasFuncOffLoad() js.Ref
   122  
   123  //go:wasmimport plat/js/webext/extensionoptionsinternal func_OffLoad
   124  //go:noescape
   125  func FuncOffLoad(fn unsafe.Pointer)
   126  
   127  //go:wasmimport plat/js/webext/extensionoptionsinternal call_OffLoad
   128  //go:noescape
   129  func CallOffLoad(
   130  	retPtr unsafe.Pointer,
   131  	callback js.Ref)
   132  
   133  //go:wasmimport plat/js/webext/extensionoptionsinternal try_OffLoad
   134  //go:noescape
   135  func TryOffLoad(
   136  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   137  	callback js.Ref) (ok js.Ref)
   138  
   139  //go:wasmimport plat/js/webext/extensionoptionsinternal has_HasOnLoad
   140  //go:noescape
   141  func HasFuncHasOnLoad() js.Ref
   142  
   143  //go:wasmimport plat/js/webext/extensionoptionsinternal func_HasOnLoad
   144  //go:noescape
   145  func FuncHasOnLoad(fn unsafe.Pointer)
   146  
   147  //go:wasmimport plat/js/webext/extensionoptionsinternal call_HasOnLoad
   148  //go:noescape
   149  func CallHasOnLoad(
   150  	retPtr unsafe.Pointer,
   151  	callback js.Ref)
   152  
   153  //go:wasmimport plat/js/webext/extensionoptionsinternal try_HasOnLoad
   154  //go:noescape
   155  func TryHasOnLoad(
   156  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   157  	callback js.Ref) (ok js.Ref)
   158  
   159  //go:wasmimport plat/js/webext/extensionoptionsinternal has_OnPreferredSizeChanged
   160  //go:noescape
   161  func HasFuncOnPreferredSizeChanged() js.Ref
   162  
   163  //go:wasmimport plat/js/webext/extensionoptionsinternal func_OnPreferredSizeChanged
   164  //go:noescape
   165  func FuncOnPreferredSizeChanged(fn unsafe.Pointer)
   166  
   167  //go:wasmimport plat/js/webext/extensionoptionsinternal call_OnPreferredSizeChanged
   168  //go:noescape
   169  func CallOnPreferredSizeChanged(
   170  	retPtr unsafe.Pointer,
   171  	callback js.Ref)
   172  
   173  //go:wasmimport plat/js/webext/extensionoptionsinternal try_OnPreferredSizeChanged
   174  //go:noescape
   175  func TryOnPreferredSizeChanged(
   176  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   177  	callback js.Ref) (ok js.Ref)
   178  
   179  //go:wasmimport plat/js/webext/extensionoptionsinternal has_OffPreferredSizeChanged
   180  //go:noescape
   181  func HasFuncOffPreferredSizeChanged() js.Ref
   182  
   183  //go:wasmimport plat/js/webext/extensionoptionsinternal func_OffPreferredSizeChanged
   184  //go:noescape
   185  func FuncOffPreferredSizeChanged(fn unsafe.Pointer)
   186  
   187  //go:wasmimport plat/js/webext/extensionoptionsinternal call_OffPreferredSizeChanged
   188  //go:noescape
   189  func CallOffPreferredSizeChanged(
   190  	retPtr unsafe.Pointer,
   191  	callback js.Ref)
   192  
   193  //go:wasmimport plat/js/webext/extensionoptionsinternal try_OffPreferredSizeChanged
   194  //go:noescape
   195  func TryOffPreferredSizeChanged(
   196  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   197  	callback js.Ref) (ok js.Ref)
   198  
   199  //go:wasmimport plat/js/webext/extensionoptionsinternal has_HasOnPreferredSizeChanged
   200  //go:noescape
   201  func HasFuncHasOnPreferredSizeChanged() js.Ref
   202  
   203  //go:wasmimport plat/js/webext/extensionoptionsinternal func_HasOnPreferredSizeChanged
   204  //go:noescape
   205  func FuncHasOnPreferredSizeChanged(fn unsafe.Pointer)
   206  
   207  //go:wasmimport plat/js/webext/extensionoptionsinternal call_HasOnPreferredSizeChanged
   208  //go:noescape
   209  func CallHasOnPreferredSizeChanged(
   210  	retPtr unsafe.Pointer,
   211  	callback js.Ref)
   212  
   213  //go:wasmimport plat/js/webext/extensionoptionsinternal try_HasOnPreferredSizeChanged
   214  //go:noescape
   215  func TryHasOnPreferredSizeChanged(
   216  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   217  	callback js.Ref) (ok js.Ref)