FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AnimatorKeyFrame

    struct · ferroui-base · v0.5.0

    struct AnimatorKeyFrame
    

    Defines a key frame that is used for an animator.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<AnimatorKeyFrame>
    

    Returns a strong reference to this object.

    Source

    value_property

    fn value_property() -> &'static DirectProperty<AnimatorKeyFrame, Option<BoxedValue>>
    

    Defines the Value property.

    Source

    new

    fn new(animator_type: Option<TypeId>, animator_factory: Option<AnimatorFactory>, cue: Cue, key_spline: Option<Ref<KeySpline>>) -> Ref<Self>
    

    Creates a key frame for the animator type animator_type, which animator_factory creates.

    Source

    animator_type

    fn animator_type(self: &Self) -> Option<TypeId>
    

    The type of the animator the key frame belongs to.

    Source

    animator_factory

    fn animator_factory(self: &Self) -> Option<AnimatorFactory>
    

    The factory of the animator the key frame belongs to.

    Source

    cue

    fn cue(self: &Self) -> Cue
    

    The position of the key frame within an iteration.

    Source

    key_spline

    fn key_spline(self: &Self) -> Option<&Ref<KeySpline>>
    

    The spline applied to the progress towards this key frame.

    Source

    fill_before

    fn fill_before(self: &Self) -> bool
    

    Whether the value of this key frame applies before its cue.

    Source

    set_fill_before

    fn set_fill_before(self: &Self, value: bool)
    

    Source

    fill_after

    fn fill_after(self: &Self) -> bool
    

    Whether the value of this key frame applies after its cue.

    Source

    set_fill_after

    fn set_fill_after(self: &Self, value: bool)
    

    Source

    property

    fn property(self: &Self) -> Option<&'static FerroProperty>
    

    The property the key frame animates.

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    The value of the key frame: a value of exactly the animated property's value type, or None.

    Source

    set_value

    fn set_value(self: &Self, value: Option<BoxedValue>)
    

    Source

    bind_setter

    fn bind_setter(self: &Self, setter: &dyn IAnimationSetter, target_control: &Animatable) -> Rc<dyn IDisposable>
    

    Takes the property and the value from setter. When the setter's value is a source of values, the key frame's value follows it for as long as the returned handle is not disposed.

    Source

    get_typed_value

    fn get_typed_value<T: PropertyValue>(self: &Self) -> T
    

    The value of the key frame as a T. Panics when the key frame has no value or the value is of another type.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.