Trait Frame

Source
pub trait Frame {
    // Required methods
    fn set_cell_absolute(
        &mut self,
        absolute_coord: Coord,
        absolute_depth: i8,
        absolute_cell: ViewCell,
    );
    fn blend_cell_background_absolute<B: Blend>(
        &mut self,
        absolute_coord: Coord,
        absolute_depth: i8,
        rgb24: Rgb24,
        alpha: u8,
        blend: B,
    );

    // Provided methods
    fn set_cell_relative<C: ColModify>(
        &mut self,
        relative_coord: Coord,
        relative_depth: i8,
        relative_cell: ViewCell,
        context: ViewContext<C>,
    ) { ... }
    fn blend_cell_background_relative<C: ColModify, B: Blend>(
        &mut self,
        relative_coord: Coord,
        relative_depth: i8,
        rgb24: Rgb24,
        alpha: u8,
        blend: B,
        context: ViewContext<C>,
    ) { ... }
}

Required Methods§

Source

fn set_cell_absolute( &mut self, absolute_coord: Coord, absolute_depth: i8, absolute_cell: ViewCell, )

Source

fn blend_cell_background_absolute<B: Blend>( &mut self, absolute_coord: Coord, absolute_depth: i8, rgb24: Rgb24, alpha: u8, blend: B, )

Provided Methods§

Source

fn set_cell_relative<C: ColModify>( &mut self, relative_coord: Coord, relative_depth: i8, relative_cell: ViewCell, context: ViewContext<C>, )

Source

fn blend_cell_background_relative<C: ColModify, B: Blend>( &mut self, relative_coord: Coord, relative_depth: i8, rgb24: Rgb24, alpha: u8, blend: B, context: ViewContext<C>, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Frame for Buffer

Source§

impl<'a, D> Frame for MeasureBoundsAndDraw<'a, D>
where D: Frame,