FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    invalidate

    fn invalidate(self: &Self)
    

    Invalidates the text of the host.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    as_text_block

    fn as_text_block(self: &Self) -> Option<Ref<TextBlock>>
    

    The host as a text block (C# host is TextBlock).

    Source

    Availability

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