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
43 lines
1.0 KiB
MoonBit
43 lines
1.0 KiB
MoonBit
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
|
|
///|
|
|
pub(all) struct PlasmoidInfo {
|
|
id : String; name : String; preferred : @types.Size; min_width : UInt; stretch : Bool
|
|
}
|
|
///|
|
|
pub(all) struct PopupSurface {
|
|
size : @types.Size; ops : Array[@types.DrawOp]
|
|
}
|
|
///|
|
|
pub(all) enum Surface {
|
|
WIDGET; POPUP
|
|
} derive()
|
|
|
|
///|
|
|
pub fn Surface::ordinal(self : Surface) -> Int {
|
|
match self {
|
|
WIDGET => 0
|
|
POPUP => 1
|
|
}
|
|
}
|
|
|
|
///|
|
|
pub fn Surface::from(self : Int) -> Surface {
|
|
match self {
|
|
0 => WIDGET
|
|
1 => POPUP
|
|
_ => panic()
|
|
}
|
|
}
|
|
///|
|
|
declare pub fn info() -> PlasmoidInfo
|
|
///|
|
|
/// Draw the widget into a `size` box (local coordinates).
|
|
declare pub fn render(size : @types.Size) -> Array[@types.DrawOp]
|
|
///|
|
|
/// Present when the widget wants a popup surface (e.g. a launcher menu).
|
|
declare pub fn popup() -> PopupSurface?
|
|
///|
|
|
/// Returns true when the widget's visuals changed and a redraw is needed.
|
|
declare pub fn on_event(target : Surface, event : @types.InputEvent) -> Bool
|
|
|