pub struct RenderableImage { /* private fields */ }
Implementations§
source§impl RenderableImage
impl RenderableImage
pub fn new(image: Image, xy: Coord, offset: DrawOffset) -> Self
source§impl RenderableImage
impl RenderableImage
pub fn set_position<P: Into<Coord>>(&mut self, new_position: P)
pub fn update_position<P: Into<Coord>>(&mut self, delta: P)
pub fn set_offset(&mut self, offset: DrawOffset)
Trait Implementations§
source§impl Clone for RenderableImage
impl Clone for RenderableImage
source§fn clone(&self) -> RenderableImage
fn clone(&self) -> RenderableImage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more