1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00
Commit Graph

680 Commits

Author SHA1 Message Date
Emil Ernerfeldt
682db9cef6 create_viewport_sync: embed viewport if backend doesn't support them 2023-11-03 13:44:05 +01:00
Emil Ernerfeldt
256ad734b4 More cleanup 2023-11-03 13:36:12 +01:00
Emil Ernerfeldt
1f0fc7a005 format let-else statements 2023-11-03 13:15:21 +01:00
Emil Ernerfeldt
9fd65ad21e Rename render to viewport_ui_cb to avoid confusion 2023-11-03 12:09:09 +01:00
Emil Ernerfeldt
29e1c4d101 Spelling 2023-11-03 11:43:02 +01:00
Emil Ernerfeldt
51b083a896 Misc code cleanup 2023-11-03 11:37:09 +01:00
Emil Ernerfeldt
0df4b493fb Better error reporting 2023-11-03 11:36:07 +01:00
Konkitoman
75e6d3c85d Fix crash on eframe wgpu when rendering a sync viewport in a sync viewport
Better names
2023-11-02 11:18:39 +02:00
Emil Ernerfeldt
46febb4af1 Fix crash during shutdown 2023-11-02 09:07:38 +01:00
Emil Ernerfeldt
9749e1ea6d Move Rc<RefCell<……>> outside of struct Viewports 2023-11-02 09:05:19 +01:00
Konkitoman
76d3873b47 Better names 2023-11-01 21:27:27 +02:00
Konkitoman
2b8e5b5896 Fix crash when rendering a sync viewport in a sync viewport 2023-11-01 21:00:14 +02:00
Emil Ernerfeldt
e5dab1eec9 Less RefCell in parameters 2023-11-01 19:04:16 +01:00
Emil Ernerfeldt
7340acf7b3 Less RefCell in parameters 2023-11-01 19:03:43 +01:00
Emil Ernerfeldt
2eb1240648 Less RefCell in parameters 2023-11-01 19:02:46 +01:00
Emil Ernerfeldt
7c1af06cc9 Less RwLock 2023-11-01 19:00:57 +01:00
Emil Ernerfeldt
9fce858c5f Less RwLock in parameters 2023-11-01 18:52:00 +01:00
Emil Ernerfeldt
3d1ee1bafa Replace some Arc with Rc to make it clear what is thread-local 2023-11-01 18:45:16 +01:00
Emil Ernerfeldt
0c9673b75f Fix broken doclinks 2023-11-01 18:44:06 +01:00
Emil Ernerfeldt
ec39563183 Use less RwLocks and Arcs in public interfaces 2023-11-01 18:43:13 +01:00
Emil Ernerfeldt
521678b5d9 Simplify another function signature 2023-11-01 18:35:17 +01:00
Emil Ernerfeldt
f6c5e71870 Simplify function signature 2023-11-01 18:27:02 +01:00
Emil Ernerfeldt
abc70ccf9c Misc code cleanup 2023-11-01 18:19:19 +01:00
Emil Ernerfeldt
678a3b035e Replace RwLock with RefCell in thread_local 2023-11-01 18:19:01 +01:00
Emil Ernerfeldt
06af7490a6 Merge branch 'master' into multiples_viewports 2023-11-01 17:04:59 +01:00
Emil Ernerfeldt
cc31695c03 Remove unused use statment 2023-11-01 17:02:02 +01:00
Emil Ernerfeldt
a57a3d03e9 Add to semicolons to silence clippy 2023-11-01 17:01:03 +01:00
Konkitoman
9b32dd7fb5 Refactor and update docs 2023-10-25 13:30:35 +03:00
Konkitoman
d6c2f3e8f3 Fix pixels per point for multiples viewports
Fix ./scripts/check.sh errors
2023-10-22 17:15:21 +03:00
Konkitoman
b4224566ed Now all viewports repaint when pixels_per_point are changed
Added zoom shortcuts for viewports example
2023-10-20 20:52:34 +03:00
Konkitoman
84ef02d9f5 eframe WGPU:
* Fix msaa and depth textures for multiples viewports
* Fix panic when the width or height was 0
2023-10-20 18:40:11 +03:00
Konkitoman
cc78ecb7ba Fix X11 invalid outer_position, inner_position, outer_size, inner_size, set_outer_position, set_inner_position and is making resizing smooter 2023-10-20 15:07:56 +03:00
Konkitoman
9e89188ebe Fix trying to render not existent viewport resulting in 100% cpu usage 2023-10-19 20:05:21 +03:00
Konkitoman
f5e1d0869e Fixing:
* Fix web
* Fix errors from ./scripts/check.sh
2023-10-19 18:50:48 +03:00
Konkitoman
ec37d3861a Fix pure glow 2023-10-19 16:52:34 +03:00
Konkitoman
4f1696cf9c big refractor
egui:
* removed FullOutput::repaint_after
* now for redraw only request_repaint_callback is used!
* now on every Context::request_repaint() will repaint only once
* exposed Context::requested_repaint and Context::requested_repaint_last_frame

