1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Implement BitOr and BitOrAssign for Rect

This commit is contained in:
lucasmerlin
2025-07-09 14:55:13 +02:00
parent 207e71c2ae
commit 86d1c0e40a
10 changed files with 32 additions and 15 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!