Crates.io | egui_tabs |
lib.rs | egui_tabs |
version | 0.2.1 |
source | src |
created_at | 2024-12-07 21:26:49.004041 |
updated_at | 2024-12-07 21:35:40.786633 |
description | A tabs control for egui |
homepage | |
repository | https://github.com/damus-io/egui-tabs |
max_upload_size | |
id | 1475892 |
size | 10,865 |
A tab view for egui
Tabs::new(3).show(ui, |ui, state| {
let ind = state.index();
let txt = if ind == 0 {
"Tab A"
} else if ind == 1 {
"Tab B"
} else if ind == 2 {
"Tab C"
} else {
""
};
ui.add(egui::Label::new(txt).selectable(false));
});