Skip to main content

TextBlockImpl

Trait TextBlockImpl 

Source
pub trait TextBlockImpl: ControlImpl + Upcast<TextBlock> {
    // Provided methods
    fn render_text_layout(
        this: &Self,
        context: &mut DrawingContext<'_>,
        origin: Point,
    ) { ... }
    fn create_text_layout(this: &Self, text: Option<&str>) -> Rc<TextLayout> { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

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

Renders the text layout to a drawing context.

Source

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

Creates the TextLayout used to render the text.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§