CI / test (push) Canceled after 0s
Compositor-drawn Win+. style picker. The focused app keeps keyboard focus so
its text-input-v3 field stays enabled; the emoji goes in with commit_string,
or onto the clipboard with a visible notice when the app has no text field.
Shortcut lives in the shortcut table (rebindable in Settings > Shortcuts).
- compositor/wayland/text_input.mbt: zwp_text_input_manager_v3 (global 12)
- compositor/emoji: Emoji 18.0 + CLDR 49 data (Unicode License), search,
picker model, CBDT/CBLC + GSUB reader for Noto Color Emoji
- Chandra's own pinned bitmap Noto Color Emoji (scripts/fetch-emoji-font.sh,
just emoji-font); Fedora's COLRv1 copy can't be drawn. Missing font shows
an error panel.
- raster WIT: emoji-font, emoji-has, emoji-image; served by wasmhost
- state.edn :emoji {:recent [...] :skin-tone n}
- tests incl. a fake text-input client; docs/emoji-picker.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hkABDGJixotaqFv2X2
105 lines
3.4 KiB
MoonBit
105 lines
3.4 KiB
MoonBit
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
|
|
|
|
///|
|
|
fn wasmImportCapture(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int) -> Int = "chandra:host/raster@0.1.0" "capture"
|
|
|
|
///|
|
|
fn wasmImportRelease(p0 : Int) = "chandra:host/raster@0.1.0" "release"
|
|
|
|
///|
|
|
fn wasmImportLoadImage(p0 : Int, p1 : Int) -> Int = "chandra:host/raster@0.1.0" "load-image"
|
|
|
|
///|
|
|
fn wasmImportThumbnail(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Int = "chandra:host/raster@0.1.0" "thumbnail"
|
|
|
|
///|
|
|
fn wasmImportImagePixels(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int) -> Int = "chandra:host/raster@0.1.0" "image-pixels"
|
|
|
|
///|
|
|
fn wasmImportEmojiFont(p0 : Int) = "chandra:host/raster@0.1.0" "emoji-font"
|
|
|
|
///|
|
|
fn wasmImportEmojiHas(p0 : Int, p1 : Int, p2 : Int) = "chandra:host/raster@0.1.0" "emoji-has"
|
|
|
|
///|
|
|
fn wasmImportEmojiImage(p0 : Int, p1 : Int, p2 : Int) -> Int = "chandra:host/raster@0.1.0" "emoji-image"
|
|
|
|
///|
|
|
fn wasmImportSubmit(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int, p7 : Int, p8 : Int, p9 : Int, p10 : Int, p11 : Int, p12 : Int) = "chandra:host/raster@0.1.0" "submit"
|
|
|
|
///|
|
|
fn wasmImportReadFrame(p0 : Int) = "chandra:host/raster@0.1.0" "read-frame"
|
|
|
|
///|
|
|
fn wasmImportExportMemfd() -> Int = "chandra:host/raster@0.1.0" "export-memfd"
|
|
|
|
///|
|
|
fn wasmImportWriteFramePng(p0 : Int, p1 : Int) -> Int = "chandra:host/raster@0.1.0" "write-frame-png"
|
|
|
|
///|
|
|
fn wasmImportGrabRecordingFrame(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int) -> Int = "chandra:host/raster@0.1.0" "grab-recording-frame"
|
|
|
|
///|
|
|
fn wasmImportSendRecordingFrame(p0 : Int) -> Int = "chandra:host/raster@0.1.0" "send-recording-frame"
|
|
|
|
///|
|
|
fn wasmImportSnapshotFrame() -> Int = "chandra:host/raster@0.1.0" "snapshot-frame"
|
|
|
|
///|
|
|
fn wasmImportSnapshotPng(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int) = "chandra:host/raster@0.1.0" "snapshot-png"
|
|
|
|
///|
|
|
fn wasmImportSnapshotPixels(p0 : Int, p1 : Int, p2 : Int, p3 : Int, p4 : Int, p5 : Int, p6 : Int) = "chandra:host/raster@0.1.0" "snapshot-pixels"
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_free(position : Int) =
|
|
#|(func (param i32) local.get 0 call $moonbit.decref)
|
|
|
|
///|
|
|
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)
|
|
|
|
///|
|
|
#owned(bytes)
|
|
extern "wasm" fn mbt_ffi_bytes2ptr(bytes : FixedArray[Byte]) -> Int =
|
|
#|(func (param i32) (result i32) local.get 0)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_load8_u(offset : Int) -> Int =
|
|
#|(func (param i32) (result i32) local.get 0 i32.load8_u)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_store8(offset : Int, value : Int) =
|
|
#|(func (param i32) (param i32) local.get 0 local.get 1 i32.store8)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_store32(offset : Int, value : Int) =
|
|
#|(func (param i32) (param i32) local.get 0 local.get 1 i32.store)
|
|
|
|
///|
|
|
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_load32(offset : Int) -> Int =
|
|
#|(func (param i32) (result i32) local.get 0 i32.load)
|
|
|
|
///|
|
|
#owned(str)
|
|
extern "wasm" fn mbt_ffi_str2ptr(str : String) -> Int =
|
|
#|(func (param i32) (result i32) local.get 0)
|
|
|
|
///|
|
|
extern "wasm" fn mbt_ffi_ptr2bytes(ptr : Int, len : Int) -> FixedArray[Byte] =
|
|
#|(func (param i32) (param i32) (result i32)
|
|
#| local.get 0
|
|
#| local.get 1 call $moonbit.init_array8
|
|
#| local.get 0)
|
|
|