mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
more esoteric with the docs; center all by default; genericity without subject doesnt compile lol
This commit is contained in:
parent
f7e6449324
commit
059ff2ca79
5 changed files with 44 additions and 37 deletions
|
|
@ -21,10 +21,10 @@ impl<E: Engine, T: Content<E>> Align<E, T> {
|
|||
|
||||
impl<E: Engine, T: Content<E>> Content<E> for Align<E, T> {
|
||||
fn layout (&self, outer: E::Area) -> E::Area {
|
||||
align_areas(self.0, outer.xywh(), Content::area(&self.content(), outer).xywh()).into()
|
||||
align_areas(self.0, outer.xywh(), Content::layout(&self.content(), outer).xywh()).into()
|
||||
}
|
||||
fn render (&self, render: &mut E::Output) {
|
||||
render.place(self.area(render.area()), &self.content())
|
||||
render.place(self.layout(render.area()), &self.content())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue