Implement Widget::draw for Text

This commit is contained in:
Héctor Ramón Jiménez 2021-10-14 16:59:19 +07:00
parent 03b3493138
commit 3a0c503db9
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
11 changed files with 128 additions and 32 deletions

View file

@ -330,6 +330,9 @@ where
/// }
/// ```
pub fn draw(&mut self, renderer: &mut Renderer, cursor_position: Point) {
// TODO: Move to shell level (?)
renderer.clear();
let viewport = Rectangle::with_size(self.bounds);
let overlay = if let Some(mut overlay) =