Trait embedded_graphics::transform::Transform [−][src]
pub trait Transform { fn translate(&self, by: Coord) -> Self; fn translate_mut(&mut self, by: Coord) -> &mut Self; }
Transform operations
Required Methods
fn translate(&self, by: Coord) -> Self
Move the origin of an object by a given number of (x, y) pixels, returning a new object
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
Implementors
impl<'a, C, Conf> Transform for FontBuilder<'a, C, Conf> where
C: PixelColor,impl<'a, C> Transform for Image1BPP<'a, C>
impl<'a, C> Transform for Image8BPP<'a, C> where
C: PixelColor,impl<C> Transform for Circle<C> where
C: PixelColor,impl<C> Transform for Line<C> where
C: PixelColor,impl<C> Transform for Rect<C> where
C: PixelColor,