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.
Members
newget_data_template_componentset_data_template_componentinitialize_phase_zerophase_elementstop_phasingpending_countvalidate_phase_ordering
new
fn new(visible_window: Rc<dyn Fn() -> Rect>, item_at: Rc<dyn Fn(i32) -> Option<BoxedValue>>) -> Rc<Self>
get_data_template_component
fn get_data_template_component(element: &Control) -> Option<Rc<dyn IDataTemplateComponent>>
set_data_template_component
fn set_data_template_component(element: &Control, component: Option<Rc<dyn IDataTemplateComponent>>)
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.
phase_element
fn phase_element(self: &Rc<Self>, element: &Ref<Control>, info: &Rc<VirtualizationInfo>)
stop_phasing
fn stop_phasing(self: &Self, element: &Ref<Control>, info: &Rc<VirtualizationInfo>)
pending_count
fn pending_count(self: &Self) -> usize
validate_phase_ordering
fn validate_phase_ordering(current: i32, next: i32)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.