1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 07:03:14 -04:00
Commit Graph

2611 Commits

Author SHA1 Message Date
Emil Ernerfeldt
f5d2bc4e33 auto-grid 2023-05-08 10:58:41 +02:00
Emil Ernerfeldt
e84eef7815 Code cleanup 2023-05-04 21:59:45 +02:00
Emil Ernerfeldt
aa30414caf Improve drag-code 2023-05-04 21:26:26 +02:00
Emil Ernerfeldt
951bc988b3 move code 2023-05-04 21:24:24 +02:00
Emil Ernerfeldt
e757fdc152 Move code around a bit 2023-05-04 20:56:58 +02:00
Emil Ernerfeldt
84356885d1 Fix the bug! 2023-05-04 18:46:30 +02:00
Emil Ernerfeldt
1065d7aac9 Try to find elusive bug 2023-05-04 18:08:31 +02:00
Emil Ernerfeldt
09081cf4fc Nice tab title spacing 2023-05-04 16:13:42 +02:00
Emil Ernerfeldt
6f69a143fe Warn about missing nodes 2023-05-04 16:12:50 +02:00
Emil Ernerfeldt
051ec14b98 Users can add button to the tab bar 2023-05-04 15:42:40 +02:00
Emil Ernerfeldt
f2d6885a6b Nicer styling of tabs 2023-05-04 15:06:24 +02:00
Emil Ernerfeldt
3f02c7d698 Add Rangef to emath 2023-05-04 12:27:13 +02:00
Emil Ernerfeldt
065801410a Resize grid 2023-05-04 11:14:30 +02:00
Emil Ernerfeldt
e9b446b577 Refactor: register grid drop-zones during the ui pass 2023-05-04 10:57:46 +02:00
Emil Ernerfeldt
f5301b1761 Fix typos 2023-05-04 10:04:14 +02:00
Emil Ernerfeldt
e2b1438977 Improve dragging around tab labels 2023-05-04 09:40:40 +02:00
Emil Ernerfeldt
8267cf5f57 Drag-and-drop for vertical layouts 2023-05-03 22:48:26 +02:00
Emil Ernerfeldt
5fc6bfbf49 Resize vertical layouts 2023-05-03 16:36:19 +02:00
Emil Ernerfeldt
46e4fb49ec Simplify shares and use Rect/interacto for resize 2023-05-03 00:33:30 +02:00
Emil Ernerfeldt
4f4261f173 Resizing of horizontal layouts 2023-05-02 19:30:59 +02:00
Emil Ernerfeldt
f8ce589fd5 Only lay out the active tab 2023-05-02 18:11:33 +02:00
Emil Ernerfeldt
fa69d7a22b Split into files 2023-04-26 20:44:27 +02:00
Emil Ernerfeldt
e9928c8766 Turn Branch into an enum 2023-04-26 20:31:37 +02:00
Emil Ernerfeldt
53ce1904a2 Code cleanup: move branch-gnostic code into branch.rs 2023-04-26 20:01:36 +02:00
Emil Ernerfeldt
9510d3418e Some bugfixes 2023-04-25 23:23:18 +02:00
Emil Ernerfeldt
6563522939 Better re-ordering of grid cells 2023-04-25 21:51:49 +02:00
Emil Ernerfeldt
7b26f3b79f Grid support 2023-04-25 21:27:26 +02:00
Emil Ernerfeldt
e714b33940 Change layout at runtime 2023-04-25 16:26:53 +02:00
Emil Ernerfeldt
ea47d36de7 Refactor: use a single struct Branch 2023-04-25 13:19:24 +02:00
Emil Ernerfeldt
4be5f43a3a Remove NodeState 2023-04-25 12:42:29 +02:00
Emil Ernerfeldt
a4dc86d77e Store rects separatedly 2023-04-25 12:39:18 +02:00
Emil Ernerfeldt
1d0509de23 Smooth preview 2023-04-25 12:25:17 +02:00
Emil Ernerfeldt
e5d0cf68d6 Store state 2023-04-25 11:04:58 +02:00
Emil Ernerfeldt
32be36416c You can mandate that all leaves have tabs 2023-04-24 22:37:04 +02:00
Emil Ernerfeldt
0617b7d26d Drag to re-arrange horizontal layout 2023-04-24 21:41:19 +02:00
Emil Ernerfeldt
240989df8b Drag to re-arrange tabs 2023-04-24 20:46:21 +02:00
Emil Ernerfeldt
13ec65cf08 Fix drag-drop and simplification code 2023-04-24 17:04:10 +02:00
Emil Ernerfeldt
ce7ed11542 bug fixes 2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
b5eddc5d5c Buggy drop-detection 2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
9b154c6d1d Preview drag destinations 2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
92d93cb24a Drag tab names 2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
52657301c9 dock wip 2023-04-24 15:44:27 +02:00
Emil Ernerfeldt
8fcbbb542f Silence unrelated clippy warning 2023-04-24 15:44:27 +02:00
MAlba124
92c7053a14 Rename examples/user_attention/README.mg to ... (#2948)
Rename `examples/user_attention/README.mg` to `examples/user_attention/README.md`.
2023-04-24 14:28:13 +02:00
Andreas Reich
0e6d69d4c4 Make egui work on WebGPU out of the box. (#2945)
* Make wgpu webgl/gles opt-in (but still work out of the box via feature flag), workaround canvas creation issue

* missing allow unsafe code annotations

* add breaking change not to eframe release notes

* Add --webgpu flag to build_demo_web.sh

* Improve CHANGELOG docs

* Clean up, and prepare for having to wasm:s

* put canvas without workaround under `if false`

* fix spelling

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-04-24 11:26:45 +02:00
Jinlei Li
09e1569bf3 Enable egui-winit to support wasm target (#2949) 2023-04-24 09:16:50 +02:00
Emil Ernerfeldt
c82604fe51 Update and fix web demo 2023-04-24 09:15:06 +02:00
Niklas Korz
f962378243 wgpu 0.16 (#2884)
* Adapt to latest wgpu changes

* Point to latest wgpu commit

* Fix egui-wgpu winit

* wgpu 0.16

* Fix web compilation issue

* Add libloading to deny.toml skip

* lock fix after merge, sort deny skip list

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2023-04-21 11:40:25 +02:00
Emil Ernerfeldt
4d357b0f02 clippy fixes from 1.69.0 2023-04-21 11:33:18 +02:00
Emil Ernerfeldt
4d360f67a4 eframe web: rememeber to unsubscribe from events on destroy 2023-04-21 09:22:34 +02:00