egui/crates
Blackberry Float db3543d034
Update area struct to allow force resizing (#7114)
This is a really small PR so I am skipping the issue (based on
contributing.md). This change adds an optional field and thus non
breaking for the API.

I ran into an issue during my development of an alerts manager widget
([see PR](https://github.com/blackberryfloat/egui_widget_ext/pull/2))
where I needed a scrollable overlay that did not block clicking areas of
a parent widget when my alerts did not take up the entire parent. To
achieve this I detect the sizing pass via the invisible flag and only
render the alerts content and then on the next pass I add the scroll bar
in around the alert content. Whenever the alert content changed though I
would need to create a new Area with a new id to get proper sizing. That
is a memory leak so I wanted to reset the size state to trigger a sizing
pass. Memory is rightfully protected enough that the path to remove
memory was dropped and I just added a hook to set a resize flag.

I am sure there are better ways but this is what made sense to me.
Looking forward to thoughts.

~~Logistics wise, I have proposed it as a patch because I was based off
0.31.1 for testing. I was also thinking it could be released quickly. I
am happy to cherry pick onto main after. If that is not allowed I can
rebase to main and pull against that.~~ (rebased on main)

---------

Co-authored-by: Wesley Murray <murraywj97@gmail.com>
2025-07-03 13:14:07 +02:00
..
ecolor Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
eframe Respect and detect `prefers-color-scheme: no-preference` (#7293) 2025-07-03 08:58:45 +02:00
egui Update area struct to allow force resizing (#7114) 2025-07-03 13:14:07 +02:00
egui-wgpu Improve text rendering in light mode (#7290) 2025-07-02 14:58:37 +02:00
egui-winit Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
egui_demo_app Add `Visuals::weak_text_alpha` and `weak_text_color` (#7285) 2025-07-01 20:42:54 +02:00
egui_demo_lib Improve text rendering in light mode (#7290) 2025-07-02 14:58:37 +02:00
egui_extras Extend .typos.toml to enforce american english (#7284) 2025-07-01 15:54:00 +02:00
egui_glow Improve text rendering in light mode (#7290) 2025-07-02 14:58:37 +02:00
egui_kittest Add support for scrolling via accesskit / kittest (#7286) 2025-07-03 12:02:05 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
epaint Improve text rendering in light mode (#7290) 2025-07-02 14:58:37 +02:00
epaint_default_fonts Update `emoji-icon-font` with fix for fullwidth latin characters (#7067) 2025-05-21 13:22:23 +02:00