FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RecyclingElementFactory

    struct · ferroui-controls-repeater · v0.5.0

    struct RecyclingElementFactory
    

    A factory that selects named templates and shares elements through a pool.

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

    Returns a strong reference to this object.

    Source

    on_select_template_key_core

    fn on_select_template_key_core(self: &Self, data_context: Option<BoxedValue>, owner: Option<Ref<Control>>) -> Result<String, ElementFactoryError>
    

    Source

    recycle_pool_property

    fn recycle_pool_property() -> &'static StyledProperty<Option<Ref<RecyclePool>>>
    

    Source

    templates_property

    fn templates_property() -> &'static StyledProperty<Option<ElementFactoryTemplates>>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    recycle_pool

    fn recycle_pool(self: &Self) -> Option<Ref<RecyclePool>>
    

    Source

    set_recycle_pool

    fn set_recycle_pool(self: &Self, pool: Option<Ref<RecyclePool>>)
    

    Source

    templates

    fn templates(self: &Self) -> ElementFactoryTemplates
    

    Source

    set_templates

    fn set_templates(self: &Self, templates: Option<ElementFactoryTemplates>)
    

    Source

    select_template_key

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

    Source

    Trait implementations

    Availability

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