Open quinkennedy opened 9 years ago
We started working toward this with commit 5211bd4c14b136e336e73588cb1521e7d94cd12c
Currently we have a ContentBox render(...) interface, this might want to be expanded to include a query or layout interface for pre-render calculations. the render function returns a Rectangle representing the actual area that the element used (whereas the Rectangle argument is the area available)
I'm thinking that each atomic piece of content (heading, quote, image, footer, page num, etc) should have a rendering function which takes a rect and a float as arguments, and the renderer is allowed to use a percentage of the specified rect area for rendering its content.
This might be something like: