// Generated using `moon info`, DON'T EDIT IT package "moonplasma/desktop/interface/moonplasma/host/display" // Values pub fn close() -> Unit pub fn frame_ready() -> Bool pub fn open() -> Output? pub fn poll() -> Bool pub fn present(FixedArray[Byte], UInt32, UInt32) -> Unit pub fn set_cursor_shape(UInt32) -> Unit pub fn take_input() -> Array[SeatEvent] // Errors // Types and methods pub(all) struct KeyState { code : UInt32 pressed : Bool } pub(all) struct Modifiers { depressed : UInt32 latched : UInt32 locked : UInt32 group : UInt32 } pub(all) struct Output { width : UInt32 height : UInt32 keymap : FixedArray[Byte] } pub(all) struct PointerPos { x : Double y : Double } pub(all) enum SeatEvent { PointerMove(PointerPos) PointerButton(KeyState) Key(KeyState) Modifiers(Modifiers) } // Type aliases // Traits