FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    KeyFrame

    struct · ferroui-base · v0.5.0

    struct KeyFrame
    

    Stores data regarding a specific key point and value in an animation.

    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<KeyFrame>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_cue

    fn with_cue(cue: Cue, setters: impl IntoIterator<Item = Rc<dyn IAnimationSetter>>) -> Ref<Self>
    

    Creates a key frame at cue with the given setters.

    Source

    with_key_time

    fn with_key_time(key_time: SignedDuration, setters: impl IntoIterator<Item = Rc<dyn IAnimationSetter>>) -> Ref<Self>
    

    Creates a key frame at key_time with the given setters.

    Source

    setters

    fn setters(self: &Self) -> FerroList<Rc<dyn IAnimationSetter>>
    

    The setters of the key frame: the values the animated properties have at its position.

    Source

    key_time

    fn key_time(self: &Self) -> SignedDuration
    

    The key time of this key frame.

    Source

    set_key_time

    fn set_key_time(self: &Self, value: SignedDuration)
    

    Sets the key time of this key frame. Panics when the cue has been set: only one of them can be.

    Source

    cue

    fn cue(self: &Self) -> Cue
    

    The cue of this key frame.

    Source

    set_cue

    fn set_cue(self: &Self, value: Cue)
    

    Sets the cue of this key frame. Panics when the key time has been set: only one of them can be.

    Source

    key_spline

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

    The key spline of this key frame.

    Source

    set_key_spline

    fn set_key_spline(self: &Self, value: Option<Ref<KeySpline>>)
    

    Sets the key spline of this key frame. Panics when the spline is not valid; it is stored nevertheless.

    Source

    Trait implementations

    Availability

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