1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -04:00
Files
egui/examples/multiple_viewports
Emil Ernerfeldt 27559ef3fd Rename Panel methods (#8192)
The three methods for showing a `Panel` are now:

* `panel.show`: always show the panel.
* `panel.show_collapsible`: show or hide the panel, with a slide
animation in between.
* `Panel::show_switched`: animate between two different panels: a
thin/collapsed one and a thick/expanded one.
2026-05-24 12:22:32 +02:00
..
2026-05-24 12:22:32 +02:00

Example how to show multiple viewports (native windows) can be created in egui when using the eframe backend.

cargo run -p multiple_viewports

For a more advanced example, see [../../tests/test_viewports].