github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/wmdesksprivate/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/wmdesksprivate store_Desk 20 //go:noescape 21 func DeskJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/wmdesksprivate load_Desk 25 //go:noescape 26 func DeskJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/wmdesksprivate constof_SavedDeskType 30 //go:noescape 31 func ConstOfSavedDeskType(str js.Ref) uint32 32 33 //go:wasmimport plat/js/webext/wmdesksprivate store_SavedDesk 34 //go:noescape 35 func SavedDeskJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/wmdesksprivate load_SavedDesk 39 //go:noescape 40 func SavedDeskJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/wmdesksprivate store_LaunchOptions 44 //go:noescape 45 func LaunchOptionsJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/wmdesksprivate load_LaunchOptions 49 //go:noescape 50 func LaunchOptionsJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/wmdesksprivate has_OnDeskAdded 54 //go:noescape 55 func HasFuncOnDeskAdded() js.Ref 56 57 //go:wasmimport plat/js/webext/wmdesksprivate func_OnDeskAdded 58 //go:noescape 59 func FuncOnDeskAdded(fn unsafe.Pointer) 60 61 //go:wasmimport plat/js/webext/wmdesksprivate call_OnDeskAdded 62 //go:noescape 63 func CallOnDeskAdded( 64 retPtr unsafe.Pointer, 65 callback js.Ref) 66 67 //go:wasmimport plat/js/webext/wmdesksprivate try_OnDeskAdded 68 //go:noescape 69 func TryOnDeskAdded( 70 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 71 callback js.Ref) (ok js.Ref) 72 73 //go:wasmimport plat/js/webext/wmdesksprivate has_OffDeskAdded 74 //go:noescape 75 func HasFuncOffDeskAdded() js.Ref 76 77 //go:wasmimport plat/js/webext/wmdesksprivate func_OffDeskAdded 78 //go:noescape 79 func FuncOffDeskAdded(fn unsafe.Pointer) 80 81 //go:wasmimport plat/js/webext/wmdesksprivate call_OffDeskAdded 82 //go:noescape 83 func CallOffDeskAdded( 84 retPtr unsafe.Pointer, 85 callback js.Ref) 86 87 //go:wasmimport plat/js/webext/wmdesksprivate try_OffDeskAdded 88 //go:noescape 89 func TryOffDeskAdded( 90 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 91 callback js.Ref) (ok js.Ref) 92 93 //go:wasmimport plat/js/webext/wmdesksprivate has_HasOnDeskAdded 94 //go:noescape 95 func HasFuncHasOnDeskAdded() js.Ref 96 97 //go:wasmimport plat/js/webext/wmdesksprivate func_HasOnDeskAdded 98 //go:noescape 99 func FuncHasOnDeskAdded(fn unsafe.Pointer) 100 101 //go:wasmimport plat/js/webext/wmdesksprivate call_HasOnDeskAdded 102 //go:noescape 103 func CallHasOnDeskAdded( 104 retPtr unsafe.Pointer, 105 callback js.Ref) 106 107 //go:wasmimport plat/js/webext/wmdesksprivate try_HasOnDeskAdded 108 //go:noescape 109 func TryHasOnDeskAdded( 110 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 111 callback js.Ref) (ok js.Ref) 112 113 //go:wasmimport plat/js/webext/wmdesksprivate has_OnDeskRemoved 114 //go:noescape 115 func HasFuncOnDeskRemoved() js.Ref 116 117 //go:wasmimport plat/js/webext/wmdesksprivate func_OnDeskRemoved 118 //go:noescape 119 func FuncOnDeskRemoved(fn unsafe.Pointer) 120 121 //go:wasmimport plat/js/webext/wmdesksprivate call_OnDeskRemoved 122 //go:noescape 123 func CallOnDeskRemoved( 124 retPtr unsafe.Pointer, 125 callback js.Ref) 126 127 //go:wasmimport plat/js/webext/wmdesksprivate try_OnDeskRemoved 128 //go:noescape 129 func TryOnDeskRemoved( 130 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 131 callback js.Ref) (ok js.Ref) 132 133 //go:wasmimport plat/js/webext/wmdesksprivate has_OffDeskRemoved 134 //go:noescape 135 func HasFuncOffDeskRemoved() js.Ref 136 137 //go:wasmimport plat/js/webext/wmdesksprivate func_OffDeskRemoved 138 //go:noescape 139 func FuncOffDeskRemoved(fn unsafe.Pointer) 140 141 //go:wasmimport plat/js/webext/wmdesksprivate call_OffDeskRemoved 142 //go:noescape 143 func CallOffDeskRemoved( 144 retPtr unsafe.Pointer, 145 callback js.Ref) 146 147 //go:wasmimport plat/js/webext/wmdesksprivate try_OffDeskRemoved 148 //go:noescape 149 func TryOffDeskRemoved( 150 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 151 callback js.Ref) (ok js.Ref) 152 153 //go:wasmimport plat/js/webext/wmdesksprivate has_HasOnDeskRemoved 154 //go:noescape 155 func HasFuncHasOnDeskRemoved() js.Ref 156 157 //go:wasmimport plat/js/webext/wmdesksprivate func_HasOnDeskRemoved 158 //go:noescape 159 func FuncHasOnDeskRemoved(fn unsafe.Pointer) 160 161 //go:wasmimport plat/js/webext/wmdesksprivate call_HasOnDeskRemoved 162 //go:noescape 163 func CallHasOnDeskRemoved( 164 retPtr unsafe.Pointer, 165 callback js.Ref) 166 167 //go:wasmimport plat/js/webext/wmdesksprivate try_HasOnDeskRemoved 168 //go:noescape 169 func TryHasOnDeskRemoved( 170 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 171 callback js.Ref) (ok js.Ref) 172 173 //go:wasmimport plat/js/webext/wmdesksprivate has_OnDeskSwitched 174 //go:noescape 175 func HasFuncOnDeskSwitched() js.Ref 176 177 //go:wasmimport plat/js/webext/wmdesksprivate func_OnDeskSwitched 178 //go:noescape 179 func FuncOnDeskSwitched(fn unsafe.Pointer) 180 181 //go:wasmimport plat/js/webext/wmdesksprivate call_OnDeskSwitched 182 //go:noescape 183 func CallOnDeskSwitched( 184 retPtr unsafe.Pointer, 185 callback js.Ref) 186 187 //go:wasmimport plat/js/webext/wmdesksprivate try_OnDeskSwitched 188 //go:noescape 189 func TryOnDeskSwitched( 190 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 191 callback js.Ref) (ok js.Ref) 192 193 //go:wasmimport plat/js/webext/wmdesksprivate has_OffDeskSwitched 194 //go:noescape 195 func HasFuncOffDeskSwitched() js.Ref 196 197 //go:wasmimport plat/js/webext/wmdesksprivate func_OffDeskSwitched 198 //go:noescape 199 func FuncOffDeskSwitched(fn unsafe.Pointer) 200 201 //go:wasmimport plat/js/webext/wmdesksprivate call_OffDeskSwitched 202 //go:noescape 203 func CallOffDeskSwitched( 204 retPtr unsafe.Pointer, 205 callback js.Ref) 206 207 //go:wasmimport plat/js/webext/wmdesksprivate try_OffDeskSwitched 208 //go:noescape 209 func TryOffDeskSwitched( 210 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 211 callback js.Ref) (ok js.Ref) 212 213 //go:wasmimport plat/js/webext/wmdesksprivate has_HasOnDeskSwitched 214 //go:noescape 215 func HasFuncHasOnDeskSwitched() js.Ref 216 217 //go:wasmimport plat/js/webext/wmdesksprivate func_HasOnDeskSwitched 218 //go:noescape 219 func FuncHasOnDeskSwitched(fn unsafe.Pointer) 220 221 //go:wasmimport plat/js/webext/wmdesksprivate call_HasOnDeskSwitched 222 //go:noescape 223 func CallHasOnDeskSwitched( 224 retPtr unsafe.Pointer, 225 callback js.Ref) 226 227 //go:wasmimport plat/js/webext/wmdesksprivate try_HasOnDeskSwitched 228 //go:noescape 229 func TryHasOnDeskSwitched( 230 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 231 callback js.Ref) (ok js.Ref) 232 233 //go:wasmimport plat/js/webext/wmdesksprivate store_RemoveDeskOptions 234 //go:noescape 235 func RemoveDeskOptionsJSStore( 236 ptr unsafe.Pointer, ref js.Ref) 237 238 //go:wasmimport plat/js/webext/wmdesksprivate load_RemoveDeskOptions 239 //go:noescape 240 func RemoveDeskOptionsJSLoad( 241 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 242 243 //go:wasmimport plat/js/webext/wmdesksprivate store_WindowProperties 244 //go:noescape 245 func WindowPropertiesJSStore( 246 ptr unsafe.Pointer, ref js.Ref) 247 248 //go:wasmimport plat/js/webext/wmdesksprivate load_WindowProperties 249 //go:noescape 250 func WindowPropertiesJSLoad( 251 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 252 253 //go:wasmimport plat/js/webext/wmdesksprivate has_DeleteSavedDesk 254 //go:noescape 255 func HasFuncDeleteSavedDesk() js.Ref 256 257 //go:wasmimport plat/js/webext/wmdesksprivate func_DeleteSavedDesk 258 //go:noescape 259 func FuncDeleteSavedDesk(fn unsafe.Pointer) 260 261 //go:wasmimport plat/js/webext/wmdesksprivate call_DeleteSavedDesk 262 //go:noescape 263 func CallDeleteSavedDesk( 264 retPtr unsafe.Pointer, 265 savedDeskUuid js.Ref) 266 267 //go:wasmimport plat/js/webext/wmdesksprivate try_DeleteSavedDesk 268 //go:noescape 269 func TryDeleteSavedDesk( 270 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 271 savedDeskUuid js.Ref) (ok js.Ref) 272 273 //go:wasmimport plat/js/webext/wmdesksprivate has_GetActiveDesk 274 //go:noescape 275 func HasFuncGetActiveDesk() js.Ref 276 277 //go:wasmimport plat/js/webext/wmdesksprivate func_GetActiveDesk 278 //go:noescape 279 func FuncGetActiveDesk(fn unsafe.Pointer) 280 281 //go:wasmimport plat/js/webext/wmdesksprivate call_GetActiveDesk 282 //go:noescape 283 func CallGetActiveDesk( 284 retPtr unsafe.Pointer) 285 286 //go:wasmimport plat/js/webext/wmdesksprivate try_GetActiveDesk 287 //go:noescape 288 func TryGetActiveDesk( 289 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 290 291 //go:wasmimport plat/js/webext/wmdesksprivate has_GetAllDesks 292 //go:noescape 293 func HasFuncGetAllDesks() js.Ref 294 295 //go:wasmimport plat/js/webext/wmdesksprivate func_GetAllDesks 296 //go:noescape 297 func FuncGetAllDesks(fn unsafe.Pointer) 298 299 //go:wasmimport plat/js/webext/wmdesksprivate call_GetAllDesks 300 //go:noescape 301 func CallGetAllDesks( 302 retPtr unsafe.Pointer) 303 304 //go:wasmimport plat/js/webext/wmdesksprivate try_GetAllDesks 305 //go:noescape 306 func TryGetAllDesks( 307 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 308 309 //go:wasmimport plat/js/webext/wmdesksprivate has_GetDeskByID 310 //go:noescape 311 func HasFuncGetDeskByID() js.Ref 312 313 //go:wasmimport plat/js/webext/wmdesksprivate func_GetDeskByID 314 //go:noescape 315 func FuncGetDeskByID(fn unsafe.Pointer) 316 317 //go:wasmimport plat/js/webext/wmdesksprivate call_GetDeskByID 318 //go:noescape 319 func CallGetDeskByID( 320 retPtr unsafe.Pointer, 321 deskUuid js.Ref) 322 323 //go:wasmimport plat/js/webext/wmdesksprivate try_GetDeskByID 324 //go:noescape 325 func TryGetDeskByID( 326 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 327 deskUuid js.Ref) (ok js.Ref) 328 329 //go:wasmimport plat/js/webext/wmdesksprivate has_GetDeskTemplateJson 330 //go:noescape 331 func HasFuncGetDeskTemplateJson() js.Ref 332 333 //go:wasmimport plat/js/webext/wmdesksprivate func_GetDeskTemplateJson 334 //go:noescape 335 func FuncGetDeskTemplateJson(fn unsafe.Pointer) 336 337 //go:wasmimport plat/js/webext/wmdesksprivate call_GetDeskTemplateJson 338 //go:noescape 339 func CallGetDeskTemplateJson( 340 retPtr unsafe.Pointer, 341 templateUuid js.Ref) 342 343 //go:wasmimport plat/js/webext/wmdesksprivate try_GetDeskTemplateJson 344 //go:noescape 345 func TryGetDeskTemplateJson( 346 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 347 templateUuid js.Ref) (ok js.Ref) 348 349 //go:wasmimport plat/js/webext/wmdesksprivate has_GetSavedDesks 350 //go:noescape 351 func HasFuncGetSavedDesks() js.Ref 352 353 //go:wasmimport plat/js/webext/wmdesksprivate func_GetSavedDesks 354 //go:noescape 355 func FuncGetSavedDesks(fn unsafe.Pointer) 356 357 //go:wasmimport plat/js/webext/wmdesksprivate call_GetSavedDesks 358 //go:noescape 359 func CallGetSavedDesks( 360 retPtr unsafe.Pointer) 361 362 //go:wasmimport plat/js/webext/wmdesksprivate try_GetSavedDesks 363 //go:noescape 364 func TryGetSavedDesks( 365 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 366 367 //go:wasmimport plat/js/webext/wmdesksprivate has_LaunchDesk 368 //go:noescape 369 func HasFuncLaunchDesk() js.Ref 370 371 //go:wasmimport plat/js/webext/wmdesksprivate func_LaunchDesk 372 //go:noescape 373 func FuncLaunchDesk(fn unsafe.Pointer) 374 375 //go:wasmimport plat/js/webext/wmdesksprivate call_LaunchDesk 376 //go:noescape 377 func CallLaunchDesk( 378 retPtr unsafe.Pointer, 379 launchOptions unsafe.Pointer) 380 381 //go:wasmimport plat/js/webext/wmdesksprivate try_LaunchDesk 382 //go:noescape 383 func TryLaunchDesk( 384 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 385 launchOptions unsafe.Pointer) (ok js.Ref) 386 387 //go:wasmimport plat/js/webext/wmdesksprivate has_RecallSavedDesk 388 //go:noescape 389 func HasFuncRecallSavedDesk() js.Ref 390 391 //go:wasmimport plat/js/webext/wmdesksprivate func_RecallSavedDesk 392 //go:noescape 393 func FuncRecallSavedDesk(fn unsafe.Pointer) 394 395 //go:wasmimport plat/js/webext/wmdesksprivate call_RecallSavedDesk 396 //go:noescape 397 func CallRecallSavedDesk( 398 retPtr unsafe.Pointer, 399 savedDeskUuid js.Ref) 400 401 //go:wasmimport plat/js/webext/wmdesksprivate try_RecallSavedDesk 402 //go:noescape 403 func TryRecallSavedDesk( 404 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 405 savedDeskUuid js.Ref) (ok js.Ref) 406 407 //go:wasmimport plat/js/webext/wmdesksprivate has_RemoveDesk 408 //go:noescape 409 func HasFuncRemoveDesk() js.Ref 410 411 //go:wasmimport plat/js/webext/wmdesksprivate func_RemoveDesk 412 //go:noescape 413 func FuncRemoveDesk(fn unsafe.Pointer) 414 415 //go:wasmimport plat/js/webext/wmdesksprivate call_RemoveDesk 416 //go:noescape 417 func CallRemoveDesk( 418 retPtr unsafe.Pointer, 419 deskId js.Ref, 420 removeDeskOptions unsafe.Pointer) 421 422 //go:wasmimport plat/js/webext/wmdesksprivate try_RemoveDesk 423 //go:noescape 424 func TryRemoveDesk( 425 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 426 deskId js.Ref, 427 removeDeskOptions unsafe.Pointer) (ok js.Ref) 428 429 //go:wasmimport plat/js/webext/wmdesksprivate has_SaveActiveDesk 430 //go:noescape 431 func HasFuncSaveActiveDesk() js.Ref 432 433 //go:wasmimport plat/js/webext/wmdesksprivate func_SaveActiveDesk 434 //go:noescape 435 func FuncSaveActiveDesk(fn unsafe.Pointer) 436 437 //go:wasmimport plat/js/webext/wmdesksprivate call_SaveActiveDesk 438 //go:noescape 439 func CallSaveActiveDesk( 440 retPtr unsafe.Pointer) 441 442 //go:wasmimport plat/js/webext/wmdesksprivate try_SaveActiveDesk 443 //go:noescape 444 func TrySaveActiveDesk( 445 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 446 447 //go:wasmimport plat/js/webext/wmdesksprivate has_SetWindowProperties 448 //go:noescape 449 func HasFuncSetWindowProperties() js.Ref 450 451 //go:wasmimport plat/js/webext/wmdesksprivate func_SetWindowProperties 452 //go:noescape 453 func FuncSetWindowProperties(fn unsafe.Pointer) 454 455 //go:wasmimport plat/js/webext/wmdesksprivate call_SetWindowProperties 456 //go:noescape 457 func CallSetWindowProperties( 458 retPtr unsafe.Pointer, 459 windowId int32, 460 windowProperties unsafe.Pointer) 461 462 //go:wasmimport plat/js/webext/wmdesksprivate try_SetWindowProperties 463 //go:noescape 464 func TrySetWindowProperties( 465 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 466 windowId int32, 467 windowProperties unsafe.Pointer) (ok js.Ref) 468 469 //go:wasmimport plat/js/webext/wmdesksprivate has_SwitchDesk 470 //go:noescape 471 func HasFuncSwitchDesk() js.Ref 472 473 //go:wasmimport plat/js/webext/wmdesksprivate func_SwitchDesk 474 //go:noescape 475 func FuncSwitchDesk(fn unsafe.Pointer) 476 477 //go:wasmimport plat/js/webext/wmdesksprivate call_SwitchDesk 478 //go:noescape 479 func CallSwitchDesk( 480 retPtr unsafe.Pointer, 481 deskUuid js.Ref) 482 483 //go:wasmimport plat/js/webext/wmdesksprivate try_SwitchDesk 484 //go:noescape 485 func TrySwitchDesk( 486 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 487 deskUuid js.Ref) (ok js.Ref)