Pudu programming language
Menu
API reference

Std.Ui.Screen.handle

1 declaration

fn

handle: &Std.Ui.Screen.Screen[S] -> Std.Ui.Screen.Input -> Result[Std.Ui.Screen.Screen[S], Std.Ui.Screen.ScreenError]

This is a callable function.

What it does

The screen after one input.

A press activates the frontmost control under it and moves focus there; a

press on anything else changes nothing. Next and Previous move focus

through the controls in reading order and wrap. Activate activates the

focused control. An input that changes neither state nor focus returns the

same frame with no damage.

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.

Back to Std.Ui.ScreenSearch related declarations