1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Add epi::App::initial_window_size to control initial native window size

This commit is contained in:
Emil Ernerfeldt
2021-02-23 20:28:55 +01:00
parent 049a7b0382
commit 02a65132e4
4 changed files with 22 additions and 3 deletions

View File

@@ -87,6 +87,11 @@ pub trait App {
/// The name of your App.
fn name(&self) -> &str;
/// The initial size of the native window in points (logical pixels).
fn initial_window_size(&self) -> Option<egui::Vec2> {
None
}
/// Time between automatic calls to `save()`
fn auto_save_interval(&self) -> std::time::Duration {
std::time::Duration::from_secs(30)