mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Automatically generate screenshots for all examples (#2379)
This commit is contained in:
@@ -9,4 +9,6 @@ publish = false
|
||||
|
||||
|
||||
[dependencies]
|
||||
eframe = { path = "../../crates/eframe" }
|
||||
eframe = { path = "../../crates/eframe", features = [
|
||||
"__screenshot", # __screenshot is so we can dump a ascreenshot using EFRAME_SCREENSHOT_TO
|
||||
] }
|
||||
|
||||
@@ -6,3 +6,5 @@ See also <https://github.com/emilk/egui/issues/1918>.
|
||||
```sh
|
||||
cargo run -p serial_windows
|
||||
```
|
||||
|
||||

|
||||
|
||||
BIN
examples/serial_windows/screenshot.png
Normal file
BIN
examples/serial_windows/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -9,6 +9,7 @@ fn main() {
|
||||
|
||||
let options = eframe::NativeOptions {
|
||||
run_and_return: true,
|
||||
initial_window_size: Some(egui::vec2(320.0, 240.0)),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user