ItemsRepeater
struct · ferroui-controls-repeater · v0.5.0
struct ItemsRepeater
A lightweight, virtualizing items host with pluggable layouts and factories.
Elements are ordinary FerroUI controls in the visual and logical trees. ScrollViewer supplies the effective viewport and scroll anchors; the repeater supplies no selection policy or implicit item container.
Members
TYPEto_refitems_source_propertyitem_template_propertylayout_propertyitem_transition_provider_propertyhorizontal_cache_length_propertyvertical_cache_length_propertyvirtualization_info_propertyconstructnewitems_sourceset_items_sourceitems_source_viewitem_templateset_item_templateset_data_templateset_element_factorylayoutset_layoutitem_transition_providerset_item_transition_providerhorizontal_cache_lengthset_horizontal_cache_lengthvertical_cache_lengthset_vertical_cache_lengthget_element_indextry_get_elementget_or_create_elementpin_elementunpin_elementrealized_elementstry_get_virtualization_infoget_virtualization_infolayout_stateset_layout_statelayout_originset_layout_originvisible_windowrealization_windowelement_preparedelement_clearingelement_index_changed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ItemsRepeater>
Returns a strong reference to this object.
items_source_property
fn items_source_property() -> &'static StyledProperty<Option<ItemsSource>>
item_template_property
fn item_template_property() -> &'static StyledProperty<Option<BoxedValue>>
layout_property
fn layout_property() -> &'static StyledProperty<Option<Ref<Layout>>>
item_transition_provider_property
fn item_transition_provider_property() -> &'static StyledProperty<Option<Ref<ItemCollectionTransitionProvider>>>
horizontal_cache_length_property
fn horizontal_cache_length_property() -> &'static StyledProperty<f64>
vertical_cache_length_property
fn vertical_cache_length_property() -> &'static StyledProperty<f64>
virtualization_info_property
fn virtualization_info_property() -> &'static AttachedProperty<Option<Rc<VirtualizationInfo>>>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
items_source
fn items_source(self: &Self) -> Option<ItemsSource>
set_items_source
fn set_items_source(self: &Self, source: Option<ItemsSource>)
items_source_view
fn items_source_view(self: &Self) -> Option<Rc<ItemsSourceView>>
item_template
fn item_template(self: &Self) -> Option<BoxedValue>
set_item_template
fn set_item_template(self: &Self, template: Option<BoxedValue>)
set_data_template
fn set_data_template(self: &Self, template: Option<Rc<dyn IDataTemplate>>)
set_element_factory
fn set_element_factory(self: &Self, factory: Option<Rc<dyn IElementFactory>>)
layout
fn layout(self: &Self) -> Option<Ref<Layout>>
set_layout
fn set_layout(self: &Self, layout: Option<Ref<Layout>>)
item_transition_provider
fn item_transition_provider(self: &Self) -> Option<Ref<ItemCollectionTransitionProvider>>
set_item_transition_provider
fn set_item_transition_provider(self: &Self, provider: Option<Ref<ItemCollectionTransitionProvider>>)
horizontal_cache_length
fn horizontal_cache_length(self: &Self) -> f64
set_horizontal_cache_length
fn set_horizontal_cache_length(self: &Self, value: f64)
vertical_cache_length
fn vertical_cache_length(self: &Self) -> f64
set_vertical_cache_length
fn set_vertical_cache_length(self: &Self, value: f64)
get_element_index
fn get_element_index(self: &Self, element: &Ref<Control>) -> i32
try_get_element
fn try_get_element(self: &Self, index: i32) -> Option<Ref<Control>>
get_or_create_element
fn get_or_create_element(self: &Self, index: i32) -> Ref<Control>
pin_element
fn pin_element(self: &Self, element: &Ref<Control>)
unpin_element
fn unpin_element(self: &Self, element: &Ref<Control>)
realized_elements
fn realized_elements(self: &Self) -> Vec<Ref<Control>>
try_get_virtualization_info
fn try_get_virtualization_info(element: &Control) -> Option<Rc<VirtualizationInfo>>
get_virtualization_info
fn get_virtualization_info(element: &Control) -> Rc<VirtualizationInfo>
layout_state
fn layout_state(self: &Self) -> Option<BoxedValue>
set_layout_state
fn set_layout_state(self: &Self, value: Option<BoxedValue>)
layout_origin
fn layout_origin(self: &Self) -> Point
set_layout_origin
fn set_layout_origin(self: &Self, value: Point)
visible_window
fn visible_window(self: &Self) -> Rect
realization_window
fn realization_window(self: &Self) -> Rect
element_prepared
fn element_prepared(self: &Self, handler: impl Fn(&ItemsRepeaterElementPreparedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
element_clearing
fn element_clearing(self: &Self, handler: impl Fn(&ItemsRepeaterElementClearingEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
element_index_changed
fn element_index_changed(self: &Self, handler: impl Fn(&ItemsRepeaterElementIndexChangedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyControlImplExtPanelImplExtInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ItemsRepeater>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplFerroObjectImplPanelImplLayoutableImplVisualImplInputElementImplControlImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.