egui_dock
: docking support for egui
Credit goes to @Iain-dono for implementing the actual library.
This fork aims to provide documentation and further development if necessary.
Demo
Usage
First, create your context type and your tab widget:
use ;
use Tab;
;
Then construct the initial tree using your tab widget:
use ;
let tab1 = Box new;
let tab2 = Box new;
let tab3 = Box new;
let tab4 = Box new;
let tab5 = Box new;
let mut tree = new;
// You can modify the tree in runtime
let = tree.split_left;
let = tree.split_below;
let = tree.split_below;
Finally, you can show the tree.
let id = ui.id;
show;
Contribution
Feel free to open issues and pull requests.