[−][src]Struct silver_animation::Linear
The backbone of both Linear animation systems.
Implementations
impl<T, DrawFunc, MaxFrames> Linear<T, DrawFunc, MaxFrames> where
DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
MaxFrames: Fn(&T) -> usize,
[src]
DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
MaxFrames: Fn(&T) -> usize,
pub fn new(config: LinearConfig<T, DrawFunc, MaxFrames>) -> Self
[src]
Create a new animation.
pub fn draw(&mut self, gfx: &mut Graphics, location: Rectangle) -> Result<()>
[src]
Draw the animation.
pub fn contain(
self,
location: Rectangle
) -> BasicAnimationContainer<Self, Vector, Rectangle>
[src]
self,
location: Rectangle
) -> BasicAnimationContainer<Self, Vector, Rectangle>
Trait Implementations
impl<T, DrawFunc, MaxFrames> BasicAnimation<Vector, Rectangle> for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
MaxFrames: Fn(&T) -> usize,
[src]
DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
MaxFrames: Fn(&T) -> usize,
pub fn draw(&mut self, gfx: &mut Graphics, location: Rectangle) -> Result<()>
[src]
pub fn contain(
self,
location: Combined
) -> BasicAnimationContainer<Self, Size, Combined> where
Self: Sized,
[src]
self,
location: Combined
) -> BasicAnimationContainer<Self, Size, Combined> where
Self: Sized,
impl<T, DrawFunc, MaxFrames> Resetable for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
MaxFrames: Fn(&T) -> usize,
[src]
DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
MaxFrames: Fn(&T) -> usize,
Auto Trait Implementations
impl<T, DrawFunc, MaxFrames> RefUnwindSafe for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: RefUnwindSafe,
MaxFrames: RefUnwindSafe,
T: RefUnwindSafe,
DrawFunc: RefUnwindSafe,
MaxFrames: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, DrawFunc, MaxFrames> Send for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: Send,
MaxFrames: Send,
T: Send,
DrawFunc: Send,
MaxFrames: Send,
T: Send,
impl<T, DrawFunc, MaxFrames> Sync for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: Sync,
MaxFrames: Sync,
T: Sync,
DrawFunc: Sync,
MaxFrames: Sync,
T: Sync,
impl<T, DrawFunc, MaxFrames> Unpin for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: Unpin,
MaxFrames: Unpin,
T: Unpin,
DrawFunc: Unpin,
MaxFrames: Unpin,
T: Unpin,
impl<T, DrawFunc, MaxFrames> UnwindSafe for Linear<T, DrawFunc, MaxFrames> where
DrawFunc: UnwindSafe,
MaxFrames: UnwindSafe,
T: UnwindSafe,
DrawFunc: UnwindSafe,
MaxFrames: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,