Commit graph

28 commits

Author SHA1 Message Date
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
2021-09-29 08:45:13 +02:00
Emil Ernerfeldt
1a177f7ecd Improve area introspection panel 2021-08-28 10:28:50 +02:00
sigaloid
12fd4906de
Update dependencies and pass all clippy's (#636)
* Cargo update

https://pastebin.com/raw/KWNuJD9u

* Cargo clippy +nightly

* Remove deprecated clippy

* Fix unbalanced backtick (now passes cargo {+nightly,} clippy)
2021-08-20 22:31:20 +02:00
Emil Ernerfeldt
c9766f8a7b
Resizable panels + right and bottom panels (#438)
* Side panel resizing and add right panels

* Add resizable top/bottom panels

* Deprecate TopPanel

* Final tweaks and update CHANGELOG.md
2021-05-26 22:06:10 +02:00
Emil Ernerfeldt
29668b5128 Minor documentation improvements 2021-05-02 22:02:26 +02:00
Emil Ernerfeldt
4808da44a2 Optimize: more inlining and more use of AHashMap
No real gains, but it didn't hurt either
2021-03-31 17:06:12 +02:00
Emil Ernerfeldt
4984d51f99 Optimize: store a reference to the target PaintList in Painter
Saves us a hash lookup for each paint call, giving us 5% perf gain
2021-03-31 17:03:20 +02:00
Emil Ernerfeldt
6d255cd179 Use explicit emath to math alias
egui exports `emath` under its original name AND under the alias `math`
(for historical reasons).
2021-02-14 10:44:46 +01:00
Emil Ernerfeldt
1f2aebc25a Improve documentation 2021-01-17 12:24:13 +01:00
Emil Ernerfeldt
8598c365a1 [epaint] Replace tuple (Rect, Shape) with tuple-struct ClippedShape 2021-01-17 01:40:14 +01:00
Emil Ernerfeldt
26d576f510 Break out mod paint into new crate epaint 2021-01-10 15:42:46 +01:00
Emil Ernerfeldt
fb2317c993 Rename PaintCmd to Shape 2021-01-10 11:43:01 +01:00
Emil Ernerfeldt
a0b0f36d29 Move egui/math into new crate emath 2021-01-10 11:37:47 +01:00
Emil Ernerfeldt
a1fa9903b0 Add a lot of documentation and inter-doc links 2020-12-27 12:57:15 +01:00
Emil Ernerfeldt
997103a910 Removed pub on some things that should be private 2020-12-27 12:56:16 +01:00
Emil Ernerfeldt
9833ca57a6 [drag-and-drop] Add ability to translate layers and PaintCmd:s 2020-11-02 17:41:52 +01:00
Emil Ernerfeldt
c9c12f2d79 [drag-and-drop] Disable interactions with Tooltip layer 2020-11-02 17:39:01 +01:00
Emil Ernerfeldt
c96a929713 Improve GraphicLayers: always paint all layers 2020-10-24 10:06:11 +02:00
Emil Ernerfeldt
35b949a2d8 Refactor panels into proper containers 2020-10-21 22:10:55 +02:00
Emil Ernerfeldt
39431afd03 [refactor] Rename Layer to LayerId for clarity 2020-10-21 14:39:31 +02:00
Emil Ernerfeldt
d8e0b3bff6 [color] add HSV-based color picker for struct Srgba 2020-09-06 21:30:52 +02:00
Emil Ernerfeldt
1a9618c524 spelling 2020-08-29 15:31:06 +02:00
Emil Ernerfeldt
b06c9e94fb [egui] rename "with_serde" feature flag to just "serde" 2020-08-09 17:34:26 +02:00
Emil Ernerfeldt
3facd5c587 [doc] improve docstrings in Egui 2020-08-09 17:24:32 +02:00
Emil Ernerfeldt
11df21e39e [refactor] extract paint code from Ui/Context to new struct Painter 2020-07-30 14:35:18 +02:00
Emil Ernerfeldt
b79c76b9ce [doc] improve Egui documentation 2020-07-23 14:35:12 +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
Renamed from emigui/src/layers.rs (Browse further)