AnimationWindowType

Trait AnimationWindowType 

Source
pub trait AnimationWindowType:
    EntityEvent
    + Clone
    + Send
    + Sync
    + 'static
where Self::Trigger<'a>: for<'a> Default,
{ // Required methods fn window_name() -> &'static str; fn from_params(params: &HashMap<String, Value>) -> Option<Self>; }
Expand description

Trait for types that can be animation windows.

Similar to AnimationTriggerType, but for duration-based events with Begin/Tick/End phases.

Required Methods§

Source

fn window_name() -> &'static str

The window name as used in the editor

Source

fn from_params(params: &HashMap<String, Value>) -> Option<Self>

Create an instance from the params HashMap.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§