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§

source

type Image: Copy + Debug + Eq + Hash + Ord

Buffer-backed image that can be used for rendering or storing pixel data.

source

type Context: Context<Self>

Backend’s rendering context.

source

type Path: Clone + Eq

Vector path.

source

type PathBuilder: PathBuilder<Self>

Stateful path builder.

source

type Raster: Raster

Compact rasterized form of any number of paths.

source

type RasterBuilder: RasterBuilder<Self>

Stateful raster builder.

source

type Composition: Composition<Self>

Composition of stylized rasters.

Required Methods§

source

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.

Implementors§