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,42 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "moonplasma/desktop/components/clock-binary/gen/interface/moonplasma/desktop/plasmoid"
|
||||
|
||||
import {
|
||||
"moonplasma/desktop/interface/moonplasma/desktop/types",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn info() -> PlasmoidInfo
|
||||
|
||||
pub fn on_event(Surface, @types.InputEvent) -> Bool
|
||||
|
||||
pub fn popup() -> PopupSurface?
|
||||
|
||||
pub fn render(@types.Size) -> Array[@types.DrawOp]
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
pub(all) struct PlasmoidInfo {
|
||||
id : String
|
||||
name : String
|
||||
preferred : @types.Size
|
||||
min_width : UInt32
|
||||
stretch : Bool
|
||||
}
|
||||
|
||||
pub(all) struct PopupSurface {
|
||||
size : @types.Size
|
||||
ops : Array[@types.DrawOp]
|
||||
}
|
||||
|
||||
pub(all) enum Surface {
|
||||
WIDGET
|
||||
POPUP
|
||||
}
|
||||
pub fn Surface::from(Int32) -> Self
|
||||
pub fn Surface::ordinal(Self) -> Int32
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
Reference in new issue
Block a user