FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IElementFactory

    trait · ferroui-controls-repeater · v0.5.0

    trait IElementFactory
    

    Supplies and recycles the elements of an super::ItemsRepeater.

    View source

    Members

    get_element

    fn get_element(self: &Self, args: &ElementFactoryGetArgs) -> Result<Ref<Control>, ElementFactoryError>
    

    Source

    recycle_element

    fn recycle_element(self: &Self, args: &ElementFactoryRecycleArgs) -> Result<(), ElementFactoryError>
    

    Source

    as_object

    fn as_object(self: &Self) -> Option<Ref<FerroObject>>
    

    Source

    is_template_empty

    fn is_template_empty(self: &Self, _data: Option<&BoxedValue>) -> bool
    

    Direct data templates can declare that they produce no visual content. Factories and selectors determine their content per element instead.

    Source

    Trait implementations

    Availability

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