LayerBackend

Trait LayerBackend 

Source
pub trait LayerBackend: Dimension {
    type DeviceContextType: DeviceContextBackend;
    type CanvasType: CanvasBackend;

    // Required method
    fn new(
        context: Option<&Self::DeviceContextType>,
        width: usize,
        height: usize,
        canvas: &Self::CanvasType,
    ) -> Result<Self, GraphicsError>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn new( context: Option<&Self::DeviceContextType>, width: usize, height: usize, canvas: &Self::CanvasType, ) -> Result<Self, GraphicsError>
where Self: Sized,

Implementors§