Skip to main content

Module resizable

Module resizable 

Source
Expand description

Resizable โ€” two panes separated by a draggable divider.

The split position is persisted in egui memory keyed by the supplied id, so it survives across frames. Works horizontally (side-by-side, default) or vertically (stacked).

โ“˜
sc::Resizable::new("split")
    .default_fraction(0.3)
    .show(ui, |ui| { ui.label("left"); }, |ui| { ui.label("right"); });

Structsยง

Resizable