Emil Ernerfeldt
9db1b8dbf9
Add http fetch to eframe and implement it in egui_glium using ureq
2020-12-30 20:56:50 +01:00
Emil Ernerfeldt
84414e62a3
Add new crate eframe
which wraps egui, epi, egui_web and egui_glium
2020-12-29 15:57:13 +01:00
Emil Ernerfeldt
d7459bc13d
Move egui::app
into new epi
crate
2020-12-29 14:15:46 +01:00
Emil Ernerfeldt
650450bc3a
Make cfg=web_sys_unstable_apis optional, fixing cargo check
2020-12-29 12:42:15 +01:00
Emil Ernerfeldt
89937bf636
[egui_web] Auto-save app state to Local Storage every 30 seconds
2020-12-19 20:50:00 +01:00
Emil Ernerfeldt
99808d2df8
Implement Storage trait for egui_web:s local storage bindings
2020-12-19 14:58:00 +01:00
Emil Ernerfeldt
82a3997188
[egui_web] Add max canvas size to help perf issues on some platforms
...
Related: https://github.com/emilk/egui/issues/67
2020-12-18 22:51:23 +01:00
Emil Ernerfeldt
71449fe61c
Only forbid warnings in release builds
2020-12-18 22:19:56 +01:00
Daniel Collin
69dc13ed2d
Allow user to check for Key::Space
2020-12-13 10:00:20 +01:00
Emil Ernerfeldt
8de74e4250
[egui_web] respect the native zoom/scale of the browser
...
Remove all complexity with own scale slider.
Closes https://github.com/emilk/egui/issues/53
2020-11-28 10:46:31 +01:00
Emil Ernerfeldt
633b19ee99
[egui_web] Repaint on finished fetch in example app
2020-11-20 20:35:16 +01:00
Emil Ernerfeldt
c6ce0b9e8c
[example_web] show loading of an image
...
Required some redesign of `TextureAllocator` as well as
some improvements to the fetch API.
2020-11-18 22:16:01 +01:00
Emil Ernerfeldt
90cecace0c
[egui_web] Fix for pressing tab and backspace in a text field
...
Fixes https://github.com/emilk/egui/issues/48
2020-11-18 19:16:13 +01:00
Emil Ernerfeldt
86cfd0dcd3
egui_web: Repaint at least every seconds
...
Just in case the app needs it, e.g. because it has finished a download.
2020-11-18 01:07:32 +01:00
Emil Ernerfeldt
fad0029119
egui_web: Add simple fetch API and demostrate it in example_web
2020-11-18 00:43:58 +01:00
Emil Ernerfeldt
7651e2f15b
egui_web: Implement copy, cut and paste
2020-11-15 21:20:38 +01:00
Emil Ernerfeldt
fe0d159324
Support Cmd+A ^W ^U ^K and shift-click
2020-11-15 14:21:21 +01:00
Emil Ernerfeldt
c4ed507d63
Add modifier keys and implement moving cursors one word at a time
2020-11-14 21:01:21 +01:00
Emil Ernerfeldt
ed8a69ab2f
[drag-and-drop] Add Grab and Grabbing CursorIcon:s
2020-11-02 17:40:05 +01:00
Emil Ernerfeldt
92cfbe643c
Add #![forbid(unsafe_code)] and safety badge
2020-10-18 15:40:23 +02:00
Emil Ernerfeldt
a4e19d7207
[app] Add demo app slider to change scale of all of Egui
2020-10-17 23:54:46 +02:00
Emil Ernerfeldt
570860ec5f
[refactor] Create helper struct Mutex (with double-lock detection)
2020-10-17 10:38:22 +02:00
Emil Ernerfeldt
5856cded95
refactor RunMode: move it from backend to the demo App ( #23 )
...
This simplifies the egui_glium and egui_web backends substantially,
reduces the scope of RunMode to a single file, and
removes duplicated code.
Basically: this is how I should have written it from the beginning.
2020-09-16 08:03:40 +02:00
Emil Ernerfeldt
df2cba41ff
[clippy] fix all clippy issues
2020-07-30 12:30:20 +02:00
Emil Ernerfeldt
f693a558c5
[web/glium] better text input filtering
...
CapsLock and function keys (F1, F2, ...) are now ignored on web.
All special keys are ignored on glium.
2020-07-30 11:58:24 +02:00
Emil Ernerfeldt
554e6e7120
[app] unify web and glium demo app
2020-07-23 19:04:23 +02:00
Emil Ernerfeldt
e84412dec5
[glium] break out persistence
2020-07-22 18:01:27 +02:00
Emil Ernerfeldt
9b9cd01c5c
[glium] update to latest glium with EventLoop and vsync
2020-07-22 00:36:17 +02:00
Emil Ernerfeldt
6b6545958d
[web] fix: repaint on pagehide, pageshow and resize
2020-07-20 15:08:39 +02:00
Emil Ernerfeldt
57ae03f52d
[web] minor fixes for reactive mode
2020-07-19 00:44:06 +02:00
Emil Ernerfeldt
f659f2903d
[web] fix auto-save
2020-07-19 00:16:24 +02:00
Emil Ernerfeldt
fccd135254
[refactor] rename 'PaintBatches' to 'PaintJobs'
2020-07-19 00:01:13 +02:00
Emil Ernerfeldt
7565210b2d
[web] simplify and improve reactive mode on touch screens
2020-07-18 23:56:37 +02:00
Emil Ernerfeldt
3ecd6c0297
[web] implement reactive repainting
...
meaning: only repaint on new input
2020-07-18 19:54:42 +02:00
Emil Ernerfeldt
dfa4d52a94
[web] move all reusable web code into egui_web
2020-07-18 18:35:17 +02:00
Emil Ernerfeldt
1a4c399e41
[web] port all remaining JS code to Rust
2020-07-18 18:00:05 +02:00
Emil Ernerfeldt
0afad57d41
[web] port JS code to Rust
2020-07-18 13:30:23 +02:00
Emil Ernerfeldt
8dced5896c
rename egui_wasm to egui_web
2020-07-17 12:55:07 +02:00