awaken1ng
30f9700f6c
egui-web: Update `web_location_hash` when hash in URL changes ( #1140 )
3 years ago
Emil Ernerfeldt
a689b623a6
Make shift-scroll do horizontal scrolling on all platforms ( #1136 )
Closes https://github.com/emilk/egui/issues/1135
3 years ago
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
3 years ago
Emil Ernerfeldt
205e04aa18
Fix bugs in glow on web ( #1092 )
* Re-add check of WEBGL_debug_renderer_info to avoid OpenGL error
I removed this check in https://github.com/emilk/egui/pull/1020
because it produced a warning on Firefox. Better a warning
than an OpenGL error though.
* Bug fix: don't ask for webgl context and then later for webgl2 context
The browser will only allow the first thing we check, so this will
prevent webgl2 from working.
3 years ago
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>
3 years ago
Simon Werner
225d2b506d
Split `Event::Text` into `Text` and `Paste` ( #1058 )
* Split `Event::Text` into `Text` and `Paste`
* Added explicit Event::Paste change
See #1043
* Link to PR in changelog (not the issue)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
Emil Ernerfeldt
650057dd4a
Improve OpenGL error detection and reporting in egui_glow
May help to diagnose https://github.com/emilk/egui/issues/1087
3 years ago
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
3 years ago
Emil Ernerfeldt
0146c7e7fc
Release 0.16.0 - Context menus and rich text
3 years ago
Emil Ernerfeldt
037ca5f9cd
update tts 0.17 -> 0.19
3 years ago
Emil Ernerfeldt
190c85a40f
Rename `Texture` to `FontImage`
3 years ago
Emil Ernerfeldt
cda4c8ba13
Minor cleanup following https://github.com/emilk/egui/pull/999
3 years ago
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`
3 years ago
Emil Ernerfeldt
d5efa4bbca
1.56 fix: missing_crate_level_docs -> rusdoc::missing_crate_level_docs
3 years ago
Emil Ernerfeldt
c60d17b91b
Set MSRV to 1.56.0 and use rust edition 2021 ( #998 )
3 years ago
Emil Ernerfeldt
8896243146
Fix egui_web integration link in demo app
3 years ago
Emil Ernerfeldt
105cb57050
Clean up glsl code
3 years ago
Emil Ernerfeldt
b5cb2b2c0d
Some code cleanup following https://github.com/emilk/egui/pull/888
3 years ago
triangle drawer
008a971e73
Fix wrong gamma in WebkitGTK ( #888 )
Closes https://github.com/emilk/egui/issues/794
Also refactor and improve VAO support detection
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
3 years ago
sumibi-yakitori
10c8ffa543
Fix to limit X position of text agent to client width ( #870 )
3 years ago
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