pub struct Animator {
pub area: Area,
pub theme_update_id: usize,
pub last_values: Vec<(InstanceType, AnimLastValue)>,
/* private fields */
}
Fields§
§area: Area
§theme_update_id: usize
§last_values: Vec<(InstanceType, AnimLastValue)>
Implementations§
Source§impl Animator
impl Animator
pub fn init<F>(&mut self, cx: &mut Cx, cb: F)
pub fn set_anim_as_last_values(&mut self, anim: &Anim)
pub fn end(&mut self)
pub fn end_and_set(&mut self, anim: Anim)
pub fn term_anim_playing(&mut self) -> bool
pub fn play_anim(&mut self, cx: &mut Cx, anim: Anim)
pub fn set_area(&mut self, cx: &mut Cx, area: Area)
pub fn update_anim_track(&mut self, cx: &mut Cx, time: f64) -> Option<f64>
pub fn find_track_index(&mut self, ident: InstanceType) -> Option<usize>
pub fn calc_float( &mut self, cx: &mut Cx, ident: InstanceFloat, time: f64, ) -> f32
pub fn last_float(&self, _cx: &Cx, ident: InstanceFloat) -> f32
pub fn _last_float( ident: InstanceFloat, last_float: &Vec<(InstanceType, AnimLastValue)>, ) -> f32
pub fn set_last_float(&mut self, ident: InstanceFloat, value: f32)
pub fn _set_last_float( ident: InstanceFloat, value: f32, last_values: &mut Vec<(InstanceType, AnimLastValue)>, )
pub fn calc_vec2(&mut self, cx: &mut Cx, ident: InstanceVec2, time: f64) -> Vec2
pub fn last_vec2(&self, _cx: &Cx, ident: InstanceVec2) -> Vec2
pub fn _last_vec2( ident: InstanceVec2, last_values: &Vec<(InstanceType, AnimLastValue)>, ) -> Vec2
pub fn set_last_vec2(&mut self, ident: InstanceVec2, value: Vec2)
pub fn _set_last_vec2( ident: InstanceVec2, value: Vec2, last_values: &mut Vec<(InstanceType, AnimLastValue)>, )
pub fn calc_vec3(&mut self, cx: &mut Cx, ident: InstanceVec3, time: f64) -> Vec3
pub fn last_vec3(&self, _cx: &Cx, ident: InstanceVec3) -> Vec3
pub fn _last_vec3( ident: InstanceVec3, last_values: &Vec<(InstanceType, AnimLastValue)>, ) -> Vec3
pub fn set_last_vec3(&mut self, ident: InstanceVec3, value: Vec3)
pub fn _set_last_vec3( ident: InstanceVec3, value: Vec3, last_values: &mut Vec<(InstanceType, AnimLastValue)>, )
pub fn calc_vec4(&mut self, cx: &mut Cx, ident: InstanceVec4, time: f64) -> Vec4
pub fn last_vec4(&self, _cx: &Cx, ident: InstanceVec4) -> Vec4
pub fn _last_vec4( ident: InstanceVec4, last_values: &Vec<(InstanceType, AnimLastValue)>, ) -> Vec4
pub fn set_last_vec4(&mut self, ident: InstanceVec4, value: Vec4)
pub fn _set_last_vec4( ident: InstanceVec4, value: Vec4, last_values: &mut Vec<(InstanceType, AnimLastValue)>, )
pub fn calc_color( &mut self, cx: &mut Cx, ident: InstanceColor, time: f64, ) -> Color
pub fn last_color(&self, _cx: &Cx, ident: InstanceColor) -> Color
pub fn _last_color( ident: InstanceColor, last_values: &Vec<(InstanceType, AnimLastValue)>, ) -> Color
pub fn set_last_color(&mut self, ident: InstanceColor, value: Color)
pub fn _set_last_color( ident: InstanceColor, value: Color, last_values: &mut Vec<(InstanceType, AnimLastValue)>, )
pub fn last_area(&mut self, _cx: &mut Cx, _area: Area, _time: f64)
pub fn calc_area(&mut self, cx: &mut Cx, area: Area, time: f64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Animator
impl RefUnwindSafe for Animator
impl Send for Animator
impl Sync for Animator
impl Unpin for Animator
impl UnwindSafe for Animator
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