github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/systemindicator/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/systemindicator store_SetIconDetails
    20  //go:noescape
    21  func SetIconDetailsJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/systemindicator load_SetIconDetails
    25  //go:noescape
    26  func SetIconDetailsJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/systemindicator has_Disable
    30  //go:noescape
    31  func HasFuncDisable() js.Ref
    32  
    33  //go:wasmimport plat/js/webext/systemindicator func_Disable
    34  //go:noescape
    35  func FuncDisable(fn unsafe.Pointer)
    36  
    37  //go:wasmimport plat/js/webext/systemindicator call_Disable
    38  //go:noescape
    39  func CallDisable(
    40  	retPtr unsafe.Pointer)
    41  
    42  //go:wasmimport plat/js/webext/systemindicator try_Disable
    43  //go:noescape
    44  func TryDisable(
    45  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    46  
    47  //go:wasmimport plat/js/webext/systemindicator has_Enable
    48  //go:noescape
    49  func HasFuncEnable() js.Ref
    50  
    51  //go:wasmimport plat/js/webext/systemindicator func_Enable
    52  //go:noescape
    53  func FuncEnable(fn unsafe.Pointer)
    54  
    55  //go:wasmimport plat/js/webext/systemindicator call_Enable
    56  //go:noescape
    57  func CallEnable(
    58  	retPtr unsafe.Pointer)
    59  
    60  //go:wasmimport plat/js/webext/systemindicator try_Enable
    61  //go:noescape
    62  func TryEnable(
    63  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    64  
    65  //go:wasmimport plat/js/webext/systemindicator has_OnClicked
    66  //go:noescape
    67  func HasFuncOnClicked() js.Ref
    68  
    69  //go:wasmimport plat/js/webext/systemindicator func_OnClicked
    70  //go:noescape
    71  func FuncOnClicked(fn unsafe.Pointer)
    72  
    73  //go:wasmimport plat/js/webext/systemindicator call_OnClicked
    74  //go:noescape
    75  func CallOnClicked(
    76  	retPtr unsafe.Pointer,
    77  	callback js.Ref)
    78  
    79  //go:wasmimport plat/js/webext/systemindicator try_OnClicked
    80  //go:noescape
    81  func TryOnClicked(
    82  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    83  	callback js.Ref) (ok js.Ref)
    84  
    85  //go:wasmimport plat/js/webext/systemindicator has_OffClicked
    86  //go:noescape
    87  func HasFuncOffClicked() js.Ref
    88  
    89  //go:wasmimport plat/js/webext/systemindicator func_OffClicked
    90  //go:noescape
    91  func FuncOffClicked(fn unsafe.Pointer)
    92  
    93  //go:wasmimport plat/js/webext/systemindicator call_OffClicked
    94  //go:noescape
    95  func CallOffClicked(
    96  	retPtr unsafe.Pointer,
    97  	callback js.Ref)
    98  
    99  //go:wasmimport plat/js/webext/systemindicator try_OffClicked
   100  //go:noescape
   101  func TryOffClicked(
   102  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   103  	callback js.Ref) (ok js.Ref)
   104  
   105  //go:wasmimport plat/js/webext/systemindicator has_HasOnClicked
   106  //go:noescape
   107  func HasFuncHasOnClicked() js.Ref
   108  
   109  //go:wasmimport plat/js/webext/systemindicator func_HasOnClicked
   110  //go:noescape
   111  func FuncHasOnClicked(fn unsafe.Pointer)
   112  
   113  //go:wasmimport plat/js/webext/systemindicator call_HasOnClicked
   114  //go:noescape
   115  func CallHasOnClicked(
   116  	retPtr unsafe.Pointer,
   117  	callback js.Ref)
   118  
   119  //go:wasmimport plat/js/webext/systemindicator try_HasOnClicked
   120  //go:noescape
   121  func TryHasOnClicked(
   122  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   123  	callback js.Ref) (ok js.Ref)
   124  
   125  //go:wasmimport plat/js/webext/systemindicator has_SetIcon
   126  //go:noescape
   127  func HasFuncSetIcon() js.Ref
   128  
   129  //go:wasmimport plat/js/webext/systemindicator func_SetIcon
   130  //go:noescape
   131  func FuncSetIcon(fn unsafe.Pointer)
   132  
   133  //go:wasmimport plat/js/webext/systemindicator call_SetIcon
   134  //go:noescape
   135  func CallSetIcon(
   136  	retPtr unsafe.Pointer,
   137  	details unsafe.Pointer)
   138  
   139  //go:wasmimport plat/js/webext/systemindicator try_SetIcon
   140  //go:noescape
   141  func TrySetIcon(
   142  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   143  	details unsafe.Pointer) (ok js.Ref)