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

Transform operations

Required Methods§

source

fn translate(&self, by: Point) -> 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: Point) -> &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 Transform for Text<'_>

source§

impl Transform for Circle

source§

impl Transform for Line

source§

impl Transform for Rectangle

source§

impl Transform for Triangle

source§

impl<I, C> Transform for Image<'_, I, C>

source§

impl<T, S> Transform for Styled<T, S>
where T: Transform, S: Clone,