more esoteric with the docs; center all by default; genericity without subject doesnt compile lol

This commit is contained in:
🪞👃🪞 2025-01-01 01:51:45 +01:00
parent f7e6449324
commit 059ff2ca79
5 changed files with 44 additions and 37 deletions

View file

@ -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())
}
}