@csepp A long time ago I explored doing layout by giving every widget a utility function over spacial dimensions. Essentially, that would be represented in memory as a monochromatic texture where the color value increases at different rates as you go further away from the origin.
Found functions for combining them (finding the utility function of a space allocated to multiple input widgets). I don't remember what they were but I don't think they were hard to derive. That was sufficient.
@csepp Stopped there because I knew nobody would ever want to define utility functions for their widgets and also do we really need to involve graphics hardware in layout algorithms?? (no, I have never missed having this)
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.