FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBlockImpl

    trait · ferroui-controls · v0.5.0

    trait TextBlockImpl: ControlImpl + $crate::Upcast<TextBlock>
    

    The overridable members introduced by the class.

    View source

    Members

    render_text_layout

    fn render_text_layout(this: &Self, context: &mut DrawingContext<'_>, origin: Point)
    

    Renders the text layout to a drawing context.

    Source

    create_text_layout

    fn create_text_layout(this: &Self, text: Option<&str>) -> Rc<TextLayout>
    

    Creates the TextLayout used to render the text.

    Source

    Trait implementations

    Availability

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