[][src]Struct makepad_render::Animator

pub struct Animator {
    pub area: Area,
    pub theme_update_id: usize,
    pub last_values: Vec<(InstanceType, AnimLastValue)>,
    // some fields omitted
}

Fields

area: Areatheme_update_id: usizelast_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]

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]

pub fn last_float(&self, _cx: &Cx, ident: InstanceFloat) -> f32[src]

pub fn _last_float(
    ident: InstanceFloat,
    last_float: &Vec<(InstanceType, AnimLastValue)>
) -> f32
[src]

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]

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]

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]

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]

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]

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]

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]

pub fn calc_color(
    &mut self,
    cx: &mut Cx,
    ident: InstanceColor,
    time: f64
) -> Color
[src]

pub fn last_color(&self, _cx: &Cx, ident: InstanceColor) -> Color[src]

pub fn _last_color(
    ident: InstanceColor,
    last_values: &Vec<(InstanceType, AnimLastValue)>
) -> Color
[src]

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]

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

impl Clone for Animator[src]

impl Default for Animator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.