Std.Ui.Layout.damage
1 declaration
fn
damage: &Std.Ui.Layout.Layout -> &Std.Ui.Layout.Layout -> Array[Std.Ui.Canvas.Rect]This is a callable function.
What it does
The regions whose pixels differ between two placements of a screen.
A node that changed what it paints damages where it was and where it is,
measured by its extent: its frame, grown to cover text overflowing it. A
change of structure or viewport damages everything, because node positions
no longer correspond. Repainting only these regions of the earlier surface
gives exactly the surface a full render of the later layout gives.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
