FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextCollapsingProperties

    trait · ferroui-base · v0.5.0

    trait TextCollapsingProperties: 'static
    

    Properties of text collapsing.

    View source

    Members

    width

    fn width(self: &Self) -> f64
    

    Gets the width in which the collapsible range is constrained to.

    Source

    symbol

    fn symbol(self: &Self) -> &Rc<dyn TextRun>
    

    Gets the text run that is used as collapsing symbol.

    Source

    flow_direction

    fn flow_direction(self: &Self) -> FlowDirection
    

    Gets the flow direction that is used for collapsing.

    Source

    collapse

    fn collapse(self: &Self, text_line: &dyn TextLine) -> Option<Vec<Rc<dyn TextRun>>>
    

    Collapses given text line. Returns the collapsed runs, or None when the line does not have to be collapsed.

    Source

    Trait implementations

    Availability

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