Box Containers¶
Boxes organize widgets in horizontal or vertical layouts.
Creating a Box¶
// Vertical box with 10px spacing
let vbox = gui_box("vertical", 10);
// Horizontal box with 5px spacing
let hbox = gui_box("horizontal", 5);
Adding Widgets to Box¶
let box = gui_box("vertical", 10);
let label1 = gui_label("First");
let label2 = gui_label("Second");
gui_add(box, label1);
gui_add(box, label2);