github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/brailledisplayprivate/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/brailledisplayprivate store_DisplayState
    20  //go:noescape
    21  func DisplayStateJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/brailledisplayprivate load_DisplayState
    25  //go:noescape
    26  func DisplayStateJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/brailledisplayprivate constof_KeyCommand
    30  //go:noescape
    31  func ConstOfKeyCommand(str js.Ref) uint32
    32  
    33  //go:wasmimport plat/js/webext/brailledisplayprivate store_KeyEvent
    34  //go:noescape
    35  func KeyEventJSStore(
    36  	ptr unsafe.Pointer, ref js.Ref)
    37  
    38  //go:wasmimport plat/js/webext/brailledisplayprivate load_KeyEvent
    39  //go:noescape
    40  func KeyEventJSLoad(
    41  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    42  
    43  //go:wasmimport plat/js/webext/brailledisplayprivate has_GetDisplayState
    44  //go:noescape
    45  func HasFuncGetDisplayState() js.Ref
    46  
    47  //go:wasmimport plat/js/webext/brailledisplayprivate func_GetDisplayState
    48  //go:noescape
    49  func FuncGetDisplayState(fn unsafe.Pointer)
    50  
    51  //go:wasmimport plat/js/webext/brailledisplayprivate call_GetDisplayState
    52  //go:noescape
    53  func CallGetDisplayState(
    54  	retPtr unsafe.Pointer)
    55  
    56  //go:wasmimport plat/js/webext/brailledisplayprivate try_GetDisplayState
    57  //go:noescape
    58  func TryGetDisplayState(
    59  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    60  
    61  //go:wasmimport plat/js/webext/brailledisplayprivate has_OnDisplayStateChanged
    62  //go:noescape
    63  func HasFuncOnDisplayStateChanged() js.Ref
    64  
    65  //go:wasmimport plat/js/webext/brailledisplayprivate func_OnDisplayStateChanged
    66  //go:noescape
    67  func FuncOnDisplayStateChanged(fn unsafe.Pointer)
    68  
    69  //go:wasmimport plat/js/webext/brailledisplayprivate call_OnDisplayStateChanged
    70  //go:noescape
    71  func CallOnDisplayStateChanged(
    72  	retPtr unsafe.Pointer,
    73  	callback js.Ref)
    74  
    75  //go:wasmimport plat/js/webext/brailledisplayprivate try_OnDisplayStateChanged
    76  //go:noescape
    77  func TryOnDisplayStateChanged(
    78  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    79  	callback js.Ref) (ok js.Ref)
    80  
    81  //go:wasmimport plat/js/webext/brailledisplayprivate has_OffDisplayStateChanged
    82  //go:noescape
    83  func HasFuncOffDisplayStateChanged() js.Ref
    84  
    85  //go:wasmimport plat/js/webext/brailledisplayprivate func_OffDisplayStateChanged
    86  //go:noescape
    87  func FuncOffDisplayStateChanged(fn unsafe.Pointer)
    88  
    89  //go:wasmimport plat/js/webext/brailledisplayprivate call_OffDisplayStateChanged
    90  //go:noescape
    91  func CallOffDisplayStateChanged(
    92  	retPtr unsafe.Pointer,
    93  	callback js.Ref)
    94  
    95  //go:wasmimport plat/js/webext/brailledisplayprivate try_OffDisplayStateChanged
    96  //go:noescape
    97  func TryOffDisplayStateChanged(
    98  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    99  	callback js.Ref) (ok js.Ref)
   100  
   101  //go:wasmimport plat/js/webext/brailledisplayprivate has_HasOnDisplayStateChanged
   102  //go:noescape
   103  func HasFuncHasOnDisplayStateChanged() js.Ref
   104  
   105  //go:wasmimport plat/js/webext/brailledisplayprivate func_HasOnDisplayStateChanged
   106  //go:noescape
   107  func FuncHasOnDisplayStateChanged(fn unsafe.Pointer)
   108  
   109  //go:wasmimport plat/js/webext/brailledisplayprivate call_HasOnDisplayStateChanged
   110  //go:noescape
   111  func CallHasOnDisplayStateChanged(
   112  	retPtr unsafe.Pointer,
   113  	callback js.Ref)
   114  
   115  //go:wasmimport plat/js/webext/brailledisplayprivate try_HasOnDisplayStateChanged
   116  //go:noescape
   117  func TryHasOnDisplayStateChanged(
   118  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   119  	callback js.Ref) (ok js.Ref)
   120  
   121  //go:wasmimport plat/js/webext/brailledisplayprivate has_OnKeyEvent
   122  //go:noescape
   123  func HasFuncOnKeyEvent() js.Ref
   124  
   125  //go:wasmimport plat/js/webext/brailledisplayprivate func_OnKeyEvent
   126  //go:noescape
   127  func FuncOnKeyEvent(fn unsafe.Pointer)
   128  
   129  //go:wasmimport plat/js/webext/brailledisplayprivate call_OnKeyEvent
   130  //go:noescape
   131  func CallOnKeyEvent(
   132  	retPtr unsafe.Pointer,
   133  	callback js.Ref)
   134  
   135  //go:wasmimport plat/js/webext/brailledisplayprivate try_OnKeyEvent
   136  //go:noescape
   137  func TryOnKeyEvent(
   138  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   139  	callback js.Ref) (ok js.Ref)
   140  
   141  //go:wasmimport plat/js/webext/brailledisplayprivate has_OffKeyEvent
   142  //go:noescape
   143  func HasFuncOffKeyEvent() js.Ref
   144  
   145  //go:wasmimport plat/js/webext/brailledisplayprivate func_OffKeyEvent
   146  //go:noescape
   147  func FuncOffKeyEvent(fn unsafe.Pointer)
   148  
   149  //go:wasmimport plat/js/webext/brailledisplayprivate call_OffKeyEvent
   150  //go:noescape
   151  func CallOffKeyEvent(
   152  	retPtr unsafe.Pointer,
   153  	callback js.Ref)
   154  
   155  //go:wasmimport plat/js/webext/brailledisplayprivate try_OffKeyEvent
   156  //go:noescape
   157  func TryOffKeyEvent(
   158  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   159  	callback js.Ref) (ok js.Ref)
   160  
   161  //go:wasmimport plat/js/webext/brailledisplayprivate has_HasOnKeyEvent
   162  //go:noescape
   163  func HasFuncHasOnKeyEvent() js.Ref
   164  
   165  //go:wasmimport plat/js/webext/brailledisplayprivate func_HasOnKeyEvent
   166  //go:noescape
   167  func FuncHasOnKeyEvent(fn unsafe.Pointer)
   168  
   169  //go:wasmimport plat/js/webext/brailledisplayprivate call_HasOnKeyEvent
   170  //go:noescape
   171  func CallHasOnKeyEvent(
   172  	retPtr unsafe.Pointer,
   173  	callback js.Ref)
   174  
   175  //go:wasmimport plat/js/webext/brailledisplayprivate try_HasOnKeyEvent
   176  //go:noescape
   177  func TryHasOnKeyEvent(
   178  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   179  	callback js.Ref) (ok js.Ref)
   180  
   181  //go:wasmimport plat/js/webext/brailledisplayprivate has_UpdateBluetoothBrailleDisplayAddress
   182  //go:noescape
   183  func HasFuncUpdateBluetoothBrailleDisplayAddress() js.Ref
   184  
   185  //go:wasmimport plat/js/webext/brailledisplayprivate func_UpdateBluetoothBrailleDisplayAddress
   186  //go:noescape
   187  func FuncUpdateBluetoothBrailleDisplayAddress(fn unsafe.Pointer)
   188  
   189  //go:wasmimport plat/js/webext/brailledisplayprivate call_UpdateBluetoothBrailleDisplayAddress
   190  //go:noescape
   191  func CallUpdateBluetoothBrailleDisplayAddress(
   192  	retPtr unsafe.Pointer,
   193  	address js.Ref)
   194  
   195  //go:wasmimport plat/js/webext/brailledisplayprivate try_UpdateBluetoothBrailleDisplayAddress
   196  //go:noescape
   197  func TryUpdateBluetoothBrailleDisplayAddress(
   198  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   199  	address js.Ref) (ok js.Ref)
   200  
   201  //go:wasmimport plat/js/webext/brailledisplayprivate has_WriteDots
   202  //go:noescape
   203  func HasFuncWriteDots() js.Ref
   204  
   205  //go:wasmimport plat/js/webext/brailledisplayprivate func_WriteDots
   206  //go:noescape
   207  func FuncWriteDots(fn unsafe.Pointer)
   208  
   209  //go:wasmimport plat/js/webext/brailledisplayprivate call_WriteDots
   210  //go:noescape
   211  func CallWriteDots(
   212  	retPtr unsafe.Pointer,
   213  	cells js.Ref,
   214  	columns int32,
   215  	rows int32)
   216  
   217  //go:wasmimport plat/js/webext/brailledisplayprivate try_WriteDots
   218  //go:noescape
   219  func TryWriteDots(
   220  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   221  	cells js.Ref,
   222  	columns int32,
   223  	rows int32) (ok js.Ref)