1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -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

@@ -363,7 +363,7 @@ impl Shape {
Self::Vec(shapes) => {
let mut rect = Rect::NOTHING;
for shape in shapes {
rect = rect.union(shape.visual_bounding_rect());
rect |= shape.visual_bounding_rect();
}
rect
}

View File

@@ -691,7 +691,7 @@ fn galley_from_rows(
let mut num_indices = 0;
for placed_row in &mut rows {
rect = rect.union(placed_row.rect());
rect |= placed_row.rect();
let row = Arc::make_mut(&mut placed_row.row);
row.visuals = tessellate_row(point_scale, &job, &format_summary, row);