Trait smithay::backend::allocator::Allocator[][src]

pub trait Allocator<B: Buffer> {
    type Error: Error;
    fn create_buffer(
        &mut self,
        width: u32,
        height: u32,
        fourcc: Fourcc,
        modifiers: &[Modifier]
    ) -> Result<B, Self::Error>; }
Expand description

Interface to create Buffers

Associated Types

Error type thrown if allocations fail

Required methods

Try to create a buffer with the given dimensions and pixel format

Implementors