eframe:
* now event result is returned as EventResult insted of Vec<EventResult>
* fix to many redraw requests

----:
* fix egui not waking when a repaint was from other thread
* now every thing feels more responsive!
2023-10-19 15:53:38 +03:00
Konkitoman
b1e7fafe70 egui:
* now every viewport has his own frame_nr

eframe:
* some refactoring
* now on Windows spinner will make the async viewport refresh, this problem was only for async viewport in Windows

* problem found there are two redraw systems, one was broken now is fixed, the one that was broken on Linux X11 was not needed, but for Windows both are needed!
1: The egui repaint_callback system
2: The egui repaint_after from FullOutput
2023-10-18 18:47:16 +03:00
Konkitoman
7f1a1e3b2e Now in ViewportBuilder has close_button and drag_and_drop enabled by default!
Fix Windows not rendering a sync viewport in a sync viewport
2023-10-18 14:50:42 +03:00
Konkitoman
954366ef7f eframe: refactor code to be more compact and faster 2023-10-11 21:08:07 +03:00
Clement Rey
fd75adb3a0 migrate to mime_guess2 (#3456) 2023-10-11 14:24:55 +02:00
Emil Ernerfeldt
38b4234c32 Add #[inline] to all color-related function 2023-10-07 18:11:16 +02:00
Emil Ernerfeldt
2bc2fb9c39 Fix some lints found by clippy 1.73 2023-10-06 09:01:31 +02:00
Konkitoman
287f7041f6 Fix typos and expose Context::is_desktop 2023-09-30 10:22:17 +03:00
Konkitoman
424303650b Update ViewportBuilder, documentation and implementation 2023-09-30 10:11:22 +03:00
Konkitoman
7caa042b92 Merge branch 'master' of https://github.com/emilk/egui into multiples_viewports 2023-09-30 09:39:45 +03:00
Konkitoman
73f14c9b0a Update crates/eframe/src/native/run.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-09-28 19:04:37 +03:00
Emil Ernerfeldt
12b6f2c3a0 Fix doc-link to egui_extras::install_image_loaders 2023-09-28 13:58:35 +02:00
Emil Ernerfeldt
d975c1a401 Fix HTTP web demo (#3407)
* Revert ttf-parser from 0.19.2 to 0.19.1

0.19.2's doesn't work with wasm in debug builds

* Update to poll-promise 0.3.0

* Publish new web demo

* Fix typo in changelog

* Explain why image_viewer is not part of the official web demo app

* Fix typos

* Make rfd native-only dependency
2023-09-28 12:06:55 +02:00
Emil Ernerfeldt
5a0186fa2b Release 0.23.0 - New image API 2023-09-28 08:44:33 +02:00
Emil Ernerfeldt
9a947e5547 Final image API doc tweaks 2023-09-27 16:40:26 +02:00