Emil Ernerfeldt
e9928c8766
Turn Branch into an enum
2023-04-26 20:31:37 +02:00
Emil Ernerfeldt
9510d3418e
Some bugfixes
2023-04-25 23:23:18 +02:00
Emil Ernerfeldt
6563522939
Better re-ordering of grid cells
2023-04-25 21:51:49 +02:00
Emil Ernerfeldt
7b26f3b79f
Grid support
2023-04-25 21:27:26 +02:00
Emil Ernerfeldt
e714b33940
Change layout at runtime
2023-04-25 16:26:53 +02:00
Emil Ernerfeldt
ea47d36de7
Refactor: use a single struct Branch
2023-04-25 13:19:24 +02:00
Emil Ernerfeldt
4be5f43a3a
Remove NodeState
2023-04-25 12:42:29 +02:00
Emil Ernerfeldt
e5d0cf68d6
Store state
2023-04-25 11:04:58 +02:00
Emil Ernerfeldt
32be36416c
You can mandate that all leaves have tabs
2023-04-24 22:37:04 +02:00
Emil Ernerfeldt
13ec65cf08
Fix drag-drop and simplification code
2023-04-24 17:04:10 +02:00
Emil Ernerfeldt
ce7ed11542
bug fixes
2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
b5eddc5d5c
Buggy drop-detection
2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
9b154c6d1d
Preview drag destinations
2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
52657301c9
dock wip
2023-04-24 15:44:27 +02:00
MAlba124
92c7053a14
Rename examples/user_attention/README.mg to ... ( #2948 )
...
Rename `examples/user_attention/README.mg` to `examples/user_attention/README.md`.
2023-04-24 14:28:13 +02:00
Emil Ernerfeldt
4d357b0f02
clippy fixes from 1.69.0
2023-04-21 11:33:18 +02:00
Emil Ernerfeldt
ce761e548f
use env_logger in all examples ( #2934 )
2023-04-19 16:35:38 +02:00
TicClick
e3a021eea6
Allow for requesting the user's attention to the window ( #2905 )
...
* add method for requesting attention to the main window
* use another enum member for user attention type instead of nested `Option`s
(also, document the enum members now that they don't mirror `winit`)
* update the docstring
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
* add an example app for testing window attention requests
* Apply suggestions from code review
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
* remove `chrono` dependency and improve the attention example's readability
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2023-04-19 15:29:17 +02:00
Emil Ernerfeldt
9c9a54ce36
Replace tracing with log ( #2928 )
...
* Replace tracing crate with log
It's just so much simpler to use
* Add `bacon wasm` job
* eframe: add a WebLogger for piping log events to the web console
2023-04-18 21:11:26 +02:00
Emil Ernerfeldt
af4d737c92
Fix typo. Closes https://github.com/emilk/egui/pull/2876
2023-04-18 16:11:53 +02:00
Emil Ernerfeldt
92c4e23aac
eframe: add a simplified native-only API for simple native apps ( #2453 )
...
* eframe: add a simplified native-only API for simple native apps
* build-fix
* Fix doc-test
2023-03-30 10:00:47 +02:00
amfaber
870264b005
eframe: capture a screenshot using Frame::request_screenshot
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2023-03-29 16:34:22 +02:00
c-git
2946ed74e3
Update serial window example ( #2756 )
...
* Update to make it more clear what will happen
* Provide an overview in readme of expectations
* Update screenshot to match new code
2023-03-29 15:55:45 +02:00
Emil Ernerfeldt
e3e781ced8
fix puffin_profiler example
2023-02-12 19:27:10 +01:00
Emil Ernerfeldt
530e9f667c
format: add some blank lines where it was needed
2023-02-10 18:03:46 +01:00
Emil Ernerfeldt
1581f0229e
examples/README.md: explain that the examples are for master
...
and add a link to the latest release
2023-02-08 20:34:43 +01:00
Emil Ernerfeldt
63fa3aec10
Update example screenshots
2023-02-08 19:04:04 +01:00
Emil Ernerfeldt
449dd1c23c
cargo update ( #2697 )
...
* cargo update
Updating anyhow v1.0.68 -> v1.0.69
Updating bindgen v0.63.0 -> v0.64.0
Removing cocoa v0.24.1
Updating glutin v0.30.3 -> v0.30.4
Updating glutin_egl_sys v0.3.1 -> v0.4.0
Updating glutin_glx_sys v0.3.0 -> v0.4.0
Updating glutin_wgl_sys v0.3.0 -> v0.4.0
Updating proc-macro2 v1.0.50 -> v1.0.51
Updating rgb v0.8.34 -> v0.8.35
Updating serde_json v1.0.91 -> v1.0.92
Updating tiny-skia v0.8.2 -> v0.8.3
Updating tiny-skia-path v0.8.2 -> v0.8.3
Removing windows-sys v0.36.1
Removing windows_aarch64_msvc v0.36.1
Removing windows_i686_gnu v0.36.1
Removing windows_i686_msvc v0.36.1
Removing windows_x86_64_gnu v0.36.1
Removing windows_x86_64_msvc v0.36.1
Updating zbus v3.8.0 -> v3.9.0
Updating zbus_macros v3.8.0 -> v3.9.0
* Update wasm-bindgen to 0.2.84
* cargo update
Updating js-sys v0.3.60 -> v0.3.61
Updating wasm-bindgen-futures v0.4.33 -> v0.4.34
Updating web-sys v0.3.60 -> v0.3.61
* Update pollster to 0.3
* Update rfd to 0.11
* Make sure we never depend on cmake
2023-02-08 18:11:34 +01:00
Emil Ernerfeldt
636a39cbe1
Update glow to 0.12 ( #2695 )
...
* Remove three-d example due to glow incompatibility
* Update to glow 0.12
* Remove three-d from deny.toml
* Add line to changelog
2023-02-08 17:16:44 +01:00
Emil Ernerfeldt
a8d5a82a7f
Lowe multisampling in examples from 8 to 4
...
Closes https://github.com/emilk/egui/issues/2658
2023-02-08 10:14:43 +01:00
Emil Ernerfeldt
cef0c0b6d8
Fix typo
2023-02-05 21:58:15 +01:00
Emil Ernerfeldt
d5dcc87ace
Improve custom_window_frame
2023-02-05 21:58:15 +01:00
Emil Ernerfeldt
660566c499
eframe: ask if the window is minimized or maximized ( #2672 )
...
* eframe: ask if the window is minimized or maximized
* Improve note
2023-02-04 16:05:23 +01:00
SunDoge
f0718a61d3
eframe: add set_minimized and set_maximized ( #2292 )
...
* add actions for window controls
* add maximized to WindowInfo
update button text
fix clippy
* add overlap icon when maximized
* remove argument `app`
* remove WindowInfo { maximized }
* Update minimum window size
* Double-click titlebar to toggle maximized state
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2023-02-04 14:42:42 +01:00
Andreas Reich
8aa07e9d43
Clear color values are now explicitely sent to the rendering backend as-is. ( #2666 )
...
* Clear color values are not explicitely sent to the rendering backend as-is.
Previously, converting from Color32 to Rgba caused an srgb->linear conversion. This conversion is incorrect if the backbuffer doesn't perform automatic conversion from linear->srgb (lack of this conversion is generally what egui assumes!).
* fill in pr numbers in changelog
* Epi comment fix
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
* Color32 comment fix
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
* move changelog line
* rename fix
* use backticks in doc
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2023-02-04 11:02:15 +01:00
Emil Ernerfeldt
8ce0e1c520
Avoid deadlocks by using lambdas for context lock ( #2625 )
...
ctx.input().key_pressed(Key::A) -> ctx.input(|i| i.key_pressed(Key::A))
2023-01-25 10:24:23 +01:00
RadonCoding
ce5472633d
Fix close button not working ( #2533 )
...
* Fix close button not working
By adding the close button after the title bar drag listener the close button will sense clicks.
* Update main.rs
2023-01-23 09:55:57 +01:00
apoorv569
0eabd894bd
Fix typo in cargo run command. ( #2582 )
...
I think someone by mistake wrote `cargo run -p hello_world` instead of `cargo run -p keyboard_events`.
2023-01-17 10:58:38 +01:00
Emil Ernerfeldt
37fd141dd1
Rename eframe::EframeError to eframe::Error
2022-12-14 17:29:54 +01:00
Emil Ernerfeldt
e0b5bb17e5
Improve the look of thin lines, making them look weaker ( #2437 )
...
* Revert "fix all clippy lints and remove them from allow list in cranky (#2419 )"
This reverts commit 930ef2db38 .
* Explain the cranky lints better
* Add Color32::gamma_multiply
* Remove unused pub use
* Remove non-existing crate category
* Improve color test with more lines
* Improve the look of thin lines, making them look weaker
Before they looked were too strong for the thickness.
* Use asserts for shader compilations
* Update changelogs
2022-12-12 16:18:05 +01:00
Emil Ernerfeldt
cb77458f70
eframe error handling ( #2433 )
...
* eframe::run_native: return errors instead of crashing
* Detect and handle glutin errors
* egui_demo_app: silence wgpu log spam
* Add trace logs for why eframe is shutting down
* Fix: only save App state once on Mac
* Handle Winit failure
* Log where we load app state from
* Don't panic on zero-sized window
* Clamp loaded window size to not be too tiny to see
* Simplify code: more shared code in window_builder
* Improve code readability
* Fix wasm32 build
* fix android
* Update changelog
2022-12-12 15:16:32 +01:00
Emil Ernerfeldt
124ef8ddf8
Update poll-promise and unicode_names2
2022-12-08 15:08:59 +01:00
Emil Ernerfeldt
d7fa40ebba
cargo update (#2386 )
...
* Better cargo deny check in check.sh
* cargo update
Updating ab_glyph v0.2.16 -> v0.2.18
Updating ab_glyph_rasterizer v0.1.5 -> v0.1.7
Removing adler32 v1.2.0
Removing ahash v0.4.7
Removing ahash v0.8.1
Adding ahash v0.8.2
Updating aho-corasick v0.7.18 -> v0.7.20
Updating android_system_properties v0.1.4 -> v0.1.5
Removing ansi_term v0.12.1
Updating anyhow v1.0.62 -> v1.0.66
Updating ash v0.37.0+1.3.209 -> v0.37.1+1.3.235
Updating async-channel v1.7.1 -> v1.8.0
Updating async-executor v1.4.1 -> v1.5.0
Updating async-io v1.8.0 -> v1.12.0
Updating async-lock v2.5.0 -> v2.6.0
Updating async-recursion v0.3.2 -> v1.0.0
Updating async-trait v0.1.57 -> v0.1.59
Updating base64 v0.13.0 -> v0.13.1
Updating bindgen v0.61.0 -> v0.63.0
Adding block-buffer v0.10.3
Updating bumpalo v3.11.0 -> v3.11.1
Updating bytemuck v1.12.1 -> v1.12.3
Updating bytemuck_derive v1.2.1 -> v1.3.0
Updating bytes v1.2.1 -> v1.3.0
Removing cache-padded v1.2.0
Updating calloop v0.10.1 -> v0.10.3
Updating cc v1.0.73 -> v1.0.77
Updating cfg-expr v0.10.3 -> v0.11.0
Updating chrono v0.4.22 -> v0.4.23
Updating clang-sys v1.3.3 -> v1.4.0
Updating clap v3.2.17 -> v3.2.23
Updating cmake v0.1.48 -> v0.1.49
Updating cocoa v0.24.0 -> v0.24.1
Updating concurrent-queue v1.2.4 -> v2.0.0
Adding cpufeatures v0.2.5
Updating crossbeam-utils v0.8.11 -> v0.8.14
Updating crossfont v0.5.0 -> v0.5.1
Adding crypto-common v0.1.6
Adding cxx v1.0.83
Adding cxx-build v1.0.83
Adding cxxbridge-flags v1.0.83
Adding cxxbridge-macro v1.0.83
Updating dark-light v0.2.2 -> v0.2.3
Removing deflate v1.0.0
Adding digest v0.10.6
Updating dlv-list v0.2.3 -> v0.3.0
Updating document-features v0.2.3 -> v0.2.6
Updating flate2 v1.0.24 -> v1.0.25
Updating fontconfig-parser v0.5.0 -> v0.5.1
Updating fontdb v0.9.1 -> v0.9.3
Updating form_urlencoded v1.0.1 -> v1.1.0
Updating futures-core v0.3.23 -> v0.3.25
Updating futures-io v0.3.23 -> v0.3.25
Updating futures-sink v0.3.23 -> v0.3.25
Updating futures-task v0.3.23 -> v0.3.25
Updating futures-util v0.3.23 -> v0.3.25
Adding generic-array v0.14.6
Updating getrandom v0.2.7 -> v0.2.8
Removing hashbrown v0.9.1
Updating iana-time-zone v0.1.46 -> v0.1.53
Adding iana-time-zone-haiku v0.1.1
Updating idna v0.2.3 -> v0.3.0
Updating image v0.24.3 -> v0.24.5
Updating indexmap v1.9.1 -> v1.9.2
Updating itertools v0.10.3 -> v0.10.5
Updating itoa v1.0.3 -> v1.0.4
Adding jni v0.20.0
Updating jobserver v0.1.24 -> v0.1.25
Adding jpeg-decoder v0.3.0
Updating libc v0.2.132 -> v0.2.138
Updating libloading v0.7.3 -> v0.7.4
Updating libm v0.2.5 -> v0.2.6
Adding link-cplusplus v1.0.7
Adding litrs v0.2.3
Updating lock_api v0.4.7 -> v0.4.9
Updating memmap2 v0.5.7 -> v0.5.8
Removing miniz_oxide v0.5.3
Adding miniz_oxide v0.5.4
Adding miniz_oxide v0.6.2
Updating mio v0.8.4 -> v0.8.5
Removing nix v0.22.3
Removing nix v0.23.1
Removing nix v0.24.2
Adding nix v0.24.3
Adding nix v0.25.1
Adding nu-ansi-term v0.46.0
Removing num_threads v0.1.6
Updating once_cell v1.13.1 -> v1.16.0
Updating ordered-multimap v0.3.1 -> v0.4.3
Updating ordered-stream v0.0.1 -> v0.1.2
Updating os_str_bytes v6.3.0 -> v6.4.1
Adding overload v0.1.1
Updating owned_ttf_parser v0.15.1 -> v0.17.1
Updating parking_lot_core v0.9.3 -> v0.9.5
Updating percent-encoding v2.1.0 -> v2.2.0
Updating pkg-config v0.3.25 -> v0.3.26
Updating png v0.17.5 -> v0.17.7
Updating polling v2.2.0 -> v2.5.1
Updating ppv-lite86 v0.2.16 -> v0.2.17
Updating proc-macro2 v1.0.43 -> v1.0.47
Updating profiling v1.0.6 -> v1.0.7
Updating rand_core v0.6.3 -> v0.6.4
Updating regex v1.6.0 -> v1.7.0
Updating regex-syntax v0.6.27 -> v0.6.28
Updating rgb v0.8.33 -> v0.8.34
Adding roxmltree v0.15.1
Updating rust-ini v0.17.0 -> v0.18.0
Updating rustls v0.20.6 -> v0.20.7
Updating scoped-tls v1.0.0 -> v1.0.1
Adding scratch v1.0.2
Updating sctk-adwaita v0.4.2 -> v0.4.3
Updating serde v1.0.143 -> v1.0.149
Updating serde_derive v1.0.143 -> v1.0.149
Updating serde_json v1.0.83 -> v1.0.89
Updating sha1 v0.6.1 -> v0.10.5
Removing sha1_smol v1.0.0
Updating smallvec v1.9.0 -> v1.10.0
Updating socket2 v0.4.4 -> v0.4.7
Updating svgtypes v0.8.1 -> v0.8.2
Updating syn v1.0.99 -> v1.0.105
Removing synstructure v0.12.6
Updating system-deps v6.0.2 -> v6.0.3
Updating textwrap v0.15.0 -> v0.16.0
Updating thiserror v1.0.32 -> v1.0.37
Updating thiserror-impl v1.0.32 -> v1.0.37
Removing time v0.1.44
Removing time v0.3.13
Adding time v0.1.45
Adding time v0.3.17
Adding time-core v0.1.0
Adding time-macros v0.2.6
Updating tracing v0.1.36 -> v0.1.37
Updating tracing-attributes v0.1.22 -> v0.1.23
Updating tracing-core v0.1.29 -> v0.1.30
Updating tracing-subscriber v0.3.15 -> v0.3.16
Adding ttf-parser v0.17.1
Adding typenum v1.15.0
Updating unicode-ident v1.0.3 -> v1.0.5
Updating unicode-normalization v0.1.21 -> v0.1.22
Updating unicode-script v0.5.4 -> v0.5.5
Updating unicode-width v0.1.9 -> v0.1.10
Updating unicode-xid v0.2.3 -> v0.2.4
Updating url v2.2.2 -> v2.3.1
Updating version-compare v0.1.0 -> v0.1.1
Updating wayland-client v0.29.4 -> v0.29.5
Updating wayland-commons v0.29.4 -> v0.29.5
Updating wayland-cursor v0.29.4 -> v0.29.5
Updating wayland-egl v0.29.4 -> v0.29.5
Updating wayland-protocols v0.29.4 -> v0.29.5
Updating wayland-scanner v0.29.4 -> v0.29.5
Updating wayland-sys v0.29.4 -> v0.29.5
Updating webbrowser v0.8.0 -> v0.8.2
Updating webpki-roots v0.22.4 -> v0.22.5
Updating wgpu v0.14.0 -> v0.14.2
Updating wgpu-core v0.14.0 -> v0.14.2
Updating wgpu-hal v0.14.0 -> v0.14.1
Updating wgpu-types v0.14.0 -> v0.14.1
Updating which v4.2.5 -> v4.3.0
Updating widestring v0.5.1 -> v1.0.2
Adding windows-sys v0.42.0
Updating winreg v0.8.0 -> v0.10.1
Updating x11-dl v2.20.0 -> v2.20.1
Updating xmlparser v0.13.3 -> v0.13.5
Updating zbus v2.3.2 -> v3.6.0
Updating zbus_macros v2.3.2 -> v3.6.0
Updating zbus_names v2.2.0 -> v2.4.0
Updating zerocopy-derive v0.3.1 -> v0.3.2
Updating zstd-sys v2.0.1+zstd.1.5.2 -> v2.0.4+zstd.1.5.2
Updating zvariant v3.6.0 -> v3.9.0
Updating zvariant_derive v3.6.0 -> v3.9.0
* downgrade image, webbrowser and fontconfig-parser to pass cargo deny
avoiding duplicate crate
* Remove unused dependency on egui_extras from screenshot demo
* Downgrade `chrono` to avoid having to fix egui-extras now
2022-12-05 12:12:51 +01:00
Matt Campbell
e1f348e4b2
Implement accessibility APIs via AccessKit ( #2294 )
...
* squash before rebase
* Update AccessKit, introducing support for editable spinners on Windows and an important fix for navigation order on macOS
* Restore support for increment and decrement actions in DragValue
* Avoid VoiceOver race condition bug
* fix clippy lint
* Tell AccessKit that the default action for a text edit (equivalent to a click) is to set the focus. This matters to some platform adapters.
* Refactor InputState functions for AccessKit actions
* Support the AccessKit SetValue for DragValue; this is the only way for a Windows AT to programmatically adjust the value
* Same for Slider
* Properly associate the slider label with both the slider and the drag value
* Lazily activate egui's AccessKit support
* fix clippy lint
* Update AccessKit
* More documentation, particularly around lazy activation
* Tweak one of the doc comments
* See if I can get AccessKit exempted from the 'missing backticks' lint
* Make PlatformOutput::accesskit_update an Option
* Refactor lazy activation
* Refactor node mutation (again)
* Eliminate the need for an explicit is_accesskit_active method, at least for now
* Fix doc comment
* More refactoring of tree construction; don't depend on Arc::get_mut
* Override a clippy lint; I seem to have no other choice
* Final planned refactor: a more flexible approach to hierarchy
* Last AccessKit update for this PR; includes an important macOS DPI fix
* Move and document the optional accesskit dependency
* Fix comment typo
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
* reformat
* More elegant code for conditionally creating a node
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
* Set step to 1.0 for all integer sliders
* Add doc example for Response::labelled_by
* Clarify a TODO comment I left for myself
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2022-12-04 19:17:12 +01:00
Emil Ernerfeldt
48666e1d7a
Automatically generate screenshots for all examples ( #2379 )
2022-12-04 17:27:40 +01:00
winne42
b774159fc8
let monospace text style be monospaced ( #2201 )
...
* let monospace text style be monospaced
* use monospace shortcut
2022-12-04 15:39:55 +01:00
JP
85f8eeb9d5
Fix key pressed event ( #2334 )
...
* Fix key press event
* Add example with key presses
* Changelog line for key_press fix
* PR review improvements
* Add PR link in changelog
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com >
2022-11-30 20:40:11 +01:00
Emil Ernerfeldt
eca5e6a4d2
Update to Rust 1.65 ( #2314 )
...
* Update to Rust 1.65
Because then you can use dynamic linking on Linux
* Fix a bunch of clippy lints
* Update changelogs
* More clippy fixes
2022-11-16 19:08:03 +01:00
blusk
3805a3282f
feat: add a way to provide customable scaling to SVG rasterization ( #2252 )
2022-11-07 16:52:14 +01:00
Emil Ernerfeldt
8c76b8caff
Update op puffin 0.14.0 ( #2257 )
2022-11-07 12:37:37 +01:00