FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    items_source_property

    fn items_source_property() -> &'static StyledProperty<Option<ItemsSource>>
    

    Source

    item_template_property

    fn item_template_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Source

    layout_property

    fn layout_property() -> &'static StyledProperty<Option<Ref<Layout>>>
    

    Source

    item_transition_provider_property

    fn item_transition_provider_property() -> &'static StyledProperty<Option<Ref<ItemCollectionTransitionProvider>>>
    

    Source

    horizontal_cache_length_property

    fn horizontal_cache_length_property() -> &'static StyledProperty<f64>
    

    Source

    vertical_cache_length_property

    fn vertical_cache_length_property() -> &'static StyledProperty<f64>
    

    Source

    virtualization_info_property

    fn virtualization_info_property() -> &'static AttachedProperty<Option<Rc<VirtualizationInfo>>>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    items_source

    fn items_source(self: &Self) -> Option<ItemsSource>
    

    Source

    set_items_source

    fn set_items_source(self: &Self, source: Option<ItemsSource>)
    

    Source

    items_source_view

    fn items_source_view(self: &Self) -> Option<Rc<ItemsSourceView>>
    

    Source

    item_template

    fn item_template(self: &Self) -> Option<BoxedValue>
    

    Source

    set_item_template

    fn set_item_template(self: &Self, template: Option<BoxedValue>)
    

    Source

    set_data_template

    fn set_data_template(self: &Self, template: Option<Rc<dyn IDataTemplate>>)
    

    Source

    set_element_factory

    fn set_element_factory(self: &Self, factory: Option<Rc<dyn IElementFactory>>)
    

    Source

    layout

    fn layout(self: &Self) -> Option<Ref<Layout>>
    

    Source

    set_layout

    fn set_layout(self: &Self, layout: Option<Ref<Layout>>)
    

    Source

    item_transition_provider

    fn item_transition_provider(self: &Self) -> Option<Ref<ItemCollectionTransitionProvider>>
    

    Source

    set_item_transition_provider

    fn set_item_transition_provider(self: &Self, provider: Option<Ref<ItemCollectionTransitionProvider>>)
    

    Source

    horizontal_cache_length

    fn horizontal_cache_length(self: &Self) -> f64
    

    Source

    set_horizontal_cache_length

    fn set_horizontal_cache_length(self: &Self, value: f64)
    

    Source

    vertical_cache_length

    fn vertical_cache_length(self: &Self) -> f64
    

    Source

    set_vertical_cache_length

    fn set_vertical_cache_length(self: &Self, value: f64)
    

    Source

    get_element_index

    fn get_element_index(self: &Self, element: &Ref<Control>) -> i32
    

    Source

    try_get_element

    fn try_get_element(self: &Self, index: i32) -> Option<Ref<Control>>
    

    Source

    get_or_create_element

    fn get_or_create_element(self: &Self, index: i32) -> Ref<Control>
    

    Source

    pin_element

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

    Source

    unpin_element

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

    Source

    realized_elements

    fn realized_elements(self: &Self) -> Vec<Ref<Control>>
    

    Source

    try_get_virtualization_info

    fn try_get_virtualization_info(element: &Control) -> Option<Rc<VirtualizationInfo>>
    

    Source

    get_virtualization_info

    fn get_virtualization_info(element: &Control) -> Rc<VirtualizationInfo>
    

    Source

    layout_state

    fn layout_state(self: &Self) -> Option<BoxedValue>
    

    Source

    set_layout_state

    fn set_layout_state(self: &Self, value: Option<BoxedValue>)
    

    Source

    layout_origin

    fn layout_origin(self: &Self) -> Point
    

    Source

    set_layout_origin

    fn set_layout_origin(self: &Self, value: Point)
    

    Source

    visible_window

    fn visible_window(self: &Self) -> Rect
    

    Source

    realization_window

    fn realization_window(self: &Self) -> Rect
    

    Source

    element_prepared

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

    Source

    element_clearing

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

    Source

    element_index_changed

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

    Source

    Trait implementations

    Availability

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