pub trait SpriteType {
    type Api: Api;
    type Userdata;

    const FREE_ON_DROP: bool = false;
}
Expand description

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

Required Associated Types§

source

type Api: Api

Type of API access-point.

source

type Userdata

Associated user-data with sprite.

Provided Associated Constants§

source

const FREE_ON_DROP: bool = false

Should be freed when sprite is dropped.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: TypedSprite> SpriteType for T

§

type Api = <T as SpriteApi>::Api

§

type Userdata = <T as TypedSprite>::Userdata

source§

const FREE_ON_DROP: bool = <T as TypedSprite>::FREE_ON_DROP