Std.Ui.Canvas.repaint
1 declaration
fn
repaint: &Std.Ui.Canvas.Canvas -> &Std.Ui.Canvas.Surface -> &Array[Std.Ui.Canvas.Rect] -> Result[Std.Ui.Canvas.Surface, Std.Ui.Canvas.CanvasError]This is a callable function.
What it does
A surface with regions brought up to date with the display list.
Only the regions are rasterized; every other pixel is carried from the
earlier surface. When the regions cover every pixel whose color differs
between the display list the earlier surface was rendered from and this
one, the result is exactly what render 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.
- Result makes success and recoverable failure part of the function's type.
