mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-07 04:06:48 +01:00
This commit is contained in:
parent
b25977d878
commit
a55e84c29f
4 changed files with 85 additions and 2 deletions
|
|
@ -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() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue