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