Trait embedded_graphics::transform::Transform

source ·
pub trait Transform {
    // Required methods
    fn translate(&self, by: Coord) -> Self;
    fn translate_mut(&mut self, by: Coord) -> &mut Self;
}
Expand description

Transform operations

Required Methods§

source

fn translate(&self, by: Coord) -> Self

Move the origin of an object by a given number of (x, y) pixels, returning a new object

source

fn translate_mut(&mut self, by: Coord) -> &mut Self

Move the origin of an object by a given number of (x, y) pixels, mutating the object in place

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, C> Transform for ImageBmp<'a, C>
where C: PixelColor,

source§

impl<'a, C> Transform for ImageTga<'a, C>
where C: PixelColor,

source§

impl<'a, C, Conf> Transform for FontBuilder<'a, C, Conf>
where C: PixelColor,

source§

impl<'a, C, T> Transform for Image<'a, C, T>
where C: PixelColor, T: ImageType,

source§

impl<C> Transform for Circle<C>
where C: PixelColor,

source§

impl<C> Transform for Line<C>
where C: PixelColor,

source§

impl<C> Transform for Rectangle<C>
where C: PixelColor,

source§

impl<C> Transform for Triangle<C>
where C: PixelColor,