Skip to content

Separators

Visual separators between widgets.

Creating a Separator

// Horizontal separator
let hsep = gui_separator("horizontal");

// Vertical separator
let vsep = gui_separator("vertical");

Example

let box = gui_box("vertical", 5);

let label1 = gui_label("Section 1");
let sep = gui_separator("horizontal");
let label2 = gui_label("Section 2");

gui_add(box, label1);
gui_add(box, sep);
gui_add(box, label2);