FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Phaser

    struct · ferroui-controls-repeater · v0.5.0

    struct Phaser
    

    Coordinates phase work for one repeater. Callbacks capture the owner weakly; recycling cancels outstanding work before an element can be reused.

    View source

    Members

    new

    fn new(visible_window: Rc<dyn Fn() -> Rect>, item_at: Rc<dyn Fn(i32) -> Option<BoxedValue>>) -> Rc<Self>
    

    Source

    get_data_template_component

    fn get_data_template_component(element: &Control) -> Option<Rc<dyn IDataTemplateComponent>>
    

    Source

    set_data_template_component

    fn set_data_template_component(element: &Control, component: Option<Rc<dyn IDataTemplateComponent>>)
    

    Source

    initialize_phase_zero

    fn initialize_phase_zero(element: &Ref<Control>, info: &Rc<VirtualizationInfo>, data: Option<BoxedValue>, index: i32)
    

    Runs phase zero before the host assigns DataContext. Deferred work is registered separately, after ElementPrepared has notified application code and the new root is in the visual tree.

    Source

    phase_element

    fn phase_element(self: &Rc<Self>, element: &Ref<Control>, info: &Rc<VirtualizationInfo>)
    

    Source

    stop_phasing

    fn stop_phasing(self: &Self, element: &Ref<Control>, info: &Rc<VirtualizationInfo>)
    

    Source

    pending_count

    fn pending_count(self: &Self) -> usize
    

    Source

    validate_phase_ordering

    fn validate_phase_ordering(current: i32, next: i32)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Drop

    Availability

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