WIT package, MoonBit components, Node host and tests (WIP)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5548fc067
commit
e0bde1d150
125 files changed
+8681
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
|
||||
Reference in new issue
Block a user