Trait libhelium::prelude::AnimationExt

source ·
pub trait AnimationExt: IsA<Animation> + Sealed + 'static {
Show 20 methods // Provided methods fn pause(&self) { ... } fn play(&self) { ... } fn reset(&self) { ... } fn resume(&self) { ... } fn skip(&self) { ... } fn estimate_duration(&self) -> u32 { ... } fn calculate_value(&self, t: u32) -> f64 { ... } fn state(&self) -> AnimationState { ... } fn set_state(&self, value: AnimationState) { ... } fn target(&self) -> AnimationTarget { ... } fn set_target(&self, value: &impl IsA<AnimationTarget>) { ... } fn widget(&self) -> Widget { ... } fn set_widget(&self, value: &impl IsA<Widget>) { ... } fn avalue(&self) -> f64 { ... } fn set_avalue(&self, value: f64) { ... } fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_state_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_target_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_avalue_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Animation methods.

§Implementors

Animation, SpringAnimation, TimedAnimation

Provided Methods§

source

fn pause(&self)

source

fn play(&self)

source

fn reset(&self)

source

fn resume(&self)

source

fn skip(&self)

source

fn estimate_duration(&self) -> u32

source

fn calculate_value(&self, t: u32) -> f64

source

fn state(&self) -> AnimationState

source

fn set_state(&self, value: AnimationState)

source

fn target(&self) -> AnimationTarget

source

fn set_target(&self, value: &impl IsA<AnimationTarget>)

source

fn widget(&self) -> Widget

source

fn set_widget(&self, value: &impl IsA<Widget>)

source

fn avalue(&self) -> f64

source

fn set_avalue(&self, value: f64)

source

fn connect_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_target_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_widget_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_avalue_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Animation>> AnimationExt for O