43 lines
778 B
Plaintext
43 lines
778 B
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "moonplasma/desktop/components/launcher/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
|