|
|
|
|
|
by xyzzy_plugh
880 days ago
|
|
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. |
|