wip: text drawing impls

This commit is contained in:
facile pop culture reference 2026-06-19 10:17:04 +03:00
parent 29035d0b36
commit 9c5bfafb7a
2 changed files with 15 additions and 8 deletions

View file

@ -12,11 +12,13 @@ pub(crate) use ::unicode_width::*;
to.text(&self, x, y, w)
}
}
impl Draw<Tui> for String {
fn draw (self, to: &mut Tui) -> Usually<XYWH<u16>> {
self.as_str().draw(to)
}
}
impl Draw<Tui> for &std::sync::Arc<str> {
fn draw (self, to: &mut Tui) -> Usually<XYWH<u16>> {
self.as_ref().draw(to)