Trait embedded_graphics::transform::Transform
source · pub trait Transform {
fn translate(&self, by: Coord) -> Self;
fn translate_mut(&mut self, by: Coord) -> &mut Self;
}
Expand description
Transform operations
Required Methods
sourcefn translate(&self, by: Coord) -> Self
fn translate(&self, by: Coord) -> Self
Move the origin of an object by a given number of (x, y) pixels, returning a new object
sourcefn translate_mut(&mut self, by: Coord) -> &mut Self
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