Std.Ui.Layout.paint
1 declaration
fn
paint: &Std.Ui.Layout.Layout -> &Std.Ui.Canvas.Canvas -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Layout.LayoutError]This is a callable function.
What it does
A canvas holding every node's fill and text, in painting order.
A node's fill covers its frame; its text starts at the top left of its
padded content and is not clipped to the frame, so text wider than a fixed
frame stays visible and its extent is what damage reports. Both are cut to
the window of every scrolling ancestor.
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.
