Pudu programming language
Menu
API reference

Std.Ui.Layout.text

1 declaration

fn

text: Str -> Std.Ui.Layout.View

This is a callable function.

What it does

A leaf showing text, measured by its face and named by what it says.

Non-empty text is a Label whose accessible name is the text itself, so a

label can never be read aloud as something other than what is drawn. Empty

text is decoration.

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.

Back to Std.Ui.LayoutSearch related declarations