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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SolidColorBrushTransition>
Returns a strong reference to this object.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> $crate::Ref<Self>
with_property
fn with_property(property: &'static $crate::FerroProperty, duration: $crate::animation::SignedDuration) -> $crate::Ref<Self>
Creates a transition of property that takes duration.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTransitionBaseImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<SolidColorBrushTransition>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplTransitionBaseImplTransition<Option<Rc<dyn IBrush>>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.