pub trait SizableText {
// Required methods
fn set_font(&mut self, font_id: FontId, dpem: f32);
fn configure(&mut self) -> Result<(), InvalidFontId>;
fn measure_width(&mut self, max_width: f32) -> Result<f32, NotReady>;
fn measure_height(&mut self, wrap_width: f32) -> Result<f32, NotReady>;
}
Expand description
Required functionality on Text
objects for sizing by the theme
Required Methods§
Sourcefn configure(&mut self) -> Result<(), InvalidFontId>
fn configure(&mut self) -> Result<(), InvalidFontId>
Configure text