egui/crates/egui_demo_lib/src/demo
lucasmerlin 6c1d695fc6
Add screenshot support for eframe web (#5438)
This implements web support for taking screenshots in an eframe app (and
adds a nice demo).
It also updates the native screenshot implementation to work with the
wgpu gl backend.

The wgpu implementation is quite different than the native one because
we can't block to wait for the screenshot result, so instead I use a
channel to pass the result to a future frame asynchronously.

* Closes <https://github.com/emilk/egui/issues/5425>
* [x] I have followed the instructions in the PR template


https://github.com/user-attachments/assets/67cad40b-0384-431d-96a3-075cc3cb98fb
2024-12-12 19:17:42 +01:00
..
tests Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
about.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
code_editor.rs Use Style's font size in egui_extras::syntax_highlighting (#5090) 2024-09-10 11:38:26 +02:00
code_example.rs Use Style's font size in egui_extras::syntax_highlighting (#5090) 2024-09-10 11:38:26 +02:00
context_menu.rs Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
dancing_strings.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
demo_app_windows.rs Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
drag_and_drop.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
extra_viewport.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
font_book.rs Add UI to modify `FontTweak` live (#5125) 2024-09-18 13:43:33 +02:00
frame_demo.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
highlighting.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
interactive_container.rs Interactive `Ui`:s: add `UiBuilder::sense` and `Ui::response` (#5054) 2024-09-19 11:55:21 +02:00
misc_demo_window.rs Center-align all text vertically (#5117) 2024-09-19 11:44:29 +02:00
mod.rs Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
modals.rs Add `Modal` and `Memory::set_modal_layer` (#5358) 2024-11-28 16:52:05 +01:00
multi_touch.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
paint_bezier.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
painting.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
pan_zoom.rs Fix `on_hover_text_at_pointer` for transformed layers (#5429) 2024-12-04 14:23:05 +01:00
panels.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
password.rs Avoid deadlocks by using lambdas for context lock (#2625) 2023-01-25 10:24:23 +01:00
screenshot.rs Add screenshot support for eframe web (#5438) 2024-12-12 19:17:42 +01:00
scrolling.rs Make Light & Dark Visuals Customizable When Following The System Theme (#4744) 2024-09-11 17:52:53 +02:00
sliders.rs Update MSRV to Rust 1.79 (#5421) 2024-12-01 18:58:35 +01:00
strip_demo.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
table_demo.rs Add `egui::Sides` for adding UI on left and right sides (#5036) 2024-09-02 10:47:20 +02:00
text_edit.rs egui_kittest: Allow passing state to the app closure (#5313) 2024-11-06 14:43:41 +01:00
text_layout.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00
toggle_switch.rs Disabled widgets are now also disabled in the accesskit output (#4750) 2024-07-02 09:18:30 +02:00
tooltips.rs Fix typos (#4796) 2024-07-07 08:50:04 +02:00
undo_redo.rs Add undo/redo demo. (#4811) 2024-07-15 10:54:34 +02:00
widget_gallery.rs Add `Harness::new_ui`, `Harness::fit_contents` (#5301) 2024-11-01 18:30:40 +01:00
window_options.rs Put all `egui_demo_lib` tests into their own files in their own folder (#4691) 2024-06-23 10:53:04 +02:00