Files
chandra/interface/moonplasma/desktop/layout-control/ffi.mbt
T
nandiandClaude Sonnet 5.5 95a21a0b84
CI / test (push) Failing after 1m5s
Add layout module: Tile | Float toggle widget for the panel
Two-segment switch over the layout-control capability: click flips tiling <-> floating
(monocle goes to floating). Includes generated bindings and an updated wasm test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 00:39:32 -08:00

34 lines
1000 B
MoonBit

// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
///|
fn wasmImportLayoutModes(p0 : Int) = "moonplasma:desktop/layout-control@0.1.0" "layout-modes"
///|
fn wasmImportCurrentLayout() -> Int = "moonplasma:desktop/layout-control@0.1.0" "current-layout"
///|
fn wasmImportSetLayout(p0 : Int) = "moonplasma:desktop/layout-control@0.1.0" "set-layout"
///|
extern "wasm" fn mbt_ffi_free(position : Int) =
#|(func (param i32) local.get 0 call $moonbit.decref)
///|
extern "wasm" fn mbt_ffi_load32(offset : Int) -> Int =
#|(func (param i32) (result i32) local.get 0 i32.load)
///|
extern "wasm" fn mbt_ffi_malloc(size : Int) -> Int =
#|(func (param i32) (result i32) (local i32)
#| local.get 0 i32.const 4 i32.add call $moonbit.gc.malloc
#| local.tee 1 i32.const 0 call $moonbit.init_array8
#| local.get 1)
///|
extern "wasm" fn mbt_ffi_ptr2str(ptr : Int, len : Int) -> String =
#|(func (param i32) (param i32) (result i32)
#| local.get 0
#| local.get 1 call $moonbit.init_array16
#| local.get 0)