Struct components::engine::d2::swf::BitmapSymbol
source · [−]pub struct BitmapSymbol {
pub texture: Rc<dyn SubTexture + 'static>,
pub anchor_x: f32,
pub anchor_y: f32,
/* private fields */
}
Expand description
Defines a Flump atlased texture.
Fields
texture: Rc<dyn SubTexture + 'static>
anchor_x: f32
anchor_y: f32
Implementations
sourceimpl BitmapSymbol
impl BitmapSymbol
pub fn new(json: TextureFormat, atlas: impl Texture) -> BitmapSymbol
Trait Implementations
sourceimpl Debug for BitmapSymbol
impl Debug for BitmapSymbol
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.
Auto Trait Implementations
impl !RefUnwindSafe for BitmapSymbol
impl !Send for BitmapSymbol
impl !Sync for BitmapSymbol
impl Unpin for BitmapSymbol
impl !UnwindSafe for BitmapSymbol
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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn 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
.