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
94 lines
2.5 KiB
Plaintext
94 lines
2.5 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "chandra/desktop/compositor/gfx"
|
|
|
|
import {
|
|
"chandra/desktop/compositor/renderer",
|
|
"chandra/desktop/compositor/scene",
|
|
}
|
|
|
|
// Values
|
|
pub fn present_pixmap(SurfaceFrameBufferContext, @renderer.Pixmap) -> Unit
|
|
|
|
pub fn present_scene(SurfaceFrameBufferContext, @scene.SceneGraph) -> @renderer.Pixmap
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) struct CreateDesc {
|
|
width : Int32?
|
|
height : Int32?
|
|
}
|
|
|
|
pub(all) struct FrameBuffer {
|
|
mut width : Int32
|
|
mut height : Int32
|
|
mut bytes : FixedArray[Byte]
|
|
}
|
|
pub fn FrameBuffer::get_with_copy(Self) -> FixedArray[Byte]
|
|
pub fn FrameBuffer::new(Int32, Int32) -> Self
|
|
pub fn FrameBuffer::set_with_copy(Self, FixedArray[Byte]) -> Unit
|
|
|
|
pub(all) struct FrameEvent {
|
|
nothing : Bool
|
|
}
|
|
|
|
pub(all) struct KeyEvent {
|
|
key : String?
|
|
text : String?
|
|
alt_key : Bool
|
|
ctrl_key : Bool
|
|
meta_key : Bool
|
|
shift_key : Bool
|
|
}
|
|
|
|
pub(all) struct PointerEvent {
|
|
x : Double
|
|
y : Double
|
|
}
|
|
|
|
pub(all) struct ResizeEvent {
|
|
width : Int32
|
|
height : Int32
|
|
}
|
|
|
|
pub(all) struct Surface {
|
|
mut width : Int32
|
|
mut height : Int32
|
|
resize_events : Array[ResizeEvent]
|
|
frame_events : Array[FrameEvent]
|
|
pointer_down_events : Array[PointerEvent]
|
|
pointer_up_events : Array[PointerEvent]
|
|
pointer_move_events : Array[PointerEvent]
|
|
key_down_events : Array[KeyEvent]
|
|
key_up_events : Array[KeyEvent]
|
|
mut presented_frames : Int32
|
|
mut last_presented : FixedArray[Byte]?
|
|
}
|
|
pub fn Surface::drain_key_down(Self) -> Array[KeyEvent]
|
|
pub fn Surface::drain_pointer_down(Self) -> Array[PointerEvent]
|
|
pub fn Surface::drain_pointer_move(Self) -> Array[PointerEvent]
|
|
pub fn Surface::drain_pointer_up(Self) -> Array[PointerEvent]
|
|
pub fn Surface::drain_resize(Self) -> Array[ResizeEvent]
|
|
pub fn Surface::height(Self) -> Int32
|
|
pub fn Surface::new(CreateDesc) -> Self
|
|
pub fn Surface::push_frame(Self) -> Unit
|
|
pub fn Surface::push_key_down(Self, KeyEvent) -> Unit
|
|
pub fn Surface::push_key_up(Self, KeyEvent) -> Unit
|
|
pub fn Surface::push_pointer_down(Self, Double, Double) -> Unit
|
|
pub fn Surface::push_pointer_move(Self, Double, Double) -> Unit
|
|
pub fn Surface::push_pointer_up(Self, Double, Double) -> Unit
|
|
pub fn Surface::request_set_size(Self, Int32?, Int32?) -> Unit
|
|
pub fn Surface::width(Self) -> Int32
|
|
|
|
pub(all) struct SurfaceFrameBufferContext {
|
|
surface : Surface
|
|
back_buffer : FrameBuffer
|
|
}
|
|
pub fn SurfaceFrameBufferContext::get_current_buffer(Self) -> FrameBuffer
|
|
pub fn SurfaceFrameBufferContext::new(Surface) -> Self
|
|
pub fn SurfaceFrameBufferContext::present(Self) -> Unit
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|