Emil Ernerfeldt
2e80aba068
New example code
2020-10-24 19:45:27 +02:00
Emil Ernerfeldt
7638ca9962
[app] Simplify interface to egui::app::App
2020-10-24 19:23:16 +02:00
Emil Ernerfeldt
4b549a773e
Replace ctx.background_ui with CentralPanel
2020-10-24 18:37:20 +02:00
Emil Ernerfeldt
44a7cac046
Context::begin_frame()
no longer returns anything.
...
Put your widgets into a `SidePanel`, `TopPanel`,
`Window` or into `ctx.background_ui()`.
2020-10-24 10:56:23 +02:00
Emil Ernerfeldt
35b949a2d8
Refactor panels into proper containers
2020-10-21 22:10:55 +02:00
Emil Ernerfeldt
8ccc36937f
[egui_glium] Add option not to persist app to file
2020-10-19 20:25:05 +02:00
Emil Ernerfeldt
251cde60f0
[app] Refactor egui::app::App interface to be more data oriented
2020-10-17 16:13:20 +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
73cea29f7d
[docs] Improve README.md and documentation
2020-08-21 18:53:43 +02:00
Emil Ernerfeldt
1483455630
Fix some links
2020-08-09 17:46:00 +02:00
Emil Ernerfeldt
d4cb2fa62e
[egui] Clean up Painter interface
2020-08-05 19:45:39 +02:00
Emil Ernerfeldt
eb713ac514
[build] use path dependencies in all Cargo.toml
2020-07-30 12:14:51 +02:00
Emil Ernerfeldt
554e6e7120
[app] unify web and glium demo app
2020-07-23 19:04:23 +02:00
Emil Ernerfeldt
61cdec8fca
[refactor] rename 'example' to 'demo', and add simple example_glium
2020-07-23 12:18:19 +02:00
Emil Ernerfeldt
48bad68257
[glium] implement reactive run mode
2020-07-22 22:26:49 +02:00
Emil Ernerfeldt
a14bfa0e73
[glium] make it super easy to make an Egui app using glium
2020-07-22 18:46:12 +02:00
Emil Ernerfeldt
e84412dec5
[glium] break out persistence
2020-07-22 18:01:27 +02:00
Emil Ernerfeldt
4e52a960e5
[glium] refactor and simplify glium example code
2020-07-22 12:10:14 +02:00
Emil Ernerfeldt
9b9cd01c5c
[glium] update to latest glium with EventLoop and vsync
2020-07-22 00:36:17 +02:00
Emil Ernerfeldt
fccd135254
[refactor] rename 'PaintBatches' to 'PaintJobs'
2020-07-19 00:01:13 +02:00
Emil Ernerfeldt
8b1f02f22c
[egui] handle dynamic changes to pixels_per_point (dpi scaling)
...
Also: egui::Context::new() no longer takes any arguments
2020-05-30 14:56:38 +02:00
Emil Ernerfeldt
b80baf4039
[egui] make serde an optional dependency
2020-05-30 11:04:40 +02:00
Emil Ernerfeldt
fd5ab736bb
Rename from "Emigui" to "Egui"
...
Shorter to type (especially in code).
2020-05-30 10:22:35 +02:00
Emil Ernerfeldt
bcc786fd95
[license] licence under MIT or Apache-2.0
2020-05-26 15:07:31 +02:00
Emil Ernerfeldt
fac0866f73
example_glium: restore example app state
2020-05-23 09:57:39 +02:00
Emil Ernerfeldt
ae6080405c
Remove 'Web' from GuiInput
2020-05-21 12:04:42 +02:00
Emil Ernerfeldt
555d7aed20
Remove dropping files from emigui Input
2020-05-21 11:53:26 +02:00
Emil Ernerfeldt
896d87c804
make pixels_per_point optional in RawInput (default 1)
2020-05-20 21:19:42 +02:00
Emil Ernerfeldt
0f0e385ea3
[refactor] collect stuff into new mod paint
2020-05-19 22:28:57 +02:00
Emil Ernerfeldt
8f43d38e38
Style/visuals tweaks
2020-05-17 17:44:29 +02:00
Emil Ernerfeldt
f9bb9f71c4
Add button to collapse windows
2020-05-17 12:26:17 +02:00
Emil Ernerfeldt
d4204f03c0
Refactor: break out Layout to own struct/file
2020-05-13 22:23:33 +02:00
Emil Ernerfeldt
7a1c97ccfe
Simplify and unify queries about available space
2020-05-12 18:21:09 +02:00
Emil Ernerfeldt
8c0942bf1e
Show menu bar in main window instead of in example window
2020-05-12 07:27:14 +02:00
Emil Ernerfeldt
71154edf9b
Add a fractal clock example to showcase painting performance
2020-05-11 20:21:24 +02:00
Emil Ernerfeldt
6bee26ca59
Glium: persist window position and size
2020-05-10 21:16:24 +02:00
Emil Ernerfeldt
f1c57cb950
Improve example app
2020-05-10 19:04:10 +02:00
Emil Ernerfeldt
fa82e8d806
Rename Region to Ui (shorter, sweeter)
2020-05-08 22:42:31 +02:00
Emil Ernerfeldt
9f6e9c94d6
Merge struct Emigui into Context
2020-05-08 22:25:28 +02:00
Emil Ernerfeldt
87e3aacf35
enforce and fix a bunch of clippy issues
2020-05-07 10:47:03 +02:00
Emil Ernerfeldt
45564f952b
Kinetic windows
2020-05-03 13:28:47 +02:00
Emil Ernerfeldt
bfbb669d02
Store/restore emigui memory state (window positions, sizes etc)
2020-05-02 11:37:12 +02:00
Emil Ernerfeldt
b73fbb33d8
Improve size negotiation code.
...
Better enfocred minimum sizes.
You can now have windows that expand to fit their content.
2020-05-01 02:08:01 +02:00
Emil Ernerfeldt
4c79064760
Move code from glium example into glium library
2020-04-29 21:58:14 +02:00
Emil Ernerfeldt
14db237b1d
Basic text input support
2020-04-29 21:25:49 +02:00
Emil Ernerfeldt
89823ab617
Print frame times for glium and wasm excluding painting
2020-04-29 07:20:27 +02:00
Emil Ernerfeldt
1e685d1cb0
Add support for text input in emilib and glium.
...
Add input inspectors
2020-04-28 23:05:22 +02:00
Emil Ernerfeldt
154424384f
Implement Window as collection of Floating + Frame + Resize
2020-04-25 22:49:57 +02:00
Emil Ernerfeldt
e26d08851f
Add Floating and Frame containers as building blocks for windows
2020-04-25 15:26:24 +02:00
Emil Ernerfeldt
3a430c8fc7
Add new Resize container
2020-04-25 14:37:39 +02:00