IInlineHost
trait · ferroui-controls · v0.5.0
trait IInlineHost
The control that hosts inlines: it is told when they change and owns the visuals of embedded controls.
Handles are Rc<dyn IInlineHost>. A host is the parent of its inlines, so
its handle refers to it weakly: every member does nothing once the host is
gone.
Members
invalidate
fn invalidate(self: &Self)
Invalidates the text of the host.
invalidate_layout
fn invalidate_layout(self: &Self)
Rebuilds formatted text after inherited presentation changes. Document collection hosts forward this to the view without publishing a model edit.
invalidate_render
fn invalidate_render(self: &Self)
Invalidates interaction visuals without changing document content or formatted text. A host with separate drawing invalidation overrides it.
with_visual_children
fn with_visual_children(self: &Self, f: &mut dyn FnMut(&FerroList<Ref<Visual>>) -> ())
Runs f with the visual children of the host.
as_text_block
fn as_text_block(self: &Self) -> Option<Ref<TextBlock>>
The host as a text block (C# host is TextBlock).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.