// Generated using `moon info`, DON'T EDIT IT package "chandra/desktop/compositor/renderer" import { "chandra/desktop/compositor/scene", } // Values pub fn add_image(Pixmap) -> UInt32 pub fn blit_shm_surface(Pixmap, @scene.ShmBufferSnapshot, @scene.Rect) -> Unit pub fn decode_png(Bytes) -> Pixmap? pub fn draw_ops(Pixmap, Array[@scene.DrawOp], Int32, Int32) -> Unit pub fn encode_png(Pixmap) -> Bytes pub fn encode_png_compressed(Pixmap) -> Bytes pub fn encode_ppm(Pixmap) -> Bytes pub fn render_scene(@scene.SceneGraph) -> Pixmap pub fn scale_pixmap(Pixmap, Int32, Int32) -> Pixmap pub fn set_image(UInt32, Pixmap) -> UInt32 pub fn set_glyph_source((Int32, Int32, Bool, Bool) -> Glyph) -> Unit pub fn shm_thumbnail(@scene.ShmBufferSnapshot, Int32, Int32) -> Pixmap? pub fn text_width(String, Int32, Bool, Bool) -> Int32 pub fn zlib_compress(FixedArray[Byte]) -> Array[Byte] // Errors // Types and methods pub(all) struct Glyph { w : Int32 h : Int32 xoff : Int32 yoff : Int32 advance : Int32 coverage : Bytes embolden : Bool } 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