pub trait SpriteDraw: Sized + TypedSpritewhere
    Self: From<SpriteRef>,{
    // Required method
    fn on_draw(
        sprite: &Handle<false, SharedSprite<Self::Userdata, Self::Api>, Self>,
        bounds: PDRect,
        draw_rect: PDRect
    );

    // Provided method
    unsafe extern "C" fn proxy(
        sprite: *mut LCDSprite,
        bounds: PDRect,
        draw_rect: PDRect
    )
       where Self::Api: Default { ... }
}

Required Methods§

source

fn on_draw( sprite: &Handle<false, SharedSprite<Self::Userdata, Self::Api>, Self>, bounds: PDRect, draw_rect: PDRect )

Provided Methods§

source

unsafe extern "C" fn proxy( sprite: *mut LCDSprite, bounds: PDRect, draw_rect: PDRect )where Self::Api: Default,

Object Safety§

This trait is not object safe.

Implementors§