github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/clipboard/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/clipboard constof_DataItemType
    20  //go:noescape
    21  func ConstOfDataItemType(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/clipboard store_AdditionalDataItem
    24  //go:noescape
    25  func AdditionalDataItemJSStore(
    26  	ptr unsafe.Pointer, ref js.Ref)
    27  
    28  //go:wasmimport plat/js/webext/clipboard load_AdditionalDataItem
    29  //go:noescape
    30  func AdditionalDataItemJSLoad(
    31  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    32  
    33  //go:wasmimport plat/js/webext/clipboard constof_ImageType
    34  //go:noescape
    35  func ConstOfImageType(str js.Ref) uint32
    36  
    37  //go:wasmimport plat/js/webext/clipboard has_OnClipboardDataChanged
    38  //go:noescape
    39  func HasFuncOnClipboardDataChanged() js.Ref
    40  
    41  //go:wasmimport plat/js/webext/clipboard func_OnClipboardDataChanged
    42  //go:noescape
    43  func FuncOnClipboardDataChanged(fn unsafe.Pointer)
    44  
    45  //go:wasmimport plat/js/webext/clipboard call_OnClipboardDataChanged
    46  //go:noescape
    47  func CallOnClipboardDataChanged(
    48  	retPtr unsafe.Pointer,
    49  	callback js.Ref)
    50  
    51  //go:wasmimport plat/js/webext/clipboard try_OnClipboardDataChanged
    52  //go:noescape
    53  func TryOnClipboardDataChanged(
    54  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    55  	callback js.Ref) (ok js.Ref)
    56  
    57  //go:wasmimport plat/js/webext/clipboard has_OffClipboardDataChanged
    58  //go:noescape
    59  func HasFuncOffClipboardDataChanged() js.Ref
    60  
    61  //go:wasmimport plat/js/webext/clipboard func_OffClipboardDataChanged
    62  //go:noescape
    63  func FuncOffClipboardDataChanged(fn unsafe.Pointer)
    64  
    65  //go:wasmimport plat/js/webext/clipboard call_OffClipboardDataChanged
    66  //go:noescape
    67  func CallOffClipboardDataChanged(
    68  	retPtr unsafe.Pointer,
    69  	callback js.Ref)
    70  
    71  //go:wasmimport plat/js/webext/clipboard try_OffClipboardDataChanged
    72  //go:noescape
    73  func TryOffClipboardDataChanged(
    74  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    75  	callback js.Ref) (ok js.Ref)
    76  
    77  //go:wasmimport plat/js/webext/clipboard has_HasOnClipboardDataChanged
    78  //go:noescape
    79  func HasFuncHasOnClipboardDataChanged() js.Ref
    80  
    81  //go:wasmimport plat/js/webext/clipboard func_HasOnClipboardDataChanged
    82  //go:noescape
    83  func FuncHasOnClipboardDataChanged(fn unsafe.Pointer)
    84  
    85  //go:wasmimport plat/js/webext/clipboard call_HasOnClipboardDataChanged
    86  //go:noescape
    87  func CallHasOnClipboardDataChanged(
    88  	retPtr unsafe.Pointer,
    89  	callback js.Ref)
    90  
    91  //go:wasmimport plat/js/webext/clipboard try_HasOnClipboardDataChanged
    92  //go:noescape
    93  func TryHasOnClipboardDataChanged(
    94  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    95  	callback js.Ref) (ok js.Ref)
    96  
    97  //go:wasmimport plat/js/webext/clipboard has_SetImageData
    98  //go:noescape
    99  func HasFuncSetImageData() js.Ref
   100  
   101  //go:wasmimport plat/js/webext/clipboard func_SetImageData
   102  //go:noescape
   103  func FuncSetImageData(fn unsafe.Pointer)
   104  
   105  //go:wasmimport plat/js/webext/clipboard call_SetImageData
   106  //go:noescape
   107  func CallSetImageData(
   108  	retPtr unsafe.Pointer,
   109  	imageData js.Ref,
   110  	typ uint32,
   111  	additionalItems js.Ref)
   112  
   113  //go:wasmimport plat/js/webext/clipboard try_SetImageData
   114  //go:noescape
   115  func TrySetImageData(
   116  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   117  	imageData js.Ref,
   118  	typ uint32,
   119  	additionalItems js.Ref) (ok js.Ref)