[−][src]Struct makepad_render::Animator
Fields
area: Area
theme_update_id: usize
last_values: Vec<(InstanceType, AnimLastValue)>
Methods
impl Animator
[src]
pub fn init<F>(&mut self, cx: &mut Cx, cb: F) where
F: Fn(&Cx) -> Anim,
[src]
F: Fn(&Cx) -> Anim,
pub fn set_anim_as_last_values(&mut self, anim: &Anim)
[src]
pub fn end(&mut self)
[src]
pub fn end_and_set(&mut self, anim: Anim)
[src]
pub fn term_anim_playing(&mut self) -> bool
[src]
pub fn play_anim(&mut self, cx: &mut Cx, anim: Anim)
[src]
pub fn set_area(&mut self, cx: &mut Cx, area: Area)
[src]
pub fn update_anim_track(&mut self, cx: &mut Cx, time: f64) -> Option<f64>
[src]
pub fn find_track_index(&mut self, ident: InstanceType) -> Option<usize>
[src]
pub fn calc_float(
&mut self,
cx: &mut Cx,
ident: InstanceFloat,
time: f64
) -> f32
[src]
&mut self,
cx: &mut Cx,
ident: InstanceFloat,
time: f64
) -> f32
pub fn last_float(&self, _cx: &Cx, ident: InstanceFloat) -> f32
[src]
pub fn _last_float(
ident: InstanceFloat,
last_float: &Vec<(InstanceType, AnimLastValue)>
) -> f32
[src]
ident: InstanceFloat,
last_float: &Vec<(InstanceType, AnimLastValue)>
) -> f32
pub fn set_last_float(&mut self, ident: InstanceFloat, value: f32)
[src]
pub fn _set_last_float(
ident: InstanceFloat,
value: f32,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
[src]
ident: InstanceFloat,
value: f32,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
pub fn calc_vec2(&mut self, cx: &mut Cx, ident: InstanceVec2, time: f64) -> Vec2
[src]
pub fn last_vec2(&self, _cx: &Cx, ident: InstanceVec2) -> Vec2
[src]
pub fn _last_vec2(
ident: InstanceVec2,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Vec2
[src]
ident: InstanceVec2,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Vec2
pub fn set_last_vec2(&mut self, ident: InstanceVec2, value: Vec2)
[src]
pub fn _set_last_vec2(
ident: InstanceVec2,
value: Vec2,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
[src]
ident: InstanceVec2,
value: Vec2,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
pub fn calc_vec3(&mut self, cx: &mut Cx, ident: InstanceVec3, time: f64) -> Vec3
[src]
pub fn last_vec3(&self, _cx: &Cx, ident: InstanceVec3) -> Vec3
[src]
pub fn _last_vec3(
ident: InstanceVec3,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Vec3
[src]
ident: InstanceVec3,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Vec3
pub fn set_last_vec3(&mut self, ident: InstanceVec3, value: Vec3)
[src]
pub fn _set_last_vec3(
ident: InstanceVec3,
value: Vec3,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
[src]
ident: InstanceVec3,
value: Vec3,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
pub fn calc_vec4(&mut self, cx: &mut Cx, ident: InstanceVec4, time: f64) -> Vec4
[src]
pub fn last_vec4(&self, _cx: &Cx, ident: InstanceVec4) -> Vec4
[src]
pub fn _last_vec4(
ident: InstanceVec4,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Vec4
[src]
ident: InstanceVec4,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Vec4
pub fn set_last_vec4(&mut self, ident: InstanceVec4, value: Vec4)
[src]
pub fn _set_last_vec4(
ident: InstanceVec4,
value: Vec4,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
[src]
ident: InstanceVec4,
value: Vec4,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
pub fn calc_color(
&mut self,
cx: &mut Cx,
ident: InstanceColor,
time: f64
) -> Color
[src]
&mut self,
cx: &mut Cx,
ident: InstanceColor,
time: f64
) -> Color
pub fn last_color(&self, _cx: &Cx, ident: InstanceColor) -> Color
[src]
pub fn _last_color(
ident: InstanceColor,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Color
[src]
ident: InstanceColor,
last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Color
pub fn set_last_color(&mut self, ident: InstanceColor, value: Color)
[src]
pub fn _set_last_color(
ident: InstanceColor,
value: Color,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
[src]
ident: InstanceColor,
value: Color,
last_values: &mut Vec<(InstanceType, AnimLastValue)>
)
pub fn last_area(&mut self, _cx: &mut Cx, _area: Area, _time: f64)
[src]
pub fn calc_area(&mut self, cx: &mut Cx, area: Area, time: f64)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Animator
impl Send for Animator
impl Sync for Animator
impl Unpin for Animator
impl UnwindSafe for Animator
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,