Expand description
A fixed-size sprite that displays a single texture.
Fields
inner: Sprite
texture: Option<Rc<dyn Texture>>
The texture being displayed, or None if none.
Implementations
Trait Implementations
sourceimpl AsRef<Sprite> for ImageSprite
impl AsRef<Sprite> for ImageSprite
sourceimpl Clone for ImageSprite
impl Clone for ImageSprite
sourcefn clone(&self) -> ImageSprite
fn clone(&self) -> ImageSprite
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageSprite
impl Debug for ImageSprite
sourceimpl Default for ImageSprite
impl Default for ImageSprite
sourcefn default() -> ImageSprite
fn default() -> ImageSprite
Returns the “default value” for a type. Read more
sourceimpl EntityManager<ImageSprite> for Entity
impl EntityManager<ImageSprite> for Entity
fn get(&self) -> Option<ImageSprite>
sourceimpl Symbol<ImageSprite> for BitmapSymbol
impl Symbol<ImageSprite> for BitmapSymbol
sourcefn create_sprite(&self) -> ImageSprite
fn create_sprite(&self) -> ImageSprite
Instantiate a sprite that displays this symbol.
sourceimpl Symbol<ImageSprite> for FrameSymbol
impl Symbol<ImageSprite> for FrameSymbol
sourcefn create_sprite(&self) -> ImageSprite
fn create_sprite(&self) -> ImageSprite
Instantiate a sprite that displays this symbol.
Auto Trait Implementations
impl !RefUnwindSafe for ImageSprite
impl !Send for ImageSprite
impl !Sync for ImageSprite
impl Unpin for ImageSprite
impl !UnwindSafe for ImageSprite
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.