github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/printingmetrics/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/printingmetrics constof_ColorMode
    20  //go:noescape
    21  func ConstOfColorMode(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/printingmetrics constof_DuplexMode
    24  //go:noescape
    25  func ConstOfDuplexMode(str js.Ref) uint32
    26  
    27  //go:wasmimport plat/js/webext/printingmetrics constof_PrintJobSource
    28  //go:noescape
    29  func ConstOfPrintJobSource(str js.Ref) uint32
    30  
    31  //go:wasmimport plat/js/webext/printingmetrics constof_PrintJobStatus
    32  //go:noescape
    33  func ConstOfPrintJobStatus(str js.Ref) uint32
    34  
    35  //go:wasmimport plat/js/webext/printingmetrics constof_PrinterSource
    36  //go:noescape
    37  func ConstOfPrinterSource(str js.Ref) uint32
    38  
    39  //go:wasmimport plat/js/webext/printingmetrics store_Printer
    40  //go:noescape
    41  func PrinterJSStore(
    42  	ptr unsafe.Pointer, ref js.Ref)
    43  
    44  //go:wasmimport plat/js/webext/printingmetrics load_Printer
    45  //go:noescape
    46  func PrinterJSLoad(
    47  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    48  
    49  //go:wasmimport plat/js/webext/printingmetrics store_MediaSize
    50  //go:noescape
    51  func MediaSizeJSStore(
    52  	ptr unsafe.Pointer, ref js.Ref)
    53  
    54  //go:wasmimport plat/js/webext/printingmetrics load_MediaSize
    55  //go:noescape
    56  func MediaSizeJSLoad(
    57  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    58  
    59  //go:wasmimport plat/js/webext/printingmetrics store_PrintSettings
    60  //go:noescape
    61  func PrintSettingsJSStore(
    62  	ptr unsafe.Pointer, ref js.Ref)
    63  
    64  //go:wasmimport plat/js/webext/printingmetrics load_PrintSettings
    65  //go:noescape
    66  func PrintSettingsJSLoad(
    67  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    68  
    69  //go:wasmimport plat/js/webext/printingmetrics store_PrintJobInfo
    70  //go:noescape
    71  func PrintJobInfoJSStore(
    72  	ptr unsafe.Pointer, ref js.Ref)
    73  
    74  //go:wasmimport plat/js/webext/printingmetrics load_PrintJobInfo
    75  //go:noescape
    76  func PrintJobInfoJSLoad(
    77  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    78  
    79  //go:wasmimport plat/js/webext/printingmetrics has_GetPrintJobs
    80  //go:noescape
    81  func HasFuncGetPrintJobs() js.Ref
    82  
    83  //go:wasmimport plat/js/webext/printingmetrics func_GetPrintJobs
    84  //go:noescape
    85  func FuncGetPrintJobs(fn unsafe.Pointer)
    86  
    87  //go:wasmimport plat/js/webext/printingmetrics call_GetPrintJobs
    88  //go:noescape
    89  func CallGetPrintJobs(
    90  	retPtr unsafe.Pointer)
    91  
    92  //go:wasmimport plat/js/webext/printingmetrics try_GetPrintJobs
    93  //go:noescape
    94  func TryGetPrintJobs(
    95  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    96  
    97  //go:wasmimport plat/js/webext/printingmetrics has_OnPrintJobFinished
    98  //go:noescape
    99  func HasFuncOnPrintJobFinished() js.Ref
   100  
   101  //go:wasmimport plat/js/webext/printingmetrics func_OnPrintJobFinished
   102  //go:noescape
   103  func FuncOnPrintJobFinished(fn unsafe.Pointer)
   104  
   105  //go:wasmimport plat/js/webext/printingmetrics call_OnPrintJobFinished
   106  //go:noescape
   107  func CallOnPrintJobFinished(
   108  	retPtr unsafe.Pointer,
   109  	callback js.Ref)
   110  
   111  //go:wasmimport plat/js/webext/printingmetrics try_OnPrintJobFinished
   112  //go:noescape
   113  func TryOnPrintJobFinished(
   114  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   115  	callback js.Ref) (ok js.Ref)
   116  
   117  //go:wasmimport plat/js/webext/printingmetrics has_OffPrintJobFinished
   118  //go:noescape
   119  func HasFuncOffPrintJobFinished() js.Ref
   120  
   121  //go:wasmimport plat/js/webext/printingmetrics func_OffPrintJobFinished
   122  //go:noescape
   123  func FuncOffPrintJobFinished(fn unsafe.Pointer)
   124  
   125  //go:wasmimport plat/js/webext/printingmetrics call_OffPrintJobFinished
   126  //go:noescape
   127  func CallOffPrintJobFinished(
   128  	retPtr unsafe.Pointer,
   129  	callback js.Ref)
   130  
   131  //go:wasmimport plat/js/webext/printingmetrics try_OffPrintJobFinished
   132  //go:noescape
   133  func TryOffPrintJobFinished(
   134  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   135  	callback js.Ref) (ok js.Ref)
   136  
   137  //go:wasmimport plat/js/webext/printingmetrics has_HasOnPrintJobFinished
   138  //go:noescape
   139  func HasFuncHasOnPrintJobFinished() js.Ref
   140  
   141  //go:wasmimport plat/js/webext/printingmetrics func_HasOnPrintJobFinished
   142  //go:noescape
   143  func FuncHasOnPrintJobFinished(fn unsafe.Pointer)
   144  
   145  //go:wasmimport plat/js/webext/printingmetrics call_HasOnPrintJobFinished
   146  //go:noescape
   147  func CallHasOnPrintJobFinished(
   148  	retPtr unsafe.Pointer,
   149  	callback js.Ref)
   150  
   151  //go:wasmimport plat/js/webext/printingmetrics try_HasOnPrintJobFinished
   152  //go:noescape
   153  func TryHasOnPrintJobFinished(
   154  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   155  	callback js.Ref) (ok js.Ref)