33 lines
674 B
Plaintext
33 lines
674 B
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "moonplasma/desktop/compositor/renderer"
|
|
|
|
import {
|
|
"moonplasma/desktop/compositor/scene",
|
|
}
|
|
|
|
// Values
|
|
pub fn blit_shm_surface(Pixmap, @scene.ShmBufferSnapshot, @scene.Rect) -> Unit
|
|
|
|
pub fn draw_ops(Pixmap, Array[@scene.DrawOp], Int32, Int32) -> Unit
|
|
|
|
pub fn encode_png(Pixmap) -> Bytes
|
|
|
|
pub fn encode_ppm(Pixmap) -> Bytes
|
|
|
|
pub fn render_scene(@scene.SceneGraph) -> Pixmap
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) struct Pixmap {
|
|
width : Int32
|
|
height : Int32
|
|
data : FixedArray[Byte]
|
|
}
|
|
pub fn Pixmap::new(Int32, Int32) -> Self
|
|
pub fn Pixmap::pixel(Self, Int32, Int32) -> @scene.Rgba?
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|