github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/windows/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/windows constof_WindowState 20 //go:noescape 21 func ConstOfWindowState(str js.Ref) uint32 22 23 //go:wasmimport plat/js/webext/windows constof_CreateType 24 //go:noescape 25 func ConstOfCreateType(str js.Ref) uint32 26 27 //go:wasmimport plat/js/webext/windows store_CreateArgCreateData 28 //go:noescape 29 func CreateArgCreateDataJSStore( 30 ptr unsafe.Pointer, ref js.Ref) 31 32 //go:wasmimport plat/js/webext/windows load_CreateArgCreateData 33 //go:noescape 34 func CreateArgCreateDataJSLoad( 35 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 36 37 //go:wasmimport plat/js/webext/windows constof_WindowType 38 //go:noescape 39 func ConstOfWindowType(str js.Ref) uint32 40 41 //go:wasmimport plat/js/webext/windows store_Window 42 //go:noescape 43 func WindowJSStore( 44 ptr unsafe.Pointer, ref js.Ref) 45 46 //go:wasmimport plat/js/webext/windows load_Window 47 //go:noescape 48 func WindowJSLoad( 49 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 50 51 //go:wasmimport plat/js/webext/windows store_QueryOptions 52 //go:noescape 53 func QueryOptionsJSStore( 54 ptr unsafe.Pointer, ref js.Ref) 55 56 //go:wasmimport plat/js/webext/windows load_QueryOptions 57 //go:noescape 58 func QueryOptionsJSLoad( 59 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 60 61 //go:wasmimport plat/js/webext/windows store_UpdateArgUpdateInfo 62 //go:noescape 63 func UpdateArgUpdateInfoJSStore( 64 ptr unsafe.Pointer, ref js.Ref) 65 66 //go:wasmimport plat/js/webext/windows load_UpdateArgUpdateInfo 67 //go:noescape 68 func UpdateArgUpdateInfoJSLoad( 69 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 70 71 //go:wasmimport plat/js/webext/windows get_WINDOW_ID_CURRENT 72 //go:noescape 73 func GetWINDOW_ID_CURRENT(retPtr unsafe.Pointer) js.Ref 74 75 //go:wasmimport plat/js/webext/windows set_WINDOW_ID_CURRENT 76 //go:noescape 77 func SetWINDOW_ID_CURRENT( 78 val js.Ref) js.Ref 79 80 //go:wasmimport plat/js/webext/windows get_WINDOW_ID_NONE 81 //go:noescape 82 func GetWINDOW_ID_NONE(retPtr unsafe.Pointer) js.Ref 83 84 //go:wasmimport plat/js/webext/windows set_WINDOW_ID_NONE 85 //go:noescape 86 func SetWINDOW_ID_NONE( 87 val js.Ref) js.Ref 88 89 //go:wasmimport plat/js/webext/windows has_Create 90 //go:noescape 91 func HasFuncCreate() js.Ref 92 93 //go:wasmimport plat/js/webext/windows func_Create 94 //go:noescape 95 func FuncCreate(fn unsafe.Pointer) 96 97 //go:wasmimport plat/js/webext/windows call_Create 98 //go:noescape 99 func CallCreate( 100 retPtr unsafe.Pointer, 101 createData unsafe.Pointer) 102 103 //go:wasmimport plat/js/webext/windows try_Create 104 //go:noescape 105 func TryCreate( 106 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 107 createData unsafe.Pointer) (ok js.Ref) 108 109 //go:wasmimport plat/js/webext/windows has_Get 110 //go:noescape 111 func HasFuncGet() js.Ref 112 113 //go:wasmimport plat/js/webext/windows func_Get 114 //go:noescape 115 func FuncGet(fn unsafe.Pointer) 116 117 //go:wasmimport plat/js/webext/windows call_Get 118 //go:noescape 119 func CallGet( 120 retPtr unsafe.Pointer, 121 windowId float64, 122 queryOptions unsafe.Pointer) 123 124 //go:wasmimport plat/js/webext/windows try_Get 125 //go:noescape 126 func TryGet( 127 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 128 windowId float64, 129 queryOptions unsafe.Pointer) (ok js.Ref) 130 131 //go:wasmimport plat/js/webext/windows has_GetAll 132 //go:noescape 133 func HasFuncGetAll() js.Ref 134 135 //go:wasmimport plat/js/webext/windows func_GetAll 136 //go:noescape 137 func FuncGetAll(fn unsafe.Pointer) 138 139 //go:wasmimport plat/js/webext/windows call_GetAll 140 //go:noescape 141 func CallGetAll( 142 retPtr unsafe.Pointer, 143 queryOptions unsafe.Pointer) 144 145 //go:wasmimport plat/js/webext/windows try_GetAll 146 //go:noescape 147 func TryGetAll( 148 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 149 queryOptions unsafe.Pointer) (ok js.Ref) 150 151 //go:wasmimport plat/js/webext/windows has_GetCurrent 152 //go:noescape 153 func HasFuncGetCurrent() js.Ref 154 155 //go:wasmimport plat/js/webext/windows func_GetCurrent 156 //go:noescape 157 func FuncGetCurrent(fn unsafe.Pointer) 158 159 //go:wasmimport plat/js/webext/windows call_GetCurrent 160 //go:noescape 161 func CallGetCurrent( 162 retPtr unsafe.Pointer, 163 queryOptions unsafe.Pointer) 164 165 //go:wasmimport plat/js/webext/windows try_GetCurrent 166 //go:noescape 167 func TryGetCurrent( 168 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 169 queryOptions unsafe.Pointer) (ok js.Ref) 170 171 //go:wasmimport plat/js/webext/windows has_GetLastFocused 172 //go:noescape 173 func HasFuncGetLastFocused() js.Ref 174 175 //go:wasmimport plat/js/webext/windows func_GetLastFocused 176 //go:noescape 177 func FuncGetLastFocused(fn unsafe.Pointer) 178 179 //go:wasmimport plat/js/webext/windows call_GetLastFocused 180 //go:noescape 181 func CallGetLastFocused( 182 retPtr unsafe.Pointer, 183 queryOptions unsafe.Pointer) 184 185 //go:wasmimport plat/js/webext/windows try_GetLastFocused 186 //go:noescape 187 func TryGetLastFocused( 188 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 189 queryOptions unsafe.Pointer) (ok js.Ref) 190 191 //go:wasmimport plat/js/webext/windows has_OnBoundsChanged 192 //go:noescape 193 func HasFuncOnBoundsChanged() js.Ref 194 195 //go:wasmimport plat/js/webext/windows func_OnBoundsChanged 196 //go:noescape 197 func FuncOnBoundsChanged(fn unsafe.Pointer) 198 199 //go:wasmimport plat/js/webext/windows call_OnBoundsChanged 200 //go:noescape 201 func CallOnBoundsChanged( 202 retPtr unsafe.Pointer, 203 callback js.Ref) 204 205 //go:wasmimport plat/js/webext/windows try_OnBoundsChanged 206 //go:noescape 207 func TryOnBoundsChanged( 208 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 209 callback js.Ref) (ok js.Ref) 210 211 //go:wasmimport plat/js/webext/windows has_OffBoundsChanged 212 //go:noescape 213 func HasFuncOffBoundsChanged() js.Ref 214 215 //go:wasmimport plat/js/webext/windows func_OffBoundsChanged 216 //go:noescape 217 func FuncOffBoundsChanged(fn unsafe.Pointer) 218 219 //go:wasmimport plat/js/webext/windows call_OffBoundsChanged 220 //go:noescape 221 func CallOffBoundsChanged( 222 retPtr unsafe.Pointer, 223 callback js.Ref) 224 225 //go:wasmimport plat/js/webext/windows try_OffBoundsChanged 226 //go:noescape 227 func TryOffBoundsChanged( 228 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 229 callback js.Ref) (ok js.Ref) 230 231 //go:wasmimport plat/js/webext/windows has_HasOnBoundsChanged 232 //go:noescape 233 func HasFuncHasOnBoundsChanged() js.Ref 234 235 //go:wasmimport plat/js/webext/windows func_HasOnBoundsChanged 236 //go:noescape 237 func FuncHasOnBoundsChanged(fn unsafe.Pointer) 238 239 //go:wasmimport plat/js/webext/windows call_HasOnBoundsChanged 240 //go:noescape 241 func CallHasOnBoundsChanged( 242 retPtr unsafe.Pointer, 243 callback js.Ref) 244 245 //go:wasmimport plat/js/webext/windows try_HasOnBoundsChanged 246 //go:noescape 247 func TryHasOnBoundsChanged( 248 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 249 callback js.Ref) (ok js.Ref) 250 251 //go:wasmimport plat/js/webext/windows has_OnCreated 252 //go:noescape 253 func HasFuncOnCreated() js.Ref 254 255 //go:wasmimport plat/js/webext/windows func_OnCreated 256 //go:noescape 257 func FuncOnCreated(fn unsafe.Pointer) 258 259 //go:wasmimport plat/js/webext/windows call_OnCreated 260 //go:noescape 261 func CallOnCreated( 262 retPtr unsafe.Pointer, 263 callback js.Ref) 264 265 //go:wasmimport plat/js/webext/windows try_OnCreated 266 //go:noescape 267 func TryOnCreated( 268 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 269 callback js.Ref) (ok js.Ref) 270 271 //go:wasmimport plat/js/webext/windows has_OffCreated 272 //go:noescape 273 func HasFuncOffCreated() js.Ref 274 275 //go:wasmimport plat/js/webext/windows func_OffCreated 276 //go:noescape 277 func FuncOffCreated(fn unsafe.Pointer) 278 279 //go:wasmimport plat/js/webext/windows call_OffCreated 280 //go:noescape 281 func CallOffCreated( 282 retPtr unsafe.Pointer, 283 callback js.Ref) 284 285 //go:wasmimport plat/js/webext/windows try_OffCreated 286 //go:noescape 287 func TryOffCreated( 288 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 289 callback js.Ref) (ok js.Ref) 290 291 //go:wasmimport plat/js/webext/windows has_HasOnCreated 292 //go:noescape 293 func HasFuncHasOnCreated() js.Ref 294 295 //go:wasmimport plat/js/webext/windows func_HasOnCreated 296 //go:noescape 297 func FuncHasOnCreated(fn unsafe.Pointer) 298 299 //go:wasmimport plat/js/webext/windows call_HasOnCreated 300 //go:noescape 301 func CallHasOnCreated( 302 retPtr unsafe.Pointer, 303 callback js.Ref) 304 305 //go:wasmimport plat/js/webext/windows try_HasOnCreated 306 //go:noescape 307 func TryHasOnCreated( 308 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 309 callback js.Ref) (ok js.Ref) 310 311 //go:wasmimport plat/js/webext/windows has_OnFocusChanged 312 //go:noescape 313 func HasFuncOnFocusChanged() js.Ref 314 315 //go:wasmimport plat/js/webext/windows func_OnFocusChanged 316 //go:noescape 317 func FuncOnFocusChanged(fn unsafe.Pointer) 318 319 //go:wasmimport plat/js/webext/windows call_OnFocusChanged 320 //go:noescape 321 func CallOnFocusChanged( 322 retPtr unsafe.Pointer, 323 callback js.Ref) 324 325 //go:wasmimport plat/js/webext/windows try_OnFocusChanged 326 //go:noescape 327 func TryOnFocusChanged( 328 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 329 callback js.Ref) (ok js.Ref) 330 331 //go:wasmimport plat/js/webext/windows has_OffFocusChanged 332 //go:noescape 333 func HasFuncOffFocusChanged() js.Ref 334 335 //go:wasmimport plat/js/webext/windows func_OffFocusChanged 336 //go:noescape 337 func FuncOffFocusChanged(fn unsafe.Pointer) 338 339 //go:wasmimport plat/js/webext/windows call_OffFocusChanged 340 //go:noescape 341 func CallOffFocusChanged( 342 retPtr unsafe.Pointer, 343 callback js.Ref) 344 345 //go:wasmimport plat/js/webext/windows try_OffFocusChanged 346 //go:noescape 347 func TryOffFocusChanged( 348 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 349 callback js.Ref) (ok js.Ref) 350 351 //go:wasmimport plat/js/webext/windows has_HasOnFocusChanged 352 //go:noescape 353 func HasFuncHasOnFocusChanged() js.Ref 354 355 //go:wasmimport plat/js/webext/windows func_HasOnFocusChanged 356 //go:noescape 357 func FuncHasOnFocusChanged(fn unsafe.Pointer) 358 359 //go:wasmimport plat/js/webext/windows call_HasOnFocusChanged 360 //go:noescape 361 func CallHasOnFocusChanged( 362 retPtr unsafe.Pointer, 363 callback js.Ref) 364 365 //go:wasmimport plat/js/webext/windows try_HasOnFocusChanged 366 //go:noescape 367 func TryHasOnFocusChanged( 368 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 369 callback js.Ref) (ok js.Ref) 370 371 //go:wasmimport plat/js/webext/windows has_OnRemoved 372 //go:noescape 373 func HasFuncOnRemoved() js.Ref 374 375 //go:wasmimport plat/js/webext/windows func_OnRemoved 376 //go:noescape 377 func FuncOnRemoved(fn unsafe.Pointer) 378 379 //go:wasmimport plat/js/webext/windows call_OnRemoved 380 //go:noescape 381 func CallOnRemoved( 382 retPtr unsafe.Pointer, 383 callback js.Ref) 384 385 //go:wasmimport plat/js/webext/windows try_OnRemoved 386 //go:noescape 387 func TryOnRemoved( 388 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 389 callback js.Ref) (ok js.Ref) 390 391 //go:wasmimport plat/js/webext/windows has_OffRemoved 392 //go:noescape 393 func HasFuncOffRemoved() js.Ref 394 395 //go:wasmimport plat/js/webext/windows func_OffRemoved 396 //go:noescape 397 func FuncOffRemoved(fn unsafe.Pointer) 398 399 //go:wasmimport plat/js/webext/windows call_OffRemoved 400 //go:noescape 401 func CallOffRemoved( 402 retPtr unsafe.Pointer, 403 callback js.Ref) 404 405 //go:wasmimport plat/js/webext/windows try_OffRemoved 406 //go:noescape 407 func TryOffRemoved( 408 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 409 callback js.Ref) (ok js.Ref) 410 411 //go:wasmimport plat/js/webext/windows has_HasOnRemoved 412 //go:noescape 413 func HasFuncHasOnRemoved() js.Ref 414 415 //go:wasmimport plat/js/webext/windows func_HasOnRemoved 416 //go:noescape 417 func FuncHasOnRemoved(fn unsafe.Pointer) 418 419 //go:wasmimport plat/js/webext/windows call_HasOnRemoved 420 //go:noescape 421 func CallHasOnRemoved( 422 retPtr unsafe.Pointer, 423 callback js.Ref) 424 425 //go:wasmimport plat/js/webext/windows try_HasOnRemoved 426 //go:noescape 427 func TryHasOnRemoved( 428 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 429 callback js.Ref) (ok js.Ref) 430 431 //go:wasmimport plat/js/webext/windows has_Remove 432 //go:noescape 433 func HasFuncRemove() js.Ref 434 435 //go:wasmimport plat/js/webext/windows func_Remove 436 //go:noescape 437 func FuncRemove(fn unsafe.Pointer) 438 439 //go:wasmimport plat/js/webext/windows call_Remove 440 //go:noescape 441 func CallRemove( 442 retPtr unsafe.Pointer, 443 windowId float64) 444 445 //go:wasmimport plat/js/webext/windows try_Remove 446 //go:noescape 447 func TryRemove( 448 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 449 windowId float64) (ok js.Ref) 450 451 //go:wasmimport plat/js/webext/windows has_Update 452 //go:noescape 453 func HasFuncUpdate() js.Ref 454 455 //go:wasmimport plat/js/webext/windows func_Update 456 //go:noescape 457 func FuncUpdate(fn unsafe.Pointer) 458 459 //go:wasmimport plat/js/webext/windows call_Update 460 //go:noescape 461 func CallUpdate( 462 retPtr unsafe.Pointer, 463 windowId float64, 464 updateInfo unsafe.Pointer) 465 466 //go:wasmimport plat/js/webext/windows try_Update 467 //go:noescape 468 func TryUpdate( 469 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 470 windowId float64, 471 updateInfo unsafe.Pointer) (ok js.Ref)