FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TransitionBase

    struct · ferroui-base · v0.5.0

    struct TransitionBase
    

    Defines how a property should be animated using a transition.

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

    Returns a strong reference to this object.

    Source

    apply

    fn apply(self: &Self, control: &Animatable, clock: Rc<dyn IClock>, old_value: &BoxedValue, new_value: &BoxedValue) -> Rc<dyn IDisposable>
    

    Applies the transition to control: animates the transition's property from old_value to new_value.

    Source

    value_type

    fn value_type(self: &Self) -> (TypeId, &'static str)
    

    The type of the values the transition animates, which the value type of its property has to match.

    Source

    duration_property

    fn duration_property() -> &'static DirectProperty<TransitionBase, SignedDuration>
    

    Defines the Duration property.

    Source

    delay_property

    fn delay_property() -> &'static DirectProperty<TransitionBase, SignedDuration>
    

    Defines the Delay property.

    Source

    easing_property

    fn easing_property() -> &'static DirectProperty<TransitionBase, Easing>
    

    Defines the Easing property.

    Source

    property_property

    fn property_property() -> &'static DirectProperty<TransitionBase, Option<&'static FerroProperty>>
    

    Defines the Property property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    duration

    fn duration(self: &Self) -> SignedDuration
    

    The duration of the transition.

    Source

    set_duration

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

    Source

    delay

    fn delay(self: &Self) -> SignedDuration
    

    The delay before the transition starts.

    Source

    set_delay

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

    Source

    easing

    fn easing(self: &Self) -> Easing
    

    The easing class to be used.

    Source

    set_easing

    fn set_easing(self: &Self, value: impl Into<Easing>)
    

    Source

    property

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

    The property to be animated.

    Source

    set_property

    fn set_property(self: &Self, value: Option<&'static FerroProperty>)
    

    Source

    debug_display

    fn debug_display(self: &Self) -> String
    

    A description of the transition for diagnostics.

    Source

    Trait implementations

    Availability

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