FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ElementFactory

    struct · ferroui-controls-repeater · v0.5.0

    struct ElementFactory
    

    Extensible factory base. Its base virtual methods report the same invalid abstract-method calls as the original; derived factories implement them.

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

    Returns a strong reference to this object.

    Source

    get_element_core

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

    Source

    recycle_element_core

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

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    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_element_factory

    fn as_element_factory(self: &Self) -> Rc<dyn IElementFactory>
    

    Source

    Trait implementations

    Availability

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