Emil Ernerfeldt
a05520b9d3
Release 0.17.0 - Improved font selection and image handling
2022-02-22 19:32:30 +01:00
Emil Ernerfeldt
6d68838821
Clean up changelogs
2022-02-21 16:10:05 +01:00
Emil Ernerfeldt
ddf914b517
Update crates ( #1283 )
...
* Update rfd 0.8 -> 0.8
* Update webbrowser 0.5 -> 0.6
* Update unicode_names2 0.4 -> 0.5
* cargo update
Updating crates.io index
Adding arrayvec v0.7.2
Updating async-lock v2.4.0 -> v2.5.0
Updating autocfg v1.0.1 -> v1.1.0
Updating cc v1.0.72 -> v1.0.73
Updating cfg-expr v0.9.1 -> v0.10.1
Updating core-foundation v0.9.2 -> v0.9.3
Updating crc32fast v1.3.1 -> v1.3.2
Updating crossbeam-epoch v0.9.6 -> v0.9.7
Updating crossbeam-utils v0.8.6 -> v0.8.7
Updating deflate v0.9.1 -> v1.0.0
Removing encoding v0.2.33
Removing encoding-index-japanese v1.20141219.5
Removing encoding-index-korean v1.20141219.5
Removing encoding-index-simpchinese v1.20141219.5
Removing encoding-index-singlebyte v1.20141219.5
Removing encoding-index-tradchinese v1.20141219.5
Removing encoding_index_tests v0.1.4
Updating enum-map v2.0.1 -> v2.0.2
Updating futures-core v0.3.19 -> v0.3.21
Updating futures-io v0.3.19 -> v0.3.21
Updating futures-sink v0.3.19 -> v0.3.21
Updating futures-task v0.3.19 -> v0.3.21
Updating futures-util v0.3.19 -> v0.3.21
Updating gio-sys v0.15.4 -> v0.15.6
Updating glib-sys v0.15.4 -> v0.15.6
Updating gobject-sys v0.15.1 -> v0.15.5
Updating image v0.24.0 -> v0.24.1
Updating kurbo v0.8.0 -> v0.8.3
Updating libc v0.2.117 -> v0.2.119
Updating memmap2 v0.5.2 -> v0.5.3
Adding miniz_oxide v0.5.1
Adding ndk-context v0.1.0
Removing ndk-glue v0.5.0
Removing ndk-glue v0.6.0
Adding ndk-glue v0.5.1
Adding ndk-glue v0.6.1
Updating ntapi v0.3.6 -> v0.3.7
Updating png v0.17.2 -> v0.17.3
Updating proc-macro-crate v1.1.0 -> v1.1.2
Updating rand v0.8.4 -> v0.8.5
Removing rand_hc v0.3.1
Updating rustls v0.20.2 -> v0.20.4
Updating semver v1.0.4 -> v1.0.5
Updating serde_json v1.0.78 -> v1.0.79
Updating system-deps v6.0.1 -> v6.0.2
Updating tracing v0.1.30 -> v0.1.31
Updating tracing-subscriber v0.3.7 -> v0.3.9
Updating tts v0.20.2 -> v0.20.3
Removing windows v0.30.0
Removing windows_aarch64_msvc v0.30.0
Removing windows_i686_gnu v0.30.0
Removing windows_i686_msvc v0.30.0
Removing windows_x86_64_gnu v0.30.0
Removing windows_x86_64_msvc v0.30.0
2022-02-21 15:40:25 +01:00
Emil Ernerfeldt
c3fc8997d6
Introduce egui_extras with RetainedImage for loading svg,png,jpeg,… ( #1282 )
2022-02-21 15:26:26 +01:00
Emil Ernerfeldt
89d19860b8
Misc code cleanup, docs fixes, etc
2022-02-19 20:58:28 +01:00
Emil Ernerfeldt
3d754e3a16
Prevent ScrollArea:s from becoming tiny ( #1255 )
...
Closes https://github.com/emilk/egui/issues/1097
2022-02-17 17:08:05 +01:00
Emil Ernerfeldt
b5c8f034e7
Add web location info to egui_web/epi ( #1258 )
...
This adds all parts of the web "location" (URL) to frame.info().web_info, included a HashMap of the query parameters, percent-decoded and ready to go.
This lets you easily pass key-value pairs to your eframe web app.
2022-02-17 16:46:43 +01:00
Emil Ernerfeldt
defc400c21
Add an example of how to display an SVG image in egui ( #1228 )
2022-02-09 08:12:12 +01:00
Emil Ernerfeldt
cbc53fbe2e
eframe: Add epi::NativeOptions::initial_window_pos
2022-02-05 19:12:03 +01:00
Emil Ernerfeldt
0fa4bb9c64
Clean up all Cargo.toml: put features higher, and document them better
2022-02-05 11:11:15 +01:00
Emil Ernerfeldt
1b623fdd34
Update rfd 0.6 -> 0.7
2022-02-04 13:31:06 +01:00
Emil Ernerfeldt
47038c631e
Update image 0.23 -> 0.24
2022-02-04 13:31:06 +01:00
Emil Ernerfeldt
c3be566574
egui-winit: Automatically detect and apply dark or light mode ( #1045 )
2022-02-02 17:09:36 +01:00
Emil Ernerfeldt
c6ac1827f6
Use tracing crate for logging ( #1192 )
...
* egui_web: use tracing crate
* egui_glow: use tracing crate
* Log at the debug level
* egui_demo_app: enable tracing to log to stdout
* Use tracing in egui-winit
* Add opt-in tracing support to egui
2022-02-01 12:27:39 +01:00
Emil Ernerfeldt
fa43d16c41
Choose your own font and size ( #1154 )
...
* Refactor text layout: don't need &Fonts in all functions
* Replace indexing in Fonts with member function
* Wrap Fonts in a Mutex
* Remove mutex for Font::glyph_info_cache
* Remove RwLock around Font::characters
* Put FontsImpl and GalleyCache behind the same Mutex
* Round font sizes to whole pixels before deduplicating them
* Make TextStyle !Copy
* Implement user-named TextStyle:s
* round font size earlier
* Cache fonts based on family and size
* Move TextStyle into egui and Style
* Remove body_text_style
* Query graphics about max texture size and use that as font atlas size
* Recreate texture atlas when it is getting full
2022-01-24 14:32:36 +01:00
bthehacker
dba949240f
Fix eframe changelog links to other changelogs ( #1146 )
...
Links to the changelogs of egui_web, egui-winit, and egui_glium were broken and led to a 404, fixed them by adding "../"
2022-01-22 11:33:39 +01:00
Emil Ernerfeldt
a689b623a6
Make shift-scroll do horizontal scrolling on all platforms ( #1136 )
...
Closes https://github.com/emilk/egui/issues/1135
2022-01-21 10:48:44 +01:00
Erlend Walstad
ab77099781
eframe: allow aborting an exit event ( #1038 )
2022-01-17 18:45:09 +01:00
Emil Ernerfeldt
c713fd98dd
Fix horizontal scrolling direction on Linux
...
Closes https://github.com/emilk/egui/issues/356
Work-around until https://github.com/rust-windowing/winit/pull/2105 is merged and released
2022-01-16 09:49:22 +01:00
Emil Ernerfeldt
b2c8cd0867
Simplify http demo and add new download_image eframe demo
2022-01-15 20:34:03 +01:00
Emil Ernerfeldt
66d80e2519
Texture loading in egui ( #1110 )
...
* Move texture allocation into epaint/egui proper
* Add TextureHandle
* egui_glow: cast using bytemuck instead of unsafe code
* Optimize glium painter
* Optimize WebGL
* Add example of loading an image from file
2022-01-15 13:59:52 +01:00
Emil Ernerfeldt
d5673412dd
Put everything in Context behind the same Mutex ( #1050 )
...
* Move all interior mutability from Context to CtxRef and make it a handle
* Rename `CtxRef` to `Context`
* The old `Context` is now `ContextImpl` and is non-pub
* Add benchmark Painter::rect
Co-authored-by: Daniel Keller <dklr433@gmail.com>
2022-01-10 23:13:10 +01:00
Emil Ernerfeldt
b1fd6a44e8
Switch to using glow as the default renderer both on native and the web ( #1020 )
...
* Switch to using glow as the default renderer both on native and the web
* Simplify code to find WebGL context for glow
* egui_web: make webgl an opt-in feature
* Stop using deprecated WEBGL_debug_renderer_info
2021-12-31 15:17:55 +01:00
Emil Ernerfeldt
753d709d3d
Hide console on windows for all examples in release builds ( #1008 )
2021-12-30 22:43:53 +01:00
Emil Ernerfeldt
0960f38552
Add inter-linking between different forms of documentations and examples
2021-12-29 21:44:48 +01:00
Emil Ernerfeldt
f779e8a346
Add an eframe example of how to install a custom font
2021-12-29 21:43:37 +01:00
Emil Ernerfeldt
0146c7e7fc
Release 0.16.0 - Context menus and rich text
2021-12-29 12:07:05 +01:00
Emil Ernerfeldt
b7441eeee7
Make epi::Frame cloneable so you can allocate textures in other threads ( #999 )
...
Closes https://github.com/emilk/egui/issues/673
Also adds `epi::Image`
2021-12-26 21:21:28 +01:00
Emil Ernerfeldt
647e020824
file_dialogs example: remove macos exemption
...
this got fixed in the latest winit upgrade
2021-12-26 18:13:29 +01:00
Emil Ernerfeldt
d5efa4bbca
1.56 fix: missing_crate_level_docs -> rusdoc::missing_crate_level_docs
2021-12-26 09:56:14 +01:00
Emil Ernerfeldt
c60d17b91b
Set MSRV to 1.56.0 and use rust edition 2021 ( #998 )
2021-12-25 19:32:25 +01:00
Jay Oster
dd99f68e82
Update winit to 0.26 ( #930 )
...
Also update glium, glutin and rfd
2021-12-20 22:44:53 +01:00
Emil Ernerfeldt
c71090473b
glow-vs-web cleanup following https://github.com/emilk/egui/pull/868
2021-11-03 19:35:20 +01:00
Emil Ernerfeldt
08cc07bb2d
Release 0.15.0 - Syntax highlighting, hscroll, egui-winit and egui_glow
2021-10-24 16:15:07 +02:00
Emil Ernerfeldt
a3ba85dbb3
Improve docs
2021-10-23 06:03:45 +02:00
Caleb Smith
79d1ede496
Add Frame::set_window_title()
( #828 )
...
* Add `Frame::set_window_title()`
* Changelog and fmt for `Frame::set_window_title()`
Co-authored-by: Caleb Smith <caleb@myrvmail.com>
2021-10-23 00:03:17 +02:00
Emil Ernerfeldt
8178d23d19
Deduplicate code found in both egui_glium and egui_glow ( #819 )
...
* Move window building to egui-winit
* Move icon loading to egui-winit
* `use glow::HasContext;` -> `use glow::HasContext as _;`
* Move FileStorage into epi behind a feature flag
* De-duplicate screen_size_in_pixels and native_pixels_per_point
* Move creation of FileStorage to epi
* Handle epi app output (window size changes etc) in egui-winit
* Move app and memory persistence and autosave logic to egui-winit
* fix check.sh
* Make the epi backend opt-in for egui_glium and egui_glow
* Fix persistence
* Add integration name to epi::IntegrationInfo and the demo
* Clean up Cargo.toml files and fix making egui_glium optional
* fix typo
* Make egui_glium compile without the `epi` feature
2021-10-19 21:40:55 +02:00
Emil Ernerfeldt
844dd9d7a4
Remove "seconds_since_midnight" from epi/eframe. Use chrono instead
...
chrono works both natively and on web.
Related: https://github.com/emilk/egui/issues/212
2021-10-19 15:37:20 +02:00
Emil Ernerfeldt
cdd4dccf5f
Add egui_glow as an opt-in backend to eframe ( #817 )
...
* Make egui_glow and opt-in backend for eframe
* Add egui_glow to Cargo.toml and to CI
* Reference egui_glow where egui_glium is mentioned
* Remove path-patches from root Cargo.toml
* Add instructions on how to enable the glow backend of eframe
2021-10-19 15:32:23 +02:00
AlexApps99
877e89f2ec
Add egui_glow backend as alternative to egui_glium ( #685 )
2021-10-18 23:13:32 +02:00
Emil Ernerfeldt
96be848e42
rename egui_template to eframe_template
2021-10-18 20:19:43 +02:00
Emil Ernerfeldt
fe76382141
Expand eframe/README.md
2021-10-17 21:18:25 +02:00
Emil Ernerfeldt
76cdbe2cf8
Add better documentation for epi::NativeOptions::drag_and_drop_support
...
Closes https://github.com/emilk/egui/issues/747
2021-09-30 19:40:21 +02:00
Emil Ernerfeldt
3e1db880dc
Revert change to winit event loop in egui_glium ( #756 )
...
* Revert change to winit event loop in egui_glium
This reverts https://github.com/emilk/egui/pull/631
Fixes https://github.com/emilk/egui/issues/755
* Add example of file dialogs and file drag-and-drop
* fix ci
2021-09-30 18:53:41 +02:00
Emil Ernerfeldt
5539dbe620
Add separate serialize feature and better persitence control ( #753 )
...
* Rename epaint feature "persistence" to "serialize"
* Add separate "serialize" feature to egui
* egui_demo_lib: separate serialize and persistence features
* Add App::persist_native_window and App::persist_egui_memory
Controls what gets persisted
2021-09-29 08:45:13 +02:00
Emil Ernerfeldt
1b36863248
Split out new crate egui-winit from egui_glium ( #735 )
2021-09-28 17:33:28 +02:00
Emil Ernerfeldt
a5a5d6176d
Improve the frame around ImageButton
...
Helps https://github.com/emilk/egui/issues/721
2021-09-20 22:37:21 +02:00
Emil Ernerfeldt
f37180f7dc
Bump MSRV (Minimum Supported Rust Version) to 1.54.0 ( #703 )
...
1.51.0 clippy has been giving me trouble (not reporting all problems),
and so I take the easy way out and just bump MSRV.
We will upgrade to 1.56.0 once it comes around anyway
to get access to that sweet disjoint capture in closures
(https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html )
2021-09-09 00:16:06 +02:00
zu1k
19eed94499
feat: Set whether to show decorations ( #672 )
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2021-09-07 21:42:14 +02:00
Emil Ernerfeldt
6331bfed90
Revert change of scrollspeed in egui_web
...
https://github.com/emilk/egui/pull/702
2021-09-07 20:47:53 +02:00