Struct oxygengine_animation::animation::PhaseAnimation
source · pub struct PhaseAnimation {
pub value_phase: Phase,
pub playing: bool,
pub looped: bool,
/* private fields */
}
Fields§
§value_phase: Phase
§playing: bool
§looped: bool
Implementations§
source§impl PhaseAnimation
impl PhaseAnimation
pub fn new(value_phase: Phase) -> Self
pub fn instant(value: Scalar) -> Self
pub fn time(&self) -> Scalar
pub fn start(&mut self)
pub fn end(&mut self)
pub fn set_time(&mut self, time: Scalar)
pub fn in_progress(&self) -> bool
pub fn is_complete(&self) -> bool
pub fn duration(&self) -> Scalar
pub fn value(&self) -> Scalar
pub fn sample(&self, time: Scalar) -> Scalar
pub fn process(&mut self, delta_time: Scalar)
Trait Implementations§
source§impl Clone for PhaseAnimation
impl Clone for PhaseAnimation
source§fn clone(&self) -> PhaseAnimation
fn clone(&self) -> PhaseAnimation
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 moresource§impl Debug for PhaseAnimation
impl Debug for PhaseAnimation
source§impl Default for PhaseAnimation
impl Default for PhaseAnimation
source§fn default() -> PhaseAnimation
fn default() -> PhaseAnimation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PhaseAnimation
impl<'de> Deserialize<'de> for PhaseAnimation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PhaseAnimation
impl Send for PhaseAnimation
impl Sync for PhaseAnimation
impl Unpin for PhaseAnimation
impl UnwindSafe for PhaseAnimation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more