Emil Ernerfeldt
6d33beabb1
Replace `scroll_delta` and `zoom_delta` in `RawInput` with events
Part of https://github.com/emilk/egui/issues/843
3 years ago
Emil Ernerfeldt
49e43885ff
Replace `Context::begin_frame/end_frame` with `fn run` taking a closure ( #872 )
* Replace Context begin_frame/end_frame with `fn run` taking a closure
* Create `egui::__run_test_ui` to replace `Ui::__test`
* Add helper `egui::__run_test_ctx` for doctests
3 years ago
Emil Ernerfeldt
c71090473b
glow-vs-web cleanup following https://github.com/emilk/egui/pull/868
3 years ago
triangle drawer
804722a1ba
Make egui_glow painter to work on web ( #868 )
Add WebGL1 and WebGL2 support to glow painter.
Add "glow" feature to egui_web to use the glow painter there.
Make winit an optional part of egui_glow
3 years ago
Emil Ernerfeldt
1dbe608e73
Refactor integrations ( #871 )
* Unify code in egui_glium and egui_glow into egui_winit::EpiIntegration
* Simplify `EguiGlium` interface
* Simplify `EguiGlow` interface
* egui_web refactor: merge `WebBackend` into `AppRunner`
3 years ago
sumibi-yakitori
b1716be745
egui_web: constrain the IME text agent to the canvas ( #830 )
limit the position of the text agent to the height of the client area
3 years ago
Emil Ernerfeldt
78dfde40b2
Remove deprecated functions
3 years ago
Emil Ernerfeldt
08cc07bb2d
Release 0.15.0 - Syntax highlighting, hscroll, egui-winit and egui_glow
3 years ago
Emil Ernerfeldt
316202c33a
egui_web: improve text input on mobile and for IME
3 years ago
Emil Ernerfeldt
a3ba85dbb3
Improve docs
3 years ago
Emil Ernerfeldt
4194a83a5e
Update ron 0.6 -> 0.7
3 years ago
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>
3 years ago
sumibi-yakitori
19766bfe4c
Fix when a string containing CRLF is pasted from the clipboard ( #826 )
3 years ago
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
3 years ago
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
3 years ago
Emil Ernerfeldt
df3aeab434
Update egui_glium and egui_web changelogs
3 years ago
Connor Fitzgerald
74494cd713
Add clear to webgl1 and webgl2 backends ( #816 )
Signed-off-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
3 years ago
Emil Ernerfeldt
96be848e42
rename egui_template to eframe_template
3 years ago
Emil Ernerfeldt
6f699b3391
Replace every ... with … like some sort of crazy person
Also fix some small typos
Closes https://github.com/emilk/egui/pull/736
3 years ago
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
3 years ago
Emil Ernerfeldt
c8bb4cf6e5
Fix multiline pasting in egui_web
Closes https://github.com/emilk/egui/issues/738
3 years ago
zu1k
f6fb4d942a
epi: drag native window ( #728 )
* feat: drag window
* Update epi/src/lib.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* Update egui_demo_lib/src/backend_panel.rs
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* cargo fmt
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
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 )
3 years ago
zu1k
19eed94499
feat: Set whether to show decorations ( #672 )
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
Emil Ernerfeldt
6331bfed90
Revert change of scrollspeed in egui_web
https://github.com/emilk/egui/pull/702
3 years ago
Emil Ernerfeldt
cbafd10ee4
Clippy fix
3 years ago
Emil Ernerfeldt
249876523d
Increase scroll-speed on glium from 8 to 50 points per scroll tick
Closes https://github.com/emilk/egui/issues/461
Closes https://github.com/emilk/egui/pull/702
3 years ago
Emil Ernerfeldt
2382425198
Revert "Silence nightly clippy"
This reverts commit acf9d0114d
.
3 years ago
triangle drawer
203d571c8b
Add api for accessing backend texture via epi ( #695 )
* Define NativeTexture trait for offscreen rendering
add demo for NativeTexture trait
* write changelog
* add comment for native texture example
* formatting
* add license of Rust logo
* NativeTexture trait method rename
remove duplicate function with native texture
remove rust logo
* deprecated notice for register_glium_texture,register_webgl_texture
* collect deprecated notice
3 years ago
Emil Ernerfeldt
acf9d0114d
Silence nightly clippy
3 years ago
Emil Ernerfeldt
3b75a84d3b
Point crate repository & homepage urls to their subfolders
3 years ago
Emil Ernerfeldt
9598596bdc
Replace all http code in epi/eframe/egui_glium/egui_web with ehttp ( #697 )
I've extracted all the http request code and turned it
into its own crate at <https://github.com/emilk/ehttp >.
There was never a reason for the HTTP request library to be part of
`eframe`. Much better to have it as its own crate!
3 years ago
Emil Ernerfeldt
e98ae2ea7a
Revert "feat: Set whether to show decorations ( #660 )" ( #671 )
This reverts commit 0db74f3000
.
3 years ago
zu1k
0db74f3000
feat: Set whether to show decorations ( #660 )
* feat: Set whether to show decorations
* cargo fmt
* Update comment and changelog
3 years ago
Emil Ernerfeldt
2ce99f3a12
Release 0.14.1 - Bug fixes and better web blending
3 years ago
Emil Ernerfeldt
9bc95289cc
egui_web: Fix use of egui on devices with both touch and mouse ( #654 )
3 years ago
AsmPrgmC3
3a634ff46e
Reintroduce color fixes to WebGL1 backend, but only if sRGB textures are supported ( #652 )
Also removed the 300es shaders, as they'd be identical to the 100es ones.
3 years ago
AsmPrgmC3
31a1882997
Fix alpha blending in WebGL2 backend ( #650 )
Add a render-to-texture step with an sRGBA8 texture
3 years ago
Emil Ernerfeldt
cb566fc295
Release 0.14.0 - Ui panels and bug fixes
3 years ago
Emil Ernerfeldt
91bdf9ba6e
egui_web: make text thicker and less pixelated ( #640 )
Closes https://github.com/emilk/egui/issues/516
3 years ago
Emil Ernerfeldt
a256ca115b
Drag and drop files into egui_glium and egui_web ( #637 )
* Implement file drag-and-drop for egui_glium
* Implement file drag-and-drop into egui_web
* Cleanup
3 years ago
Emil Ernerfeldt
d6299bcd91
Expand egui_web/README.md with list of shortcomings
3 years ago
skuzins
6a8a93e120
Generalize http fetch ( #488 )
* Generalize http fetch
- allow bytes as request body
- expose request and response headers in API
- update http example to show response headers and allow POST requests
* clippy fixes
* add missing comment, pub
* doc comment fix
* fix: missing argument when feature syntect not enabled
* formatting fixes
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* remove commented out code
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* formatting fixes
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* cargo fmt
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
mental
eefc56c213
fix and pin web-sys breakage in `Navigator::clipboard` ( #608 )
3 years ago
Emil Ernerfeldt
784bac53f1
Improve error message on bad texture allocation
Fixes https://github.com/emilk/egui/issues/592
3 years ago
Emil Ernerfeldt
4feee59f84
Improve README files for all crates
3 years ago
Emil Ernerfeldt
d807451348
Release 0.13.0 - Better panels, plots and new visual style
3 years ago
Emil Ernerfeldt
eb6c293774
Update crates glium, tts, and run cargo update
3 years ago
Emil Ernerfeldt
6e7e88ba80
Use old 1.51 toolchain instead of bleeding edge ( #505 )
* Use old 1.51 toolchain instead of bleeding edge
1.52 and 1.53 has problems with incremental compilation,
so some people chose to stay on 1.51 for now.
So let's make sure egui supports 1.51 for a while!
* Update to cint 0.2.2 to get rust 1.51.0 compatability
3 years ago
Emil Ernerfeldt
269a4538d9
clippy fixes for rust 1.53
3 years ago