Skip to content

Commit f4de1d8

Browse files
committed
Merge branch 'master' of https://github.com/emilk/egui into develop
2 parents 0d74098 + a23b959 commit f4de1d8

File tree

169 files changed

+7735
-5698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+7735
-5698
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/
99
* Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`.
1010
* When you have addressed a PR comment, mark it as resolved.
1111
12-
Please be patient! I will review you PR, but my time is limited!
12+
Please be patient! I will review your PR, but my time is limited!
1313
-->
1414

1515
Closes <https://github.com/emilk/egui/issues/THE_RELEVANT_ISSUE>.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Deploy web demo
2+
3+
on:
4+
# We only run this on merges to master
5+
push:
6+
branches: ["master"]
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
# to only run when you do a new github release, comment out above part and uncomment the below trigger.
10+
# on:
11+
# release:
12+
# types: ["published"]
13+
14+
15+
permissions:
16+
contents: write # for committing to gh-pages branch
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
env:
25+
# web_sys_unstable_apis is required to enable the web_sys clipboard API which eframe web uses,
26+
# as well as by the wasm32-backend of the wgpu crate.
27+
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html
28+
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
29+
RUSTFLAGS: --cfg=web_sys_unstable_apis -D warnings
30+
RUSTDOCFLAGS: -D warnings
31+
32+
jobs:
33+
# Single deploy job since we're just deploying
34+
deploy:
35+
name: Deploy web demo
36+
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v3
41+
42+
- uses: actions-rs/toolchain@v1
43+
with:
44+
profile: minimal
45+
target: wasm32-unknown-unknown
46+
toolchain: 1.70.0
47+
override: true
48+
49+
- uses: Swatinem/rust-cache@v2
50+
with:
51+
prefix-key: "web-demo-"
52+
53+
- name: "Install wasmopt / binaryen"
54+
run: |
55+
sudo apt-get update && sudo apt-get install binaryen
56+
57+
- run: |
58+
scripts/build_demo_web.sh --release
59+
60+
- name: Deploy
61+
uses: JamesIves/github-pages-deploy-action@v4
62+
with:
63+
folder: web_demo
64+
# this option will not maintain any history of your previous pages deployment
65+
# set to false if you want all page build to be committed to your gh-pages branch history
66+
single-commit: true

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
toolchain: 1.70.0
9797
targets: wasm32-unknown-unknown
9898

99-
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev
99+
- run: sudo apt-get update && sudo apt-get install libgtk-3-dev libatk1.0-dev
100100

101101
- name: Set up cargo cache
102102
uses: Swatinem/rust-cache@v2

.typos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ nknown = "nknown" # part of @55nknown username
77
Prefence = "Prefence" # typo in glutin_winit API
88

99
[files]
10-
extend-exclude = ["docs/egui_demo_app.js"] # auto-generated
10+
extend-exclude = ["web_demo/egui_demo_app.js"] # auto-generated

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
"--workspace",
2121
"--message-format=json",
2222
"--all-targets",
23+
"--all-features",
2324
],
2425
"rust-analyzer.cargo.buildScripts.overrideCommand": [
2526
"cargo",
26-
"check",
27+
"cranky",
2728
"--quiet",
2829
"--target-dir=target_ra",
2930
"--workspace",
3031
"--message-format=json",
3132
"--all-targets",
33+
"--all-features",
3234
],
3335
}

ARCHITECTURE.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Also see [`CONTRIBUTING.md`](CONTRIBUTING.md) for what to do before opening a PR
55

66

77
## Crate overview
8-
The crates in this repository are: `egui, emath, epaint, egui_extras, egui_plot, egui-winit, egui_glium, egui_glow, egui_demo_lib, egui_demo_app`.
8+
The crates in this repository are: `egui, emath, epaint, egui_extras, egui_plot, egui-winit, egui_glow, egui_demo_lib, egui_demo_app`.
99

1010
### `egui`: The main GUI library.
1111
Example code: `if ui.button("Click me").clicked() { … }`
@@ -32,9 +32,6 @@ This crates provides bindings between [`egui`](https://github.com/emilk/egui) an
3232

3333
The library translates winit events to egui, handled copy/paste, updates the cursor, open links clicked in egui, etc.
3434

35-
### `egui_glium`
36-
Puts an egui app inside a native window on your laptop. Paints the triangles that egui outputs using [glium](https://github.com/glium/glium).
37-
3835
### `egui_glow`
3936
Puts an egui app inside a native window on your laptop. Paints the triangles that egui outputs using [glow](https://github.com/grovesNL/glow).
4037

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# egui changelog
22
All notable changes to the `egui` crate will be documented in this file.
33

4-
NOTE: [`epaint`](crates/epaint/CHANGELOG.md), [`egui_plot`](crates/egui_plot/CHANGELOG.md), [`eframe`](crates/eframe/CHANGELOG.md), [`egui-winit`](crates/egui-winit/CHANGELOG.md), [`egui_glium`](crates/egui_glium/CHANGELOG.md), [`egui_glow`](crates/egui_glow/CHANGELOG.md) and [`egui-wgpu`](crates/egui-wgpu/CHANGELOG.md) have their own changelogs!
4+
NOTE: [`epaint`](crates/epaint/CHANGELOG.md), [`egui_plot`](crates/egui_plot/CHANGELOG.md), [`eframe`](crates/eframe/CHANGELOG.md), [`egui-winit`](crates/egui-winit/CHANGELOG.md), [`egui_glow`](crates/egui_glow/CHANGELOG.md) and [`egui-wgpu`](crates/egui-wgpu/CHANGELOG.md) have their own changelogs!
55

66
This file is updated upon each release.
77
Changes since the last release can be found by running the `scripts/generate_changelog.py` script.
@@ -51,7 +51,7 @@ egui_extras::install_image_loaders(egui_ctx);
5151
* Support images with rounded corners [#3257](https://github.com/emilk/egui/pull/3257)
5252
* Change focused widget with arrow keys [#3272](https://github.com/emilk/egui/pull/3272) (thanks [@TimonPost](https://github.com/TimonPost)!)
5353
* Add opt-in `puffin` feature to egui [#3298](https://github.com/emilk/egui/pull/3298)
54-
* Add debug-option to show a callstack to the widget under the mouse [#3391](https://github.com/emilk/egui/pull/3391)
54+
* Add debug-option to show a callstack to the widget under the mouse and removed the `trace!` macro as this is more useful [#3391](https://github.com/emilk/egui/pull/3391)
5555
* Add `Context::open_url` and `Context::copy_text` [#3380](https://github.com/emilk/egui/pull/3380)
5656
* Add `Area::constrain_to` and `Window::constrain_to` [#3396](https://github.com/emilk/egui/pull/3396)
5757
* Add `Memory::area_rect` [#3161](https://github.com/emilk/egui/pull/3161) (thanks [@tosti007](https://github.com/tosti007)!)

0 commit comments

Comments
 (0)