pub trait TypedSprite: AsRaw<Type = LCDSprite> + SpriteApi {
    type Userdata;

    const FREE_ON_DROP: bool;
}
Expand description

Represents strictly typed sprite, includes associated user-data and free-on-drop flag.

Required Associated Types§

source

type Userdata

Associated user-data with sprite.

Required Associated Constants§

source

const FREE_ON_DROP: bool

Should be freed when sprite is dropped.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<UD, Api: Api, const FOD: bool> TypedSprite for Sprite<UD, Api, FOD>

§

type Userdata = UD

source§

const FREE_ON_DROP: bool = FOD