@ -1,3 +1,7 @@ |
|||||
|
Example how to show a confirm dialog before exiting an application. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p confirm_exit |
cargo run -p confirm_exit |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 52 KiB |
@ -1,3 +1,7 @@ |
|||||
|
Example of how to use custom fonts. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p custom_font |
cargo run -p custom_font |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 5.5 KiB |
@ -1,4 +1,7 @@ |
|||||
|
Example how to define custom test styles. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p custom_font_style |
cargo run -p custom_font_style |
||||
``` |
``` |
||||
![custom_font_style example](custom_font_style.png) |
|
||||
|
![](screenshot.png) |
||||
|
Before Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 59 KiB |
@ -1,3 +1,7 @@ |
|||||
|
Example how to show a custom window frame instead of the default OS window chrome decorations. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p custom_window_frame |
cargo run -p custom_window_frame |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 8.2 KiB |
@ -1,3 +1,7 @@ |
|||||
|
Example how to download and show an image with eframe/egui. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p download_image |
cargo run -p download_image |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 353 KiB |
After Width: | Height: | Size: 3.8 KiB |
@ -1,3 +1,7 @@ |
|||||
|
Example showing some UI controls like `Label`, `TextEdit`, `Slider`, `Button`. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p hello_world |
cargo run -p hello_world |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 7.5 KiB |
@ -1,3 +1,5 @@ |
|||||
```sh |
```sh |
||||
cargo run -p hello_world |
cargo run -p hello_world |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 20 KiB |
@ -1,3 +1,7 @@ |
|||||
|
Example how to show an image with eframe/egui. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p retained_image |
cargo run -p retained_image |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 148 KiB |
@ -1,3 +1,7 @@ |
|||||
|
Example how to take screenshots and display them with eframe/egui. |
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p screenshot |
cargo run -p screenshot |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
@ -1,6 +1,7 @@ |
|||||
Example how to show an SVG image. |
Example how to show an SVG image. |
||||
|
|
||||
|
|
||||
```sh |
```sh |
||||
cargo run -p svg |
cargo run -p svg |
||||
``` |
``` |
||||
|
|
||||
|
![](screenshot.png) |
||||
|
After Width: | Height: | Size: 59 KiB |
@ -0,0 +1,11 @@ |
|||||
|
#!/usr/bin/env bash |
||||
|
# This script generates screenshots for all the examples in examples/ |
||||
|
|
||||
|
set -eu |
||||
|
script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) |
||||
|
cd "$script_path/.." |
||||
|
|
||||
|
cd examples |
||||
|
for VARIABLE in $(ls -1d */ | sed 's/\/$//'); do |
||||
|
EFRAME_SCREENSHOT_TO="$VARIABLE/screenshot.png" cargo run -p $VARIABLE |
||||
|
done |