From e39adf37362a75ffd7f1caf93383a5989d5de302 Mon Sep 17 00:00:00 2001 From: Bruno Borchardt Date: Tue, 23 Jan 2024 16:24:54 +0100 Subject: [PATCH] import ClippedShape on module level --- crates/egui/src/painter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/painter.rs b/crates/egui/src/painter.rs index 42a8a8fa482..e4dcf117676 100644 --- a/crates/egui/src/painter.rs +++ b/crates/egui/src/painter.rs @@ -7,7 +7,7 @@ use crate::{ }; use epaint::{ text::{Fonts, Galley}, - CircleShape, RectShape, Rounding, Shape, Stroke, + CircleShape, ClippedShape, RectShape, Rounding, Shape, Stroke, }; /// Helper to paint shapes and text to a specific region on a specific layer. @@ -195,7 +195,7 @@ impl Painter { } /// Access all shapes added this frame. - pub fn for_each_shape(&self, mut reader: impl FnMut(&crate::epaint::ClippedShape)) { + pub fn for_each_shape(&self, mut reader: impl FnMut(&ClippedShape)) { self.ctx.graphics(|g| { if let Some(list) = g.get(self.layer_id) { for c in list.all_entries() {