Commit graph

624 commits

Author SHA1 Message Date
Emil Ernerfeldt
d4d59d94b9 [demos] Add drag-and-drop demo (+ dancing strings demo) 2020-11-02 17:53:28 +01:00
Emil Ernerfeldt
4c25465e57 [window] Fix: no hover effect when already dragging something 2020-11-02 17:45:46 +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
ed8a69ab2f [drag-and-drop] Add Grab and Grabbing CursorIcon:s 2020-11-02 17:40:05 +01:00
Emil Ernerfeldt
c9c12f2d79 [drag-and-drop] Disable interactions with Tooltip layer 2020-11-02 17:39:01 +01:00
Emil Ernerfeldt
63c0379082 [refactor] Add helpful constructors to PaintCmd 2020-11-02 17:35:16 +01:00
Emil Ernerfeldt
ca96172552 You can override the default Egui fonts
Closes https://github.com/emilk/egui/issues/32
2020-10-31 18:03:13 +01:00
Emil Ernerfeldt
82d55cb67e [demo] Add helper macros for linking to the source code on GitHub 2020-10-31 09:17:15 +01:00
Emil Ernerfeldt
496fdb52b4 [demo] add [DEBUG BUILD] warning text 2020-10-31 09:15:20 +01:00
Emil Ernerfeldt
8b2bcb29a0 Add Small TextStyle 2020-10-31 09:09:40 +01:00
Sam Samai
dbae893977
Check wasm target is working by running 'cargo check' on the demo_web package (#36) 2020-10-30 12:51:16 +01:00
Sam Samai
a79aaa76a4
Downgrade ahash for wasm build (#35)
Seems like getrandom doesn't see wasm32-unknown-unknown as a valid target.
Dropping ahash, which has the getrandom dependency, to version 0.4.6 fixes this for now.
2020-10-29 11:48:39 +01:00
Hizoul
fe585e48e9
Make from_get_set public (#34)
This allows the slider value to be obtained from anywhere that can be accessed from a closure and not just a `&'a mut` reference. An example would be a state that is shared via an Arc<Rw<T>> or Atomic value with a background thread
2020-10-28 16:56:33 +01:00
Emil Ernerfeldt
07a32793d6 Forbid creating a panel from within another panel 2020-10-27 15:37:30 +01:00
Emil Ernerfeldt
16a984b71f Add badge for Build Status 2020-10-27 14:50:44 +01:00
Emil Ernerfeldt
e9f0fba9f0 Add badge for dependency status 2020-10-27 14:50:32 +01:00
Emil Ernerfeldt
d0bc9096f7 Rename CI workflow 2020-10-27 14:44:05 +01:00
Emil Ernerfeldt
a4ce2afcd8 Update dependencies 2020-10-27 14:40:48 +01:00
Emil Ernerfeldt
cbdfc03378 Improve and expand documentation tests 2020-10-26 08:34:49 +01:00
crumblingstatue
8787eb77cf
Fix crates.io links to backends (#30) 2020-10-25 09:49:37 +01:00
Emil Ernerfeldt
060ce6b49f Improve docs 2020-10-24 19:46:38 +02:00
Emil Ernerfeldt
2e80aba068 New example code 2020-10-24 19:45:27 +02:00
Emil Ernerfeldt
72285e7954 [slider] Add Slider::u32 2020-10-24 19:26:13 +02:00
Emil Ernerfeldt
7638ca9962 [app] Simplify interface to egui::app::App 2020-10-24 19:23:16 +02:00
Emil Ernerfeldt
daa7a2bdb2 [egui_glium] refactor 2020-10-24 18:49:44 +02:00
Emil Ernerfeldt
c364403d44 [app] Give apps the ability to resize integration 2020-10-24 18:45:31 +02:00
Emil Ernerfeldt
ba7f3572a0 Give TextEdit a default width 2020-10-24 18:44:25 +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
f86cb4a923 [demo] Improve introspection UI of areas 2020-10-24 10:31:57 +02:00
Emil Ernerfeldt
3416f3b91f [style] Wrap tooltip text earlier 2020-10-24 10:10:08 +02:00
Emil Ernerfeldt
c96a929713 Improve GraphicLayers: always paint all layers 2020-10-24 10:06:11 +02:00
Emil Ernerfeldt
211d70b4f3 [window] Remove ability to throw windows 2020-10-23 15:16:04 +02:00
Emil Ernerfeldt
fa831a2b55 Fix throwing areas around 2020-10-23 15:07:19 +02:00
Emil Ernerfeldt
df056d2ce4 [egui_web] Disable face culling in WebGL renderer
Closes https://github.com/emilk/egui/issues/29
2020-10-21 23:14:12 +02:00
Emil Ernerfeldt
90700e950e Add /.vscode and /.*.json to .gitignore 2020-10-21 22:21:55 +02:00
Emil Ernerfeldt
46e39d3dd9 Add high-prio TODO to refactor layer system 2020-10-21 22:20:30 +02:00
Emil Ernerfeldt
35b949a2d8 Refactor panels into proper containers 2020-10-21 22:10:55 +02:00
Emil Ernerfeldt
8b51ae5dea Panels: Added Context::panel_left and panel_top
Context will keep track of the avilable space left after panels.
Windows will be constrained to that available space.
So add panels first, THEN add windows.
2020-10-21 18:26:28 +02:00
Emil Ernerfeldt
15c5e0b04d [menu] Fix minor size issue of menu bars 2020-10-21 17:46:57 +02:00
Emil Ernerfeldt
46ce9a4f3d [windows] Constrain windows to screen 2020-10-21 16:24:36 +02:00
Emil Ernerfeldt
39431afd03 [refactor] Rename Layer to LayerId for clarity 2020-10-21 14:39:31 +02:00
Emil Ernerfeldt
9b01c75e16 tesselator: produce fewer paint jobs with PaintCmd::Triangles 2020-10-21 11:09:42 +02:00
Emil Ernerfeldt
7fbb11481b Try to protect against invalid Triangles 2020-10-21 11:04:22 +02:00
Emil Ernerfeldt
bc5dbd718e Fix: Context::wants_mouse_input() now returns false if a mouse drag started outside of Egui 2020-10-20 14:52:18 +02:00
Emil Ernerfeldt
6bbdf08482 [refactor] Split DemoWindows out of demos::DemoApp 2020-10-19 23:06:11 +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
43813a71eb [app] Add egui::app::DummyStorage 2020-10-19 20:12:14 +02:00
Emil Ernerfeldt
7f8564b27a Expand and clarify project goals 2020-10-18 15:42:49 +02:00
Emil Ernerfeldt
222f534713 Add links to wgpu and winit integrations 2020-10-18 15:42:29 +02:00