egui/crates/eframe/src
LoganDark f0f41d60e1
eframe: Don't show window until after initialization (#2279)
* Don't show window until after initialization

Shortens #1802, but does not completely solve it

* format code

* Present first frame immediately before showing window

This resolves the white flash almost completely, but is a hack. Window
visibility should be derived from the AppOutput, and the first frame
should not be painted before the event loop has processed initial
events.

Working on a better implementation.

* Integrate window showing with AppOutput

This allows an app to keep the window hidden (never shown) by calling
Frame.set_visible(false) on the first update. This includes a slightly
less nasty hack than the last commit did.

Also fixes an accidental cross-contamination of pull requests.

* fmt

* add comments

* add comments

* add comments

* add comments

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-11-13 20:30:52 +01:00
..
native eframe: Don't show window until after initialization (#2279) 2022-11-13 20:30:52 +01:00
web eframe: warn if web_sys_unstable_apis was not set 2022-11-07 14:00:00 +01:00
epi.rs fix comment for WebOptions follow_system_theme (#2233) 2022-11-05 09:20:53 +01:00
lib.rs CI: Run cargo clippy for wasm32-unknown-unknown (#2200) 2022-10-30 20:55:07 +01:00