CustomPaintSource

Trait CustomPaintSource 

Source
pub trait CustomPaintSource: 'static {
    // Required methods
    fn resume(&mut self, device_handle: &DeviceHandle);
    fn suspend(&mut self);
    fn render(
        &mut self,
        ctx: CustomPaintCtx<'_>,
        width: u32,
        height: u32,
        scale: f64,
    ) -> Option<TextureHandle>;
}

Required Methods§

Source

fn resume(&mut self, device_handle: &DeviceHandle)

Source

fn suspend(&mut self)

Source

fn render( &mut self, ctx: CustomPaintCtx<'_>, width: u32, height: u32, scale: f64, ) -> Option<TextureHandle>

Implementors§