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

Add Shape::visual_bounding_rect()

This commit is contained in:
Emil Ernerfeldt
2022-02-21 21:40:46 +01:00
parent fd3fb726c1
commit 8f887e2ebd
4 changed files with 89 additions and 22 deletions

View File

@@ -122,7 +122,7 @@ impl PaintBezier {
let shape =
QuadraticBezierShape::from_points_stroke(points, true, self.fill, self.stroke);
painter.add(epaint::RectShape::stroke(
shape.bounding_rect(),
shape.visual_bounding_rect(),
0.0,
self.bounding_box_stroke,
));
@@ -133,7 +133,7 @@ impl PaintBezier {
let shape =
CubicBezierShape::from_points_stroke(points, true, self.fill, self.stroke);
painter.add(epaint::RectShape::stroke(
shape.bounding_rect(),
shape.visual_bounding_rect(),
0.0,
self.bounding_box_stroke,
));