M0: WIT package, MoonBit components, JS host, docs, CI (#1)
CI / test (push) Successful in 19s

This commit was merged in pull request #1.
This commit is contained in:
nandi committed 2026-11-24 23:51:26 +00:00
1 parent e5548fc067
commit 880ecd4102
141 files changed
+9681 -1

No files matched your search

@@ -0,0 +1,45 @@
// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/components/shell/gen/interface/moonplasma/desktop/panel-layout"
import {
"moonplasma/desktop/interface/moonplasma/desktop/types",
}
// Values
pub fn compute_layout(@types.Size, Array[Slot]) -> Layout
pub fn popup_position(@types.Size, @types.Rect, @types.Rect, @types.Size) -> @types.Rect
pub fn render_panel(@types.Size, @types.Rect) -> Array[@types.DrawOp]
// Errors
// Types and methods
pub(all) enum Edge {
START
END
}
pub fn Edge::from(Int32) -> Self
pub fn Edge::ordinal(Self) -> Int32
pub(all) struct Layout {
panel : @types.Rect
placements : Array[Placement]
}
pub(all) struct Placement {
id : String
rect : @types.Rect
}
pub(all) struct Slot {
id : String
preferred : @types.Size
min_width : UInt32
stretch : Bool
align : Edge
}
// Type aliases
// Traits