News for hackers. Stuff that matters.
Re:Immediate Mode GUI Programming by xyzzy_plugh on Tuesday January 16, 2024 @10:15AM (#39014154)
A layout engine is required in both cases. It's not necessarily more difficult in immediate mode than retained mode.

TFA demonstrates this exact functionality without "recreating retained mode". Check out the "Layout" section and note that the button is shrunk to the label, all of which is centered. The layout engine becomes an emergent property of the widgets rather than an algorithm evaluating a tree. Here, the code is the tree.

There are no comments on this comment yet.