1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -04:00
Files
egui/examples/serial_windows
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
2025-06-07 10:24:41 -07:00

Demonstrates how to open several windows after each other.

Expected order of execution:

  • When the example runs a first window will be shown.
  • Once the first window is closed after a delay a second window will be shown.
  • Similarly, when the second window is closed after a delay a third will be shown.
  • Once the third is closed the program will stop.

NOTE: this doesn't work on Mac. See also https://github.com/emilk/egui/issues/1918.

cargo run -p serial_windows