Wrap native text within occurrence constraints and preserve paint bounds
Verify Tessera GUI / verify (push) Failing after 7m33s

This commit is contained in:
2026-10-22 12:24:23 +08:00
parent 25275b515c
commit 7b5d3940fd
13 changed files with 470 additions and 45 deletions
+8 -1
View File
@@ -45,6 +45,12 @@ pub enum DrawCommand {
width: f32,
color: Color,
},
WrappedText {
rect: Rect,
value: String,
style: TextStyle,
color: Color,
},
Text {
origin: Point,
value: String,
@@ -66,7 +72,8 @@ impl DisplayList {
pub fn translate(&mut self, delta: Point) {
for command in &mut self.commands {
match command {
DrawCommand::PushClip(rect)
DrawCommand::WrappedText { rect, .. }
| DrawCommand::PushClip(rect)
| DrawCommand::FillRoundedRect { rect, .. }
| DrawCommand::StrokeRoundedRect { rect, .. } => {
rect.x += delta.x;