FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SolidColorBrushTransition

    struct · ferroui-base · v0.5.0

    struct SolidColorBrushTransition
    

    Transition class of brush properties with the rules of WinUI's BrushTransition (Microsoft.UI.Xaml.BrushTransition, the BackgroundTransition of Border, Panel, ContentPresenter and Grid; WUCBrushManager::SetUpBrushTransitionIfAllowedHelper of microsoft-ui-xaml): a change to a solid colour brush from no brush (transparent) or from another solid colour brush is interpolated; any other change (to or from an acrylic, gradient or image brush, or to no brush) is applied at once, when the delay of the transition has passed.

    BrushTransition also interpolates gradient brushes and switches a brush it cannot interpolate half-way through its duration, which shows the old brush (a transparent background, say) for half of the duration.

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

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> $crate::Ref<Self>
    

    Source

    with_property

    fn with_property(property: &'static $crate::FerroProperty, duration: $crate::animation::SignedDuration) -> $crate::Ref<Self>
    

    Creates a transition of property that takes duration.

    Source

    Trait implementations

    Availability

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