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.
Members
size
fn size(self: &Self) -> Size
Gets the size.
baseline
fn baseline(self: &Self) -> f64
Run baseline in ratio relative to run height.
draw
fn draw(self: &Self, drawing_context: &mut dyn ITextDrawingSink, origin: Point)
Draws the run at the given origin.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.