CI / test (push) Failing after 16s
moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
91 lines
1.9 KiB
Plaintext
91 lines
1.9 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "chandra/desktop/components/wm-hybrid/gen/interface/chandra/wm/policy"
|
|
|
|
import {
|
|
"chandra/desktop/interface/chandra/desktop/types",
|
|
}
|
|
|
|
// Values
|
|
pub fn on_pointer(@types.Point, UInt32?, Bool) -> InputTarget
|
|
|
|
pub fn on_window_close(UInt64) -> Array[WmAction]
|
|
|
|
pub fn on_window_open(WindowState, @types.Rect) -> Array[WmAction]
|
|
|
|
pub fn on_window_request(UInt64, WindowRequest, @types.Rect) -> Array[WmAction]
|
|
|
|
pub fn set_layout_mode(LayoutMode, @types.Rect) -> Array[WmAction]
|
|
|
|
pub fn stacking_order() -> Array[UInt64]
|
|
|
|
pub fn sync_windows(Array[@types.Rect], Array[WindowState]) -> Array[WmAction]
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) enum InputTarget {
|
|
Client((UInt64, @types.Point))
|
|
Decoration((UInt64, @types.Point))
|
|
ShellPanel(@types.Point)
|
|
None
|
|
}
|
|
|
|
pub(all) enum LayoutMode {
|
|
FLOATING
|
|
TILING
|
|
MONOCLE
|
|
}
|
|
pub fn LayoutMode::from(Int32) -> Self
|
|
pub fn LayoutMode::ordinal(Self) -> Int32
|
|
|
|
pub(all) struct WindowCaps(Byte)
|
|
pub fn WindowCaps::default() -> Self
|
|
pub fn WindowCaps::is_set(Self, WindowCapsFlag) -> Bool
|
|
pub fn WindowCaps::set(Self, WindowCapsFlag) -> Self
|
|
pub fn WindowCaps::unset(Self, WindowCapsFlag) -> Self
|
|
|
|
pub(all) enum WindowCapsFlag {
|
|
CAN_MOVE
|
|
CAN_RESIZE
|
|
CAN_MAXIMIZE
|
|
CAN_MINIMIZE
|
|
CAN_FULLSCREEN
|
|
}
|
|
|
|
pub(all) enum WindowRequest {
|
|
Maximize(Bool)
|
|
Fullscreen(Bool)
|
|
Minimize(Bool)
|
|
Close
|
|
Activate
|
|
MoveTo(@types.Point)
|
|
ResizeTo(@types.Size)
|
|
}
|
|
|
|
pub(all) struct WindowState {
|
|
id : UInt64
|
|
app_id : String
|
|
title : String
|
|
geometry : @types.Rect
|
|
min_size : @types.Size
|
|
max_size : @types.Size?
|
|
focused : Bool
|
|
maximized : Bool
|
|
fullscreen : Bool
|
|
workspace : UInt32
|
|
caps : WindowCaps
|
|
}
|
|
|
|
pub(all) enum WmAction {
|
|
SetGeometry((UInt64, @types.Rect))
|
|
Focus(UInt64)
|
|
Raise(UInt64)
|
|
Close(UInt64)
|
|
SetMaximized((UInt64, Bool))
|
|
SetFullscreen((UInt64, Bool))
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|