Skip to content

Commit

Permalink
import ClippedShape on module level
Browse files Browse the repository at this point in the history
  • Loading branch information
brunizzl committed Jan 23, 2024
1 parent 85a1a8c commit e39adf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit e39adf3

Please sign in to comment.