Trait conrod::backend::Backend [] [src]

pub trait Backend {
    type Texture: ImageSize + Any;
    type CharacterCache: CharacterCache<Texture=Self::Texture>;
}

A trait to be implemented by all backends to conrod.

This trait allows conrod to remain entirely backend agnostic so that users may use conrod with any window, graphics or font contexts.

Conrod provides a blanket implementation for all (T, C) tuples, where T is some texture and C is some character cache and both satisfy the necessary bounds.

Associated Types

type Texture: ImageSize + Any

The Texture type used by the Graphics and CharacterCache backends.

type CharacterCache: CharacterCache<Texture=Self::Texture>

The character cache used by the backend.

Must implement the CharacterCache trait.

Implementors