pub trait Backend: Copy + Debug + Default + Eq + Hash + Ord + Sized + 'static {
type Image: Copy + Debug + Eq + Hash + Ord;
type Context: Context<Self>;
type Path: Clone + Eq;
type PathBuilder: PathBuilder<Self>;
type Raster: Raster;
type RasterBuilder: RasterBuilder<Self>;
type Composition: Composition<Self>;
// Required method
fn new_context(
token: ClientEnd<BufferCollectionTokenMarker>,
size: Size2D<u32>,
display_rotation: DisplayRotation
) -> Self::Context;
}
Expand description
Either Spinel or Forma. Zero-sized.
Required Associated Types§
sourcetype Image: Copy + Debug + Eq + Hash + Ord
type Image: Copy + Debug + Eq + Hash + Ord
Buffer-backed image that can be used for rendering or storing pixel data.
sourcetype PathBuilder: PathBuilder<Self>
type PathBuilder: PathBuilder<Self>
Stateful path builder.
sourcetype RasterBuilder: RasterBuilder<Self>
type RasterBuilder: RasterBuilder<Self>
Stateful raster builder.
sourcetype Composition: Composition<Self>
type Composition: Composition<Self>
Composition of stylized rasters.
Required Methods§
sourcefn new_context(
token: ClientEnd<BufferCollectionTokenMarker>,
size: Size2D<u32>,
display_rotation: DisplayRotation
) -> Self::Context
fn new_context( token: ClientEnd<BufferCollectionTokenMarker>, size: Size2D<u32>, display_rotation: DisplayRotation ) -> Self::Context
Creates a new rendering context
Object Safety§
This trait is not object safe.