Emil Ernerfeldt
c60d17b91b
Set MSRV to 1.56.0 and use rust edition 2021 ( #998 )
2021-12-25 19:32:25 +01:00
Aevyrie
c69fe941af
Reverse horizontal scrolling on windows ( #966 )
...
* Reverse horizontal scrolling on windows
* Add link to winit issue
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2021-12-20 23:00:38 +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
ddd5f6f4f6
winit: don't explicitly handle Cmd-Q and Alt-F4 ( #881 )
...
Closes https://github.com/emilk/egui/issues/877
Still a problem: https://github.com/rust-windowing/winit/issues/1998
2021-11-07 20:58:02 +01:00
Emil Ernerfeldt
6d33beabb1
Replace scroll_delta
and zoom_delta
in RawInput
with events
...
Part of https://github.com/emilk/egui/issues/843
2021-11-03 22:57:13 +01:00
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
2021-11-03 20:11:25 +01:00
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`
2021-11-03 13:45:51 +01:00
5225225
461f380a24
egui-winit: Fix shift key getting stuck with shift:both_capslock X11 option set ( #849 )
...
Listen for modifiers using ModifiersChanged
2021-11-01 21:34:06 +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
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
sumibi-yakitori
19766bfe4c
Fix when a string containing CRLF is pasted from the clipboard ( #826 )
2021-10-20 22:26:26 +02:00
Emil Ernerfeldt
d97a369c44
End statements with semicolon (clippy::semicolon_if_nothing_returned)
2021-10-20 16:46:57 +02:00
Emil Ernerfeldt
a0cd41755e
Add more clippy lints
2021-10-20 16:30:39 +02:00
Emil Ernerfeldt
3ba406c0fe
egui-winit: restore window position accurately
...
previous code had mixed up inner and outer coordinates
2021-10-20 13:54:08 +02:00
Emil Ernerfeldt
da74687be5
egui-winit: fix windows compilation with use WindowBuilderExtWindows
...
Closes https://github.com/emilk/egui/pull/821
2021-10-20 09:51:21 +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
TobTobXX
ca632c5e5d
egui-winit: Emulate mouse from touches ( #791 )
...
Additionally to emmiting egui::Event::Touch events, on_touch() now also
emits egui::Event::PointerButton, egui::event::PointerMoved and
egui::event::PointerGone facilitating UI usage on touchscreen devices.
If there are multiple touches, only the first one will be translated
into pointer events. This prevents situations with two pointers.
2021-10-17 20:30:22 +02:00
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
2021-10-13 11:52:34 +02:00
Emil Ernerfeldt
e43cfeac17
egui-winit: fix AltGr characters on windows/linux ( #790 )
...
Closes https://github.com/emilk/egui/issues/351
Closes https://github.com/emilk/egui/pull/785
2021-10-13 08:55:00 +02:00
Stock84
cd2227814f
Implement bytemuck
behind a feature ( #775 )
2021-10-07 22:30:15 +02:00
Emil Ernerfeldt
e2bdd40985
Move WindowSettings from egui_glium to egui-winit
2021-09-30 19:18:51 +02:00
Emil Ernerfeldt
1b36863248
Split out new crate egui-winit from egui_glium ( #735 )
2021-09-28 17:33:28 +02:00