| 1 |
--- |
| 2 |
title: "`CalculatedClip` now stores transformed clip rectangles" |
| 3 |
pull_requests: [24148] |
| 4 |
--- |
| 5 |
|
| 6 |
`CalculatedClip` is now an enum with `Rects` and `FullyClipped` variants. |
| 7 |
|
| 8 |
- `Rects` is the list of the clipping regions inherited by a UI entity, each is defined by a `Rect` along with an `Affine2` transform. |
| 9 |
- `FullyClipped` means that the UI entity is clipped completely and will neither be rendered nor pickable. |
| 10 |
|
| 11 |
`CalculatedClip::contains_point` can be used to test whether a point in physical-pixel coordinates is clipped. |