Style primitives

This commit is contained in:
2026-03-21 03:08:19 -04:00
parent c70f42704c
commit a70a08297e
7 changed files with 1306 additions and 178 deletions

View File

@@ -164,6 +164,7 @@ mod tests {
path: LayoutPath::root(),
element_id: None,
rect: Rect::new(0.0, 0.0, 200.0, 120.0),
corner_radius: 0.0,
pointer_events: false,
focusable: false,
cursor: CursorIcon::Default,
@@ -174,6 +175,7 @@ mod tests {
path: LayoutPath::root().child(0),
element_id: Some(ElementId::new(1)),
rect: Rect::new(0.0, 0.0, 120.0, 120.0),
corner_radius: 0.0,
pointer_events: true,
focusable: false,
cursor: CursorIcon::Default,
@@ -185,6 +187,7 @@ mod tests {
path: LayoutPath::root().child(1),
element_id: Some(ElementId::new(2)),
rect: Rect::new(80.0, 0.0, 120.0, 120.0),
corner_radius: 0.0,
pointer_events: true,
focusable: false,
cursor: CursorIcon::Default,
@@ -203,6 +206,7 @@ mod tests {
path: LayoutPath::root(),
element_id: None,
rect: Rect::new(0.0, 0.0, 200.0, 120.0),
corner_radius: 0.0,
pointer_events: false,
focusable: false,
cursor: CursorIcon::Default,
@@ -212,6 +216,7 @@ mod tests {
path: LayoutPath::root().child(0),
element_id: Some(ElementId::new(1)),
rect: Rect::new(0.0, 0.0, 160.0, 120.0),
corner_radius: 0.0,
pointer_events: true,
focusable: false,
cursor: CursorIcon::Default,
@@ -221,6 +226,7 @@ mod tests {
path: LayoutPath::root().child(0).child(0),
element_id: Some(ElementId::new(2)),
rect: Rect::new(16.0, 16.0, 80.0, 40.0),
corner_radius: 0.0,
pointer_events: true,
focusable: false,
cursor: CursorIcon::Default,