egui/crates/egui_demo_app/src
Emil Ernerfeldt 39e60e367f
Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572)
* Part of https://github.com/emilk/egui/issues/3556

This PR replaces a bunch of options in `eframe::NativeOptions` with
`egui::ViewportBuilder`. For instance:

``` diff
 let options = eframe::NativeOptions {
-    initial_window_size: Some(egui::vec2(320.0, 240.0)),
-    drag_and_drop_support: true,
+    viewport: egui::ViewportBuilder::default()
+        .with_inner_size([320.0, 240.0])
+        .with_drag_and_drop(true),
     centered: true,
     ..Default::default()
 };
```
2023-11-19 11:08:47 +01:00
..
apps Add `emath::Vec2b`, replacing `egui_plot::AxisBools` (#3543) 2023-11-11 21:31:36 +01:00
backend_panel.rs Replace `eframe::Frame` commands and `WindowInfo` with egui (#3564) 2023-11-18 19:27:53 +01:00
frame_history.rs Support images with rounded corners (#3257) 2023-08-15 09:29:30 +02:00
lib.rs eframe web: Better panic handling (#2942) 2023-04-21 08:33:01 +02:00
main.rs Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572) 2023-11-19 11:08:47 +01:00
web.rs Cleanup ahead of release 2023-05-23 19:53:32 +02:00
wrap_app.rs Replace `eframe::Frame` commands and `WindowInfo` with egui (#3564) 2023-11-18 19:27:53 +01:00