ItemCollectionTransitionProvider
struct · ferroui-controls-repeater · v0.5.0
struct ItemCollectionTransitionProvider
Extensible transition provider. Batches begin on the next rendering frame;
transitions a subclass does not start still receive completion notification.
Native subclasses that own animation resources also override
cancel_transitions_core to release those resources before an element is
returned to its factory.
Members
TYPEto_refstart_transitions_coreshould_animate_corecancel_transitions_coreconstructnewanimations_enabledset_animations_enabledshould_animatestart_transitionsqueue_transitiontransition_completednotify_transition_completedretained_batch_count
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ItemCollectionTransitionProvider>
Returns a strong reference to this object.
start_transitions_core
fn start_transitions_core(self: &Self, transitions: Vec<Rc<ItemCollectionTransition>>)
should_animate_core
fn should_animate_core(self: &Self, transition: Rc<ItemCollectionTransition>) -> bool
cancel_transitions_core
fn cancel_transitions_core(self: &Self, element: Ref<Control>)
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
animations_enabled
fn animations_enabled(self: &Self) -> bool
Whether this provider permits animations. The current platform motion preference is also consulted for each queued transition; enabling this flag does not override a system request for reduced motion.
set_animations_enabled
fn set_animations_enabled(self: &Self, enabled: bool)
should_animate
fn should_animate(self: &Self, transition: Rc<ItemCollectionTransition>) -> bool
start_transitions
fn start_transitions(self: &Self, transitions: Vec<Rc<ItemCollectionTransition>>)
queue_transition
fn queue_transition(self: &Self, transition: Rc<ItemCollectionTransition>)
transition_completed
fn transition_completed(self: &Self, handler: impl Fn(&ItemCollectionTransitionCompletedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
notify_transition_completed
fn notify_transition_completed(self: &Self, transition: Rc<ItemCollectionTransition>)
retained_batch_count
fn retained_batch_count(self: &Self) -> usize
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeItemCollectionTransitionProviderImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ItemCollectionTransitionProvider>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplItemCollectionTransitionProviderImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.