egui/crates/egui_demo_lib/src/demo
Lucas Meurer 0152a87519
Create custom `egui_kittest::Node` (#7138)
This adds a custom Node struct with proper support for egui types
(`Key`, `Modifiers`, `egui::Event`, `Rect`) instead of needing to use
the kittest / accesskit types.

I also changed the `click` function to do a proper mouse move / mouse
down instead of the accesskit click. Also added `accesskit_click` to
trigger the accesskit event. This resulted in some changed snapshots,
since the elements are now hovered.

Also renamed `press_key` to `key_press` for consistency with
`key_down/key_up`.

Also removed the Deref to the AccessKit Node, to make it clearer when to
expect egui and when to expect accesskit types.

* Closes #5705 
* [x] I have followed the instructions in the PR template
2025-06-17 12:17:38 +02:00
..
tests lint: fix lints appearing in rust stable currently (#7118) 2025-06-11 17:38:06 +02:00
about.rs Remove `egui::special_emojis::TWITTER` (#5622) 2025-01-21 11:56:45 +01:00
code_editor.rs Use `TextBuffer` for `layouter` in `TextEdit` instead of `&str` (#5712) 2025-04-06 18:45:20 +02:00
code_example.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
dancing_strings.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02:00
demo_app_windows.rs Create custom `egui_kittest::Node` (#7138) 2025-06-17 12:17:38 +02: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 Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
frame_demo.rs ⚠️ Rename `Rounding` to `CornerRadius` (#5673) 2025-02-04 12:53:18 +01: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 Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
misc_demo_window.rs Add anchored text rotation method, and clarify related docs (#7130) 2025-06-16 01:42:01 +02:00
mod.rs ⚠️ Improved menu based on `egui::Popup` (#5716) 2025-03-03 14:56:30 +01:00
modals.rs Create custom `egui_kittest::Node` (#7138) 2025-06-17 12:17:38 +02: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 Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
painting.rs Remove wildcard imports (#5018) 2024-08-28 12:18:42 +02: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 Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
popups.rs Add color picker menu item example (#5755) 2025-03-19 09:33:17 +01:00
scene.rs Remove date button from Scene demo, so as not to fail tests each day (#5657) 2025-01-30 20:51:12 +01:00
screenshot.rs lint: fix lints appearing in rust stable currently (#7118) 2025-06-11 17:38:06 +02:00
scrolling.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +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 overline option for Table rows (#5637) 2025-04-08 11:36:43 +02:00
text_edit.rs Create custom `egui_kittest::Node` (#7138) 2025-06-17 12:17:38 +02: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 Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
tooltips.rs Add `Popup` and `Tooltip`, unifying the previous behaviours (#5713) 2025-02-18 15:53:07 +01:00
undo_redo.rs Add undo/redo demo. (#4811) 2024-07-15 10:54:34 +02:00
widget_gallery.rs Add `AtomLayout`, abstracing layouting within widgets (#5830) 2025-06-13 09:39:52 +02:00
window_options.rs Add `Ui::close` and `Response::should_close` (#5729) 2025-02-20 17:59:29 +01:00