Or at the very least horizontal and vertical layouts that can do centering for their children.
These layouts will probably have to return a struct that will let you add elements to them and then render at the end, something like maybe
const vertical = vxim.vertical();
defer vertical.render();
vertical.addChild();
vertical.addChild();
Doesn't feel great though. Might have to do something sillier like specifying the layout of each child maybe?
const child_one = window .{.width, .height};
const child_two = window .{.width, .height};
const child_windows = vxim.vertical(.{child_one, child_two});
for (child_windows) |child| {
// Render inside each child.
}
This second one actually seems like it might work pretty well.