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§
Sourcefn render_text_layout(
this: &Self,
context: &mut DrawingContext<'_>,
origin: Point,
)
fn render_text_layout( this: &Self, context: &mut DrawingContext<'_>, origin: Point, )
Renders the text layout to a drawing context.
Sourcefn create_text_layout(this: &Self, text: Option<&str>) -> Rc<TextLayout>
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".