FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    start_transitions_core

    fn start_transitions_core(self: &Self, transitions: Vec<Rc<ItemCollectionTransition>>)
    

    Source

    should_animate_core

    fn should_animate_core(self: &Self, transition: Rc<ItemCollectionTransition>) -> bool
    

    Source

    cancel_transitions_core

    fn cancel_transitions_core(self: &Self, element: Ref<Control>)
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    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.

    Source

    set_animations_enabled

    fn set_animations_enabled(self: &Self, enabled: bool)
    

    Source

    should_animate

    fn should_animate(self: &Self, transition: Rc<ItemCollectionTransition>) -> bool
    

    Source

    start_transitions

    fn start_transitions(self: &Self, transitions: Vec<Rc<ItemCollectionTransition>>)
    

    Source

    queue_transition

    fn queue_transition(self: &Self, transition: Rc<ItemCollectionTransition>)
    

    Source

    transition_completed

    fn transition_completed(self: &Self, handler: impl Fn(&ItemCollectionTransitionCompletedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    notify_transition_completed

    fn notify_transition_completed(self: &Self, transition: Rc<ItemCollectionTransition>)
    

    Source

    retained_batch_count

    fn retained_batch_count(self: &Self) -> usize
    

    Source

    Trait implementations

    Availability

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