egui/crates
Umatriz 5051e945e4
Add `PopupCloseBehavior` (#4636)
This PR adds `PopupCloseBehavior` to improve state of the
<https://github.com/emilk/egui/issues/4607>

`PopupCloseBehavior` determines when popup will be closed.
- `CloseOnClick` popup will be closed if the click happens anywhere even
in the popup's body
- `CloseOnClickAway` popup will be closed if the click happens somewhere
else but in the popup's body.

It also adds a test in the demo app which contains several popups
examples.

---

My ideas about <https://github.com/emilk/egui/issues/4607> is to make
every tooltip and popup a menu. So it will provide more control over
popups and tooltips (you will be able to close a popup by calling
something similar to the `ui.close_menu` if you need to). You won't need
to manually handle it's opening. And also will allow to have multiple
popups opened. That means you can have a popup inside a popup. And it
will also lead to the easier creation of the popups. (should we create a
tracking issue to track changes because to me it seems like a huge
amount of changes to be done?)

---

- Improvements on <https://github.com/emilk/egui/issues/4607>
2024-06-27 09:42:57 +02:00
..
ecolor Add `Color32::lerp_to_gamma` (#4627) 2024-06-06 15:41:10 +02:00
eframe `eframe::Result` is now short for `eframe::Result<()>` (#4706) 2024-06-25 13:31:42 +02:00
egui Add `PopupCloseBehavior` (#4636) 2024-06-27 09:42:57 +02:00
egui-wgpu Fix doclinks in egui-wgpu docs (#4677) 2024-06-19 11:26:26 +02:00
egui-winit Add `Key::Quote` (#4683) 2024-06-23 11:36:32 +02:00
egui_demo_app `eframe::Result` is now short for `eframe::Result<()>` (#4706) 2024-06-25 13:31:42 +02:00
egui_demo_lib Tweak two demos 2024-06-26 21:18:28 +02:00
egui_extras Gif support (#4620) 2024-06-19 14:05:05 +02:00
egui_glow Fix dragging of `custom_window_frame` example on Windows (#4656) 2024-06-19 16:19:41 +02:00
egui_plot plot zoom out max (#4695) 2024-06-26 16:34:34 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Fix docstring 2024-06-26 09:00:11 +02:00
epaint Bug fix: ui opacity and gray-out not affecting strokes (#4581) 2024-05-29 22:37:55 +02:00