Skip to main content

CompositingLayerAnimation

Trait CompositingLayerAnimation 

Source
pub trait CompositingLayerAnimation:
    Clone
    + Default
    + 'static {
    // Required methods
    fn advance(&mut self, elapsed_ms: f32) -> bool;
    fn compositing_layer_spec(&self) -> CompositingLayerSpec;

    // Provided methods
    fn wants_frame(&self) -> bool { ... }
    fn frame_interval_ms(&self) -> u64 { ... }
}
Expand description

Application-owned animation state for a retained compositing layer.

The framework advances this state and applies the resulting composition properties directly to the retained node. Static layer children are not rebuilt when only the spec changes.

Required Methods§

Source

fn advance(&mut self, elapsed_ms: f32) -> bool

Source

fn compositing_layer_spec(&self) -> CompositingLayerSpec

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§