FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextTrimming

    trait · ferroui-base · v0.5.0

    trait TextTrimming: fmt::Display + 'static
    

    Describes how text is trimmed when it overflows.

    Handled as Rc<dyn TextTrimming>; the predefined values (<dyn TextTrimming>::none(), ...) are one instance per thread and can be compared with Rc::ptr_eq.

    View source

    Members

    create_collapsing_properties

    fn create_collapsing_properties(self: &Self, create_info: &TextCollapsingCreateInfo) -> Rc<dyn TextCollapsingProperties>
    

    Creates the TextCollapsingProperties used to collapse the text.

    Source

    Trait implementations

    Availability

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