Trait AnimatorImpl

Source
pub trait AnimatorImpl {
    // Required methods
    fn animator_cut_with_scope(
        &mut self,
        cx: &mut Cx,
        state: &[LiveId; 2],
        scope: &mut Scope<'_, '_>,
    );
    fn animator_play_with_scope(
        &mut self,
        cx: &mut Cx,
        state: &[LiveId; 2],
        scope: &mut Scope<'_, '_>,
    );
    fn animator_in_state(&self, cx: &Cx, check_state_pair: &[LiveId; 2]) -> bool;
    fn animator_apply_state(&mut self, cx: &mut Cx, scope: &mut Scope<'_, '_>);
    fn animator_after_apply(
        &mut self,
        cx: &mut Cx,
        apply: &mut Apply<'_, '_, '_>,
        index: usize,
        nodes: &[LiveNode],
    );
    fn animator_handle_event_with_scope(
        &mut self,
        cx: &mut Cx,
        event: &Event,
        scope: &mut Scope<'_, '_>,
    ) -> AnimatorAction;

    // Provided methods
    fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2]) { ... }
    fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2]) { ... }
    fn animator_toggle_with_scope(
        &mut self,
        cx: &mut Cx,
        is_state_1: bool,
        animate: Animate,
        state1: &[LiveId; 2],
        state2: &[LiveId; 2],
        scope: &mut Scope<'_, '_>,
    ) { ... }
    fn animator_toggle(
        &mut self,
        cx: &mut Cx,
        is_state_1: bool,
        animate: Animate,
        state1: &[LiveId; 2],
        state2: &[LiveId; 2],
    ) { ... }
    fn animator_handle_event(
        &mut self,
        cx: &mut Cx,
        event: &Event,
    ) -> AnimatorAction { ... }
}

Required Methods§

Source

fn animator_cut_with_scope( &mut self, cx: &mut Cx, state: &[LiveId; 2], scope: &mut Scope<'_, '_>, )

Source

fn animator_play_with_scope( &mut self, cx: &mut Cx, state: &[LiveId; 2], scope: &mut Scope<'_, '_>, )

Source

fn animator_in_state(&self, cx: &Cx, check_state_pair: &[LiveId; 2]) -> bool

Source

fn animator_apply_state(&mut self, cx: &mut Cx, scope: &mut Scope<'_, '_>)

Source

fn animator_after_apply( &mut self, cx: &mut Cx, apply: &mut Apply<'_, '_, '_>, index: usize, nodes: &[LiveNode], )

Source

fn animator_handle_event_with_scope( &mut self, cx: &mut Cx, event: &Event, scope: &mut Scope<'_, '_>, ) -> AnimatorAction

Provided Methods§

Source

fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2])

Source

fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2])

Source

fn animator_toggle_with_scope( &mut self, cx: &mut Cx, is_state_1: bool, animate: Animate, state1: &[LiveId; 2], state2: &[LiveId; 2], scope: &mut Scope<'_, '_>, )

Source

fn animator_toggle( &mut self, cx: &mut Cx, is_state_1: bool, animate: Animate, state1: &[LiveId; 2], state2: &[LiveId; 2], )

Source

fn animator_handle_event( &mut self, cx: &mut Cx, event: &Event, ) -> AnimatorAction

Implementors§