egui/examples/hello_world
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
..
src Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572) 2023-11-19 11:08:47 +01:00
Cargo.toml README.md: new images, better text (#3392) 2023-09-26 21:17:43 +02:00
README.md Automatically generate screenshots for all examples (#2379) 2022-12-04 17:27:40 +01:00
screenshot.png Update example screenshots 2023-09-27 15:34:39 +02:00

README.md

Example showing some UI controls like Label, TextEdit, Slider, Button.

cargo run -p hello_world