CI / test (push) Failing after 16s
moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
package chandra:desktop@0.1.0;
|
|
|
|
/// Panel layout/chrome contract (the plasmashell "containment" analogue).
|
|
interface panel-layout {
|
|
use types.{size, rect, draw-op};
|
|
|
|
enum edge { start, end }
|
|
|
|
record slot {
|
|
id: string,
|
|
preferred: size,
|
|
min-width: u32,
|
|
stretch: bool,
|
|
/// Which end of the panel the widget packs towards.
|
|
align: edge,
|
|
}
|
|
|
|
record placement { id: string, rect: rect }
|
|
|
|
record layout {
|
|
panel: rect,
|
|
placements: list<placement>,
|
|
}
|
|
|
|
/// Decide where the panel sits and where each widget goes.
|
|
compute-layout: func(screen: size, slots: list<slot>) -> layout;
|
|
/// Panel background/frame (drawn beneath the widgets), in screen coords.
|
|
render-panel: func(screen: size, panel: rect) -> list<draw-op>;
|
|
/// Place a popup of `popup` size for the widget at `anchor`.
|
|
popup-position: func(screen: size, panel: rect, anchor: rect, popup: size) -> rect;
|
|
}
|
|
|
|
/// Desktop surface contract (wallpaper / desktop containment).
|
|
interface desktop-surface {
|
|
use types.{size, draw-op};
|
|
render-background: func(screen: size) -> list<draw-op>;
|
|
}
|