Struct i_slint_core::component_factory::FactoryContext
source · pub struct FactoryContext {
pub parent_item_tree: ItemTreeWeak,
pub parent_item_tree_index: u32,
}
Expand description
The FactoryContext
provides extra information to the ComponentFactory
Fields§
§parent_item_tree: ItemTreeWeak
The item tree to embed the factory product into
parent_item_tree_index: u32
The index in the parent item tree with the dynamic node to connect the factories product to.
Auto Trait Implementations§
impl Freeze for FactoryContext
impl RefUnwindSafe for FactoryContext
impl !Send for FactoryContext
impl !Sync for FactoryContext
impl Unpin for FactoryContext
impl UnwindSafe for FactoryContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more