1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00
Commit Graph

2696 Commits

Author SHA1 Message Date
Yuan Chang
20be0847c8 Add into_inner methods. (#3110) 2023-08-09 16:20:59 +02:00
Emil Ernerfeldt
46daaa8a34 Improve PR template 2023-08-09 12:51:22 +02:00
Emil Ernerfeldt
9c15783fab CI: update list of accepted PR labels 2023-08-09 12:51:08 +02:00
Dirk Stolle
9731cfd9cf Update GitHub Actions CI (#3150)
The following updates are performed:
* update actions/checkout to v3
* replace unmaintained actions-rs/toolchain by dtolnay/rust-toolchain
* replace unmaintained actions-rs/cargo by direct invocation of cargo
2023-08-09 12:50:33 +02:00
Stephen M. Coakley
486cff8ac3 Fix panic with persistence without window (#3167)
A window may not always be available and may have already been closed by the time an eframe app is closing. An example of this is Android, where the main activity window may have been stopped or discarded because the app is no longer in the foreground, and then the user decides to close your app without resuming it using the multitasking view.

In this case, skip the window persistence step if it does not exist anymore by the time we are saving the persistence data. Currently eframe will panic with `winit window doesn't exist` instead.
2023-08-09 12:42:43 +02:00
Brian Janssen
67ba4f2811 Add comment explaining Tab button (#2872) 2023-08-09 11:48:54 +02:00
dependabot[bot]
387b075681 Bump xml-rs from 0.8.13 to 0.8.15 (#3145)
Bumps [xml-rs](https://github.com/kornelski/xml-rs) from 0.8.13 to 0.8.15.
- [Changelog](https://github.com/kornelski/xml-rs/blob/main/Changelog.md)
- [Commits](https://github.com/kornelski/xml-rs/compare/0.8.13...0.8.15)

---
updated-dependencies:
- dependency-name: xml-rs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-09 11:15:37 +02:00
Felix Wiegand
d483ac47ba Fix auto_bounds when only one axis has restricted navigation (#3171) 2023-08-09 11:08:04 +02:00
lampsitter
cd917e49f2 Separate text cursor from selection visuals (#3181) 2023-08-09 11:07:40 +02:00
Emil Ernerfeldt
0e5f93b65d Add Margin::expand_rect and shrink_rect (#3214)
* Add `Margin::expand_rect` and `shrink_rect`

* fix typo

* Use the new helpers
2023-08-08 11:50:10 +02:00
Emil Ernerfeldt
924a903610 Rename _typos.toml to .typos.toml 2023-08-08 10:34:37 +02:00
Antoine Beyeler
bdc8795b04 Set the correct unicode character for "ctrl" shortcuts (#3186)
Fixes rerun-io/rerun#2862
2023-07-28 17:53:06 +02:00
Serv
339b758c60 fixed char limit (#3173) 2023-07-26 20:21:28 +02:00
Matt Fellenz
65eecde244 Use cfg attribute (#3113) 2023-07-26 19:07:05 +02:00
Forest Anderson
936c9583b5 Spelling fix (#3133) 2023-07-26 19:00:51 +02:00
bernsteining
67d5bd4392 fix(docs): remove duplicate typo (#3111) 2023-07-26 19:00:13 +02:00
jacekpoz
beb2ecf7e4 fix typo in NativeOptions docs (#3108)
Co-authored-by: jacekpoz <jacekpoz@cock.li>
2023-07-26 18:59:49 +02:00
Dirk Stolle
ff24ffbcbd Fix a typo (#3149) 2023-07-17 11:14:44 +02:00
Emil Ernerfeldt
083d61fccd Update to puffin 0.16 (#3144) 2023-07-10 12:29:01 +02:00
icedrocket
2a2529bb9c eframe: sleep a bit only when minimized (#3139) 2023-07-10 10:56:24 +02:00
amfaber
9478e50d01 Fix panic on wgpu GL backend due to new screenshot capability (#3078)
* Triage for GL backend

* And cargo-fmt

* Changelog update with PR and issue

* Update crates/eframe/src/epi/mod.rs

Co-authored-by: Andreas Reich <r_andreas2@web.de>

* Update crates/egui-wgpu/src/winit.rs

Co-authored-by: Andreas Reich <r_andreas2@web.de>

* Add "supports_screenshot" to surface state

* Cranky fix

* fmt

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2023-06-15 11:16:25 +02:00
bilabila
9774d4af2c eframe: fix android app quit on resume with glow backend (#3080) 2023-06-15 09:05:11 +02:00
τ
073f49682d Expose Raw Window and Display Handles (#3073)
* Expose raw window and display handles in eframe

* Ensure that no one implements `Clone` in the future

* Cleanup

---------

Co-authored-by: Matti Virkkunen <mvirkkunen@gmail.com>
2023-06-11 22:18:28 +02:00
Emil Ernerfeldt
5cd40f9685 Fix some typos 2023-06-11 19:34:32 +02:00
pan93412
860dac69da eframe: Only run_return twice on Windows (#3053)
The approach of #1889 may remove observers in a view
twice, which produces the Obj-C Exception:

    Cannot remove an observer <...> for the key path
    "nextResponder" from <WinitView ...> because
    it is not registered as an observer.

The above message can only be seen when attaching the
application to debugger. Users normally see:

    [1]    *** trace trap  cargo run

This commit fixes it by only running `event_loop.run_return()`
twice on Windows. Besides:

* We have set `ControlFlow::Exit` on `Event::LoopDestroyed`,
  `EventResult::Exit` and on error; therefore, it is safe
  to not calling `set_exit()`.
* This commit also fix the persistence function in macOS.
  It can't store the content in Memory due to this exception.

Fixed: #2768 (eframe: "App quit unexpectedly" on macOS)

Signed-off-by: pan93412 <pan93412@gmail.com>
2023-06-05 14:57:21 +02:00
Emil Ernerfeldt
0fda44c4ad fix typo in changelog 2023-06-05 14:56:39 +02:00
JohannesProgrammiert
e14f24b2a3 plot-axes: Resolve ./scripts/check.sh warnings 2023-05-27 12:28:21 +02:00
JohannesProgrammiert
e1816b312e plot-axis: Expose more conveniece functions to public API. Add axis labels to demo app 2023-05-26 12:12:57 +02:00
JohannesProgrammiert
7168c998a3 plot-axis: Use 'into impl<WidgetText>' as axis label formatter 2023-05-26 11:37:32 +02:00
JohannesProgrammiert
3d8fd1443a plot: Resolve check.sh warnings 2023-05-26 11:22:59 +02:00
JohannesProgrammiert
68834dec8f plot-axis: Rebase label opacity calculation on master 2023-05-26 11:15:49 +02:00
JohannesProgrammiert
f3b309fd8c plot: Remove unused comments 2023-05-26 11:15:07 +02:00
JohannesProgrammiert
95a8795b26 Fix clippy 2023-05-26 10:35:07 +02:00
Johannes Schiffer
0579f94ecc Remove default axis 2023-05-26 10:32:46 +02:00
Johannes Schiffer
2b0a27cb02 Update changelog 2023-05-26 10:32:45 +02:00
Johannes Schiffer
2c0fdf16df plot: resolve clippy warning 2023-05-26 10:30:01 +02:00
Johannes Schiffer
2d013fcfad plot: Update demo lib 2023-05-26 10:30:00 +02:00
Johannes Schiffer
086bb49ede plot: Axis label API 2023-05-26 10:28:28 +02:00
Johannes Schiffer
9d76be1131 plot: Tick placement of opposite axes and digit constraints 2023-05-26 10:11:28 +02:00
Johannes Schiffer
ffb1a45651 First Draft of axis labels outside of plotting window 2023-05-26 10:05:35 +02:00
Johannes Schiffer
26494597eb Add axis labels for plots 2023-05-26 09:57:52 +02:00
Johannes Schiffer
8be55f10e9 Revert "Always draw axis labels at plot borders"
This reverts commit 9235e6603366d3b8a8189e2a5fc28c9780b7f54f.
2023-05-26 09:50:43 +02:00
Johannes Schiffer
607423f9eb Always draw axis labels at plot borders 2023-05-26 09:49:51 +02:00
Emil Ernerfeldt
307565efa5 Release 0.22.0 - A plethora of small improvements 0.22.0 2023-05-23 19:58:04 +02:00
Emil Ernerfeldt
5fc82c746e New web demo for the 0.22 release 2023-05-23 19:54:03 +02:00
Emil Ernerfeldt
cccdfd246e Cleanup ahead of release 2023-05-23 19:53:32 +02:00
Emil Ernerfeldt
cb6bcde22c Update changelogs 2023-05-23 17:33:01 +02:00
Emil Ernerfeldt
b2281c46e4 Update example screenshots 2023-05-23 13:38:02 +02:00
Emil Ernerfeldt
b07a675439 Fix egui_extras chonos dependency list 2023-05-23 13:30:54 +02:00
Emil Ernerfeldt
bb252e2788 Check egui_extras --all-features on CI (#3019)
* Check egui_extras --all-features on CI

* Fix egui_extras with `datepicker` feature
2023-05-23 09:26:40 +02:00