Panel: generate the Show Desktop interfaces and toggle request
CI / test (pull_request) Successful in 1m19s

- Add generated .mbti interfaces for show-desktop, its plasmoid, and the show-desktop-widget world
- Add a ToggleDesktop host request and publish_desktop_shown(Bool) for the panel to report desktop state
This commit is contained in:
nandi committed 2026-11-30 16:49:06 -08:00
1 parent b293ecb51a
commit c5dbe028e6
5 files changed
+85

No files matched your search

@@ -0,0 +1,42 @@
// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/components/show-desktop/gen/interface/chandra/desktop/plasmoid"
import {
"chandra/desktop/interface/chandra/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
@@ -0,0 +1,13 @@
// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/components/show-desktop/gen"
// Values
pub fn mbt_ffi_cabi_realloc(Int32, Int32, Int32, Int32) -> Int32
// Errors
// Types and methods
// Type aliases
// Traits
@@ -0,0 +1,15 @@
// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/interface/chandra/desktop/show-desktop"
// Values
pub fn is_shown() -> Bool
pub fn toggle() -> Unit
// Errors
// Types and methods
// Type aliases
// Traits
@@ -35,6 +35,8 @@ pub fn publish_brightness(Int32) -> Unit
pub fn publish_desktop(Int32) -> Unit
pub fn publish_desktop_shown(Bool) -> Unit
pub fn publish_osk(Bool) -> Unit
pub fn publish_power(UInt32, UInt32) -> Unit
@@ -139,6 +141,7 @@ pub(all) enum Request {
SetBrightness(Int32)
SetOskVisible(Bool)
SetRotation(Int32)
ToggleDesktop
}
pub(all) struct SettingChange {
@@ -0,0 +1,12 @@
// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/world/show-desktop-widget"
// Values
// Errors
// Types and methods
// Type aliases
// Traits