FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BlockImpl

    trait · ferroui-controls · v0.5.0

    trait BlockImpl: TextElementImpl + $crate::Upcast<Block>
    

    The overridable members introduced by the class.

    View source

    Members

    text

    fn text(this: &Self) -> String
    

    Returns the text of this block, without a following paragraph separator.

    Source

    build_text_runs

    fn build_text_runs(this: &Self, text_runs: &mut Vec<Rc<dyn TextRun>>)
    

    Appends formatter runs in content order.

    Source

    measure_embedded_controls

    fn measure_embedded_controls(this: &Self, available_size: Size) -> bool
    

    Measures inline controls and reports whether a size changed.

    Source

    Trait implementations

    Availability

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