mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
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.
Example running an eframe application on an external eventloop on top of a tokio executor on Linux.
By running the event loop, eframe, and tokio in the same thread, one can leverage local async tasks. These tasks can share data with the UI without the need for locks or message passing.
In tokio CPU-bound async tasks can be run with spawn_blocking to avoid impacting the UI frame rate.
cargo run -p external_eventloop_async --features linux-example