output, tui: Stack implementation
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-17 10:15:07 +03:00
parent b25977d878
commit a55e84c29f
4 changed files with 85 additions and 2 deletions

View file

@ -14,7 +14,7 @@ pub trait Output: Send + Sync + Sized {
/// Mutable pointer to area
fn area_mut (&mut self) -> &mut Self::Area;
/// Render widget in area
fn place (&mut self, area: Self::Area, content: &impl Render<Self>);
fn place <T: Render<Self> + ?Sized> (&mut self, area: Self::Area, content: &T);
#[inline] fn x (&self) -> Self::Unit { self.area().x() }
#[inline] fn y (&self) -> Self::Unit { self.area().y() }
#[inline] fn w (&self) -> Self::Unit { self.area().w() }