RecyclingElementFactory
struct · ferroui-controls-repeater · v0.5.0
struct RecyclingElementFactory
A factory that selects named templates and shares elements through a pool.
Members
TYPEto_refon_select_template_key_corerecycle_pool_propertytemplates_propertyconstructnewrecycle_poolset_recycle_pooltemplatesset_templatesselect_template_key
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RecyclingElementFactory>
Returns a strong reference to this object.
on_select_template_key_core
fn on_select_template_key_core(self: &Self, data_context: Option<BoxedValue>, owner: Option<Ref<Control>>) -> Result<String, ElementFactoryError>
recycle_pool_property
fn recycle_pool_property() -> &'static StyledProperty<Option<Ref<RecyclePool>>>
templates_property
fn templates_property() -> &'static StyledProperty<Option<ElementFactoryTemplates>>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
recycle_pool
fn recycle_pool(self: &Self) -> Option<Ref<RecyclePool>>
set_recycle_pool
fn set_recycle_pool(self: &Self, pool: Option<Ref<RecyclePool>>)
templates
fn templates(self: &Self) -> ElementFactoryTemplates
set_templates
fn set_templates(self: &Self, templates: Option<ElementFactoryTemplates>)
select_template_key
fn select_template_key(self: &Self, handler: impl Fn(&SelectTemplateEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeElementFactoryImplExtRecyclingElementFactoryImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<RecyclingElementFactory>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplRecyclingElementFactoryImplElementFactoryImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.