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
|
|
@ -346,7 +346,7 @@ where
|
|||
|
||||
self.content = Renderer::Paragraph::with_spans(Text {
|
||||
content: &spans,
|
||||
bounds: Size::INFINITY,
|
||||
bounds: Size::INFINITE,
|
||||
size: preedit
|
||||
.text_size
|
||||
.unwrap_or_else(|| renderer.default_size()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue