Panel and wasm host - The panel is built from wasm plasmoid modules (compositor/wasm: wasmer-backed host). Modules get capabilities by importing host interfaces; the host publishes data tables and serves a request queue (launch, focus window, set layout, inspector, load/unload modules). New WIT: windows, layout-control, inspector, modules, system. - Merged two competing host designs: generic tables + requests are the base; the `system` snapshot and the id-stable `windows.all/focus` (Desktop Pulse) run on top of it. - Panel widgets: load a .wasm from a path or file chooser, reorder by dragging, right-click replace/remove/add, saved to panel.edn. - Desktop widget, system sampler (sysinfo), app catalog/humanised names, Interface Explorer (inspector), real font rendering (compositor/font, assets/fonts). Compositor - Drag the divider between tiled windows; lower tiled rows leave room for the title bar. - Title-bar buttons, 12-hour clock, truncated titles, task-list/layout menus. - DRM/KMS session, tcc debug builds (vendored tinycc incl. conftest.c), justfile recipes (modules, run, test), pixi.toml. Known gaps - The sources for the pulse, tasks, layout, inspector, module-manager, moon-* and clock-digital12 modules are not in the tree yet, so `just modules` stops at pulse and the host tests that load those modules fail until they land. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
47 lines
935 B
Plaintext
47 lines
935 B
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "moonplasma/desktop/compositor/renderer"
|
|
|
|
import {
|
|
"moonplasma/desktop/compositor/scene",
|
|
}
|
|
|
|
// Values
|
|
pub fn blit_shm_surface(Pixmap, @scene.ShmBufferSnapshot, @scene.Rect) -> Unit
|
|
|
|
pub fn draw_ops(Pixmap, Array[@scene.DrawOp], Int32, Int32) -> Unit
|
|
|
|
pub fn encode_png(Pixmap) -> Bytes
|
|
|
|
pub fn encode_ppm(Pixmap) -> Bytes
|
|
|
|
pub fn render_scene(@scene.SceneGraph) -> Pixmap
|
|
|
|
pub fn set_glyph_source((Int32, Int32, Bool, Bool) -> Glyph) -> Unit
|
|
|
|
pub fn text_width(String, Int32, Bool, Bool) -> Int32
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) struct Glyph {
|
|
w : Int32
|
|
h : Int32
|
|
xoff : Int32
|
|
yoff : Int32
|
|
advance : Int32
|
|
coverage : Bytes
|
|
embolden : Bool
|
|
}
|
|
|
|
pub(all) struct Pixmap {
|
|
width : Int32
|
|
height : Int32
|
|
data : FixedArray[Byte]
|
|
}
|
|
pub fn Pixmap::new(Int32, Int32) -> Self
|
|
pub fn Pixmap::pixel(Self, Int32, Int32) -> @scene.Rgba?
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|