lepus-apps/lepus/webview/ffi/webview_sys does not have a README file

    BindingHandle

    #external
    pub type BindingHandle

    Opaque binding record returned by moonbit_webview_bind. C allocates and owns it; MoonBit holds it only as a cookie for unbind.

    WebView_t

    #external
    pub type WebView_t

    Opaque handle returned by webview_create. C manages the underlying object.

    run_in_background_thread

    fn run_in_background_thread(call_closure : FuncRef[(() -> Unit) -> Unit], closure : () -> Unit) -> Int

    Run a MoonBit closure on a detached native thread.

    webview_bind

    fn webview_bind(w : WebView_t, name : Bytes, call_closure : FuncRef[(Bytes, Bytes, (Bytes, Bytes) -> Unit) -> Unit], closure : (Bytes, Bytes) -> Unit) -> BindingHandle

    Bind a MoonBit closure as a named JavaScript function. name is borrowed (used only during the call). closure ownership transfers to the returned BindingHandle.

    webview_copy_cstr

    fn webview_copy_cstr(cstr : Bytes) -> Bytes

    Copy a raw C string (seq/req pointer) into MoonBit Bytes.

    webview_return_raw

    fn webview_return_raw(w : WebView_t, seq : Bytes, status : Int, result : Bytes) -> Unit

    Send a raw string return for a pending webview request.

    webview_set_custom_protocol

    fn webview_set_custom_protocol(w : WebView_t, scheme : Bytes, root_dir : Bytes) -> Int

    Register a custom scheme backed by a local root directory.

    webview_terminate

    fn webview_terminate(w : WebView_t) -> Unit

    Terminate a raw webview event loop.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io