FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DrawableTextRun

    trait · ferroui-base · v0.5.0

    trait DrawableTextRun: TextRun
    

    A text run that supports drawing content.

    Implementors also return Some(self) from TextRun::as_drawable.

    View source

    Members

    size

    fn size(self: &Self) -> Size
    

    Gets the size.

    Source

    baseline

    fn baseline(self: &Self) -> f64
    

    Run baseline in ratio relative to run height.

    Source

    draw

    fn draw(self: &Self, drawing_context: &mut dyn ITextDrawingSink, origin: Point)
    

    Draws the run at the given origin.

    Source

    Trait implementations

    Availability

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