Introduce draw_with_bounds to canvas::Cache
Also: - Change `Rectangle::INFINITE` to have coordinates at `f32::NEG_INFINITY` - Change `Frame::with_clip` to _not_ adjust the coordinate system - Rename `Size::INFINITY` to `INFINITE`
This commit is contained in:
parent
c1f7345ceb
commit
f2aa570aac
13 changed files with 56 additions and 45 deletions
|
|
@ -394,7 +394,7 @@ where
|
|||
if self.snap_within_viewport {
|
||||
viewport.size()
|
||||
} else {
|
||||
Size::INFINITY
|
||||
Size::INFINITE
|
||||
},
|
||||
)
|
||||
.shrink(Padding::new(self.padding)),
|
||||
|
|
@ -508,7 +508,7 @@ where
|
|||
&defaults,
|
||||
layout.children().next().unwrap(),
|
||||
cursor_position,
|
||||
&Rectangle::with_size(Size::INFINITY),
|
||||
&Rectangle::with_size(Size::INFINITE),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue