Function rustwlc::render::write_pixels [] [src]

pub fn write_pixels(format: wlc_pixel_format, geometry: Geometry, data: &[u8])

Write pixel data with the specific format to output's framebuffer. If the geometry is out of bounds, it will be automatically clamped.

Unsafety

The data is converted to a *mut c_void and then passed to C to read. The size of it should be the stride of the geometry * height of the geometry.