Files
chandra/interface/moonplasma/wm/policy/pkg.generated.mbti
T

91 lines
1.9 KiB
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "moonplasma/desktop/interface/moonplasma/wm/policy"
import {
"moonplasma/desktop/interface/moonplasma/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