Quote:
Originally Posted by tack
There's devils in them there details.
The box system I implemented (which is inspired by gtk+'s hbox/vbox) was surprisingly challenging. Boxes which are sized only as much as needed to fit their children (shrink-wrapped); boxes that can be expanded to fit their parent containers; cells within boxes that can have different ratios in their consumption of available space; propagating that available space to child widgets or not, and if not then justifying the children within the cells; supporting all that in scrollable viewports. And then I further stacked the deck against myself by wanting to support dynamically-determined but fixed-position widgets (think position:fixed in CSS), which you can see in that red "Fixed position widget" in the video.
|
Nice. I'm adding a note to my idea list to look at your code for a potential "do all the resizing things" module.