1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Implement BitOr and BitOrAssign for Rect (#7319)

This commit is contained in:
Lucas Meurer
2025-07-09 15:29:51 +02:00
committed by GitHub
parent 207e71c2ae
commit 9fd0ad36e0
16 changed files with 45 additions and 32 deletions

View File

@@ -222,7 +222,7 @@ fn huge_content_painter(ui: &mut egui::Ui) {
font_id.clone(),
ui.visuals().text_color(),
);
used_rect = used_rect.union(text_rect);
used_rect |= text_rect;
}
ui.allocate_rect(used_rect, Sense::hover()); // make sure it is visible!